/* KenOmega.io — Holders Only (matches ken-whitepaper aesthetic) */

:root {
    --bg: #000000;
    --panel: rgba(5, 10, 20, 0.86);
    --panel2: rgba(5, 10, 20, 0.72);
    --border: rgba(0, 170, 255, 0.22);
    --border2: rgba(0, 255, 255, 0.18);
    --text: #e0e0e0;
    --muted: #c9c9c9;
    --muted2: #a9a9a9;
    --blue: #00aaff;
    --blue2: #7fd3ff;
    --green: #22c55e;
    --green-bg: rgba(34, 197, 94, 0.12);
    --red: #f87171;
    --red-bg: rgba(248, 113, 113, 0.12);
    --orange: #f59e0b;
    --orange-bg: rgba(245, 158, 11, 0.14);
    --violet: #c084fc;
    --violet-bg: rgba(168, 85, 247, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { max-width: 100%; height: 100%; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Share Tech Mono', monospace;
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #050a14;
    border-bottom: 1px solid rgba(0, 170, 255, 0.4);
    padding: 15px 3%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
    min-height: 50px;
    gap: 16px;
}

.logo a {
    font-size: 24px;
    color: var(--blue);
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 2px;
    text-shadow: 0 0 5px rgba(0, 170, 255, 0.7);
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 28px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links li a {
    color: #c0c0c0;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 1px;
    padding: 5px 0;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

.nav-links li a:hover,
.nav-links li a.is-active {
    color: var(--blue);
    text-shadow: 0 0 8px rgba(0, 170, 255, 0.8);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}

#kenGateStatus {
    font-size: 11px;
    letter-spacing: 0.04em;
    padding: 6px 10px;
    border-radius: 6px;
    max-width: 360px;
    line-height: 1.4;
    white-space: nowrap;
}

#kenGateStatus.checking {
    color: var(--muted2);
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
}

#kenGateStatus.ready {
    color: var(--orange);
    background: var(--orange-bg);
    border: 1px solid rgba(245, 158, 11, 0.45);
}

#kenGateStatus.ok {
    color: var(--green);
    background: var(--green-bg);
    border: 1px solid rgba(34, 197, 94, 0.35);
}

#kenGateStatus.deny {
    color: var(--red);
    background: var(--red-bg);
    border: 1px solid rgba(248, 113, 113, 0.35);
}

#xamanWalletAddress {
    display: none;
    font-size: 11px;
    letter-spacing: 0.04em;
    padding: 6px 10px;
    border-radius: 6px;
    line-height: 1.4;
    white-space: nowrap;
    color: var(--blue2);
    background: rgba(0, 170, 255, 0.12);
    border: 1px solid rgba(0, 170, 255, 0.45);
}

#xamanWalletAddress.on { display: inline; }

#xamanLogoutBtn {
    display: none;
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: 6px;
    line-height: 1.4;
    white-space: nowrap;
    cursor: pointer;
    color: var(--violet);
    background: var(--violet-bg);
    border: 1px solid rgba(192, 132, 252, 0.55);
}

#xamanLogoutBtn.on { display: inline; }

#xamanLogoutBtn:hover {
    color: #e9d5ff;
    background: rgba(168, 85, 247, 0.24);
    border-color: rgba(216, 180, 254, 0.8);
}

#xamanConnectBtn {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--blue);
    color: #fff;
    border: none;
    padding: 7px 12px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
}

#xamanConnectBtn:hover { background: var(--blue2); color: #fff; }

#xamanConnectBtn:disabled,
#xamanConnectBtn.is-gated {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    background: #3a4a58;
    color: #c9d3dc;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    position: relative;
    z-index: 1100;
    padding: 12px;
    margin-right: -8px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--blue);
    transition: all 0.25s ease-in-out;
    pointer-events: none;
}

main {
    padding: 0 5%;
    max-width: 100%;
    flex: 1 0 auto;
}

.page-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 0 56px;
}

.hero-shell {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 36px;
    align-items: start;
}

.hero-inner { min-width: 0; }

.hero-card {
    background: var(--panel);
    border: 1px solid var(--border2);
    border-radius: 12px;
    box-shadow: 0 0 18px rgba(0, 170, 255, 0.12);
    padding: 26px 22px;
}

.hero-top {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 18px;
    align-items: center;
}

.token-logo {
    width: 90px;
    height: 90px;
    border-radius: 14px;
    border: 1px solid rgba(0, 255, 255, 0.22);
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 0 0 18px rgba(0, 170, 255, 0.18);
    object-fit: cover;
}

.hero-title {
    font-size: 26px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--blue);
    margin-bottom: 8px;
}

.hero-sub {
    color: #c0c0c0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    letter-spacing: 0.2px;
    font-size: 15px;
    line-height: 1.65;
}

.token-badge-row {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.badge {
    border: 1px solid rgba(0, 255, 255, 0.18);
    border-radius: 10px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.24);
    font-size: 13px;
    color: var(--text);
}

.badge strong { color: var(--blue); font-weight: 700; }

.mono {
    font-family: ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    word-break: break-all;
    overflow-wrap: anywhere;
    color: var(--blue);
}

.pay-col {
    position: sticky;
    top: 88px;
    width: 360px;
    justify-self: end;
}

.pay-card {
    background: var(--panel);
    border: 1px solid var(--border2);
    border-radius: 12px;
    padding: 24px 22px 20px;
    box-shadow: 0 0 18px rgba(0, 170, 255, 0.12);
}

.pc-eyebrow {
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted2);
    margin-bottom: 16px;
}

.price-block {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.price-lbl {
    font-size: 12px;
    color: var(--muted2);
    margin-bottom: 6px;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.price-amt {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text);
}

.price-cur { color: var(--blue); font-size: 14px; }

.price-note {
    font-size: 12px;
    color: var(--muted2);
    font-family: ui-sans-serif, system-ui, sans-serif;
}

.ken-gate-box {
    display: none;
    margin-bottom: 14px;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 12px;
    line-height: 1.55;
    font-family: ui-sans-serif, system-ui, sans-serif;
}

.ken-gate-box.on { display: block; }
.ken-gate-box.ok { background: var(--green-bg); border: 1px solid rgba(34, 197, 94, 0.35); color: var(--green); }
.ken-gate-box.ready { background: var(--orange-bg); border: 1px solid rgba(245, 158, 11, 0.45); color: var(--orange); }
.ken-gate-box.deny { background: var(--red-bg); border: 1px solid rgba(248, 113, 113, 0.35); color: var(--red); }
.ken-gate-box.checking { background: rgba(0, 0, 0, 0.28); border: 1px solid var(--border); color: var(--muted); }

#kenAddrWrap { display: none; margin-bottom: 14px; }
#kenAddrWrap.on { display: block; }
#kenAddrWrap label {
    display: block;
    font-size: 11px;
    color: var(--muted2);
    margin-bottom: 6px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

#kenAddrInput {
    width: 100%;
    font-family: ui-monospace, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 9px 11px;
    color: var(--text);
    background: rgba(0, 0, 0, 0.4);
    outline: none;
}

#kenAddrInput:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0, 170, 255, 0.12);
}

.cta {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 12px;
    background: var(--blue);
    color: #041018;
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.cta:hover { background: var(--blue2); }

.cta.is-xaman {
    background: var(--blue);
    color: #fff;
}

.cta.is-xaman:hover { background: var(--blue2); color: #fff; }

.cta:disabled,
.cta.is-gated {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    background: #3a4a58;
    color: #c9d3dc;
}

.cta-sub {
    font-size: 11px;
    color: var(--muted2);
    text-align: center;
    line-height: 1.7;
    font-family: ui-sans-serif, system-ui, sans-serif;
}

.cta-sub a { color: var(--blue); text-decoration: none; }

.teasers {
    margin-top: 28px;
}

.teasers h2 {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--blue);
    margin-bottom: 8px;
    font-size: 18px;
}

.teasers-lead {
    font-family: ui-sans-serif, system-ui, sans-serif;
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 18px;
}

.teaser-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.teaser-card {
    background: var(--panel2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    min-height: 160px;
    position: relative;
    overflow: hidden;
}

.teaser-card.is-locked {
    filter: grayscale(0.35);
    opacity: 0.55;
    pointer-events: none;
}

.teaser-card.is-locked::after {
    content: "LOCKED";
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--blue);
    border: 1px solid var(--border2);
    padding: 3px 7px;
    border-radius: 8px;
}

.teaser-kicker {
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted2);
    margin-bottom: 8px;
}

.teaser-card h3 {
    font-size: 15px;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: 0.04em;
}

.teaser-card p {
    font-family: ui-sans-serif, system-ui, sans-serif;
    font-size: 13px;
    color: var(--muted);
}

.note {
    margin-top: 18px;
    padding: 12px 14px;
    border: 1px solid rgba(0, 255, 255, 0.14);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
    color: var(--muted2);
    font-size: 13px;
    font-family: ui-sans-serif, system-ui, sans-serif;
}

footer {
    text-align: center;
    padding: 18px 0 28px;
    color: #555;
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 60px;
}

.holders-posts.is-locked {
    filter: grayscale(0.35);
    opacity: 0.55;
    pointer-events: none;
}

.ho-post {
    background: var(--panel2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 18px;
}

.ho-post-date {
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--blue2);
    margin-bottom: 8px;
}

.ho-post h3 {
    font-size: 18px;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: 0.04em;
}

.ho-post-author {
    font-size: 13px;
    letter-spacing: 0.04em;
    color: var(--blue2);
    margin-bottom: 12px;
}

.ho-post p {
    font-family: ui-sans-serif, system-ui, sans-serif;
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 14px;
    white-space: pre-wrap;
}

.ho-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 10px;
}

.ho-thumb {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
}

.ho-thumb > img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #000;
    display: block;
    -webkit-user-drag: none;
    user-drag: none;
    user-select: none;
}

.ho-thumb:hover > img {
    border-color: var(--blue);
}

.ho-thumb::after,
.ho-lb-stage::after {
    content: "";
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: 33%;
    max-width: 113px;
    aspect-ratio: 5 / 1;
    background: url("/images/kenomega-watermark.png") no-repeat right bottom / contain;
    pointer-events: none;
    z-index: 2;
}

.help {
    font-family: ui-sans-serif, system-ui, sans-serif;
    font-size: 13px;
    color: var(--muted2);
}

@media screen and (max-width: 992px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        width: 100%;
        background-color: #050a14;
        border-top: 1px solid rgba(0, 170, 255, 0.4);
        padding: 10px 0;
        transform: none;
        z-index: 1050;
        gap: 0;
    }

    .nav-links.active { display: flex; }

    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    .nav-links li a {
        display: block;
        width: 100%;
        padding: 8px 0;
    }

    .hamburger { display: flex; }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    #kenGateStatus {
        max-width: 140px;
        white-space: normal;
        font-size: 10px;
    }

    #xamanConnectBtn,
    #xamanLogoutBtn {
        font-size: 10px;
        padding: 6px 8px;
    }

    .hero-shell { grid-template-columns: 1fr; gap: 20px; }
    .pay-col { position: static; width: 100%; justify-self: stretch; }
    .hero-top { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .teaser-grid { grid-template-columns: 1fr; }
    .ho-gallery { grid-template-columns: repeat(3, 1fr); }
}

.ho-xumm-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 16px;
}

.ho-xumm-card {
    background: #050a14;
    border: 1px solid var(--border);
    border-radius: 12px;
    max-width: 400px;
    width: 100%;
    padding: 28px 22px 22px;
    text-align: center;
    position: relative;
    box-shadow: 0 0 28px rgba(0, 170, 255, 0.18);
}

.ho-xumm-card h2 {
    color: var(--blue);
    font-size: 16px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.ho-xumm-card img {
    width: 100%;
    max-width: 280px;
    margin: 8px auto 14px;
    display: block;
    border-radius: 8px;
    background: #fff;
}

.ho-xumm-card p {
    color: var(--muted);
    font-size: 13px;
    font-family: ui-sans-serif, system-ui, sans-serif;
    margin-bottom: 12px;
}

.ho-xumm-card a {
    display: inline-block;
    padding: 10px 18px;
    background: var(--blue);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ho-xumm-status {
    color: var(--blue2) !important;
    font-weight: 700;
    margin-top: 14px !important;
}

.ho-xumm-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    color: var(--muted2);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.ho-mobile { display: none; }

@media (max-width: 768px) and (hover: none) and (pointer: coarse) {
    html, body {
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
        height: 100dvh;
    }

    body > header,
    body > main,
    body > footer {
        display: none !important;
    }

    .ho-mobile {
        display: flex;
        flex-direction: column;
        height: 100dvh;
        width: 100%;
        background: #000;
        position: relative;
        z-index: 3;
    }

    .ho-mobile-nav {
        padding: 16px 5%;
        border-bottom: 1px solid rgba(0, 170, 255, 0.4);
        background: #050a14;
    }

    .ho-mobile-nav a {
        font-size: 22px;
        color: var(--blue);
        font-weight: bold;
        text-decoration: none;
        letter-spacing: 2px;
        text-shadow: 0 0 5px rgba(0, 170, 255, 0.7);
        font-family: 'Share Tech Mono', monospace;
    }

    .ho-mobile-hero {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 32px 24px;
    }

    .ho-mobile-hero p {
        font-family: ui-sans-serif, system-ui, sans-serif;
        font-size: 16px;
        line-height: 1.6;
        color: var(--text);
        max-width: 320px;
    }

    .ho-mobile-footer {
        margin-top: auto;
        text-align: center;
        padding: 18px 16px 24px;
        color: #555;
        font-size: 13px;
        border-top: 1px solid rgba(0, 170, 255, 0.18);
    }
}

body.ho-lb-open { overflow: hidden; }

.ho-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 20000;
    background: rgba(0, 0, 0, 0.88);
    align-items: center;
    justify-content: center;
    padding: 48px 72px;
}

.ho-lightbox.on {
    display: flex;
}

.ho-lb-stage {
    position: relative;
    display: block;
    width: fit-content;
    max-width: min(92vw, 920px);
    line-height: 0;
}

#hoLightboxImg {
    max-width: min(92vw, 920px);
    max-height: 86vh;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #000;
    display: block;
    -webkit-user-drag: none;
    user-drag: none;
    user-select: none;
}

.ho-lb-stage::after {
    width: 22.5%;
    max-width: 165px;
    right: 12px;
    bottom: 12px;
}

.ho-lb-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: transparent;
    border: 1px solid rgba(0, 170, 255, 0.45);
    color: var(--blue2);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.ho-lb-close:hover { border-color: var(--blue); color: #fff; }

.ho-lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(5, 10, 20, 0.72);
    border: 1px solid rgba(0, 170, 255, 0.45);
    color: var(--blue2);
    width: 48px;
    height: 64px;
    border-radius: 8px;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
}

.ho-lb-prev { left: 16px; }
.ho-lb-next { right: 16px; }
.ho-lb-nav:hover { border-color: var(--blue); color: #fff; }

.ho-lb-count {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--blue2);
}
