:root {
    --neon: #39ff14;
    --neon-2: #6cff45;
    --glow: 0 0 14px rgba(57,255,20,.9), 0 0 32px rgba(57,255,20,.45);
    --font: "Rajdhani", sans-serif;
    --display: "Orbitron", sans-serif;
    --metal: "Black Ops One", var(--display);
    --scroll: 0;
    --map: 0;
    --globe: 0;
    --hud-w: clamp(22rem, 22vw, 28rem);
    --map-w: min(920px, 92%);
    --map-h: min(860px, 94dvh);
    --node-w: clamp(11.5rem, 16vw, 14.2rem);
    --hub-size: clamp(9.5rem, 13vw, 12.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }

html, body.th-body {
    margin: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    background: #000;
    color: #eef3ee;
    font-family: var(--font);
    overflow: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* —— Full-screen video preloader (curtain exit) —— */
html.is-preloading,
body.is-preloading {
    overflow: hidden !important;
    overscroll-behavior: none;
    touch-action: none;
}
body.is-preloading .th-smooth {
    overflow: hidden !important;
    pointer-events: none;
}

.th-preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    width: 100%;
    height: 100%;
    height: 100dvh;
    margin: 0;
    padding: 0;
    background: #000;
    overflow: hidden;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform 1s cubic-bezier(0.76, 0, 0.24, 1);
    pointer-events: auto;
}
.th-preloader.is-exiting {
    transform: translate3d(0, -100%, 0);
    pointer-events: none;
}
.th-preloader__video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border: 0;
    background: #000;
    pointer-events: none;
    opacity: 0;
    transition: opacity .28s ease;
}
.th-preloader.is-playing .th-preloader__video {
    opacity: 1;
}
.th-preloader.is-playing.is-buffering::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: max(1.4rem, env(safe-area-inset-bottom));
    width: 2.2rem;
    height: 2px;
    margin-left: -1.1rem;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--neon), transparent);
    opacity: .4;
    animation: th-preloader-buffer 1.1s ease-in-out infinite;
    pointer-events: none;
    z-index: 4;
}
@keyframes th-preloader-buffer {
    0%, 100% { transform: scaleX(.45); opacity: .2; }
    50% { transform: scaleX(1); opacity: .65; }
}

/* —— Pre-entry gate (wait for ENTER) —— */
.th-preloader__gate {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    padding: max(1.25rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) max(1.25rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
    background:
        radial-gradient(ellipse 72% 58% at 50% 42%, rgba(24, 64, 24, .42) 0%, rgba(0, 0, 0, .78) 55%, #000 100%);
    transition: opacity .38s cubic-bezier(0.4, 0, 0.2, 1), transform .38s cubic-bezier(0.4, 0, 0.2, 1);
}
.th-preloader__gate.is-leaving {
    opacity: 0;
    transform: scale(1.03);
    pointer-events: none;
}
.th-preloader__gate-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: clamp(.85rem, 2vw, 1.25rem);
    max-width: min(22rem, 92vw);
    animation: th-preloader-gate-in .7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.th-preloader__identity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(.65rem, 1.6vw, .95rem);
}
.th-preloader__crest {
    flex: 0 0 auto;
    width: 3.4rem;
    height: 3.4rem;
    clip-path: polygon(25% 2%, 75% 2%, 98% 50%, 75% 98%, 25% 98%, 2% 50%);
    background: linear-gradient(145deg, #2a3a2a, #0a100a);
    border: 1px solid var(--neon);
    box-shadow: 0 0 22px rgba(57,255,20,.4), inset 0 0 14px rgba(57,255,20,.15);
    display: grid;
    place-items: center;
    font-family: var(--display);
    font-weight: 800;
    font-size: .9rem;
    letter-spacing: .08em;
    color: var(--neon);
    text-shadow: var(--glow);
}
.th-preloader__brand {
    margin: 0;
    font-family: var(--metal);
    font-size: clamp(1.15rem, 3.2vw, 1.55rem);
    font-style: italic;
    letter-spacing: .18em;
    white-space: nowrap;
    color: var(--neon);
    text-shadow: var(--glow);
}
.th-preloader__enter {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: min(16rem, 78vw);
    margin-top: .35rem;
    padding: 1.05rem 1.4rem;
    border: 2px solid var(--neon);
    border-radius: .15rem;
    background:
        linear-gradient(180deg, rgba(24,58,24,.72), rgba(4,12,4,.94)),
        repeating-linear-gradient(135deg, rgba(57,255,20,.06) 0 2px, transparent 2px 6px);
    color: #fff;
    font-family: var(--display);
    font-size: clamp(.82rem, 1.5vw, .95rem);
    font-weight: 800;
    letter-spacing: .34em;
    text-indent: .34em;
    cursor: pointer;
    box-shadow:
        0 0 0 1px rgba(57,255,20,.28),
        0 0 28px rgba(57,255,20,.3),
        inset 0 0 20px rgba(57,255,20,.08);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}
.th-preloader__enter-glow {
    position: absolute;
    inset: -45%;
    z-index: 0;
    background: radial-gradient(circle at 50% 50%, rgba(57,255,20,.2), transparent 58%);
    opacity: .65;
    pointer-events: none;
    animation: th-preloader-enter-glow 2.8s ease-in-out infinite;
}
.th-preloader__enter-label {
    position: relative;
    z-index: 1;
    color: #fff;
    text-shadow: 0 1px 0 rgba(0,0,0,.45), 0 0 14px rgba(255,255,255,.22);
}
.th-preloader__enter:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: var(--neon-2);
    box-shadow:
        0 0 0 1px var(--neon),
        0 0 40px rgba(57,255,20,.5),
        0 0 70px rgba(57,255,20,.18),
        inset 0 0 24px rgba(57,255,20,.12);
}
.th-preloader__enter:active {
    transform: translateY(0) scale(.985);
}
.th-preloader__enter:focus-visible {
    outline: 2px solid var(--neon-2);
    outline-offset: 4px;
}
.th-preloader__enter:disabled {
    cursor: wait;
    opacity: .88;
}
.th-preloader__sound {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    margin: .15rem 0 0;
    color: rgba(180, 210, 180, .78);
    font-family: var(--font);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.th-preloader__sound svg {
    flex: 0 0 auto;
    color: var(--neon);
    filter: drop-shadow(0 0 6px rgba(57,255,20,.65));
    opacity: .9;
}

@keyframes th-preloader-gate-in {
    from { opacity: 0; transform: translateY(12px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes th-preloader-enter-glow {
    0%, 100% { opacity: .4; transform: scale(.92); }
    50% { opacity: .85; transform: scale(1.06); }
}

@media (max-width: 700px) {
    .th-preloader__crest { width: 2.9rem; height: 2.9rem; font-size: .8rem; }
    .th-preloader__enter {
        width: min(14.5rem, 84vw);
        padding: .95rem 1.15rem;
        letter-spacing: .28em;
        text-indent: .28em;
        font-size: .78rem;
    }
    .th-preloader__sound {
        font-size: .62rem;
        letter-spacing: .08em;
        max-width: 16rem;
        line-height: 1.35;
    }
}

@media (prefers-reduced-motion: reduce) {
    .th-preloader {
        transition-duration: 0.45s;
    }
    .th-preloader__gate-inner,
    .th-preloader__enter-glow,
    .th-preloader.is-playing.is-buffering::after {
        animation: none !important;
    }
    .th-preloader__gate { transition-duration: .2s; }
}

/* Hubtown-style smooth scroll shell */
.th-smooth {
    position: relative;
    z-index: 10;
    height: 100%;
    height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    background: transparent;
    -webkit-overflow-scrolling: touch;
}

.th-scroll {
    position: relative;
    min-height: 100%;
}

#th-scene, #th-wave {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}
#th-scene { z-index: 1; opacity: 0; transition: opacity .7s cubic-bezier(.22,1,.36,1); }
#th-scene.is-live { opacity: 1; }
html.th-globe-active #th-scene,
html.th-globe-diving #th-scene,
html.th-world-active #th-scene {
    opacity: 1;
}
#th-wave { display: none !important; }

html.th-no-webgl #th-scene {
    opacity: 0 !important;
}

.th-fog, .th-vignette, .th-grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
}
.th-fog {
    z-index: 2;
    background: radial-gradient(ellipse 70% 55% at 58% 48%, transparent 0%, rgba(0,0,0,.1) 50%, rgba(0,0,0,.45) 100%);
    opacity: 0.85;
    transition: opacity .5s ease, background .5s ease;
}
.th-vignette {
    z-index: 2;
    background: radial-gradient(ellipse at 55% 45%, transparent 48%, rgba(0,0,0,.4) 100%);
    transition: opacity .5s ease, background .5s ease;
}
/* No fog/vignette frame around the globe — was reading as an outer box-shadow border */
html.th-globe-active:not(.th-globe-diving) .th-fog,
html.th-globe-active:not(.th-globe-diving) .th-vignette {
    opacity: 0;
    visibility: hidden;
}
html.th-globe-diving .th-fog,
html.th-globe-diving .th-vignette {
    opacity: 0.9;
    visibility: visible;
}
.th-grain {
    z-index: 20;
    opacity: .03;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Fixed noise + overlay blend beats against the rotating globe → fake surface ripple */
html.th-globe-active .th-grain,
html.th-globe-diving .th-grain {
    opacity: 0 !important;
    visibility: hidden;
}

.th-progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 2px;
    z-index: 60;
    background: rgba(57,255,20,.1);
}
.th-progress i {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #146014, var(--neon));
    box-shadow: 0 0 10px var(--neon);
}

.th-scroll-hint {
    position: fixed;
    bottom: 1.4rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .45rem;
    font-family: var(--display);
    font-size: .58rem;
    letter-spacing: .38em;
    color: var(--neon);
    text-shadow: var(--glow);
    pointer-events: none;
    transition: opacity .4s;
}
.th-scroll-hint.is-hidden { opacity: 0; }
.th-scroll-hint b {
    width: 1px;
    height: 1.8rem;
    background: linear-gradient(180deg, var(--neon), transparent);
    animation: th-hint 1.35s ease-in-out infinite;
}
@keyframes th-hint {
    0%,100% { transform: scaleY(.3); opacity: .3; transform-origin: top; }
    50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
}

/* —— Top primary navigation —— */
.th-topnav {
    position: fixed;
    top: 0;
    left: 50%;
    z-index: 36;
    transform: translateX(-50%);
    width: min(52rem, calc(100vw - var(--hud-w) - 7rem));
    margin-left: calc(var(--hud-w) * .22);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .15rem .05rem;
    padding:
        max(.85rem, env(safe-area-inset-top))
        .75rem
        .65rem;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.28) 70%, transparent 100%);
}
.th-topnav > * { pointer-events: auto; }
.th-topnav__link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem .55rem;
    color: #c8d0c8;
    text-decoration: none;
    font-family: var(--display);
    font-size: clamp(.52rem, .7vw, .68rem);
    font-weight: 700;
    letter-spacing: .14em;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: color .2s, text-shadow .2s, border-color .2s, background .2s;
}
.th-topnav__link:hover {
    color: var(--neon);
    text-shadow: 0 0 10px rgba(57,255,20,.55);
}
.th-topnav__link:focus-visible {
    outline: 2px solid var(--neon-2);
    outline-offset: 2px;
}
.th-home-anchor {
    position: relative;
    height: 0;
    width: 0;
    overflow: hidden;
    pointer-events: none;
}

/* —— Left HUD —— */
.th-hud {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 30;
    width: var(--hud-w);
    height: 100dvh;
    padding: clamp(1.4rem, 2vw, 2.2rem) clamp(1.2rem, 1.6vw, 1.8rem) clamp(1.6rem, 2vw, 2.4rem) clamp(1.5rem, 2vw, 2.2rem);
    display: flex;
    flex-direction: column;
    gap: clamp(1.1rem, 1.6vw, 1.8rem);
    pointer-events: none;
    background: linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.45) 70%, transparent 100%);
}
.th-hud > * { pointer-events: auto; }

.th-logo {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.th-crest {
    width: 3rem;
    height: 3rem;
    clip-path: polygon(25% 2%, 75% 2%, 98% 50%, 75% 98%, 25% 98%, 2% 50%);
    background: linear-gradient(145deg, #2a3a2a, #0a100a);
    border: 1px solid var(--neon);
    box-shadow: 0 0 18px rgba(57,255,20,.4), inset 0 0 12px rgba(57,255,20,.15);
    display: grid;
    place-items: center;
    font-family: var(--display);
    font-weight: 800;
    font-size: .85rem;
    color: var(--neon);
    text-shadow: var(--glow);
}
.th-logo strong {
    display: block;
    font-family: var(--display);
    font-size: .78rem;
    letter-spacing: .14em;
    color: #dfe6df;
}
.th-logo em {
    font-style: normal;
    font-size: .58rem;
    letter-spacing: .28em;
    color: #6a746a;
}

.th-welcome {
    margin: .4rem 0 0;
    line-height: 1;
}
.th-welcome span {
    display: block;
    font-family: var(--metal);
    font-size: clamp(1.35rem, 2.2vw, 2.35rem);
    font-style: italic;
    letter-spacing: .02em;
    background: linear-gradient(180deg, #f2f2f2, #8a8a8a 55%, #cfcfcf);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 0 rgba(0,0,0,.6));
}
.th-welcome b {
    display: block;
    margin-top: .15rem;
    font-family: var(--metal);
    font-size: clamp(1.7rem, 2.8vw, 3.1rem);
    font-style: italic;
    letter-spacing: .02em;
    color: var(--neon);
    text-shadow: var(--glow);
}

.th-wallet {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    max-width: min(18rem, 100%);
    margin-top: auto;
    padding: clamp(.85rem, 1vw, 1.05rem) clamp(1rem, 1.15vw, 1.2rem);
    border: 2px solid var(--neon);
    border-radius: .2rem;
    background:
        linear-gradient(180deg, rgba(24,58,24,.72), rgba(4,12,4,.94)),
        repeating-linear-gradient(135deg, rgba(57,255,20,.06) 0 2px, transparent 2px 6px);
    color: var(--neon);
    font-family: var(--display);
    font-size: clamp(.68rem, .8vw, .82rem);
    font-weight: 800;
    letter-spacing: .18em;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    box-sizing: border-box;
    box-shadow:
        0 0 0 1px rgba(57,255,20,.28),
        0 0 22px rgba(57,255,20,.28),
        inset 0 0 18px rgba(57,255,20,.08);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
    animation: th-wallet-breathe 2.8s ease-in-out infinite;
}
.th-wallet__ico {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    filter: drop-shadow(0 0 6px rgba(57,255,20,.85));
    animation: th-wallet-ico 2.4s ease-in-out infinite;
}
.th-wallet__label {
    position: relative;
    z-index: 2;
    text-shadow: 0 0 10px rgba(57,255,20,.55);
}
.th-wallet__glow {
    position: absolute;
    inset: -40%;
    z-index: 0;
    background: radial-gradient(circle at 50% 50%, rgba(57,255,20,.22), transparent 58%);
    opacity: .7;
    pointer-events: none;
    animation: th-wallet-glow 3.2s ease-in-out infinite;
}
.th-wallet__sheen {
    position: absolute;
    top: 0;
    left: -65%;
    z-index: 1;
    width: 42%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255,255,255,.08) 35%,
        rgba(108,255,69,.35) 50%,
        rgba(255,255,255,.08) 65%,
        transparent 100%
    );
    transform: skewX(-18deg);
    pointer-events: none;
    animation: th-wallet-sheen 3.6s ease-in-out infinite;
}
.th-wallet__pulse {
    position: absolute;
    inset: -2px;
    z-index: 0;
    border: 1px solid rgba(57,255,20,.45);
    border-radius: inherit;
    opacity: 0;
    pointer-events: none;
    animation: th-wallet-ring 2.8s ease-out infinite;
}
.th-wallet:hover {
    transform: translateY(-2px) scale(1.015);
    border-color: var(--neon-2);
    box-shadow:
        0 0 0 1px var(--neon),
        0 0 36px rgba(57,255,20,.55),
        0 0 64px rgba(57,255,20,.22),
        inset 0 0 24px rgba(57,255,20,.14);
    background:
        linear-gradient(180deg, rgba(34,78,34,.82), rgba(6,16,6,.96)),
        repeating-linear-gradient(135deg, rgba(57,255,20,.08) 0 2px, transparent 2px 6px);
    animation: none;
}
.th-wallet:hover .th-wallet__sheen {
    animation-duration: 1.6s;
}
.th-wallet:hover .th-wallet__ico {
    animation: none;
    filter: drop-shadow(0 0 10px rgba(108,255,69,1));
}
.th-wallet:active {
    transform: translateY(0) scale(.985);
}
.th-wallet:focus-visible {
    outline: 2px solid var(--neon-2);
    outline-offset: 3px;
}
.th-wallet.is-busy {
    cursor: wait;
    opacity: .92;
}
.th-wallet.is-connected {
    border-color: var(--neon-2);
    box-shadow:
        0 0 0 1px rgba(108,255,69,.5),
        0 0 28px rgba(57,255,20,.42),
        inset 0 0 22px rgba(57,255,20,.14);
    animation: none;
}
.th-wallet.is-connected .th-wallet__label {
    letter-spacing: .12em;
}
.th-wallet-status {
    margin-top: -.35rem;
    max-width: min(18rem, 100%);
    font-family: var(--font);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .04em;
    line-height: 1.35;
    color: #b7c4b7;
}
.th-wallet-status.is-ok { color: var(--neon-2); text-shadow: 0 0 8px rgba(57,255,20,.35); }
.th-wallet-status.is-error { color: #ff8f8f; }

@keyframes th-wallet-breathe {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(57,255,20,.28),
            0 0 18px rgba(57,255,20,.24),
            inset 0 0 16px rgba(57,255,20,.07);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(57,255,20,.45),
            0 0 32px rgba(57,255,20,.42),
            inset 0 0 22px rgba(57,255,20,.12);
    }
}
@keyframes th-wallet-sheen {
    0%, 28% { left: -65%; opacity: 0; }
    35% { opacity: 1; }
    55% { left: 120%; opacity: .85; }
    62%, 100% { left: 120%; opacity: 0; }
}
@keyframes th-wallet-glow {
    0%, 100% { opacity: .45; transform: scale(.92); }
    50% { opacity: .9; transform: scale(1.08); }
}
@keyframes th-wallet-ico {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-1px); }
}
@keyframes th-wallet-ring {
    0% { opacity: .55; transform: scale(1); }
    70% { opacity: 0; transform: scale(1.08); }
    100% { opacity: 0; transform: scale(1.1); }
}

/* —— Bottom-center buy dock (token address + BUY $TGREEN) —— */
.th-buy-dock {
    position: fixed;
    left: 50%;
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 30;
    width: min(34rem, calc(100vw - 2rem));
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .55rem;
    pointer-events: none;
}
.th-buy-dock > * { pointer-events: auto; }
.th-buy-dock .th-footer {
    position: static;
    z-index: auto;
    padding: 0;
    justify-content: center;
}
.th-buy-dock .th-socials {
    gap: .55rem;
}
.th-buy-dock .th-socials__icon {
    width: 2.25rem;
    height: 2.25rem;
    background: rgba(0,0,0,.55);
}

.th-token-bar {
    display: flex;
    align-items: stretch;
    gap: 0;
    min-height: 2.35rem;
    border: 1px solid rgba(57,255,20,.32);
    background:
        linear-gradient(180deg, rgba(10,18,10,.92), rgba(2,6,2,.96)),
        repeating-linear-gradient(135deg, rgba(57,255,20,.04) 0 2px, transparent 2px 5px);
    box-shadow:
        0 0 0 1px rgba(57,255,20,.12),
        0 8px 28px rgba(0,0,0,.45),
        inset 0 0 16px rgba(57,255,20,.05);
    overflow: hidden;
}
.th-token-bar__meta {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .12rem;
    padding: .4rem .75rem;
}
.th-token-bar__label {
    font-family: var(--display);
    font-size: .48rem;
    font-weight: 700;
    letter-spacing: .22em;
    color: rgba(180, 210, 180, .72);
}
.th-token-bar__value {
    display: block;
    margin: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: clamp(.62rem, 1.5vw, .72rem);
    font-weight: 600;
    letter-spacing: .04em;
    color: #dce8dc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.th-token-bar__value.is-placeholder {
    font-family: var(--font);
    font-size: clamp(.68rem, 1.6vw, .78rem);
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(180, 210, 180, .78);
}
.th-token-bar__copy {
    flex: 0 0 auto;
    margin: 0;
    padding: 0 .9rem;
    border: 0;
    border-left: 1px solid rgba(57,255,20,.28);
    background: rgba(57,255,20,.08);
    color: var(--neon);
    font-family: var(--display);
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .14em;
    cursor: pointer;
    transition: background .2s, color .2s, opacity .2s;
}
.th-token-bar__copy:hover:not(:disabled) {
    background: rgba(57,255,20,.18);
    color: var(--neon-2);
}
.th-token-bar__copy:focus-visible {
    outline: 2px solid var(--neon-2);
    outline-offset: -2px;
}
.th-token-bar__copy:disabled {
    cursor: not-allowed;
    opacity: .38;
    color: rgba(180, 210, 180, .55);
}
.th-token-bar__copy.is-copied {
    color: #fff;
    background: rgba(57,255,20,.28);
}

.th-buy {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    min-height: 2.85rem;
    padding: .85rem 1.1rem;
    border: 2px solid var(--neon);
    background:
        linear-gradient(180deg, rgba(24,58,24,.78), rgba(4,12,4,.96)),
        repeating-linear-gradient(135deg, rgba(57,255,20,.07) 0 2px, transparent 2px 6px);
    color: #fff;
    font-family: var(--display);
    font-size: clamp(.78rem, 1.4vw, .92rem);
    font-weight: 800;
    letter-spacing: .28em;
    text-indent: .28em;
    text-align: center;
    cursor: pointer;
    box-shadow:
        0 0 0 1px rgba(57,255,20,.32),
        0 0 28px rgba(57,255,20,.32),
        inset 0 0 20px rgba(57,255,20,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.th-buy__glow {
    position: absolute;
    inset: -45%;
    z-index: 0;
    background: radial-gradient(circle at 50% 50%, rgba(57,255,20,.22), transparent 58%);
    opacity: .65;
    pointer-events: none;
    animation: th-wallet-glow 3.2s ease-in-out infinite;
}
.th-buy__label {
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 0 rgba(0,0,0,.45), 0 0 12px rgba(255,255,255,.18);
}
.th-buy:hover {
    transform: translateY(-2px);
    border-color: var(--neon-2);
    box-shadow:
        0 0 0 1px var(--neon),
        0 0 40px rgba(57,255,20,.5),
        inset 0 0 22px rgba(57,255,20,.12);
}
.th-buy:active { transform: translateY(0) scale(.985); }
.th-buy:focus-visible {
    outline: 2px solid var(--neon-2);
    outline-offset: 3px;
}
.th-buy.is-busy {
    cursor: wait;
    opacity: .92;
}
.th-buy.is-connected {
    border-color: var(--neon-2);
    box-shadow:
        0 0 0 1px rgba(108,255,69,.5),
        0 0 28px rgba(57,255,20,.42),
        inset 0 0 22px rgba(57,255,20,.14);
}
.th-buy.is-connected .th-buy__label {
    letter-spacing: .14em;
    text-indent: .14em;
}

.th-buy-status {
    margin: 0;
    text-align: center;
    font-family: var(--font);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .04em;
    line-height: 1.35;
    color: #b7c4b7;
}
.th-buy-status.is-ok { color: var(--neon-2); text-shadow: 0 0 8px rgba(57,255,20,.35); }
.th-buy-status.is-error { color: #ff8f8f; }

.th-tgreen {
    position: fixed;
    right: 1.2rem;
    bottom: 1rem;
    z-index: 25;
    font-family: var(--metal);
    font-size: clamp(2.2rem, 5vw, 4rem);
    color: var(--neon);
    opacity: .55;
    transform: rotate(-6deg);
    text-shadow: 0 0 20px rgba(57,255,20,.7), 0 0 40px rgba(57,255,20,.35);
    pointer-events: none;
    mix-blend-mode: screen;
    letter-spacing: .04em;
}

.th-stamp-corner {
    position: fixed;
    top: 3.4rem;
    right: 1.6rem;
    z-index: 25;
    padding: .2rem .45rem;
    border: 2px solid #ff2a2a;
    color: #ff2a2a;
    font-family: var(--display);
    font-size: .55rem;
    letter-spacing: .12em;
    transform: rotate(12deg);
    opacity: .55;
    pointer-events: none;
}

/* —— Scroll route —— */
.th-route--tunnel { height: 0; display: none; }
.th-route--globe { height: 200vh; }
.th-route--arrive { height: 0; display: none; }
.th-route--world { height: 900vh; }
.th-route--hold { display: none; height: 0; }

.th-world-sticky {
    position: sticky;
    top: 0;
    height: 100dvh;
    width: 100%;
    max-width: 100%;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 1rem max(5.5rem, calc(env(safe-area-inset-bottom) + 4.5rem));
}
.th-world-caption {
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .45s ease, transform .45s ease;
    z-index: 2;
}
html.th-world-active .th-world-caption {
    opacity: 1;
    transform: none;
}
html.th-lobby-live .th-world-caption { opacity: 0.35; }
.th-world-caption span {
    display: block;
    font-family: var(--display);
    letter-spacing: .42em;
    font-size: .72rem;
    color: rgba(57, 255, 20, .85);
}
.th-world-caption strong {
    display: block;
    margin-top: .35rem;
    font-family: var(--sans);
    font-weight: 600;
    letter-spacing: .18em;
    font-size: .62rem;
    color: rgba(230, 255, 230, .78);
}
/* Keyboard / SR fallback — visually hidden until focused (3D signs are primary UI) */
.th-turf-a11y {
    position: absolute;
    left: 50%;
    bottom: max(1rem, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    width: max-content;
    max-width: min(94vw, 48rem);
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .5rem;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    z-index: 3;
}
.th-turf-a11y.is-live {
    pointer-events: auto;
}
.th-turf-a11y:focus-within {
    opacity: 1;
    padding: .5rem .65rem;
    background: rgba(0, 8, 2, .72);
    border: 1px solid rgba(57, 255, 20, .28);
}
.th-turf-a11y a,
.th-turf-a11y__denied {
    font-family: var(--sans);
    font-size: .58rem;
    letter-spacing: .12em;
    text-decoration: none;
    color: rgba(220, 255, 220, .88);
    padding: .28rem .45rem;
    border: 1px solid rgba(57, 255, 20, .28);
}
.th-turf-a11y a:focus-visible,
.th-turf-a11y a.is-selected {
    color: #39ff14;
    border-color: #39ff14;
    outline: 2px solid #39ff14;
}
.th-turf-a11y__denied {
    color: rgba(255, 120, 120, .75);
    border-color: rgba(255, 80, 80, .35);
    cursor: not-allowed;
}
@media (hover: none) and (pointer: coarse) {
    .th-turf-a11y.is-live {
        opacity: 0.92;
        padding: .5rem .65rem;
        background: rgba(0, 8, 2, .72);
        border: 1px solid rgba(57, 255, 20, .28);
    }
}
html.th-world-active #th-scene,
html.th-lobby-live #th-scene {
    opacity: 1;
}
html.th-turf-hover #th-scene { cursor: pointer; }
.th-globe-caption { display: none !important; }

/* Cinematic journey — dim chrome so the WebGL environment reads first */
html.th-world-active .th-hud,
html.th-world-active .th-buy-dock,
html.th-world-active .th-stamp-corner,
html.th-world-active .th-tgreen,
html.th-world-active .th-topnav {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity .55s ease;
}
/* Keep fog/vignette during journey — immersion while entering the world */
html.th-world-active .th-fog {
    opacity: 0.55 !important;
    pointer-events: none !important;
}
html.th-world-active .th-vignette {
    opacity: 0.85 !important;
    pointer-events: none !important;
}
html.th-lobby-live .th-topnav {
    opacity: 0.5;
    pointer-events: auto;
}
html.th-lobby-live .th-turf-a11y.is-live {
    opacity: 1;
}

/* Legacy hex turf map — removed from markup; keep inert if cached HTML appears */
.th-map-plane,
.th-hub,
.th-node,
.th-gate,
.th-lines { display: none !important; }

.th-globe-sticky {
    position: sticky;
    top: 0;
    height: 100dvh;
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding:
        0
        1.25rem
        max(6.75rem, calc(env(safe-area-inset-bottom) + 5.5rem));
    pointer-events: none;
}
.th-globe-interact {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    cursor: grab;
    touch-action: pan-y;
}
html.th-globe-active .th-globe-interact {
    pointer-events: auto;
}
html.th-globe-dragging,
html.th-globe-dragging * {
    cursor: grabbing !important;
}
html.th-globe-diving .th-globe-interact {
    pointer-events: none;
    cursor: default;
}
.th-globe-caption {
    display: none; /* TRENCHHOOD / DRAG TO ORBIT caption removed */
    position: relative;
    z-index: 2;
    margin: 0;
    text-align: center;
    pointer-events: none;
    opacity: calc(1 - var(--globe) * 1.35);
    transform: translateY(calc(var(--globe) * -12px));
    transition: opacity .2s linear;
}
.th-globe-caption span {
    display: block;
    font-family: var(--metal);
    font-size: clamp(.7rem, 1.1vw, .85rem);
    font-style: italic;
    letter-spacing: .42em;
    color: var(--neon);
    text-shadow: var(--glow);
    margin-bottom: .45rem;
}
.th-globe-caption strong {
    display: block;
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(.55rem, .85vw, .68rem);
    letter-spacing: .28em;
    color: rgba(200, 220, 200, .72);
}

body.th-complete .th-scroll-hint { opacity: 0 !important; pointer-events: none; }
body.th-complete .th-progress i { width: 100% !important; }

/* Soften chrome while the globe owns the first viewport */
html.th-globe-active .th-hud {
    opacity: .95;
}
html.th-globe-active .th-buy-dock,
html.th-globe-active .th-tgreen,
html.th-globe-active .th-stamp-corner,
html.th-globe-active .th-footer {
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s ease;
}
html.th-globe-diving .th-hud,
html.th-globe-diving .th-topnav,
html.th-globe-diving .th-buy-dock,
html.th-globe-diving .th-tgreen,
html.th-globe-diving .th-stamp-corner,
html.th-globe-diving .th-wallet {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity .35s ease;
}
html.th-globe-diving .th-globe-caption {
    opacity: 0;
}

.th-map-sticky {
    position: sticky;
    top: 0;
    height: 100dvh;
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: var(--hud-w);
    perspective: 1600px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
}
html.th-map-revealing .th-map-sticky,
html.th-map-live .th-map-sticky {
    opacity: 1;
}
html.th-map-live .th-map-sticky {
    pointer-events: auto;
}

.th-map-plane {
    position: relative;
    width: var(--map-w);
    height: var(--map-h);
    max-width: calc(100% - 1rem);
    transform-style: preserve-3d;
    transform: rotateX(6deg);
    opacity: 1;
    will-change: transform;
}

.th-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.spk {
    stroke-dasharray: 900;
    stroke-dashoffset: 900;
}

/* Hub */
.th-hub {
    position: absolute;
    left: 50%;
    top: 47.5%;
    width: var(--hub-size);
    height: var(--hub-size);
    z-index: 5;
    opacity: 0;
    will-change: transform, opacity, filter;
}
.th-hub-rim {
    position: absolute;
    inset: 0;
    clip-path: polygon(25% 2%, 75% 2%, 98% 50%, 75% 98%, 25% 98%, 2% 50%);
    background: linear-gradient(160deg, #e8f0e8, #7a867a 30%, #d0d8d0 55%, #3e463e);
    box-shadow: 0 0 0 1px rgba(57,255,20,.75), 0 0 42px rgba(57,255,20,.55), 0 0 90px rgba(57,255,20,.28);
}
.th-hub-rim::after {
    content: "";
    position: absolute;
    inset: 4px;
    clip-path: inherit;
    background: linear-gradient(145deg, #1a2e1a, #060a06 55%, #142014);
    box-shadow: inset 0 0 24px rgba(57,255,20,.35);
}
.th-hub-core {
    position: absolute;
    inset: 10px;
    clip-path: polygon(25% 2%, 75% 2%, 98% 50%, 75% 98%, 25% 98%, 2% 50%);
    background: radial-gradient(circle at 48% 38%, #163016 0%, #071007 58%, #020402 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
    border: 1px solid rgba(57,255,20,.4);
    box-shadow: inset 0 0 28px rgba(57,255,20,.22);
}
.th-hub-flags { margin-bottom: .1rem; filter: drop-shadow(0 0 8px rgba(57,255,20,.7)); }
.th-hub-core p {
    margin: 0;
    font-size: .58rem;
    letter-spacing: .28em;
    font-weight: 700;
    color: #9aaa9a;
}
.th-hub-core strong {
    font-family: var(--display);
    font-size: clamp(1.05rem, 1.9vw, 1.35rem);
    font-weight: 800;
    letter-spacing: .1em;
    color: var(--neon);
    text-shadow: var(--glow);
}
.th-hub-stars {
    margin-top: .28rem;
    color: var(--neon);
    font-size: .55rem;
    letter-spacing: .2em;
}

/* Nodes */
.th-node {
    position: absolute;
    left: var(--x);
    top: var(--y);
    z-index: 6;
    display: flex;
    align-items: center;
    gap: .6rem;
    width: var(--node-w);
    min-height: 3.35rem;
    padding: .65rem .85rem .65rem .75rem;
    border: 0;
    cursor: pointer;
    color: inherit;
    font: inherit;
    text-align: left;
    text-decoration: none;
    opacity: 0;
    background:
        linear-gradient(#0a0e0a, #0a0e0a) padding-box,
        linear-gradient(145deg, #c5cdc5, #4a524a 35%, #a8b0a8 55%, #2a322a) border-box;
    border: 3px solid transparent;
    border-radius: .3rem;
    box-shadow: 0 0 0 1px rgba(0,0,0,.8), 0 10px 24px rgba(0,0,0,.55);
    will-change: transform, opacity, filter;
}
a.th-node:focus-visible {
    outline: 2px solid var(--neon-2);
    outline-offset: 3px;
}
.th-node::before {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(140,150,140,.22);
    border-radius: .12rem;
    pointer-events: none;
}
.th-ico {
    width: 1.4rem;
    height: 1.4rem;
    flex: 0 0 auto;
    color: #c8d0c8;
    display: grid;
    place-items: center;
}
.th-ico svg { width: 1.15rem; height: 1.15rem; }
.th-copy { display: flex; flex-direction: column; gap: .02rem; min-width: 0; flex: 1; }
.th-copy strong {
    font-family: var(--display);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: #f0f4f0;
    white-space: nowrap;
}
.th-copy em {
    font-style: normal;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .18em;
    color: #6d766d;
}
.th-padlock { margin-left: auto; opacity: .7; display: grid; place-items: center; color: #8a948a; }

.th-node--hot,
.th-node--open {
    background:
        linear-gradient(180deg, rgba(12,28,12,.94), rgba(4,10,4,.97)) padding-box,
        linear-gradient(145deg, #b8ff90, #39ff14 30%, #1a8a0a 60%, #39ff14) border-box;
    box-shadow:
        0 0 0 1px rgba(57,255,20,.95),
        0 0 20px rgba(57,255,20,.55),
        0 0 42px rgba(57,255,20,.25),
        inset 0 0 18px rgba(57,255,20,.12),
        0 10px 24px rgba(0,0,0,.55);
}
.th-node--hot .th-copy em,
.th-node--open .th-copy em { color: var(--neon); text-shadow: 0 0 8px rgba(57,255,20,.7); }
.th-node--hot .th-ico,
.th-node--open .th-ico { color: var(--neon); filter: drop-shadow(0 0 6px rgba(57,255,20,.8)); }
.th-node--open {
    box-shadow:
        0 0 0 1px #39ff14,
        0 0 24px rgba(57,255,20,.7),
        0 0 50px rgba(57,255,20,.3),
        inset 0 0 22px rgba(57,255,20,.15),
        0 10px 24px rgba(0,0,0,.55);
}
.th-node--locked { cursor: not-allowed; }
.th-node--locked .th-copy strong { color: #a8b0a8; }
.th-node--locked .th-copy em { color: #5a625a; }

.th-node--hex {
    width: clamp(12rem, 17vw, 16rem);
    min-height: 3.6rem;
    justify-content: center;
    text-align: center;
    border-radius: 0;
    clip-path: polygon(10% 0, 90% 0, 100% 50%, 90% 100%, 10% 100%, 0 50%);
    padding-inline: 1rem;
}
.th-node--hex::before {
    inset: 5px;
    border-radius: 0;
    clip-path: polygon(10% 0, 90% 0, 100% 50%, 90% 100%, 10% 100%, 0 50%);
}
.th-node--secret {
    background:
        linear-gradient(180deg, rgba(10,20,10,.95), rgba(3,8,3,.98)) padding-box,
        linear-gradient(145deg, #9aaa9a, #39ff14 40%, #4a5a4a) border-box;
    box-shadow: 0 0 0 1px rgba(57,255,20,.55), 0 0 20px rgba(57,255,20,.35), 0 10px 24px rgba(0,0,0,.55);
}
.th-stamp {
    position: absolute;
    top: -.5rem;
    right: .1rem;
    padding: .08rem .32rem;
    border: 2px solid #ff2222;
    color: #ff2222;
    font-family: var(--display);
    font-size: .4rem;
    font-weight: 800;
    letter-spacing: .08em;
    transform: rotate(12deg);
    background: rgba(40,0,0,.75);
    box-shadow: 0 0 10px rgba(255,34,34,.45);
    z-index: 2;
    white-space: nowrap;
}
.th-node:not(:disabled):hover {
    filter: brightness(1.12);
    box-shadow: 0 0 0 2px #39ff14, 0 0 36px rgba(57,255,20,.7) !important;
}
.th-node.is-selected {
    box-shadow: 0 0 0 2px #39ff14, 0 0 34px rgba(57,255,20,.8) !important;
}

/* Gate */
.th-gate {
    position: absolute;
    left: 50%;
    bottom: 1%;
    width: min(24rem, 72%);
    z-index: 4;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity, filter;
}
.th-gate-pillars {
    display: grid;
    grid-template-columns: 2.3rem 1fr 2.3rem;
    align-items: end;
    gap: .12rem;
}
.th-banner { display: flex; flex-direction: column; align-items: center; }
.th-banner-pole {
    width: .26rem;
    height: 1rem;
    background: linear-gradient(180deg, #8a948a, #2a322a);
}
.th-pillar {
    width: 100%;
    height: 4.8rem;
    background: linear-gradient(180deg, #3a443a 0%, #121812 35%, #060806);
    border: 1px solid rgba(57,255,20,.4);
    box-shadow: 0 0 14px rgba(57,255,20,.3), inset 0 0 12px rgba(57,255,20,.12);
    display: grid;
    place-items: end center;
    padding-bottom: .5rem;
    clip-path: polygon(8% 0, 92% 0, 100% 8%, 100% 100%, 0 100%, 0 8%);
    position: relative;
}
.th-pillar::before {
    content: "";
    position: absolute;
    top: -.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: .65rem;
    height: .85rem;
    background: radial-gradient(ellipse at 50% 80%, #39ff14, transparent 70%);
    box-shadow: 0 0 12px #39ff14;
    border-radius: 50% 50% 40% 40%;
    animation: th-flicker 1.3s ease-in-out infinite;
}
.th-pillar span {
    font-family: var(--display);
    font-size: .8rem;
    font-weight: 800;
    color: var(--neon);
    text-shadow: var(--glow);
}
.th-arch {
    position: relative;
    height: 4rem;
    border: 2.5px solid transparent;
    border-bottom: none;
    border-radius: 999px 999px 0 0;
    background:
        linear-gradient(#050805, #050805) padding-box,
        linear-gradient(90deg, #3a4a3a, #39ff14 20%, #9dff70 50%, #39ff14 80%, #3a4a3a) border-box;
    box-shadow: 0 0 24px rgba(57,255,20,.4), inset 0 0 30px rgba(57,255,20,.18);
    display: grid;
    place-items: center;
    overflow: hidden;
}
.th-flame {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 65%;
    height: .45rem;
    background: radial-gradient(ellipse, #39ff14, transparent 70%);
    filter: blur(3px);
    animation: th-flicker 1.1s ease-in-out infinite;
}
.th-chevrons {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    align-items: center;
    margin-top: .45rem;
}
.th-chevrons i {
    display: block;
    width: 0;
    height: 0;
    border-left: .55rem solid transparent;
    border-right: .55rem solid transparent;
    border-bottom: .42rem solid var(--neon);
    filter: drop-shadow(0 0 8px rgba(57,255,20,.9));
    animation: th-chev 1.15s ease-in-out infinite;
}
.th-chevrons i:nth-child(2) { animation-delay: .12s; opacity: .75; }
.th-chevrons i:nth-child(3) { animation-delay: .24s; opacity: .5; }

@keyframes th-flicker {
    0%,100% { opacity: .65; }
    40% { opacity: 1; }
}
@keyframes th-chev {
    0%,100% { transform: translateY(3px); opacity: .4; }
    50% { transform: translateY(-2px); opacity: 1; }
}

/* Map interactive when assembled */
.th-map-plane.is-live { pointer-events: auto; }
.th-map-plane:not(.is-live) .th-node { pointer-events: none; }

/* —— Laptop and up (≥1280) —— */
@media (min-width: 1280px) {
    :root {
        --hud-w: clamp(23rem, 20vw, 26rem);
        --map-w: min(980px, 72vw);
        --map-h: min(900px, 92dvh);
        --node-w: clamp(12rem, 13vw, 14.5rem);
        --hub-size: clamp(10rem, 11vw, 13rem);
    }
    .th-crest { width: 3.2rem; height: 3.2rem; font-size: .9rem; }
    .th-logo strong { font-size: .84rem; }
    .th-topnav__link { font-size: .62rem; padding: .45rem .6rem; }
    .th-copy strong { font-size: .7rem; }
    .th-copy em { font-size: .62rem; }
    .th-hub-core strong { font-size: clamp(1.1rem, 1.5vw, 1.45rem); }
    .th-tgreen { font-size: clamp(2.6rem, 4.2vw, 4.4rem); }
    .th-stamp-corner { top: 3.6rem; right: 2rem; font-size: .6rem; }
    .th-gate { width: min(26rem, 70%); }
}

/* —— Desktop (≥1440) —— */
@media (min-width: 1440px) {
    :root {
        --hud-w: clamp(24rem, 19vw, 28rem);
        --map-w: min(1080px, 68vw);
        --map-h: min(980px, 93dvh);
        --node-w: clamp(12.5rem, 12vw, 15.2rem);
        --hub-size: clamp(11rem, 10.5vw, 14rem);
    }
    .th-hud {
        padding: 2rem 1.6rem 2.2rem 2rem;
        gap: 1.6rem;
    }
    .th-topnav__link { font-size: .66rem; letter-spacing: .15em; }
    .th-node {
        min-height: 3.55rem;
        padding: .72rem .95rem .72rem .8rem;
        gap: .7rem;
    }
    .th-ico { width: 1.5rem; height: 1.5rem; }
    .th-ico svg { width: 1.25rem; height: 1.25rem; }
    .th-copy strong { font-size: .74rem; }
    .th-copy em { font-size: .64rem; letter-spacing: .16em; }
    .th-node--hex {
        width: clamp(13rem, 14vw, 16.5rem);
        min-height: 3.85rem;
    }
    .th-hub-core p { font-size: .62rem; }
    .th-hub-stars { font-size: .6rem; }
    .th-pillar { height: 5.2rem; }
    .th-arch { height: 4.35rem; }
    .th-scroll-hint { bottom: 1.6rem; font-size: .62rem; }
}

/* —— Large desktop (≥1680) —— */
@media (min-width: 1680px) {
    :root {
        --hud-w: clamp(26rem, 18vw, 30rem);
        --map-w: min(1180px, 64vw);
        --map-h: min(1040px, 94dvh);
        --node-w: clamp(13.2rem, 11vw, 16rem);
        --hub-size: clamp(12rem, 9.5vw, 15rem);
    }
    .th-welcome span { font-size: clamp(1.7rem, 1.8vw, 2.5rem); }
    .th-welcome b { font-size: clamp(2.2rem, 2.4vw, 3.35rem); }
    .th-wallet {
        max-width: 19rem;
        font-size: .86rem;
        padding: 1rem 1.2rem;
    }
    .th-copy strong { font-size: .78rem; }
    .th-copy em { font-size: .66rem; }
    .th-node--hex { width: clamp(14rem, 12vw, 17.5rem); }
    .th-hub-core strong { font-size: 1.45rem; }
    .th-hub-flags svg { width: 52px; height: 32px; }
    .th-tgreen {
        right: 1.8rem;
        bottom: 1.3rem;
        font-size: clamp(3.2rem, 3.8vw, 5rem);
    }
    .th-gate { width: min(28rem, 62%); }
}

/* —— Full HD / ultrawide (≥1920) —— */
@media (min-width: 1920px) {
    :root {
        --hud-w: clamp(28rem, 17vw, 32rem);
        --map-w: min(1280px, 60vw);
        --map-h: min(1120px, 94dvh);
        --node-w: clamp(14rem, 10vw, 17rem);
        --hub-size: clamp(13rem, 8.5vw, 16rem);
    }
    .th-hud {
        padding: 2.4rem 1.9rem 2.6rem 2.4rem;
        gap: 1.85rem;
    }
    .th-crest { width: 3.6rem; height: 3.6rem; font-size: 1rem; }
    .th-logo strong { font-size: .92rem; letter-spacing: .16em; }
    .th-logo em { font-size: .64rem; }
    .th-topnav__link { font-size: .7rem; }
    .th-node {
        min-height: 3.8rem;
        padding: .8rem 1.05rem .8rem .9rem;
        border-width: 3px;
    }
    .th-copy strong { font-size: .84rem; }
    .th-copy em { font-size: .7rem; letter-spacing: .18em; }
    .th-node--hex {
        width: clamp(15rem, 11vw, 18.5rem);
        min-height: 4.1rem;
    }
    .th-stamp { font-size: .46rem; padding: .1rem .4rem; }
    .th-hub-core p { font-size: .68rem; letter-spacing: .3em; }
    .th-hub-core strong { font-size: 1.55rem; }
    .th-pillar { height: 5.6rem; }
    .th-arch { height: 4.6rem; }
    .th-gate { width: min(30rem, 58%); }
    .th-scroll-hint {
        bottom: 1.8rem;
        font-size: .66rem;
        letter-spacing: .4em;
    }
}

/* —— 2K / 4K (≥2560) —— */
@media (min-width: 2560px) {
    :root {
        --hud-w: clamp(32rem, 15vw, 38rem);
        --map-w: min(1480px, 56vw);
        --map-h: min(1280px, 92dvh);
        --node-w: clamp(16rem, 8.5vw, 19rem);
        --hub-size: clamp(15rem, 7.5vw, 18rem);
    }
    .th-hud {
        padding: 2.8rem 2.2rem 3rem 2.8rem;
        gap: 2.1rem;
    }
    .th-crest { width: 4.2rem; height: 4.2rem; font-size: 1.15rem; }
    .th-logo strong { font-size: 1.05rem; }
    .th-logo em { font-size: .72rem; }
    .th-welcome span { font-size: 2.7rem; }
    .th-welcome b { font-size: 3.6rem; }
    .th-topnav__link { font-size: .76rem; padding: .5rem .7rem; }
    .th-wallet {
        max-width: 22rem;
        font-size: .92rem;
        padding: 1.1rem 1.3rem;
    }
    .th-node {
        min-height: 4.2rem;
        padding: .95rem 1.2rem;
        gap: .85rem;
    }
    .th-ico { width: 1.7rem; height: 1.7rem; }
    .th-ico svg { width: 1.45rem; height: 1.45rem; }
    .th-copy strong { font-size: .95rem; }
    .th-copy em { font-size: .78rem; }
    .th-node--hex {
        width: clamp(17rem, 9vw, 21rem);
        min-height: 4.5rem;
    }
    .th-hub-core strong { font-size: 1.75rem; }
    .th-hub-flags svg { width: 60px; height: 38px; }
    .th-tgreen { font-size: 5.5rem; right: 2.4rem; bottom: 1.6rem; }
    .th-stamp-corner { top: 3.8rem; right: 2.6rem; font-size: .72rem; }
    .th-gate { width: min(34rem, 52%); }
    .th-pillar { height: 6.2rem; }
    .th-arch { height: 5.1rem; }
}

/* —— Short / laptop landscape height —— */
@media (min-width: 1280px) and (max-height: 800px) {
    :root {
        --map-h: min(720px, 90dvh);
        --hub-size: clamp(8.5rem, 14vh, 11rem);
        --node-w: clamp(10.5rem, 14vw, 13rem);
    }
    .th-hud { gap: 1rem; padding-block: 1.1rem 1.3rem; }
    .th-welcome span { font-size: clamp(1.2rem, 2vw, 1.7rem); }
    .th-welcome b { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
    .th-node { min-height: 2.9rem; padding: .5rem .65rem; }
    .th-node--hex { min-height: 3.1rem; }
}

/* —— Large tablet / small laptop —— */
@media (max-width: 1200px) {
    :root {
        --hud-w: min(20rem, 34vw);
        --map-w: min(820px, 94%);
        --map-h: min(760px, 92dvh);
        --node-w: clamp(10rem, 15vw, 12.5rem);
        --hub-size: clamp(8.5rem, 12vw, 11rem);
    }
    .th-hud {
        padding: 1.25rem 1.1rem 1.4rem 1.35rem;
        gap: 1.1rem;
    }
    .th-copy strong { font-size: .6rem; }
    .th-copy em { font-size: .55rem; letter-spacing: .14em; }
}

/* —— Tablet: compact top HUD + scaled radial map —— */
@media (max-width: 980px) {
    :root {
        --hud-w: 0px;
        --map-w: min(720px, 96vw);
        --map-h: min(680px, calc(100dvh - 9.5rem));
        --node-w: clamp(8.4rem, 24vw, 11rem);
        --hub-size: clamp(7.2rem, 18vw, 9.5rem);
    }
    .th-hud {
        position: fixed;
        inset: 0 0 auto 0;
        width: 100%;
        height: auto;
        max-height: none;
        padding:
            max(.75rem, env(safe-area-inset-top))
            max(1rem, env(safe-area-inset-right))
            .85rem
            max(1rem, env(safe-area-inset-left));
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: .65rem .9rem;
        background: linear-gradient(180deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.78) 72%, transparent 100%);
        z-index: 40;
    }
    .th-logo { gap: .55rem; }
    .th-crest { width: 2.4rem; height: 2.4rem; font-size: .72rem; }
    .th-logo strong { font-size: .68rem; }
    .th-logo em { font-size: .5rem; }
    .th-welcome {
        margin: 0;
        flex: 1 1 10rem;
        min-width: 0;
    }
    .th-welcome span { font-size: clamp(1rem, 3.2vw, 1.35rem); }
    .th-welcome b { font-size: clamp(1.2rem, 4vw, 1.7rem); margin-top: 0; }
    .th-topnav {
        position: fixed;
        top: max(4.85rem, calc(env(safe-area-inset-top) + 4.25rem));
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        margin: 0;
        transform: none;
        z-index: 41;
        justify-content: flex-start;
        gap: .1rem .15rem;
        padding:
            .15rem
            max(.75rem, env(safe-area-inset-right))
            .55rem
            max(.75rem, env(safe-area-inset-left));
        background: linear-gradient(180deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.55) 80%, transparent 100%);
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .th-topnav::-webkit-scrollbar { display: none; }
    .th-topnav__link {
        flex: 0 0 auto;
        font-size: .52rem;
        letter-spacing: .1em;
        min-height: 2.25rem;
        padding: .35rem .45rem;
    }
    .th-wallet {
        margin-top: 0;
        width: auto;
        max-width: none;
        min-height: 2.55rem;
        padding: .65rem .9rem;
        font-size: .62rem;
        letter-spacing: .14em;
        flex: 0 0 auto;
        order: 5;
        margin-left: auto;
    }
    .th-wallet-status {
        width: 100%;
        max-width: none;
        order: 6;
        margin-top: 0;
    }
    .th-buy-dock {
        width: min(28rem, calc(100vw - 1.5rem));
        bottom: max(.75rem, env(safe-area-inset-bottom));
    }
    .th-token-bar__copy {
        padding: 0 .7rem;
        font-size: .52rem;
        letter-spacing: .1em;
    }
    .th-buy {
        min-height: 2.55rem;
        font-size: .72rem;
        letter-spacing: .22em;
        text-indent: .22em;
    }
    .th-tgreen {
        bottom: 9.5rem;
        opacity: .4;
        font-size: clamp(1.6rem, 6vw, 2.4rem);
    }
    .th-map-sticky {
        padding-left: 0;
        padding-right: 0;
        padding-top: clamp(10.5rem, 28vw, 13.5rem);
        padding-bottom: max(.75rem, env(safe-area-inset-bottom));
        align-items: center;
        justify-content: center;
    }
    .th-route--tunnel { display: none; }
    .th-route--globe { height: 260vh; }
    .th-route--arrive { height: 0; display: none; }
    .th-route--world { height: 1000vh; }
    .th-globe-caption strong { letter-spacing: .16em; font-size: .52rem; }
    .th-map-plane {
        width: min(720px, 96vw);
        height: min(680px, calc(100dvh - 9.5rem));
        max-height: calc(100dvh - 8.5rem);
        transform: rotateX(4deg);
    }
    .th-hub {
        width: clamp(7.2rem, 18vw, 9.5rem);
        height: clamp(7.2rem, 18vw, 9.5rem);
    }
    .th-hub-core p { font-size: .48rem; letter-spacing: .2em; }
    .th-hub-core strong { font-size: clamp(.85rem, 2.8vw, 1.1rem); }
    .th-hub-flags svg { width: 34px; height: 22px; }
    .th-node {
        width: clamp(8.4rem, 24vw, 11rem);
        min-height: 2.85rem;
        padding: .48rem .55rem;
        gap: .35rem;
    }
    .th-ico { width: 1.15rem; height: 1.15rem; }
    .th-ico svg { width: 1rem; height: 1rem; }
    .th-copy strong {
        font-size: clamp(.48rem, 1.7vw, .58rem);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .th-copy em {
        font-size: clamp(.42rem, 1.5vw, .52rem);
        letter-spacing: .1em;
    }
    .th-node--hex {
        width: clamp(9rem, 26vw, 12rem);
        min-height: 3rem;
        padding-inline: .7rem;
    }
    .th-stamp { font-size: .34rem; padding: .05rem .24rem; }
    .th-gate { width: min(18rem, 68%); }
    .th-pillar { height: 3.6rem; }
    .th-arch { height: 3.1rem; }
    .th-tgreen {
        right: max(.6rem, env(safe-area-inset-right));
        bottom: max(.6rem, env(safe-area-inset-bottom));
        font-size: clamp(1.4rem, 6vw, 2.2rem);
        opacity: .28;
    }
    .th-stamp-corner {
        top: max(5.8rem, calc(env(safe-area-inset-top) + 5.2rem));
        right: max(.75rem, env(safe-area-inset-right));
        font-size: .48rem;
        opacity: .4;
    }
    .th-scroll-hint {
        bottom: max(1rem, env(safe-area-inset-bottom));
        font-size: .5rem;
        letter-spacing: .28em;
    }
}

/* —— Phone: compact HUD + fitted radial map —— */
@media (max-width: 700px) {
    .th-hud {
        gap: .5rem .65rem;
        padding:
            max(.55rem, env(safe-area-inset-top))
            max(.75rem, env(safe-area-inset-right))
            .65rem
            max(.75rem, env(safe-area-inset-left));
    }
    .th-logo { width: 100%; }
    .th-crest { width: 2.15rem; height: 2.15rem; font-size: .65rem; }
    .th-welcome { flex: 1 1 100%; }
    .th-welcome span { font-size: clamp(.95rem, 4.5vw, 1.15rem); }
    .th-welcome b { font-size: clamp(1.15rem, 5.5vw, 1.45rem); }
    .th-topnav {
        top: max(6.4rem, calc(env(safe-area-inset-top) + 5.8rem));
        padding-bottom: .45rem;
    }
    .th-topnav__link {
        font-size: .48rem;
        letter-spacing: .08em;
        min-height: 2.1rem;
        padding: .3rem .4rem;
    }
    .th-wallet {
        width: 100%;
        order: 4;
        min-height: 2.5rem;
        font-size: .58rem;
        letter-spacing: .12em;
        padding: .6rem .75rem;
        gap: .5rem;
    }
    .th-wallet__ico { width: 15px; height: 15px; }
    .th-buy-dock {
        width: calc(100vw - 1.25rem);
        gap: .45rem;
    }
    .th-token-bar {
        flex-direction: column;
        min-height: 0;
    }
    .th-token-bar__meta { padding: .45rem .65rem .35rem; }
    .th-token-bar__copy {
        width: 100%;
        min-height: 2.15rem;
        border-left: 0;
        border-top: 1px solid rgba(57,255,20,.28);
        letter-spacing: .12em;
    }
    .th-buy {
        min-height: 2.5rem;
        font-size: .68rem;
        letter-spacing: .18em;
        text-indent: .18em;
    }
    .th-tgreen { bottom: 11.5rem; }
    .th-map-sticky {
        padding-top: clamp(13rem, 44vw, 15.5rem);
        padding-bottom: max(.5rem, env(safe-area-inset-bottom));
    }
    .th-route--globe { height: 220vh; }
    .th-route--arrive { height: 0; display: none; }
    .th-route--world { height: 1050vh; }
    .th-map-plane {
        width: min(100vw, 420px);
        height: min(calc(100dvh - 10.5rem), 520px);
        max-height: calc(100dvh - 10rem);
    }
    .th-hub {
        width: clamp(5.6rem, 22vw, 7.2rem);
        height: clamp(5.6rem, 22vw, 7.2rem);
    }
    .th-hub-core { inset: 7px; }
    .th-hub-core p { font-size: .4rem; letter-spacing: .14em; }
    .th-hub-core strong { font-size: .72rem; letter-spacing: .06em; }
    .th-hub-stars { font-size: .42rem; margin-top: .12rem; }
    .th-hub-flags { margin-bottom: 0; }
    .th-hub-flags svg { width: 28px; height: 18px; }
    .th-node {
        width: clamp(6.6rem, 30vw, 8.6rem);
        min-height: 2.45rem;
        padding: .38rem .42rem;
        gap: .28rem;
        border-width: 2px;
    }
    .th-node::before { inset: 3px; }
    .th-ico { width: 1rem; height: 1rem; }
    .th-ico svg { width: .88rem; height: .88rem; }
    .th-copy strong {
        font-size: .42rem;
        letter-spacing: .02em;
    }
    .th-copy em {
        font-size: .38rem;
        letter-spacing: .08em;
    }
    .th-padlock svg { width: 11px; height: 11px; }
    .th-node--hex {
        width: clamp(7.2rem, 34vw, 9.4rem);
        min-height: 2.55rem;
        padding-inline: .5rem;
    }
    .th-stamp {
        top: -.4rem;
        right: -.1rem;
        font-size: .3rem;
        padding: .04rem .18rem;
        border-width: 1.5px;
    }
    .th-gate { width: min(14rem, 72%); bottom: 0; }
    .th-gate-pillars { grid-template-columns: 1.7rem 1fr 1.7rem; }
    .th-pillar { height: 2.8rem; }
    .th-pillar span { font-size: .65rem; }
    .th-arch { height: 2.4rem; }
    .th-tgreen {
        font-size: 1.2rem;
        opacity: .18;
        bottom: max(2.8rem, calc(env(safe-area-inset-bottom) + 2rem));
    }
    .th-stamp-corner {
        top: max(3.1rem, calc(env(safe-area-inset-top) + 2.5rem));
        right: max(.55rem, env(safe-area-inset-right));
        opacity: .3;
        font-size: .42rem;
    }
    .th-scroll-hint {
        font-size: .46rem;
        letter-spacing: .2em;
    }
}

/* —— Small phones: compact nodes; show labels when selected —— */
@media (max-width: 400px) {
    .th-map-sticky { padding-top: 12.5rem; }
    .th-map-plane {
        width: 100vw;
        height: min(calc(100dvh - 11rem), 460px);
    }
    .th-node {
        width: 2.65rem;
        min-height: 2.65rem;
        padding: .35rem;
        justify-content: center;
        border-radius: .35rem;
    }
    .th-node .th-copy,
    .th-node .th-padlock { display: none; }
    .th-node .th-ico { width: 1.15rem; height: 1.15rem; }
    .th-node .th-ico svg { width: 1.05rem; height: 1.05rem; }
    .th-node.is-selected .th-copy,
    .th-node:focus-visible .th-copy {
        display: flex;
        position: absolute;
        left: 50%;
        top: calc(100% + .35rem);
        transform: translateX(-50%);
        width: max-content;
        max-width: 7.5rem;
        padding: .28rem .4rem;
        background: rgba(4, 10, 4, .92);
        border: 1px solid rgba(57,255,20,.55);
        border-radius: .2rem;
        z-index: 8;
        box-shadow: 0 0 14px rgba(57,255,20,.35);
        pointer-events: none;
    }
    .th-node.is-selected .th-copy strong,
    .th-node:focus-visible .th-copy strong { font-size: .48rem; }
    .th-node.is-selected .th-copy em,
    .th-node:focus-visible .th-copy em { font-size: .4rem; }
    .th-node--hex {
        width: clamp(6.4rem, 42vw, 8rem);
        min-height: 2.4rem;
        justify-content: center;
    }
    .th-node--hex .th-copy { display: flex; position: static; transform: none; width: auto; max-width: none; padding: 0; background: none; border: 0; box-shadow: none; }
    .th-node--hex .th-ico { display: none; }
    .th-node--locked::after {
        content: "";
        position: absolute;
        right: .18rem;
        bottom: .18rem;
        width: .4rem;
        height: .4rem;
        border-radius: 50%;
        background: #5a625a;
        box-shadow: 0 0 0 1px rgba(0,0,0,.5);
    }
    .th-hub {
        width: 5.4rem;
        height: 5.4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .th-map-plane, .th-hub, .th-node, .th-gate, .spk {
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
        stroke-dashoffset: 0 !important;
    }
    .th-scroll-hint, #th-wave { display: none; }
}

/* Touch: avoid hover stickiness, keep tap targets usable */
@media (hover: none) and (pointer: coarse) {
    .th-buy:hover { transform: none; }
    .th-wallet:hover { transform: none; animation: th-wallet-breathe 2.8s ease-in-out infinite; }
    .th-node:not(:disabled):hover {
        filter: none;
        box-shadow: inherit !important;
    }
    .th-node:not(:disabled):active {
        filter: brightness(1.12);
        box-shadow: 0 0 0 2px #39ff14, 0 0 28px rgba(57,255,20,.55) !important;
    }
}

/* —— Homepage content sections (client copy + approved artwork) —— */
.th-content {
    position: relative;
    z-index: 12;
    padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1.25rem, 4vw, 3rem);
    background:
        linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(2,8,2,.92) 18%, rgba(2,8,2,.96) 100%);
    border-top: 1px solid rgba(57,255,20,.12);
}
.th-content__inner {
    width: min(48rem, 100%);
    margin: 0 auto;
}
.th-content__inner--wide {
    width: min(68rem, 100%);
}
.th-content__eyebrow {
    margin: 0 0 .7rem;
    font-family: var(--display);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .22em;
    color: var(--neon);
    text-shadow: 0 0 10px rgba(57,255,20,.35);
}
.th-content__title {
    margin: 0 0 1rem;
    font-family: var(--display);
    font-size: clamp(1.25rem, 3.2vw, 2rem);
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1.2;
    color: #eef3ee;
}
.th-content__lead {
    margin: 0 0 1.1rem;
    font-family: var(--metal);
    font-size: clamp(1rem, 2.2vw, 1.35rem);
    font-style: italic;
    letter-spacing: .04em;
    color: var(--neon-2);
    text-shadow: 0 0 14px rgba(57,255,20,.35);
}
.th-content__body {
    margin: 0 0 .95rem;
    font-family: var(--font);
    font-size: clamp(.98rem, 1.5vw, 1.12rem);
    font-weight: 500;
    line-height: 1.55;
    color: #c4d0c4;
}
.th-content__points {
    margin: 0 0 1.2rem;
    padding: 0 0 0 1.1rem;
    color: #c8d4c8;
    font-family: var(--font);
    font-size: clamp(.95rem, 1.4vw, 1.08rem);
    line-height: 1.55;
}
.th-content__points li { margin: .35rem 0; }
.th-content__tag,
.th-content__cta {
    margin: .85rem 0 0;
    font-family: var(--display);
    font-size: clamp(.78rem, 1.3vw, .92rem);
    font-weight: 700;
    letter-spacing: .14em;
    color: var(--neon);
}
.th-content__meta {
    margin: 1.4rem 0 0;
    font-family: var(--display);
    font-size: .72rem;
    letter-spacing: .18em;
    color: #7a8a7a;
}
.th-content__note {
    margin: .9rem 0 0;
    font-family: var(--font);
    font-size: .88rem;
    line-height: 1.45;
    color: #8a988a;
}
.th-content__quote {
    margin: 1.4rem 0;
    padding: 1rem 1.15rem;
    border-left: 2px solid var(--neon);
    background: rgba(57,255,20,.04);
}
.th-content__quote p {
    margin: 0;
    font-family: var(--font);
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    font-style: italic;
    color: #dce6dc;
    line-height: 1.5;
}
.th-content__quote cite {
    display: block;
    margin-top: .55rem;
    font-family: var(--display);
    font-size: .62rem;
    font-style: normal;
    letter-spacing: .14em;
    color: #7f917f;
}
.th-turf-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin: 1.35rem 0 1.2rem;
}
.th-turf-card {
    padding: .85rem .95rem;
    border: 1px solid rgba(57,255,20,.22);
    background: linear-gradient(180deg, rgba(12,24,12,.55), rgba(4,10,4,.75));
    box-shadow: inset 0 0 18px rgba(57,255,20,.04);
}
.th-turf-card strong {
    display: block;
    margin-bottom: .35rem;
    font-family: var(--display);
    font-size: .72rem;
    letter-spacing: .14em;
    color: var(--neon);
}
.th-turf-card span {
    font-family: var(--font);
    font-size: .9rem;
    line-height: 1.4;
    color: #b7c4b7;
}
.th-art {
    margin: 1rem 0 0;
    padding: 0;
}
.th-art img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid rgba(57,255,20,.25);
    box-shadow: 0 0 28px rgba(57,255,20,.12);
    background: #050805;
}
.th-content--chart-only .th-art { margin-top: 0; }
.th-content__title--sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.th-content--chart-only {
    position: relative;
}
.th-footer {
    display: flex;
    justify-content: center;
}
.th-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .7rem;
}
.th-socials__icon {
    display: inline-grid;
    place-items: center;
    width: 2.55rem;
    height: 2.55rem;
    border: 1px solid rgba(57,255,20,.3);
    background: rgba(57,255,20,.06);
    color: #dce6dc;
    text-decoration: none;
    transition: color .2s, border-color .2s, box-shadow .2s, background .2s;
}
.th-socials__icon:hover {
    color: var(--neon);
    border-color: var(--neon);
    background: rgba(57,255,20,.12);
    box-shadow: 0 0 16px rgba(57,255,20,.28);
}
.th-socials__icon:focus-visible {
    outline: 2px solid var(--neon-2);
    outline-offset: 2px;
}
.th-content--media {
    padding-bottom: clamp(10rem, 22vw, 14rem);
}

@media (max-width: 700px) {
    .th-turf-grid { grid-template-columns: 1fr; }
    .th-content {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
}

@media (min-width: 1100px) {
    .th-content {
        padding-left: calc(var(--hud-w) + 1.5rem);
    }
}
