/* Admonte Gaming landing page. Colors and type follow brand-kit/brand-sheet.html */

/* Self-hosted variable fonts, Latin subset (SIL Open Font License, see /fonts/OFL-*.txt) */
@font-face {
    font-family: 'Orbitron';
    src: url('/fonts/orbitron-latin.woff2') format('woff2');
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    src: url('/fonts/inter-latin.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
    --green: #22C55E;      /* Hex Green: gradient start, accents */
    --cyan: #06B6D4;       /* Hex Cyan: gradient end */
    --deep-green: #0E9F6E; /* Deep Green */
    --mint: #34D399;       /* Mint: accents on dark */
    --navy: #0B1220;       /* Night Navy: backgrounds */
    --navy-2: #111A2E;
    --navy-3: #16213A;
    --white: #FFFFFF;
    --muted: #9AA4B5;
    --line: rgba(154, 164, 181, .16);
    --brand-grad: linear-gradient(135deg, var(--green), var(--cyan));
    --font-head: 'Orbitron', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --radius: 16px;
    --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    margin: 0;
    background: var(--navy);
    color: var(--white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--green); color: var(--navy); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.grad {
    background: var(--brand-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Background hex field ---------- */
#hexfield {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(900px 600px at 78% 30%, rgba(6, 182, 212, .10), transparent 60%),
        radial-gradient(800px 600px at 15% 80%, rgba(34, 197, 94, .08), transparent 60%),
        var(--navy);
}

/* ---------- Nav ---------- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px max(16px, calc((100% - 1160px) / 2));
    transition: background .3s, border-color .3s, padding .3s;
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    background: rgba(11, 18, 32, .78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--line);
    padding-block: 8px;
}
/* Horizontal logo min size: 200 px on screen */
.nav-logo img { width: 200px; height: auto; }
.nav nav { display: flex; align-items: center; gap: 28px; }
.nav nav a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    transition: color .2s;
}
.nav nav a:hover { color: var(--white); }
.nav nav a.nav-cta {
    color: var(--white);
    padding: 8px 16px;
    border: 1px solid rgba(34, 197, 94, .5);
    border-radius: 999px;
    transition: background .2s, border-color .2s;
}
.nav nav a.nav-cta:hover { background: rgba(34, 197, 94, .12); border-color: var(--green); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 48px;
    width: min(1160px, 100% - 32px);
    margin-inline: auto;
    padding: 110px 0 90px;
}
.hero-copy { order: 1; }
.logo-stage { order: 2; }

.eyebrow {
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--mint);
    margin: 0 0 18px;
}
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0; }
h1 {
    font-size: clamp(34px, 5.2vw, 62px);
    font-weight: 900;
    letter-spacing: -.01em;
}
.lede {
    color: var(--muted);
    font-size: clamp(16px, 1.4vw, 18px);
    max-width: 520px;
    margin: 22px 0 32px;
}

/* Loading bar */
.loader { max-width: 420px; margin-bottom: 34px; }
.loader-label {
    display: flex;
    gap: 2px;
    font-family: var(--font-head);
    font-size: 11px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}
.blink { animation: blink 1s steps(1) infinite; color: var(--mint); }
@keyframes blink { 50% { opacity: 0; } }
.loader-track {
    position: relative;
    height: 6px;
    border-radius: 6px;
    background: var(--navy-3);
    overflow: hidden;
    clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}
.loader-fill {
    position: absolute;
    inset: 0;
    width: 40%;
    background: var(--brand-grad);
    border-radius: 6px;
    animation: load 2.6s var(--ease-out) infinite;
}
@keyframes load {
    0%   { transform: translateX(-100%); width: 30%; }
    60%  { width: 55%; }
    100% { transform: translateX(260%); width: 30%; }
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 26px;
    border: 0;
    border-radius: 12px;
    font: 600 15px var(--font-body);
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s var(--ease-out), box-shadow .2s, background .2s, border-color .2s;
}
.btn-primary {
    color: var(--navy);
    background: var(--brand-grad);
    box-shadow: 0 8px 30px -8px rgba(34, 197, 94, .55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(6, 182, 212, .7); }
.btn-ghost {
    color: var(--white);
    background: transparent;
    border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--muted); transform: translateY(-2px); }
.btn:focus-visible, input:focus-visible, .nav a:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }

/* ---------- Animated logo ---------- */
.logo-stage {
    position: relative;
    width: min(460px, 78vw);
    aspect-ratio: 1;
    justify-self: center;
    display: grid;
    place-items: center;
    animation: float 7s ease-in-out 2.4s infinite;
}
@keyframes float {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -14px; }
}

/* The mark: a pencil (SVG overlay, driven by landing.js) sketches it first,
   then brand-kit/png/admonte-icon-white-1024.png takes over as an alpha mask
   over the flowing brand gradient. */
.mark-wrap {
    position: relative;
    z-index: 3;
    width: 66%;
    aspect-ratio: 1;
    transform: translate(var(--px, 0), var(--py, 0));
    transition: transform .6s var(--ease-out);
}
.mark {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        var(--green) 0%, var(--cyan) 25%, var(--mint) 50%, var(--green) 75%, var(--cyan) 100%);
    background-size: 400% 400%;
    -webkit-mask: url('/brand/admonte-icon-white-1024.png') center / contain no-repeat;
    mask: url('/brand/admonte-icon-white-1024.png') center / contain no-repeat;
    animation: flow 9s linear infinite;
    transition: opacity .9s ease;
}
.js .mark { opacity: 0; }
.js .mark.inked { opacity: 1; }
.sketch {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
    transition: opacity .9s ease;
}
.sketch.done { opacity: 0; }
.js .sketch .lead path { visibility: hidden; } /* shown stroke by stroke as the pencil reaches them */
html:not(.js) .sketch { display: none; }
@keyframes flow {
    from { background-position: 0% 0%; }
    to   { background-position: 100% 100%; }
}

/* Soft light behind the mark (not on it; brand sheet: no effects on the logo) */
.aura {
    position: absolute;
    inset: 18%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 197, 94, .35), rgba(6, 182, 212, .18) 45%, transparent 70%);
    filter: blur(30px);
    opacity: 0;
    animation: aura-in 1.2s ease-out 1.6s forwards, pulse 4.5s ease-in-out 2.8s infinite;
}
@keyframes aura-in { to { opacity: 1; } }
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.12); opacity: .7; }
}

.ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    opacity: 0;
    transform: translate(calc(var(--px, 0) * -0.5), calc(var(--py, 0) * -0.5));
}
.ring polygon { fill: none; stroke-width: .6; vector-effect: non-scaling-stroke; }
.ring-1 {
    scale: .86;
    animation: ring-in 1s var(--ease-out) 1.4s forwards, spin 60s linear infinite;
}
.ring-1 polygon { stroke: rgba(34, 197, 94, .45); stroke-dasharray: 2 8; stroke-width: 1.5; }
.ring-2 {
    scale: 1;
    animation: ring-in 1s var(--ease-out) 1.6s forwards, spin 90s linear infinite reverse;
}
.ring-2 polygon { stroke: rgba(6, 182, 212, .35); stroke-width: 1; }
.ring-3 {
    scale: 1.14;
    animation: ring-in 1s var(--ease-out) 1.8s forwards, spin 140s linear infinite;
}
.ring-3 polygon { stroke: rgba(154, 164, 181, .14); stroke-dasharray: 40 14 4 14; stroke-width: 1; }
@keyframes ring-in { from { opacity: 0; scale: .6; } to { opacity: 1; } }
@keyframes spin { to { rotate: 360deg; } }

.orbit {
    position: absolute;
    inset: 4%;
    border-radius: 50%;
    opacity: 0;
    animation: aura-in 1s ease-out 2s forwards, spin 14s linear infinite;
}
.orbit span {
    position: absolute;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 12px var(--mint);
}
.orbit span:nth-child(1) { top: 0; left: 50%; }
.orbit span:nth-child(2) { bottom: 12%; right: 6%; width: 5px; height: 5px; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.orbit span:nth-child(3) { bottom: 18%; left: 4%; width: 4px; height: 4px; }

/* Hero copy entrance */
.hero-copy > * {
    opacity: 0;
    translate: 0 24px;
    animation: rise .9s var(--ease-out) forwards;
}
.hero-copy > :nth-child(1) { animation-delay: .5s; }
.hero-copy > :nth-child(2) { animation-delay: .65s; }
.hero-copy > :nth-child(3) { animation-delay: .8s; }
.hero-copy > :nth-child(4) { animation-delay: .95s; }
.hero-copy > :nth-child(5) { animation-delay: 1.1s; }
@keyframes rise { to { opacity: 1; translate: 0 0; } }

.scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 26px;
    translate: -50% 0;
    width: 24px; height: 38px;
    border: 1.5px solid rgba(154, 164, 181, .45);
    border-radius: 12px;
}
.scroll-hint span {
    position: absolute;
    left: 50%; top: 8px;
    width: 3px; height: 7px;
    margin-left: -1.5px;
    border-radius: 2px;
    background: var(--mint);
    animation: scroll 1.8s ease-in-out infinite;
}
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Ticker ---------- */
.ticker {
    overflow: hidden;
    border-block: 1px solid var(--line);
    background: rgba(17, 26, 46, .6);
    padding: 16px 0;
}
.ticker-track {
    display: flex;
    align-items: center;
    gap: 28px;
    width: max-content;
    animation: marquee 40s linear infinite;
}
.ticker span {
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}
.ticker i {
    width: 10px; height: 11.5px;
    background: var(--brand-grad);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    flex: none;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 12vw, 140px) 0; }
h2 { font-size: clamp(28px, 4vw, 46px); font-weight: 900; }
.section-lede { color: var(--muted); font-size: 17px; max-width: 640px; margin: 20px 0 0; }

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 56px;
}
.card {
    position: relative;
    padding: 32px 28px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(22, 33, 58, .85), rgba(17, 26, 46, .7));
    border: 1px solid var(--line);
    overflow: hidden;
    transition: transform .35s var(--ease-out), border-color .35s;
}
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(34, 197, 94, .12), transparent 45%);
    opacity: 0;
    transition: opacity .3s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(34, 197, 94, .4); }
.card:hover::before { opacity: 1; }
.card-icon { width: 56px; height: 56px; margin-bottom: 22px; }
.card-icon svg { width: 100%; height: 100%; overflow: visible; }
.card-icon polygon { fill: rgba(34, 197, 94, .08); stroke: var(--green); stroke-width: 3; }
.card-icon circle { fill: none; stroke: var(--cyan); stroke-width: 3.5; }
.card-icon path { fill: none; stroke: var(--cyan); stroke-width: 4; stroke-linecap: square; stroke-linejoin: miter; }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; font-size: 15px; }

/* Game panel */
.game-panel {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    padding: clamp(28px, 5vw, 56px);
    border-radius: 24px;
    background:
        linear-gradient(var(--navy-2), var(--navy-2)) padding-box,
        linear-gradient(135deg, rgba(34, 197, 94, .6), rgba(6, 182, 212, .15) 40%, rgba(6, 182, 212, .6)) border-box;
    border: 1px solid transparent;
    overflow: hidden;
}
.game-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 4px);
}
.codename { font-size: clamp(24px, 3.4vw, 40px); }
.redacted {
    position: relative;
    display: inline-block;
    color: var(--navy);
    background: var(--white);
    padding: 0 .25em;
    letter-spacing: .06em;
    cursor: default;
    min-width: 7.2em;
}
.redacted::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 30%, rgba(52, 211, 153, .55) 50%, transparent 70%);
    background-size: 250% 100%;
    animation: sheen 3.2s ease-in-out infinite;
    mix-blend-mode: multiply;
}
@keyframes sheen { from { background-position: 150% 0; } to { background-position: -50% 0; } }

.features { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.features li { position: relative; padding-left: 28px; color: #D6DCE6; }
.features li::before {
    content: "";
    position: absolute;
    left: 0; top: .45em;
    width: 12px; height: 13.8px;
    background: var(--brand-grad);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.roadmap h3 {
    font-size: 12px;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 24px;
}
.roadmap ol { list-style: none; margin: 0; padding: 0; position: relative; }
.roadmap li {
    position: relative;
    padding: 0 0 26px 40px;
    display: grid;
}
.roadmap li:last-child { padding-bottom: 0; }
.roadmap li::before {
    content: "";
    position: absolute;
    left: 0; top: 2px;
    width: 18px; height: 20.7px;
    background: var(--navy-3);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    z-index: 1;
}
.roadmap li::after {
    content: "";
    position: absolute;
    left: 8px; top: 24px; bottom: 0;
    width: 2px;
    background: var(--navy-3);
}
.roadmap li:last-child::after { display: none; }
.roadmap li.done::before { background: var(--brand-grad); }
.roadmap li.done::after { background: linear-gradient(var(--green), var(--cyan)); }
.roadmap li.current::before { background: var(--mint); animation: beacon 1.6s ease-in-out infinite; }
@keyframes beacon { 50% { background: var(--cyan); transform: scale(1.18); } }
.roadmap b { font-family: var(--font-head); font-size: 15px; font-weight: 700; }
.roadmap li span { color: var(--muted); font-size: 14px; }
.roadmap li:not(.done):not(.current) b { color: var(--muted); }
.roadmap li.current b::after {
    content: "In progress";
    margin-left: 10px;
    padding: 2px 8px;
    border-radius: 999px;
    font: 600 10px var(--font-body);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--navy);
    background: var(--mint);
    vertical-align: middle;
}

/* Playtest */
.playtest {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 460px);
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
}
.pt-steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.pt-steps li { display: flex; align-items: center; gap: 16px; color: #D6DCE6; }
.pt-steps b {
    flex: none;
    display: grid;
    place-items: center;
    width: 40px; height: 46px;
    font: 700 13px var(--font-head);
    color: var(--mint);
    background: rgba(34, 197, 94, .1);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.pt-card {
    position: relative;
    padding: 36px 32px 28px;
    border-radius: 24px;
    background:
        linear-gradient(180deg, var(--navy-3), var(--navy-2)) padding-box,
        linear-gradient(160deg, rgba(34, 197, 94, .7), rgba(6, 182, 212, .1) 45%, rgba(6, 182, 212, .55)) border-box;
    border: 1px solid transparent;
    box-shadow: 0 30px 80px -30px rgba(6, 182, 212, .35);
}
.pt-progress { display: flex; gap: 6px; margin-bottom: 28px; }
.pt-progress span {
    flex: 1;
    height: 4px;
    border-radius: 4px;
    background: var(--navy);
    position: relative;
    overflow: hidden;
}
.pt-progress span::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--brand-grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .6s var(--ease-out);
}
.pt-card[data-step="email"] .pt-progress span:nth-child(1)::after,
.pt-card[data-step="code"] .pt-progress span:nth-child(-n+2)::after,
.pt-card[data-step="done"] .pt-progress span::after { transform: scaleX(1); }

.pt-step { display: none; }
.pt-card[data-step="email"] .pt-step[data-step="email"],
.pt-card[data-step="code"] .pt-step[data-step="code"],
.pt-card[data-step="done"] .pt-step[data-step="done"] {
    display: grid;
    gap: 12px;
    animation: step-in .5s var(--ease-out);
}
@keyframes step-in { from { opacity: 0; translate: 16px 0; } }

.pt-step h3 { font-size: 20px; margin-bottom: 6px; }
.pt-step label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}
.pt-step input {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--navy);
    color: var(--white);
    font: 16px var(--font-body);
    transition: border-color .2s, box-shadow .2s;
}
.pt-step input::placeholder { color: #66708A; }
.pt-step input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.pt-step .btn { width: 100%; margin-top: 6px; }
.pt-step .btn:disabled { opacity: .6; cursor: wait; transform: none; }

.code-input {
    text-align: center;
    font: 700 30px Consolas, 'Courier New', monospace !important;
    letter-spacing: .5em;
    padding-left: calc(16px + .5em) !important; /* balance trailing letter-spacing */
    min-height: 64px !important;
}
.code-input.shake { animation: shake .4s; border-color: #F59E9E !important; }
@keyframes shake {
    20%, 60% { translate: -6px 0; }
    40%, 80% { translate: 6px 0; }
}

.pt-sent { margin: 0 0 4px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.pt-sent b, .pt-done b { color: var(--white); font-weight: 600; }
.pt-note { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.pt-tip {
    margin: 0 0 4px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(52, 211, 153, .3);
    background: rgba(52, 211, 153, .08);
    color: #D6DCE6;
    font-size: 13px;
    overflow-wrap: anywhere;
}
.pt-tip b { color: var(--white); font-weight: 600; }
.pt-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 4px; }
.link {
    padding: 4px 0;
    background: none;
    border: 0;
    color: var(--mint);
    font: 500 14px var(--font-body);
    text-decoration: none;
    cursor: pointer;
}
.link:hover { text-decoration: underline; }
.link:disabled { color: var(--muted); cursor: default; text-decoration: none; }
.link:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }

.pt-done { text-align: center; justify-items: center; padding: 8px 0; }
.pt-check { width: 84px; height: 84px; overflow: visible; margin-bottom: 8px; }
.pt-check polygon { fill: rgba(34, 197, 94, .1); stroke: var(--green); stroke-width: 3; }
.pt-check path {
    fill: none;
    stroke: var(--mint);
    stroke-width: 6;
    stroke-linecap: square;
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: tick .6s var(--ease-out) .25s forwards;
}
@keyframes tick { to { stroke-dashoffset: 0; } }
.pt-card .form-msg { text-align: center; margin-top: 16px; }
.pt-card .form-msg:empty { display: none; }

/* Form status message */
.form-msg { min-height: 1.6em; margin: 14px 0 0; font-size: 14px; color: #F59E9E; }
.form-msg.ok { color: var(--mint); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 36px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.footer img { width: 200px; height: auto; }
.footer p { margin: 0; color: var(--muted); font-size: 14px; }
.footer a { color: var(--mint); font-size: 14px; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* Scroll reveal */
/* Only hide content when JS is running to reveal it again */
.js .reveal { opacity: 0; translate: 0 30px; transition: opacity .9s var(--ease-out), translate .9s var(--ease-out); }
.js .reveal.in { opacity: 1; translate: 0 0; }
.cards .reveal:nth-child(2) { transition-delay: .12s; }
.cards .reveal:nth-child(3) { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 12px;
        padding-top: 96px;
    }
    .logo-stage { order: 1; width: min(340px, 74vw); }
    .hero-copy { order: 2; }
    .lede, .loader { margin-inline: auto; }
    .hero-actions { justify-content: center; }
    .scroll-hint { display: none; }
    .game-panel { grid-template-columns: 1fr; }
    .playtest { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .nav nav a:not(.nav-cta) { display: none; }
    /* Logo stays at the 200 px brand minimum; the button shrinks instead */
    .nav nav a.nav-cta { padding: 7px 12px; font-size: 13px; }
    .footer-inner { flex-direction: column; text-align: center; }
    .pt-card { padding: 28px 20px 22px; }
    .code-input { font-size: 26px !important; letter-spacing: .35em; padding-left: calc(16px + .35em) !important; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
    .mark, .js .mark { background: var(--brand-grad); opacity: 1; }
    .sketch { display: none; }
    .ring, .orbit, .aura, .hero-copy > *, .js .reveal { opacity: 1; translate: none; }
    .pt-check path { stroke-dashoffset: 0; }
}
