:root {
    color-scheme: dark;

    --bg:        rgb(12, 14, 19);
    --bg-2:      rgb(16, 19, 25);
    --panel:     rgb(22, 26, 34);
    --glass:     rgba(22, 26, 32, 0.72);
    --line:      rgba(255, 255, 255, 0.07);
    --line-2:    rgba(255, 255, 255, 0.12);
    --inset:     rgba(0, 0, 0, 0.28);

    --ink:       rgb(238, 241, 246);
    --ink-mut:   rgb(154, 161, 173);
    --ink-faint: rgb(107, 114, 128);

    --accent:      rgb(255, 194, 75);
    --accent-2:    rgb(255, 138, 61);
    --accent-ink:  rgb(23, 19, 10);
    --accent-soft: rgba(255, 194, 75, 0.12);
    --accent-line: rgba(255, 194, 75, 0.40);

    --seeker: rgb(255, 77, 94);
    --hider:  rgb(77, 157, 255);
    --good:   rgb(71, 209, 138);
    --discord: rgb(88, 101, 242);

    --hover:   rgba(255, 255, 255, 0.06);
    --hover-2: rgba(255, 255, 255, 0.10);
    --scrim:   rgba(6, 8, 11, 0.66);

    --r-sm: 8px;  --r-md: 12px;  --r-lg: 16px;  --r-pill: 999px;
    --dur: 0.16s; --dur-slow: 0.5s;

    --font-display: "Chakra Petch", "Segoe UI", sans-serif;
    --font-ui:      "Manrope", "Segoe UI", system-ui, sans-serif;
    --font-mono:    "Share Tech Mono", ui-monospace, "Cascadia Mono", monospace;

    --maxw: 1200px;
    --gutter: clamp(20px, 5vw, 64px);
}

/* ============================ reset / base ============================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-ui);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.02; letter-spacing: -0.01em; text-wrap: balance; }

/* ============================ shared layout ============================ */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 12vw, 140px); position: relative; }
.divider { height: 1px; background: var(--line); border: 0; width: 100%; max-width: var(--maxw); margin-inline: auto; }

.eyebrow {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent);
    display: inline-flex; align-items: center; gap: 12px;
    margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); display: inline-block; }

.h-sec { font-size: clamp(30px, 5vw, 52px); }
.lead { color: var(--ink-mut); font-size: clamp(16px, 1.4vw, 19px); max-width: 56ch; }

/* ============================ buttons (.sb-btn port) ============================ */
.btn {
    --btn-h: 52px;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: var(--btn-h); padding-inline: 28px;
    font-family: var(--font-ui); font-weight: 700; font-size: 14px;
    letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
    border: 1px solid transparent; border-radius: var(--r-md);
    background: var(--hover); color: var(--ink);
    cursor: pointer; appearance: none; -webkit-appearance: none;
    transition: background var(--dur), border-color var(--dur), transform var(--dur), box-shadow var(--dur), color var(--dur);
}
.btn:hover { background: var(--hover-2); }
.btn:active { transform: scale(0.975); }
.btn svg { width: 18px; height: 18px; }

.btn--primary {
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 140%);
    color: var(--accent-ink);
    box-shadow: 0 8px 30px -12px rgba(255, 194, 75, 0.55);
}
.btn--primary:hover { background: linear-gradient(180deg, rgb(255, 208, 110), var(--accent-2)); box-shadow: 0 10px 34px -10px rgba(255, 194, 75, 0.7); }

.btn--ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { background: var(--hover); border-color: var(--accent-line); }

.btn--discord { background: var(--discord); color: #fff; }
.btn--discord:hover { background: rgb(104, 116, 245); }

.btn--lg { --btn-h: 60px; padding-inline: 36px; font-size: 15px; }
.btn--sm { --btn-h: 40px; padding-inline: 18px; font-size: 12px; }

/* ============================ status pill (.sb-status--good port) ============================ */
.pill {
    display: inline-flex; align-items: center; gap: 9px;
    height: 30px; padding-inline: 14px;
    border: 1px solid rgba(71, 209, 138, 0.35); border-radius: var(--r-pill);
    font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em;
    color: var(--good); text-transform: uppercase; background: rgba(71, 209, 138, 0.06);
}
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 rgba(71, 209, 138, 0.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(71, 209, 138, 0.5); } 70% { box-shadow: 0 0 0 7px rgba(71, 209, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(71, 209, 138, 0); } }
@media (prefers-reduced-motion: reduce) { .pill__dot { animation: none; } }

/* ============================ nav ============================ */
.nav {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px var(--gutter);
    transition: background var(--dur), border-color var(--dur), backdrop-filter var(--dur);
    border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(10, 12, 17, 0.82); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
/* logo — one-tone wordmark + short amber tick, exactly like the in-game hub brand */
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 5px; line-height: 1; }
.brand__word { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: 0.13em; color: var(--ink); }
.brand__tick { width: 38px; height: 3px; background: var(--accent); }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { position: relative; font-family: var(--font-ui); font-weight: 700; font-size: 13px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-mut); padding-bottom: 5px; transition: color var(--dur); }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent); transition: width var(--dur); }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.nav__right { display: flex; align-items: center; gap: 20px; }
@media (max-width: 820px) { .nav__links { display: none; } }

/* ============================ hero ============================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; background-image: url("../img/hero.jpg"); background-size: cover; background-position: center 35%; transform: scale(1.05); }
.hero__scrim {
    position: absolute; inset: 0;
    background:
            linear-gradient(180deg, rgba(10,12,17,0.55) 0%, rgba(10,12,17,0.1) 26%, rgba(10,12,17,0.72) 78%, var(--bg) 100%),
            radial-gradient(120% 90% at 15% 90%, rgba(10,12,17,0.85), transparent 60%);
}
.hero__grid { position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
    background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px), linear-gradient(180deg, var(--line) 1px, transparent 1px);
    background-size: 64px 64px; mask-image: radial-gradient(100% 100% at 50% 100%, #000, transparent 72%); }
.hero__inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(56px, 9vw, 116px); padding-top: 120px; }
.hero h1 {
    font-size: clamp(34px, 9vw, 118px);
    letter-spacing: 0.01em; line-height: 0.9; margin: 20px 0 0; max-width: 100%;
    text-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.hero__sub { font-family: var(--font-mono); color: var(--ink); font-size: clamp(13px, 1.6vw, 17px); letter-spacing: 0.2em; text-transform: uppercase; margin-top: 26px; }
.hero__sub b { color: var(--accent); font-weight: 400; }
.hero__desc { color: var(--ink-mut); max-width: 52ch; margin-top: 18px; font-size: clamp(15px, 1.3vw, 18px); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__scroll { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2; color: var(--ink-faint); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero__scroll span { width: 1px; height: 30px; background: linear-gradient(var(--accent), transparent); }
/* the scroll cue collides with the CTAs on shorter/narrower viewports — drop it there */
@media (max-width: 991px) { .hero__scroll { display: none; } }
/* once the CTAs wrap, stack them full-width so they read as a clean, even pair */
@media (max-width: 560px) {
    .hero__cta, .cta__btns { flex-direction: column; align-items: stretch; }
    .hero__cta .btn, .cta__btns .btn { width: 100%; }
}

/* ============================ about / stats ============================ */
.about__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .about__grid { grid-template-columns: 1fr; gap: 44px; } }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat {
    background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 22px 22px 20px; transition: border-color var(--dur), transform var(--dur), background var(--dur);
}
.stat:hover { border-color: var(--accent-line); transform: translateY(-3px); background: rgba(28, 32, 40, 0.72); }
.stat__n { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4vw, 42px); color: var(--accent); line-height: 1; }
.stat__l { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mut); margin-top: 12px; }
.about p + p { margin-top: 16px; }

/* ============================ gallery (landscape screenshots) ============================ */
.gallery {
    display: grid; gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}
.shot {
    position: relative; overflow: hidden; cursor: zoom-in;
    border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-2);
    transition: border-color var(--dur), transform var(--dur);
    text-align: left; padding: 0; font: inherit; color: inherit;
    aspect-ratio: 16 / 9;                 /* uniform landscape cards, matching the 16:9 shots */
}
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform var(--dur-slow) ease, filter var(--dur); filter: saturate(1.02) contrast(1.02); }
.shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(8,10,14,0.86)); opacity: 0.85; transition: opacity var(--dur); pointer-events: none; }
.shot:hover { border-color: var(--accent-line); }
.shot:hover img { transform: scale(1.06); }
.shot__cap { position: absolute; left: 16px; bottom: 14px; right: 16px; z-index: 2; }
.shot__tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.shot__t { font-family: var(--font-display); font-weight: 600; font-size: 16px; margin-top: 3px; color: var(--ink); }
.shot__zoom { position: absolute; top: 12px; right: 12px; z-index: 2; width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--r-sm); background: rgba(10,12,17,0.6); border: 1px solid var(--line-2); color: var(--ink); opacity: 0; transform: translateY(-4px); transition: opacity var(--dur), transform var(--dur); }
.shot:hover .shot__zoom { opacity: 1; transform: none; }

/* optional: a lead shot can span the full width */
.shot--feature { grid-column: 1 / -1; }
/* small screens: the gallery becomes a swipeable slider (scroll-snap), not a stack */
@media (max-width: 760px) {
    .gallery { display: flex; grid-template-columns: none; grid-auto-rows: auto; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; -webkit-overflow-scrolling: touch; scroll-padding: 0 var(--gutter); }
    .gallery::-webkit-scrollbar { height: 8px; }
    .gallery::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }
    .gallery::-webkit-scrollbar-track { background: transparent; }
    .shot, .shot--feature { flex: 0 0 84%; grid-column: auto; scroll-snap-align: center; }
}

/* ============================ movement ============================ */
.move__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.move__grid { display: grid; grid-template-columns: 1fr; gap: clamp(20px, 4vw, 32px); }
@media (max-width: 900px) { .move__grid { grid-template-columns: 1fr; } }
.move__shot { position: relative; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-2); }
.move__shot img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.move__shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 40%, rgba(8,10,14,0.7)); }
.move__shot .tagline { position: absolute; z-index: 2; left: 22px; bottom: 20px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mut); }
.move__shot .tagline b { color: var(--accent); font-weight: 400; }
.mechlist { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.mech { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; transition: border-color var(--dur), transform var(--dur); }
.mech:hover { border-color: var(--accent-line); transform: translateX(4px); }
.mech__k { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: 10px; }
.mech__k svg { width: 15px; height: 15px; }
.mech__d { color: var(--ink-mut); font-size: 14.5px; margin-top: 7px; }
.roles { display: flex; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.role { flex: 1; min-width: 190px; border: 1px solid var(--line); border-left-width: 3px; border-radius: var(--r-md); padding: 16px 18px; background: var(--bg-2); }
.role--seek { border-left-color: var(--seeker); }
.role--hide { border-left-color: var(--hider); }
.role__k { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.role--seek .role__k { color: var(--seeker); } .role--hide .role__k { color: var(--hider); }
.role__d { color: var(--ink-mut); font-size: 14px; margin-top: 6px; }

/* ============================ playtest CTA ============================ */
.cta { position: relative; overflow: hidden; text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta__bg { position: absolute; inset: 0; background-image: url("../img/hero.jpg"); background-size: cover; background-position: center; opacity: 0.16; filter: grayscale(0.3); }
.cta__glow { position: absolute; inset: 0; background: radial-gradient(70% 120% at 50% 0%, rgba(255,194,75,0.14), transparent 60%), linear-gradient(180deg, rgba(12,14,19,0.7), var(--bg)); }
.cta__inner { position: relative; z-index: 2; }
.cta h2 { font-size: clamp(40px, 9vw, 96px); letter-spacing: 0.01em; }
.cta h2 em { font-style: normal; color: var(--accent); }
.cta p { color: var(--ink-mut); font-size: clamp(16px, 1.6vw, 20px); margin: 20px auto 0; max-width: 44ch; }
.cta__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 38px; }

/* ============================ footer ============================ */
.footer { padding-block: 54px; }
.footer__row { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer__links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer__links a { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mut); transition: color var(--dur); }
.footer__links a:hover { color: var(--accent); }
.footer__meta { color: var(--ink-faint); font-size: 13px; margin-top: 26px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 3px 11px; }

/* ============================ lightbox ============================ */
.lb { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: clamp(16px, 4vw, 56px); background: rgba(6,8,11,0.9); backdrop-filter: blur(6px); }
.lb.is-open { display: grid; }
.lb__img { max-width: min(1200px, 96vw); max-height: 82vh; width: auto; border: 1px solid var(--line-2); border-radius: var(--r-md); box-shadow: 0 40px 120px -30px #000; }
.lb__cap { position: absolute; left: 50%; transform: translateX(-50%); bottom: clamp(16px, 4vw, 40px); font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mut); text-align: center; }
.lb__cap b { color: var(--accent); font-weight: 400; }
.lb__btn { position: absolute; background: rgba(22,26,34,0.7); border: 1px solid var(--line-2); color: var(--ink); width: 46px; height: 46px; border-radius: var(--r-md); display: grid; place-items: center; cursor: pointer; transition: background var(--dur), border-color var(--dur); }
.lb__btn:hover { background: var(--panel); border-color: var(--accent-line); }
.lb__btn svg { width: 22px; height: 22px; }
.lb__close { top: clamp(16px, 4vw, 32px); right: clamp(16px, 4vw, 32px); }
.lb__prev { left: clamp(10px, 3vw, 32px); top: 50%; transform: translateY(-50%); }
.lb__next { right: clamp(10px, 3vw, 32px); top: 50%; transform: translateY(-50%); }
@media (max-width: 560px) { .lb__prev, .lb__next { top: auto; bottom: 20px; transform: none; } .lb__prev { left: 20px; } .lb__next { right: 20px; } }

/* ============================ scroll reveal ============================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================ playtest modal ============================ */
.pt { position: fixed; inset: 0; z-index: 120; display: none; place-items: center; padding: clamp(16px, 4vw, 48px); background: rgba(6,8,11,0.9); backdrop-filter: blur(6px); }
.pt.is-open { display: grid; }
.pt__card { position: relative; width: min(560px, 100%); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: clamp(28px, 5vw, 44px); box-shadow: 0 40px 120px -30px #000; }
.pt__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-md); background: var(--hover); border: 1px solid var(--line-2); color: var(--ink); cursor: pointer; appearance: none; transition: background var(--dur), border-color var(--dur); }
.pt__close:hover { background: var(--panel); border-color: var(--accent-line); }
.pt__close svg { width: 20px; height: 20px; }
.pt__card h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 4vw, 30px); margin: 10px 0 14px; color: var(--ink); }
.pt__lead { color: var(--ink-mut); line-height: 1.6; }
.pt__lead b { color: var(--ink); font-weight: 600; }
.pt__steps { margin: 22px 0; padding-left: 22px; color: var(--ink); line-height: 1.55; }
.pt__steps li { margin-bottom: 12px; }
.pt__steps li::marker { color: var(--accent); font-weight: 700; }
.pt__steps a { color: var(--accent); }
.pt__note { font-size: 13px; color: var(--ink-faint); line-height: 1.55; margin-bottom: 24px; }
.pt__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pt__actions .btn { flex: 1 1 180px; }   /* grow to fill the row equally (wraps to full width if too tight) */
@media (max-width: 520px) { .pt__actions .btn { width: 100%; } }