/* ============================================================
   Remnant — public site
   The design language is lifted from what the script actually draws:
   unfilled 1px ESP squares (corner brackets), the FOV circle, snaplines
   at 0.6 alpha, small mono readouts, and the health-graded box colours.
   Idle grey goes red on activity, exactly like fovColor -> fovColorActive.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;400;500;600&family=IBM+Plex+Sans:wght@400;450;500&display=swap');

:root {
    --bg: #0a0a0f;
    --surface: #12121a;
    --surface-2: #16161f;
    --border: #1f1f2e;
    --border-bright: #2b2b3d;
    --text: #c8c8d0;
    --text-bright: #e6e6ec;
    --muted: #787880;
    --dim: #4a4a55;

    /* straight from the script */
    --fov-idle: #b4b4b4;      /* fovColor        rgb(180,180,180) */
    --fov-active: #ff3232;    /* fovColorActive  rgb(255,50,50)   */
    --snapline: #8c8c8c;      /* snapline        rgb(140,140,140) */
    --esp-on: #64c864;        /* full health box rgb(100,200,100) */
    --esp-warn: #c8c864;      /* mid health box  rgb(200,200,100) */
    --esp-off: #c86464;       /* low health box  rgb(200,100,100) */
    --accent: #c84040;

    --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
    --sans: 'IBM Plex Sans', ui-sans-serif, system-ui, sans-serif;

    --rail: 128px;
    --gutter: 28px;
    --maxw: 1080px;
}

* { box-sizing: border-box; }
/* Overflow has to be clipped on the root too: setting it only on body lets
   the decorative ring's overflow propagate up and phones can still drag
   sideways. */
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
    overflow-x: clip;
    max-width: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    /* clip, not hidden: hidden makes body a scroll container, so the
       decorative FOV ring still lengthened scrollWidth and let phones drag
       sideways. clip discards it outright. hidden stays as the fallback. */
    overflow-x: hidden;
    overflow-x: clip;
}

/* Ground: faint grid + grain, both fixed. */
body::before {
    content: '';
    position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 56px 56px;
}
body::after {
    content: '';
    position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.15;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

.wrap { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.label { font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.mono { font-family: var(--mono); }
a { color: inherit; }

/* ---------- masthead ---------- */
.masthead {
    position: sticky; top: 0; z-index: 30;
    background: rgba(10,10,15,0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 16px; }
.wordmark {
    font-family: var(--mono); font-weight: 600; font-size: 13px;
    letter-spacing: 0.26em; color: var(--text-bright);
    text-decoration: none; display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.wordmark img { display: block; flex-shrink: 0; }

/* ---------- what it does ---------- */
.feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.feat { background: var(--bg); padding: 18px 20px; }
.feat h3 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-bright); margin: 0 0 4px; font-weight: 500; }
.feat .k { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fov-active); }
.feat ul { margin: 12px 0 0; padding: 0; list-style: none; }
.feat li { font-size: 13.5px; color: var(--muted); padding: 3px 0 3px 14px; position: relative; }
.feat li::before { content: ''; position: absolute; left: 0; top: 11px; width: 5px; height: 1px; background: var(--dim); }

/* ---------- in-game panel recreation ----------
   Rebuilt in HTML from the script's own constants so it matches what a
   buyer actually sees: 280px frame, 28px header, the same greys and reds. */
.shot { display: grid; grid-template-columns: 280px 1fr; gap: 26px; align-items: start; }
.panel {
    width: 280px; background: #0a0a0c; border: 1px solid rgba(90,90,90,0.5);
    border-radius: 4px; overflow: hidden; font-family: var(--mono); flex-shrink: 0;
}
.panel .ph { height: 28px; background: #101014; display: flex; align-items: center; padding: 0 10px; gap: 8px; }
.panel .ph b { font-size: 11px; color: #bebebe; font-weight: 600; }
.panel .ph .mode { font-size: 8px; color: #b43232; letter-spacing: 0.08em; flex: 1; text-align: center; }
.panel .ph .btn2 { width: 24px; height: 20px; background: #181820; border-radius: 3px; color: #bebebe; font-size: 12px; text-align: center; line-height: 20px; }
.panel .tabs { height: 22px; background: #101014; display: flex; align-items: center; gap: 14px; padding: 0 10px; border-top: 1px solid #16161c; }
.panel .tabs span { font-size: 9px; color: #6e6e6e; }
.panel .tabs span.on { color: #bebebe; border-bottom: 1px solid #b43232; }
.panel .rows { padding: 8px 0; }
.panel .row { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px; }
.panel .row .lbl { font-size: 9px; color: #bebebe; }
.panel .tog { width: 36px; height: 14px; border-radius: 2px; font-size: 7px; text-align: center; line-height: 14px; font-weight: 600; }
.panel .tog.on { background: #b43232; color: #0a0a0c; }
.panel .tog.off { background: #181820; color: #6e6e6e; }
.panel .sl { padding: 4px 10px 10px; }
.panel .sl .t { font-size: 8px; color: #6e6e6e; margin-bottom: 6px; }
.panel .sl .track { height: 4px; background: #181820; border-radius: 2px; position: relative; }
.panel .sl .fill { height: 4px; background: #5a5a5a; border-radius: 2px; }
.panel .sl .knob { width: 8px; height: 8px; background: #bebebe; border-radius: 4px; position: absolute; top: -2px; }
.shot .cap { font-family: var(--mono); font-size: 11px; color: var(--dim); line-height: 1.8; }
.shot .cap b { color: var(--text); font-weight: 400; display: block; margin-bottom: 8px; }
/* Fades at the right edge so a clipped link reads as "scroll me" rather
   than as a broken layout. */
.navwrap { position: relative; min-width: 0; overflow: hidden; }
.navwrap::after {
    content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 26px;
    background: linear-gradient(to right, transparent, rgba(10,10,15,0.95));
    pointer-events: none;
}
.masthead nav { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.masthead nav::-webkit-scrollbar { display: none; }
.masthead nav a {
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--muted); text-decoration: none;
    padding: 4px 0; border-bottom: 1px solid transparent; white-space: nowrap;
    transition: color 0.18s, border-color 0.18s;
}
.masthead nav a:hover { color: var(--text); border-bottom-color: var(--border-bright); }
.masthead nav a[aria-current='page'] { color: var(--text-bright); border-bottom-color: var(--fov-active); }

/* ---------- section scaffold ---------- */
.block {
    display: grid; grid-template-columns: var(--rail) 1fr; gap: 0 32px;
    border-top: 1px solid var(--border); padding: 52px 0;
}
/* Grid and flex children default to min-width:auto, so anything with an
   unbreakable line — the loadstring in .code — drags the whole track past
   the viewport. This is the single fix for that. */
.block > * { min-width: 0; }
.block:first-of-type { border-top: none; }
.block > .rail {
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--dim); padding-top: 5px;
}
.block > .rail b { display: block; color: var(--fov-active); font-weight: 500; }

h1 {
    font-family: var(--mono); font-weight: 300;
    font-size: clamp(30px, 5.2vw, 52px); line-height: 1.12;
    letter-spacing: -0.02em; color: var(--text-bright); margin: 0 0 20px;
}
h1 em { font-style: normal; color: var(--fov-active); }
h2 {
    font-family: var(--mono); font-weight: 400;
    font-size: clamp(19px, 3vw, 26px); letter-spacing: -0.01em;
    color: var(--text-bright); margin: 0 0 16px;
}
.lede { max-width: 54ch; color: var(--muted); margin: 0 0 24px; }

/* ---------- hero with FOV ring ----------
   The circle the script draws at screen centre, sat behind the headline. */
.hero { position: relative; }
.hero::before {
    content: '';
    position: absolute;
    right: -80px; top: 50%;
    width: 300px; height: 300px;
    margin-top: -150px;
    border: 1px solid var(--border-bright);
    border-radius: 50%;
    opacity: 0.55;
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    right: 55px; top: 50%;
    width: 10px; height: 10px;
    margin-top: -5px;
    border-radius: 50%;
    background: var(--fov-active);
    opacity: 0.5;
    pointer-events: none;
}

/* ---------- readout strip ---------- */
.readout {
    display: grid; grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--border);
}
.readout div { padding: 15px 17px; border-right: 1px solid var(--border); }
.readout div:last-child { border-right: none; }
.readout dt { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.readout dd { margin: 0; font-family: var(--mono); font-size: 13px; color: var(--text-bright); font-variant-numeric: tabular-nums; }

/* ---------- ESP bracket ----------
   The script draws an unfilled 1px Square around a target. Here it is four
   corner brackets, idle grey, going red the way fovColor does when active. */
.esp { position: relative; padding: 13px; }
.esp > i {
    position: absolute; width: 11px; height: 11px;
    border: 1px solid var(--fov-idle);
    opacity: 0.32; transition: opacity 0.25s, border-color 0.25s;
    pointer-events: none;
}
.esp > i:nth-child(1) { top: 0; left: 0; border-right: none; border-bottom: none; }
.esp > i:nth-child(2) { top: 0; right: 0; border-left: none; border-bottom: none; }
.esp > i:nth-child(3) { bottom: 0; left: 0; border-right: none; border-top: none; }
.esp > i:nth-child(4) { bottom: 0; right: 0; border-left: none; border-top: none; }
.esp:hover > i { opacity: 0.9; border-color: var(--fov-active); }

.code {
    background: var(--surface); border: 1px solid var(--border);
    padding: 19px 21px; font-family: var(--mono); font-size: 13px;
    line-height: 1.7; color: var(--text-bright);
    /* Wraps rather than scrolls: on a phone a horizontal scrollbar inside a
       code block is worse than a wrapped line, and the loadstring is meant
       to be selected in one go. */
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    min-width: 0;
}
.code .fn { color: var(--muted); }
.code .str { color: var(--fov-active); }

.copybar { display: flex; align-items: center; gap: 10px; margin-top: 13px; flex-wrap: wrap; }

.btn {
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
    text-transform: uppercase; padding: 11px 20px; background: transparent;
    color: var(--text); border: 1px solid var(--border-bright);
    cursor: pointer; text-decoration: none; display: inline-block;
    transition: background 0.16s, color 0.16s, border-color 0.16s;
}
.btn:hover { border-color: var(--fov-active); color: var(--text-bright); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #0a0a0f; font-weight: 500; }
.btn.primary:hover { background: #d44b4b; border-color: #d44b4b; }
.btn.ok { border-color: var(--esp-on); color: var(--esp-on); }

/* ---------- snapline ----------
   The thin line the script draws from the bottom of the screen to a target. */
.snapline {
    height: 34px; width: 1px; margin: 0 0 0 14px;
    background: linear-gradient(to bottom, transparent, var(--snapline));
    opacity: 0.6;
}

/* ---------- steps ---------- */
.steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.steps li { background: var(--bg); padding: 14px 17px; display: flex; gap: 15px; align-items: baseline; }
.steps li span { font-family: var(--mono); font-size: 10px; color: var(--fov-active); letter-spacing: 0.14em; flex-shrink: 0; }

/* ---------- supported games wall ----------
   Status dots reuse the script's ESP health colours, so green here is
   literally the colour of a full-health box in game. Change a game's state
   by editing data-status: on | warn | off
   ---------- */
.wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.wall li {
    list-style: none; background: var(--bg);
    padding: 11px 14px; display: flex; align-items: center; gap: 11px;
    font-family: var(--mono); font-size: 12.5px; color: var(--text);
    transition: background 0.16s, color 0.16s;
}
.wall li:hover { background: var(--surface-2); color: var(--text-bright); }
.wall li .tag { color: var(--dim); font-size: 10px; letter-spacing: 0.1em; }

.st {
    width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
    background: var(--esp-on);
    box-shadow: 0 0 0 0 currentColor;
    animation: blink 2.6s ease-in-out infinite;
}
.st { color: var(--esp-on); }
[data-status='warn'] .st { background: var(--esp-warn); color: var(--esp-warn); }
[data-status='off'] .st { background: var(--esp-off); color: var(--esp-off); animation-duration: 1.4s; }

@keyframes blink {
    0%, 100% { opacity: 0.42; box-shadow: 0 0 0 0 transparent; }
    50% { opacity: 1; box-shadow: 0 0 6px 0 currentColor; }
}
/* Staggered so the wall pulses like a board of indicators, not in lockstep. */
.wall li:nth-child(4n+1) .st { animation-delay: 0s; }
.wall li:nth-child(4n+2) .st { animation-delay: 0.45s; }
.wall li:nth-child(4n+3) .st { animation-delay: 0.9s; }
.wall li:nth-child(4n+4) .st { animation-delay: 1.35s; }

.wall-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin: 26px 0 10px; flex-wrap: wrap;
}
.wall-head:first-of-type { margin-top: 0; }
.wall-head .t { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-bright); }
.wall-head .n { font-family: var(--mono); font-size: 10px; color: var(--dim); letter-spacing: 0.1em; }

.legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; }
.legend span { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
    list-style: none; cursor: pointer; padding: 17px 34px 17px 0; position: relative;
    font-family: var(--mono); font-size: 13.5px; color: var(--text); transition: color 0.16s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--text-bright); }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 9px; height: 1px; background: var(--muted); }
.faq summary::before { content: ''; position: absolute; right: 10px; top: 50%; width: 1px; height: 9px; margin-top: -4px; background: var(--muted); transition: opacity 0.22s; }
.faq details[open] summary { color: var(--fov-active); }
.faq details[open] summary::before { opacity: 0; }
.faq details[open] summary::after { background: var(--fov-active); }
.faq .answer { padding: 0 0 19px; color: var(--muted); max-width: 62ch; }
.faq .answer code { font-family: var(--mono); font-size: 12.5px; color: var(--text); background: var(--surface); padding: 2px 6px; }

/* ---------- pricing ---------- */
.tiers { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.tier { background: var(--bg); display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 24px 22px; position: relative; transition: background 0.18s; }
.tier:hover { background: var(--surface-2); }
.tier.featured::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--fov-active); }
.tier h3 { font-family: var(--mono); font-weight: 500; font-size: 15px; margin: 0 0 5px; color: var(--text-bright); }
.tier .range { font-family: var(--mono); font-size: 10.5px; color: var(--dim); letter-spacing: 0.1em; text-transform: uppercase; }
.tier .desc { margin: 8px 0 0; color: var(--muted); font-size: 14px; max-width: 46ch; }
.price { font-family: var(--mono); font-weight: 300; font-size: 29px; color: var(--text-bright); white-space: nowrap; font-variant-numeric: tabular-nums; }

.promos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); margin-top: 24px; }
.promo { background: var(--bg); padding: 19px 21px; display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: background 0.18s; }
.promo:hover { background: var(--surface-2); }
.promo .d { font-family: var(--mono); font-size: 14px; color: var(--text-bright); }
.promo .d small { display: block; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); margin-top: 4px; }
.promo .p { font-family: var(--mono); font-size: 20px; font-weight: 300; color: var(--fov-active); }

.note { font-family: var(--mono); font-size: 11.5px; color: var(--dim); line-height: 1.8; margin-top: 20px; }

/* ---------- order / contact ---------- */
.pick { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.pick label { background: var(--bg); padding: 16px 18px; display: flex; align-items: center; gap: 14px; cursor: pointer; transition: background 0.16s; }
.pick label:hover { background: var(--surface-2); }
.pick input { accent-color: var(--accent); width: 15px; height: 15px; flex-shrink: 0; }
.pick .n { font-family: var(--mono); font-size: 13.5px; color: var(--text-bright); flex: 1; }
.pick .n small { display: block; color: var(--dim); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 3px; }
.pick .v { font-family: var(--mono); font-size: 17px; color: var(--text); font-variant-numeric: tabular-nums; }

.total { display: flex; justify-content: space-between; align-items: baseline; border: 1px solid var(--border); padding: 18px 20px; margin-top: 20px; }
.total .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); }
.total .v { font-family: var(--mono); font-size: 30px; font-weight: 300; color: var(--fov-active); font-variant-numeric: tabular-nums; }

.channels { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.channel { background: var(--bg); padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-decoration: none; transition: background 0.16s; }
.channel:hover { background: var(--surface-2); }
.channel .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); margin-bottom: 5px; }
.channel .v { font-family: var(--mono); font-size: 14px; color: var(--text-bright); }
.channel .go { font-family: var(--mono); font-size: 11px; color: var(--fov-active); letter-spacing: 0.14em; }

/* ---------- key lookup ---------- */
.keyform { display: flex; gap: 0; }
.keyin {
    flex: 1; min-width: 0;
    background: var(--surface); border: 1px solid var(--border); border-right: none;
    color: var(--text-bright); font-family: var(--mono); font-size: 14px;
    letter-spacing: 0.06em; padding: 14px 16px; outline: none;
}
.keyin::placeholder { color: var(--dim); letter-spacing: 0.06em; }
.keyin:focus { border-color: var(--border-bright); }
.keyform .btn { border-left-width: 1px; padding-left: 24px; padding-right: 24px; }

.result { margin-top: 16px; border: 1px solid var(--border); border-left-width: 2px; padding: 0; display: none; }
.result:not(:empty) { display: block; }
.result.good { border-left-color: var(--esp-on); }
.result.warn { border-left-color: var(--esp-warn); }
.result.bad {
    border-left-color: var(--esp-off);
    padding: 16px 18px; font-family: var(--mono); font-size: 13px; color: var(--text);
}
.rrow { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 18px; border-bottom: 1px solid var(--border); }
.rrow:last-child { border-bottom: none; }
.rk { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); }
.rv { font-family: var(--mono); font-size: 14px; color: var(--text-bright); font-variant-numeric: tabular-nums; text-align: right; }
.rv.good { color: var(--esp-on); }
.rv.warn { color: var(--esp-warn); }
.rv.bad { color: var(--esp-off); }

@media (max-width: 480px) {
    .keyform { flex-direction: column; }
    .keyin { border-right: 1px solid var(--border); border-bottom: none; }
    .keyform .btn { width: 100%; }
}

/* ---------- documents ---------- */
.doc { max-width: 66ch; }
.doc p { margin: 0 0 15px; color: var(--muted); }
.doc p b { color: var(--text); font-weight: 500; }
.doc a { color: var(--fov-active); text-decoration: none; border-bottom: 1px solid transparent; }
.doc a:hover { border-bottom-color: var(--fov-active); }
.doc ul { margin: 0 0 16px; padding: 0 0 0 2px; list-style: none; }
.doc li { color: var(--muted); padding: 4px 0 4px 18px; position: relative; }
.doc li::before {
    content: ''; position: absolute; left: 0; top: 13px;
    width: 6px; height: 1px; background: var(--dim);
}

/* ---------- acceptance gate ---------- */
.agree {
    display: flex; gap: 11px; align-items: flex-start;
    border: 1px solid var(--border); border-left-width: 2px;
    padding: 14px 16px; margin: 16px 0 0; cursor: pointer;
    transition: border-color 0.16s, background 0.16s;
}
.agree:hover { background: var(--surface-2); }
.agree.ok { border-left-color: var(--esp-on); }
.agree input { accent-color: var(--accent); width: 15px; height: 15px; margin-top: 1px; flex-shrink: 0; }
.agree span { font-size: 13px; color: var(--muted); line-height: 1.55; }
.agree a { color: var(--fov-active); text-decoration: none; }
.agree a:hover { text-decoration: underline; }

.btn[disabled], .btn.locked {
    opacity: 0.4; cursor: not-allowed; pointer-events: none;
}

/* ---------- brand marks ---------- */
.channel .mark { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.channel:hover .mark { color: var(--fov-active); }
.channel .lead { display: flex; align-items: center; gap: 13px; min-width: 0; }
footer .marks { display: flex; gap: 12px; align-items: center; margin-top: 12px; }
footer .marks a { padding: 0; color: var(--dim); transition: color 0.16s; }
footer .marks a:hover { color: var(--fov-active); }
footer .marks svg, footer .marks img { width: 17px; height: 17px; display: block; }

/* ---------- cart ---------- */
.cart { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.cartline { background: var(--bg); display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 14px 16px; }
.cartline .nm { font-family: var(--mono); font-size: 13px; color: var(--text-bright); min-width: 0; }
.cartline .nm small { display: block; color: var(--dim); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 3px; }
.qty { display: flex; align-items: center; gap: 0; border: 1px solid var(--border-bright); }
.qty button {
    width: 26px; height: 26px; background: transparent; border: none;
    color: var(--text); font-family: var(--mono); font-size: 13px; cursor: pointer;
}
.qty button:hover { background: var(--surface-2); color: var(--fov-active); }
.qty span { min-width: 26px; text-align: center; font-family: var(--mono); font-size: 12px; color: var(--text-bright); }
.cartline .amt { font-family: var(--mono); font-size: 14px; color: var(--text); min-width: 62px; text-align: right; font-variant-numeric: tabular-nums; }
.cart-empty { background: var(--bg); padding: 22px 16px; text-align: center; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }

@media (max-width: 560px) {
    .cartline { grid-template-columns: 1fr auto; }
    .cartline .amt { grid-column: 2; }
}

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--border); margin-top: 24px; padding: 30px 0 46px; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
footer h4 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); margin: 0 0 12px; font-weight: 500; }
footer a { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); text-decoration: none; padding: 4px 0; transition: color 0.16s; }
footer a:hover { color: var(--fov-active); }
footer .about { font-size: 13px; color: var(--muted); max-width: 40ch; margin: 0; }
footer .base { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; border-top: 1px solid var(--border); margin-top: 26px; padding-top: 18px; }

/* ---------- load reveal ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; animation: rise 0.6s cubic-bezier(0.2,0.7,0.3,1) forwards; }
.reveal:nth-child(1) { animation-delay: 0.02s; }
.reveal:nth-child(2) { animation-delay: 0.09s; }
.reveal:nth-child(3) { animation-delay: 0.16s; }
.reveal:nth-child(4) { animation-delay: 0.23s; }

@media (prefers-reduced-motion: reduce) {
    .reveal { animation: none; opacity: 1; }
    .st { animation: none; opacity: 1; }
    html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
    .wall { grid-template-columns: repeat(2, 1fr); }
    footer .cols { grid-template-columns: 1fr 1fr; }
    footer .about { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
    :root { --gutter: 18px; }
    .block { grid-template-columns: 1fr; gap: 12px; padding: 38px 0; }
    .block > .rail { display: flex; gap: 9px; align-items: baseline; padding-top: 0; }
    .block > .rail b { display: inline; }
    .hero::before { width: 190px; height: 190px; margin-top: -95px; right: -70px; opacity: 0.3; }
    .hero::after { display: none; }
    .readout { grid-template-columns: 1fr 1fr; }
    .readout div:nth-child(2) { border-right: none; }
    .readout div:nth-child(1), .readout div:nth-child(2) { border-bottom: 1px solid var(--border); }
    .tier { grid-template-columns: 1fr; gap: 10px; }
    .promos { grid-template-columns: 1fr; }
    .masthead nav { gap: 16px; }
}

@media (max-width: 560px) {
    .wall { grid-template-columns: 1fr; }
    .code { font-size: 11px; padding: 15px; }
    .readout { grid-template-columns: 1fr; }
    .readout div { border-right: none; border-bottom: 1px solid var(--border); }
    .readout div:last-child { border-bottom: none; }
    .price { font-size: 25px; }
    footer .cols { grid-template-columns: 1fr; }
    .btn { width: 100%; text-align: center; }
}

/* Docs. Two columns on a wide screen, one on a phone. The cards carry the
   same left accent rule as the in-game help entries so the page and the
   script read as one product. */
.doch {
    font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
    color: var(--dim); margin: 2.4rem 0 .9rem; font-weight: 600;
}
.doch:first-of-type { margin-top: 1.4rem; }
/* min() so the track can shrink below 280px on a narrow phone. A bare
   minmax(280px, 1fr) cannot, and pushes the grid wider than the screen. */
.docgrid { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.doc {
    border: 1px solid var(--border); border-left: 2px solid var(--accent);
    border-radius: 3px; padding: .85rem 1rem; background: var(--surface);
    min-width: 0;
}
.doc h4 { font-size: .84rem; margin: 0 0 .3rem; color: var(--text); font-weight: 600; }
.doc p { font-size: .82rem; line-height: 1.55; margin: 0; color: var(--dim); }

/* Patch log. The status light matches the games wall so a fix and a game
   going amber read as the same vocabulary. */
.log { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: .55rem; }
.log li {
    border: 1px solid var(--border); border-left: 2px solid var(--border);
    border-radius: 3px; padding: .7rem .9rem; background: var(--surface); min-width: 0;
}
.log li[data-kind="update"] { border-left-color: var(--accent); }
.log li[data-kind="fix"]    { border-left-color: var(--esp-warn); }
.log li[data-kind="notice"] { border-left-color: var(--dim); }
.log li.empty { color: var(--dim); font-size: .84rem; border-left-color: var(--border); }
.loghead { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.loghead .ver {
    font-family: var(--mono); font-size: .7rem; letter-spacing: .06em;
    color: var(--dim); border: 1px solid var(--border); border-radius: 3px; padding: 1px 5px;
}
.loghead strong { font-size: .86rem; font-weight: 600; color: var(--text); min-width: 0; }
.loghead .when { margin-left: auto; font-size: .72rem; color: var(--dim); white-space: nowrap; }
.log li p { margin: .4rem 0 0; font-size: .82rem; line-height: 1.55; color: var(--dim); }

/* ---------- hero call to action ---------- */
.cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0 0; }
.cta .btn { padding: 9px 18px; }

/* ---------- scroll reveal ----------
   Transform and opacity only, so this stays on the compositor and cannot
   cause layout thrash on a long page. .willrise is added by script, so with
   JS off nothing is ever hidden. */
.willrise {
    opacity: 0; transform: translateY(14px);
    transition: opacity .55s cubic-bezier(0.2,0.7,0.3,1), transform .55s cubic-bezier(0.2,0.7,0.3,1);
}
.willrise.shown { opacity: 1; transform: none; }

/* Cards lift slightly under the pointer. Skipped on touch, where there is no
   hover state and the effect just sticks after a tap. */
@media (hover: hover) {
    .doc, .log li { transition: border-color .18s, transform .18s; }
    .doc:hover, .log li:hover { border-color: var(--border-bright); transform: translateY(-1px); }
}

@media (prefers-reduced-motion: reduce) {
    .willrise { opacity: 1; transform: none; transition: none; }
    .doc:hover, .log li:hover { transform: none; }
}

/* Ticket call-out on the order page. Bordered rather than filled so it reads
   as an alternative to the form above, not a warning about it. */
.ticketcue {
    margin-top: 30px; padding: 20px; border: 1px solid var(--border);
    border-left: 2px solid var(--accent); border-radius: 3px; background: var(--surface);
}
.ticketcue h3 { margin: 0 0 .5rem; font-size: .95rem; color: var(--text); font-weight: 600; }
.ticketcue p { margin: 0 0 1rem; font-size: .86rem; line-height: 1.6; color: var(--muted); }

/* Price ladder. The tier cards sell the three obvious choices; the table is
   for the person who wants to see the per-day maths before committing. */
.ladder { width: 100%; border-collapse: collapse; margin-top: 26px; font-size: .84rem; }
.ladder caption {
    caption-side: top; text-align: left; color: var(--dim);
    font-size: .78rem; padding-bottom: 10px;
}
.ladder th, .ladder td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.ladder th {
    font-family: var(--mono); font-size: .68rem; letter-spacing: .12em;
    text-transform: uppercase; color: var(--dim); font-weight: 500;
}
.ladder td { color: var(--muted); }
.ladder td:first-child { color: var(--text); }
.ladder tbody tr:last-child td { border-bottom: 0; color: var(--text); }
.tier .price small {
    display: block; margin-top: 4px; font-size: .68rem; letter-spacing: .04em;
    color: var(--dim); font-weight: 400;
}

/* A price table is the one thing that must never be cut off on a phone. */
@media (max-width: 560px) {
    .ladder { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ---------- corner brackets instead of the accent stripe ----------
   A rounded card with a coloured rule down its left edge is the house style
   of every generated interface going, and it read like one. These use the
   shape the script actually draws in the world: hard corners, two brackets,
   a monospace label. Applied by overriding rather than rewriting the markup,
   so the HTML stays about content. */
.doc, .log li, .ticketcue {
    border-radius: 0;
    border: 1px solid var(--border);
    position: relative;
}
.doc::before, .doc::after,
.log li::before, .log li::after,
.ticketcue::before, .ticketcue::after {
    content: ''; position: absolute; width: 9px; height: 9px;
    border-style: solid; border-color: var(--accent); pointer-events: none;
}
.doc::before, .log li::before, .ticketcue::before {
    top: -1px; left: -1px; border-width: 1px 0 0 1px;
}
.doc::after, .log li::after, .ticketcue::after {
    bottom: -1px; right: -1px; border-width: 0 1px 1px 0;
}

/* The kind colours move to the brackets, since the stripe they used to sit
   on is gone. */
.log li[data-kind="fix"]::before, .log li[data-kind="fix"]::after { border-color: var(--esp-warn); }
.log li[data-kind="notice"]::before, .log li[data-kind="notice"]::after { border-color: var(--dim); }
.log li.empty::before, .log li.empty::after { border-color: var(--border); }

/* Headings read as readouts rather than titles. */
.doc h4, .ticketcue h3 {
    font-family: var(--mono); font-size: .74rem; letter-spacing: .13em;
    text-transform: uppercase; color: var(--text); font-weight: 500;
}
.loghead .ver {
    border-radius: 0; letter-spacing: .1em;
}
@media (hover: hover) {
    .doc:hover, .log li:hover { transform: none; border-color: var(--border-bright); }
    .doc:hover::before, .doc:hover::after { border-color: var(--fov-active); }
}
