/* Scraplight public site. Same world as the app: brass and phosphor on dark steel. Fonts are self-hosted (SIL OFL 1.1, ./fonts). */
@font-face { font-family: 'Oxanium'; font-weight: 200 800; font-display: swap; src: url('fonts/oxanium-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: 'Oxanium'; font-weight: 200 800; font-display: swap; src: url('fonts/oxanium-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+A720-A7FF; }
@font-face { font-family: 'Chakra Petch'; font-weight: 400; font-display: swap; src: url('fonts/chakra-petch-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: 'Chakra Petch'; font-weight: 400; font-display: swap; src: url('fonts/chakra-petch-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+A720-A7FF; }
@font-face { font-family: 'Chakra Petch'; font-weight: 600; font-display: swap; src: url('fonts/chakra-petch-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: 'Chakra Petch'; font-weight: 600; font-display: swap; src: url('fonts/chakra-petch-600-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+A720-A7FF; }
@font-face { font-family: 'Share Tech Mono'; font-weight: 400; font-display: swap; src: url('fonts/share-tech-mono-400-latin.woff2') format('woff2'); }

:root {
  color-scheme: dark;
  --bg: #0a0c0a; --surface: #14181a; --surface2: #1c2124; --steel: #2a3034; --steel-hi: #5f6a70; --steel-lo: #0f1214; --rivet: #7d878d;
  --text: #e8ebe4; --dim: #a9b0a6; --brass: #f2b35b; --brass-hi: #ffcf7a; --on-accent: #0b0d0a;
  /* phosphor: Fallout 1 green; Fallout 2 re-tints it below */
  --phos: #8dff9c; --phos-dim: #5fcf72; --crt: #06120a; --deep: #0c2612; --accent: #7cf08c;
  --display: 'Oxanium', 'Chakra Petch', system-ui, sans-serif;
  --body: 'Chakra Petch', system-ui, sans-serif;
  --mono: 'Share Tech Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}
body:has(#g-fo2:checked) { --phos: #ffc35a; --phos-dim: #e0a040; --crt: #130c04; --deep: #2b1a06; --accent: #ffb03a; }

* { box-sizing: border-box; }
html { background: var(--bg); scrollbar-color: var(--steel-hi) var(--bg); scroll-padding-top: 24px; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.6 var(--body); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
::selection { background: var(--brass); color: var(--on-accent); }
a { color: var(--brass-hi); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
.skip:hover { color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; left: var(--gutter); top: -60px; background: var(--brass); color: var(--on-accent); padding: 8px 14px; border-radius: 0 0 6px 6px; z-index: 10; text-decoration: none; font-weight: 600; }
.skip:focus { top: 0; }
.wrap { width: min(1480px, 100% - 2 * var(--gutter)); margin-inline: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); max-width: 17ch; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.15rem; letter-spacing: 0; }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { margin: 0; padding: 0; }
.dim { color: var(--dim); }

/* top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-block: 22px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font: 800 1.35rem/1 var(--display); letter-spacing: .14em; }
.brand:hover { color: var(--brass-hi); }
.brand svg { width: 40px; height: 40px; flex: none; }
.top nav { display: flex; gap: 6px 26px; flex-wrap: wrap; }
.top nav a { color: var(--dim); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.top nav a:hover, .top nav a[aria-current] { color: var(--text); border-bottom-color: var(--brass); }

/* first viewport: the loader on the left, the game on the right */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); padding-block: clamp(16px, 3vw, 40px) clamp(40px, 6vw, 80px); align-items: center; }
.hero h1 { margin-bottom: 18px; }
.lede { color: var(--dim); margin-bottom: 24px; max-width: 52ch; }
.stage .crt { padding: clamp(8px, 1vw, 14px); }
.stage img { display: block; width: 100%; height: auto; border-radius: 6px; background: var(--crt); box-shadow: 0 0 0 1px #000, inset 0 0 40px var(--deep); }

/* the CRT: bezel, then screen */
.crt { padding: 12px; border-radius: 16px; background: linear-gradient(180deg, #3a4247, var(--steel) 40%, var(--steel-lo)); box-shadow: 0 1px 0 rgba(255,255,255,.14) inset, 0 18px 40px rgba(0,0,0,.55), 0 2px 6px rgba(0,0,0,.6); position: relative; }
.crt::before, .crt::after { content: ''; position: absolute; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--rivet); box-shadow: 0 1px 0 #000; }
.crt::before { left: 3.5px; } .crt::after { right: 3.5px; }
.screen { position: relative; overflow: hidden; border-radius: 8px; background: var(--crt); color: var(--phos); padding: clamp(16px, 2.6vw, 28px); box-shadow: 0 0 0 1px #000, inset 0 2px 14px rgba(0,0,0,.85), inset 0 0 80px var(--deep); transition: background .4s var(--ease), box-shadow .4s var(--ease); }
.screen::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(180deg, rgba(0,0,0,.22) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }
.post { list-style: none; font: 400 clamp(.9rem, 1.2vw, 1.05rem)/1.55 var(--mono); }
.post.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px clamp(24px, 4vw, 56px); }
.chk { display: flex; align-items: baseline; gap: 10px; text-transform: uppercase; letter-spacing: .05em; }
.chk .lead { flex: 1; min-width: 12px; border-bottom: 2px dotted color-mix(in srgb, var(--phos) 40%, transparent); transform: translateY(-4px); }
.chk .ok { color: var(--crt); background: var(--phos); padding: 0 .55em; border-radius: 2px; letter-spacing: .08em; }
.post .note { font: 400 1rem/1.55 var(--body); text-transform: none; letter-spacing: 0; color: var(--text); margin: 6px 0 0 0; max-width: 60ch; }
.post .note a { color: var(--phos); }

/* the loader console */
.loader .screen { padding: clamp(16px, 2vw, 24px); }
.loader .banner { font: 400 .85rem/1 var(--mono); color: var(--phos-dim); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px; }
.rail { list-style: none; display: flex; gap: 8px; margin: 0 0 16px; font: 400 .85rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.rail li { flex: 1; padding: 0 0 8px; border-bottom: 2px solid color-mix(in srgb, var(--phos) 22%, transparent); color: var(--phos-dim); opacity: .55; transition: opacity .3s var(--ease), border-color .3s var(--ease); }
.rail li[data-on="cur"] { opacity: 1; border-bottom-color: var(--phos); color: var(--phos); }
.rail li[data-on="done"] { opacity: .9; border-bottom-color: var(--phos-dim); }
.rail b { font-weight: 400; margin-right: .4em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.chooser { border: 0; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.chooser:disabled { opacity: .5; }
.tile { position: relative; }
.tile input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; z-index: 1; }
.tile label { display: grid; grid-template-columns: 44px 1fr; gap: 0 12px; align-items: center; padding: 10px 12px; background: var(--surface); border: 1px solid var(--steel); border-radius: 8px; transition: border-color .2s var(--ease), background .2s var(--ease); }
.tile:hover label { border-color: var(--steel-hi); }
.tile input:checked + label { background: var(--surface2); border-color: var(--tint); box-shadow: 0 0 0 1px var(--tint); }
.tile input:focus-visible + label { outline: 2px solid var(--brass); outline-offset: 3px; }
.tile .num { grid-row: span 2; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 6px; background: var(--crt-t); color: var(--tint); font: 800 1.25rem/1 var(--display); box-shadow: inset 0 0 0 1px #000, inset 0 0 14px rgba(0,0,0,.7); }
.tile .name { font: 700 1.05rem/1.2 var(--display); color: var(--text); }
.tile .yr { color: var(--dim); font-size: .88rem; }
.tile.fo1 { --tint: #8dff9c; --crt-t: #06120a; }
.tile.fo2 { --tint: #ffc35a; --crt-t: #130c04; }
.lstate { display: grid; gap: 12px; align-content: start; min-height: 9.5rem; color: var(--text); font: 400 1rem/1.5 var(--body); }
.lstate p { margin: 0; max-width: none; }
.lstate .dim, .lstate .dim * { color: var(--dim); }
.lstate a:not(.play) { color: var(--brass-hi); }
.okline { color: var(--phos); font: 400 .95rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.good { color: var(--phos); }
.bad { color: #ff9a8a; }
.resume { border-left: 3px solid var(--brass); padding-left: 10px; }
.checks { list-style: none; display: grid; gap: 3px; font-size: .9rem; }
.checks li { display: grid; grid-template-columns: 2.2em 1fr auto; gap: 10px; align-items: baseline; }
.mono { font-family: var(--mono); }
.row { display: flex; gap: 8px 20px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; flex-wrap: nowrap; }
.row > .play { flex: 1 1 14rem; width: auto; }
.quiet { display: flex; gap: 6px 20px; flex-wrap: wrap; font-size: .92rem; }
.progress { height: 10px; border: 1px solid var(--phos-dim); background: rgba(0,0,0,.5); }
.progress i { display: block; height: 100%; width: 0; background: var(--phos); }
button.link { all: unset; cursor: pointer; color: var(--brass-hi); text-decoration: underline; text-underline-offset: .22em; font: 400 .95rem/1.4 var(--body); border-radius: 3px; }
button.link:hover { color: #fff; }
button.link:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.play { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 15px 20px; border: 0; border-radius: 8px; cursor: pointer; background: var(--brass); color: var(--on-accent); text-decoration: none; font: 800 1.1rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 1px 0 rgba(255,255,255,.45) inset, 0 -2px 0 rgba(0,0,0,.25) inset, 0 8px 18px rgba(0,0,0,.5); transition: transform .2s var(--ease), background .2s var(--ease); }
.play:hover { background: var(--brass-hi); color: var(--on-accent); transform: translateY(-1px); }
.play:active { transform: none; }
.play:disabled { opacity: .4; cursor: not-allowed; transform: none; background: var(--brass); }
.play svg { width: 20px; height: 20px; }
.phone-note { display: none; margin: 0 0 20px; padding: 12px 14px; background: var(--surface2); border-radius: 8px; font-size: .98rem; grid-column: 1 / -1; }
.fine { margin: 12px 0 0; font-size: .92rem; color: var(--dim); }

/* sections */
section { padding-block: clamp(40px, 6vw, 80px); border-top: 1px solid var(--steel); }
section > .wrap > h2 { margin-bottom: 28px; }

.ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.ledger > div + div { border-left: 1px solid var(--steel); padding-left: clamp(24px, 4vw, 56px); }
.ledger h3 { margin-bottom: 4px; }
.ledger .sub { color: var(--dim); font-size: .95rem; margin-bottom: 16px; }
.ledger ul { list-style: none; display: grid; gap: 10px; }
.ledger li { padding-left: 22px; position: relative; }
.ledger li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; background: var(--phos); }
.ledger > div + div li::before { background: transparent; border: 1.5px solid var(--brass); }
.tag { white-space: nowrap; font: 400 .8em var(--mono); color: var(--brass); letter-spacing: .06em; }

.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
dl.facts { margin: 0; display: grid; gap: 18px; }
dl.facts dt { font: 700 1.05rem/1.3 var(--display); }
dl.facts dd { margin: 2px 0 0; color: var(--dim); max-width: 60ch; }
.status h2 { margin-bottom: 12px; }
.status p:last-child { margin: 0; }

/* FAQ */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 64px); align-items: start; }
.faq details { border-top: 1px solid var(--steel); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font: 700 1.1rem/1.3 var(--display); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px; border: solid var(--brass); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { color: var(--brass-hi); }
.faq details > div { padding: 0 0 18px; color: var(--dim); max-width: 68ch; }
.faq details > div p:last-child { margin: 0; }

figure { margin: 0; }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.shots img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--steel); background: var(--crt); box-shadow: 0 12px 28px rgba(0,0,0,.5); }
figcaption { margin-top: 10px; color: var(--dim); font-size: .92rem; }

#go { padding-block: clamp(48px, 7vw, 96px); }
.close { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.close h2 { max-width: 24ch; }
.close .play { width: auto; min-width: 220px; }

/* prose pages */
.prose { padding-block: 24px 80px; }
.prose h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 8px; max-width: none; }
.prose .stamp { color: var(--dim); margin-bottom: 36px; }
.prose h2 { margin: 2.2em 0 .5em; font-size: 1.4rem; }
.prose ul { padding-left: 1.2em; margin-bottom: 1em; max-width: 68ch; }
.prose li { margin-bottom: .4em; }
.prose code { font: 400 .95em var(--mono); background: var(--surface2); padding: .1em .4em; border-radius: 3px; }

footer { border-top: 1px solid var(--steel); padding-block: 32px 56px; color: var(--dim); font-size: .92rem; }
footer .links { display: flex; gap: 8px 24px; flex-wrap: wrap; margin-bottom: 18px; }
footer a { color: var(--dim); }
footer a:hover { color: var(--text); }
footer p { max-width: 80ch; margin-bottom: .7em; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .post.cols { grid-template-columns: minmax(0, 1fr); }
  .two, .ledger, .shots, .faq { grid-template-columns: minmax(0, 1fr); }
  .ledger > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--steel); padding-top: 24px; }
}
@media (max-width: 700px) { .phone-note { display: block; } }
@media (max-width: 520px) {
  .chk { flex-wrap: wrap; }
  .chk .lead { display: none; }
  .chk .ok { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .cursor { animation: none; }
}
@media (forced-colors: active) {
  .screen, .tile label { border: 1px solid CanvasText; }
  .play { border: 2px solid ButtonText; }
  .chk .ok { border: 1px solid CanvasText; }
}
