/* slowvale.com — night navy, hard pixel borders and Noto Sans throughout.
   Colors mirror frontend/src/styles/pixel/tokens.css. Single dark theme by design. */

@font-face {
  font-family: "Noto Sans";
  src: url("/fonts/noto-sans-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #2a3144;
  --bg-deep: #1f2434;
  --panel: #3a4258;
  --panel-hi: #4b546b;
  --ink: #1a1d2e;
  --text: #f4ead5;
  --text-dim: #9ea6ba;
  --cream: #e9d9b4;
  --cream-2: #dcc9a2;
  --paper-dim: #6b6450;
  --paper-rule: #8b8266;
  --red: #c44536;
  --red-deep: #8d2f24;
  --yellow: #d4a53a;
  --green: #4a6d3a;
  --green-hi: #6f9a5c;
  --blue: #5a7a9a;
  --blue-hi: #7d9dbd;
  --line: 3px;
  --body: "Noto Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1120px;
  --phone-w: 375px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.px { font-family: var(--body); letter-spacing: 0; }
.kicker { font-family: var(--body); font-size: 11px; color: var(--yellow); text-transform: uppercase; letter-spacing: 0.06em; }
.sec-head { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.sec-head .px { font-size: 13px; color: var(--yellow); white-space: nowrap; }
.sec-head::after { content: ""; flex: 1; height: 0; border-top: var(--line) solid var(--ink); box-shadow: 0 1px 0 var(--panel-hi); }
h2 { font-family: var(--body); font-weight: 700; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; max-width: 22ch; margin-bottom: 14px; }
h3 { font-size: 18px; font-weight: 700; line-height: 1.3; }
.lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--text); max-width: 62ch; }
.lede--gap { margin-bottom: 22px; }
.lede--gap-sm { margin-bottom: 16px; }
.dim { color: var(--text-dim); }
.fine { font-size: 13px; color: var(--text-dim); margin-top: 22px; max-width: 70ch; }
.skip { position: absolute; left: -999px; top: 8px; padding: 8px 12px; background: var(--yellow); color: var(--ink); z-index: 30; }
.skip:focus { left: 8px; }

/* Buttons: raised pixel blocks, pressed on click. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; font-family: var(--body); font-size: 13px; text-transform: uppercase; text-decoration: none; color: var(--text); background: var(--panel); cursor: pointer; border: 0; transition: transform 90ms steps(2); box-shadow: 0 0 0 var(--line) var(--ink), inset 0 var(--line) 0 rgba(255,255,255,0.12), inset 0 calc(-1 * var(--line)) 0 rgba(0,0,0,0.3), 0 4px 0 var(--line) var(--ink); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(2px); box-shadow: 0 0 0 var(--line) var(--ink), inset 0 var(--line) 0 rgba(255,255,255,0.12), inset 0 calc(-1 * var(--line)) 0 rgba(0,0,0,0.3), 0 1px 0 var(--line) var(--ink); }
.btn:disabled { opacity: 0.7; cursor: default; transform: none; }
.btn--primary { background: var(--red); color: #fff4e6; }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 11px; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 14px; }

/* Masthead */
.mast { position: sticky; top: 0; z-index: 20; background: var(--bg-deep); box-shadow: 0 var(--line) 0 var(--ink); }
.mast__row { display: flex; align-items: center; gap: 22px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 22px; height: 22px; background: var(--yellow); box-shadow: inset 0 0 0 4px var(--ink), inset 0 0 0 7px var(--yellow); }
.brand__name { font-family: var(--body); font-size: 15px; font-weight: 700; letter-spacing: 0.04em; }
.brand__tag { font-family: var(--body); font-size: 10px; padding: 3px 6px; background: var(--yellow); color: var(--ink); }
.nav { display: flex; gap: 22px; margin-left: 10px; font-family: var(--body); font-size: 11px; text-transform: uppercase; color: var(--text-dim); }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--text); }
.mast__cta { margin-left: auto; }

/* Hero */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(28px, 4vw, 48px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) var(--phone-w); gap: clamp(28px, 5vw, 72px); align-items: start; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--body); font-size: 11px; color: var(--green-hi); text-transform: uppercase; margin-bottom: 22px; }
.eyebrow i { width: 8px; height: 8px; background: var(--green-hi); box-shadow: 0 0 0 2px var(--ink); animation: blink 1.6s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
h1 { font-family: var(--body); font-weight: 700; font-size: clamp(26px, 3.9vw, 44px); line-height: 1.25; letter-spacing: 0; margin-bottom: 22px; text-wrap: balance; }
h1 span { color: var(--yellow); }
.hero .lede { margin-bottom: 26px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.facts { display: grid; background: var(--bg-deep); box-shadow: 0 0 0 var(--line) var(--ink); }
.facts > div { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 12px 16px; border-bottom: 2px solid var(--ink); font-size: 15px; }
.facts > div:last-child { border-bottom: 0; }
.facts b { font-family: var(--body); font-size: 11px; text-transform: uppercase; padding-top: 4px; }
.facts .they b { color: var(--yellow); }
.facts .you b { color: var(--blue-hi); }
.facts .not b { color: var(--red); }
.facts .else b { color: var(--green-hi); }

/* Phone column: the game's own chrome, rebuilt in CSS */
.phone { width: var(--phone-w); max-width: 100%; background: var(--bg); box-shadow: 0 0 0 var(--line) var(--ink), 0 10px 0 var(--line) var(--ink); font-size: 14px; justify-self: end; }
.topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 8px 10px; background: var(--bg-deep); box-shadow: 0 var(--line) 0 var(--ink); font-family: var(--body); font-size: 10px; }
.topbar .chip { padding: 5px 8px; background: var(--bg); box-shadow: 0 0 0 2px var(--yellow); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .mid { text-align: center; color: var(--text-dim); white-space: nowrap; }
.topbar .money { justify-self: end; color: var(--yellow); }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--bg-deep); box-shadow: 0 var(--line) 0 var(--ink); }
.tabs span { padding: 10px 0; text-align: center; font-family: var(--body); font-size: 10px; color: var(--text-dim); }
.tabs .on { color: var(--text); background: var(--panel); box-shadow: inset 0 -3px 0 var(--yellow); }
.screen { padding: 14px 12px 16px; display: grid; gap: 12px; }
.rcard { padding: 14px 14px 14px 18px; background: var(--bg-deep); box-shadow: 0 0 0 2px var(--ink), inset 4px 0 0 var(--yellow); }
.rcard .range { font-family: var(--body); font-size: 9px; color: var(--yellow); }
.rcard .title { font-size: 18px; font-weight: 700; margin: 4px 0 8px; }
.rcard p { font-size: 13px; line-height: 1.5; color: var(--text); }
.rcard p + p { margin-top: 6px; }
.rcard .now { color: var(--text-dim); }
.rcard .now::before { content: "▸ "; color: var(--green-hi); }
.sec-mini { font-family: var(--body); font-size: 9px; color: var(--text-dim); text-transform: uppercase; }
.rrow { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; background: var(--bg-deep); box-shadow: 0 0 0 2px var(--ink); }
.rrow .ic { width: 28px; height: 28px; display: grid; place-items: center; background: var(--panel); font-size: 14px; }
.rrow .t { font-size: 13px; font-weight: 500; line-height: 1.3; }
.rrow .m { display: block; font-family: var(--body); font-size: 9px; color: var(--text-dim); margin-top: 3px; }
.rrow .go { font-family: var(--body); font-size: 9px; color: var(--yellow); white-space: nowrap; }
.dock { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--bg-deep); box-shadow: 0 calc(-1 * var(--line)) 0 var(--ink); }
.dock span { padding: 9px 0 10px; text-align: center; font-family: var(--body); font-size: 9px; color: var(--text-dim); }
.dock span::before { content: attr(data-ic); display: block; font-size: 18px; margin-bottom: 2px; }
.dock .on { color: var(--text); background: var(--panel); }
.phone-cap { margin-top: 14px; font-family: var(--body); font-size: 10px; color: var(--text-dim); line-height: 1.7; }
.phone-cap b { color: var(--text); font-weight: 400; }

/* Street strip: the commercial street from the game's own map, at native pixel size, centered and cropped
   to the band. Never tiled (the scene is one composition, its edges do not join) and never scaled. A night
   tint keeps it in the site's palette; the sidewalk sits at the bottom edge so the walker walks on it. */
.street { position: relative; height: 480px; overflow: hidden; background: linear-gradient(rgba(26,29,46,0.55), rgba(26,29,46,0.55)), url("/assets/maps/commercial_street/background.png") center top no-repeat #14192a; image-rendering: pixelated; box-shadow: 0 var(--line) 0 var(--ink), 0 calc(-1 * var(--line)) 0 var(--ink); }
.street::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0, rgba(42,49,68,0) 30%); }
.street .hud { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; gap: 8px; font-family: var(--body); font-size: 10px; }
.street .hud span { padding: 6px 10px; background: rgba(31,36,52,0.92); box-shadow: 0 0 0 2px var(--ink); color: var(--text-dim); }
.street .hud .live { color: var(--green-hi); }
/* walker.png: the six 32×64 walk frames cropped from the game's char_01 sheet, scaled by --s */
.walker { --s: 2; position: absolute; left: 0; bottom: 30px; width: calc(32px * var(--s)); height: calc(64px * var(--s)); background-image: url("/walker.png"); background-size: calc(192px * var(--s)) auto; background-position: 0 0; image-rendering: pixelated; animation: walk 0.62s steps(6) infinite, cross 22s linear infinite; }
.walker::after { content: "JILL"; position: absolute; left: 50%; top: -18px; transform: translateX(-50%); font-family: var(--body); font-size: 9px; color: var(--text); background: rgba(31,36,52,0.9); padding: 2px 5px; box-shadow: 0 0 0 2px var(--ink); }
@keyframes walk { from { background-position-x: 0; } to { background-position-x: calc(-6 * 32px * var(--s)); } }
@keyframes cross { 0% { transform: translateX(-80px); } 100% { transform: translateX(calc(100vw + 40px)); } }

/* Sections */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section--deep { background: var(--bg-deep); box-shadow: 0 var(--line) 0 var(--ink), 0 calc(-1 * var(--line)) 0 var(--ink); }

/* The receipt */
.receipt-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.receipt { background: var(--cream); color: var(--ink); padding: 26px 26px 22px; box-shadow: 0 0 0 var(--line) var(--ink), 0 8px 0 var(--line) var(--ink); font-family: var(--body); font-size: 11px; position: relative; }
.receipt::before, .receipt::after { content: ""; position: absolute; left: 0; right: 0; height: 8px; background: linear-gradient(135deg, var(--cream) 50%, transparent 50%) 0 0 / 16px 8px repeat-x, linear-gradient(225deg, var(--cream) 50%, transparent 50%) 8px 0 / 16px 8px repeat-x; }
.receipt::before { top: -8px; transform: rotate(180deg); }
.receipt::after { bottom: -8px; }
.receipt h3 { font-family: var(--body); font-size: 12px; font-weight: 700; text-align: center; letter-spacing: 0.06em; }
.receipt .meta { text-align: center; color: #5b5540; margin: 4px 0 14px; font-size: 10px; }
.receipt .col { font-size: 10px; color: #5b5540; text-transform: uppercase; display: flex; justify-content: space-between; border-bottom: 2px dashed var(--paper-rule); padding-bottom: 6px; margin: 14px 0 8px; }
.receipt ul { list-style: none; padding: 0; display: grid; gap: 7px; }
.receipt li { display: grid; grid-template-columns: 1fr auto; gap: 12px; line-height: 1.45; }
.receipt li span:last-child { white-space: nowrap; }
.receipt .total { margin-top: 14px; padding-top: 10px; border-top: 2px dashed var(--paper-rule); display: grid; grid-template-columns: 1fr auto; gap: 10px; font-weight: 700; font-size: 12px; }
.receipt__note { margin-top: 6px; font-size: 11px; }
.receipt .fine { margin-top: 12px; font-size: 9px; color: var(--paper-dim); text-align: center; line-height: 1.6; font-family: var(--body); }
.receipt-copy h2 { max-width: 20ch; }
.receipt-copy .lede { margin-bottom: 20px; }
.nots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.not { padding: 16px 16px 18px; background: var(--bg-deep); box-shadow: 0 0 0 var(--line) var(--ink); }
.not b { display: block; font-family: var(--body); font-size: 11px; color: var(--red); text-transform: uppercase; margin-bottom: 8px; }
.not b s { color: var(--text-dim); text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.not p { font-size: 14px; line-height: 1.55; color: var(--text); }

/* Her week: collapsed by default, one line per day */
.week-intro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 24px; }
.diary { max-width: 760px; background: var(--bg); box-shadow: 0 0 0 var(--line) var(--ink); }
details.day { display: block; border-bottom: 2px solid var(--ink); }
details.day:last-of-type { border-bottom: 0; }
details.day > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 150px 1fr 24px; gap: 14px; align-items: center; padding: 14px 18px; }
details.day > summary::-webkit-details-marker { display: none; }
details.day > summary:hover { background: var(--panel); }
details.day[open] > summary { background: var(--panel); border-bottom: 2px solid var(--ink); }
.daysep { display: block; font-family: var(--body); font-size: 11px; color: var(--yellow); }
.daysep small { display: block; margin-top: 3px; color: var(--text-dim); font-size: 9px; }
details.day .one { font-size: 15px; line-height: 1.45; color: var(--text); }
details.day .chev { font-family: var(--body); font-size: 13px; color: var(--yellow); text-align: right; }
details.day[open] .chev { transform: rotate(90deg); }
.day__body { display: grid; gap: 14px; padding: 18px 18px 22px; }
.day__body p { max-width: 66ch; }
.day__body p.reflect { padding: 12px 16px; background: var(--panel); box-shadow: 0 0 0 2px var(--ink); font-size: 15px; color: var(--text); }
.day__body p.reflect::before { content: "Memory · "; font-family: var(--body); font-size: 9px; color: var(--yellow); text-transform: uppercase; }
.how { font-family: var(--body); font-size: 10px; color: var(--yellow); text-decoration: none; }
.how:hover { text-decoration: underline; }
.endcard { margin-top: 26px; padding: 26px 28px; background: var(--panel); box-shadow: 0 0 0 var(--line) var(--ink); max-width: 560px; }
.endcard b { font-family: var(--body); font-size: 14px; display: block; margin-bottom: 8px; }

/* Log card in game chrome */
.card { width: 100%; max-width: 560px; background: var(--bg-deep); box-shadow: 0 0 0 var(--line) var(--ink), 0 6px 0 var(--line) var(--ink); font-size: 13px; }
.card__head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 2px solid var(--ink); background: var(--panel); }
.tag { font-family: var(--body); font-size: 9px; padding: 3px 6px; text-transform: uppercase; color: var(--ink); background: var(--yellow); }
.tag--phone { background: var(--blue-hi); }
.tag--system { background: var(--text-dim); }
.tag--moment { background: var(--green-hi); }
.card__title { font-weight: 700; font-size: 14px; }
.card__time { font-family: var(--body); font-size: 9px; color: var(--text-dim); white-space: nowrap; }
.card__body { padding: 10px 12px 12px; display: grid; gap: 7px; }
.line { display: grid; grid-template-columns: 44px 1fr; gap: 10px; line-height: 1.45; }
.line .t { font-family: var(--body); font-size: 9px; color: var(--text-dim); padding-top: 4px; }
.line.sys .b { color: var(--text-dim); }
.line.sys .b::before { content: "SYSTEM · "; font-family: var(--body); font-size: 8px; color: var(--text-dim); }
.line.ledger .b::before { content: "LEDGER · "; font-family: var(--body); font-size: 8px; color: var(--yellow); }
.line.result .b { color: var(--green-hi); }
.line.result .b::before { content: "RESULT · "; font-family: var(--body); font-size: 8px; }
.line.epic .b { color: var(--yellow); font-weight: 700; }
.sms { display: grid; gap: 8px; }
.bub { max-width: 86%; padding: 8px 10px; background: var(--panel); box-shadow: 0 0 0 2px var(--ink); line-height: 1.4; }
.bub small { display: block; font-family: var(--body); font-size: 8px; color: var(--text-dim); text-transform: uppercase; margin-bottom: 3px; }
.bub--you { justify-self: end; background: var(--blue); }
.bub--you small { color: #e6eef7; }
.sms .stamp { font-family: var(--body); font-size: 8px; color: var(--text-dim); text-align: center; }
.unread { font-family: var(--body); font-size: 9px; color: var(--red); text-align: center; padding: 6px; box-shadow: 0 0 0 2px var(--red); }

/* While you're away */
.away { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.rates { display: grid; background: var(--bg-deep); box-shadow: 0 0 0 var(--line) var(--ink); }
.rates div { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 12px 16px; border-bottom: 2px solid var(--ink); font-size: 15px; }
.rates div:last-child { border-bottom: 0; }
.rates b { font-family: var(--body); font-size: 12px; color: var(--yellow); font-weight: 400; }
.track { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 22px; gap: 6px; }
.track div { padding: 12px; box-shadow: 0 0 0 2px var(--ink); font-size: 13px; line-height: 1.4; }
.track b { display: block; font-family: var(--body); font-size: 10px; margin-bottom: 6px; }
.track .a { background: var(--green); } .track .a b { color: #dff1cf; }
.track .b { background: var(--panel); } .track .b b { color: var(--yellow); }
.track .c { background: var(--bg-deep); } .track .c b { color: var(--text-dim); }
.track .d { background: var(--red-deep); } .track .d b { color: #ffd9d3; }

/* Your only two buttons */
.two { display: grid; grid-template-columns: var(--phone-w) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.interact { padding: 12px; display: grid; gap: 10px; }
.interact h4 { margin: 0; font-family: var(--body); font-size: 11px; color: var(--yellow); }
.composer { background: var(--bg-deep); box-shadow: 0 0 0 2px var(--ink); padding: 10px; display: grid; gap: 8px; }
.composer .field { min-height: 64px; padding: 8px 10px; background: var(--bg); box-shadow: inset 0 0 0 2px var(--ink); color: var(--text-dim); font-size: 13px; }
.composer .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-family: var(--body); font-size: 9px; color: var(--text-dim); }
.composer .send { padding: 8px 12px; background: var(--blue); color: #fff; font-family: var(--body); font-size: 10px; box-shadow: 0 0 0 2px var(--ink), 0 3px 0 2px var(--ink); }
.items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.items span { padding: 10px 4px; text-align: center; background: var(--bg); box-shadow: 0 0 0 2px var(--ink); font-family: var(--body); font-size: 9px; color: var(--text); }
.items span::before { content: attr(data-ic); display: block; font-size: 18px; margin-bottom: 4px; }
.quota { font-family: var(--body); font-size: 9px; color: var(--text-dim); text-align: center; }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.col3 { background: var(--bg-deep); box-shadow: 0 0 0 var(--line) var(--ink); }
.col3 h3 { font-family: var(--body); font-size: 11px; padding: 10px 14px; background: var(--panel); border-bottom: 2px solid var(--ink); }
.col3.you h3 { color: var(--blue-hi); } .col3.res h3 { color: var(--yellow); } .col3--city h3 { color: var(--green-hi); }
.col3 dl { padding: 12px 14px 14px; display: grid; gap: 10px; }
.col3 dt { font-family: var(--body); font-size: 9px; color: var(--text-dim); text-transform: uppercase; margin-bottom: 4px; }
.col3 dd { margin: 0; font-size: 14px; line-height: 1.5; }
.col3 dd.no { color: var(--text-dim); }
.col3 dd.no::before { content: "✕ "; color: var(--red); }
.col3 dd.ok::before { content: "✓ "; color: var(--green-hi); }
.quote { margin-top: 18px; padding: 14px 16px; background: var(--panel); box-shadow: inset 4px 0 0 var(--blue-hi), 0 0 0 2px var(--ink); font-size: 15px; }
.quote small { display: block; font-family: var(--body); font-size: 9px; color: var(--text-dim); margin-top: 6px; }

/* The city */
.city { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.districts { display: grid; background: var(--bg-deep); box-shadow: 0 0 0 var(--line) var(--ink); }
.districts div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 12px 16px; border-bottom: 2px solid var(--ink); font-size: 14px; }
.districts div:last-child { border-bottom: 0; }
.districts b { font-family: var(--body); font-size: 10px; color: var(--yellow); font-weight: 400; padding-top: 4px; }
.rules { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 15px; }
.rules li { padding-left: 18px; position: relative; }
.rules li::before { content: "▸"; position: absolute; left: 0; color: var(--yellow); font-family: var(--body); font-size: 11px; top: 4px; }
.sched { background: var(--bg-deep); box-shadow: 0 0 0 var(--line) var(--ink); }
.sched h3 { font-family: var(--body); font-size: 11px; padding: 10px 14px; background: var(--panel); border-bottom: 2px solid var(--ink); color: var(--yellow); }
.sched h3 small { display: block; color: var(--text-dim); font-size: 8px; margin-top: 4px; }
.sched dl { padding: 8px 14px 12px; display: grid; gap: 8px; }
.sched div { display: grid; grid-template-columns: 1fr auto; gap: 10px; font-size: 13px; }
.sched dt { color: var(--text); } .sched dd { margin: 0; font-family: var(--body); font-size: 9px; color: var(--text-dim); text-align: right; padding-top: 4px; }

/* Make your own */
.make { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.cards4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pcard { padding: 14px; background: var(--cream); color: var(--ink); box-shadow: 0 0 0 var(--line) var(--ink), 0 5px 0 var(--line) var(--ink); }
.pcard b { display: block; font-family: var(--body); font-size: 9px; color: var(--paper-dim); text-transform: uppercase; margin-bottom: 6px; }
.pcard span { font-size: 17px; font-weight: 700; }
.pcard:nth-child(2) { transform: rotate(1.5deg); } .pcard:nth-child(3) { transform: rotate(-1deg); }

/* Get access */
.access { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.form { display: grid; gap: 12px; padding: 22px; background: var(--bg-deep); box-shadow: 0 0 0 var(--line) var(--ink); scroll-margin-top: 90px; }
.form h3 { font-family: var(--body); font-size: 12px; color: var(--yellow); }
.form label { font-family: var(--body); font-size: 10px; color: var(--text-dim); text-transform: uppercase; }
.form input { width: 100%; padding: 12px; font: inherit; color: var(--ink); background: var(--cream); border: 0; box-shadow: inset 0 0 0 2px var(--ink), inset 0 3px 0 rgba(0,0,0,0.12); }
.form .btn { justify-self: start; }
.form small, .form [data-invite-status] { font-size: 13px; color: var(--text-dim); }
/* Keep the live region in the accessibility tree while empty; only its spacing collapses. */
.form [data-invite-status]:empty { margin: 0; min-height: 0; }
.form a { color: var(--text); }
.steps { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; font-size: 15px; }
.steps li::before { counter-increment: s; content: counter(s); font-family: var(--body); font-size: 11px; color: var(--yellow); padding-top: 3px; }
.cost { padding: 22px; background: var(--panel); box-shadow: 0 0 0 var(--line) var(--ink); font-size: 15px; display: grid; gap: 10px; }
.cost h3 { font-family: var(--body); font-size: 12px; color: var(--yellow); }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--bg-deep); box-shadow: 0 0 0 2px var(--ink); }
.faq summary { list-style: none; cursor: pointer; padding: 14px 18px; font-weight: 700; display: flex; gap: 12px; align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "▸"; font-family: var(--body); font-size: 11px; color: var(--yellow); }
.faq details[open] summary::before { content: "▾"; }
.faq p { padding: 0 18px 16px 40px; color: var(--text); font-size: 15px; max-width: 70ch; }

/* CTA + footer */
.cta { padding: clamp(56px, 7vw, 96px) 0; }
.cta__box { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: clamp(24px, 4vw, 44px); background: var(--bg-deep); box-shadow: 0 0 0 var(--line) var(--ink), 0 8px 0 var(--line) var(--ink); }
.cta__box h2 { max-width: 24ch; }
.cta__box .kicker { display: block; margin-bottom: 10px; }
.cta__actions { display: grid; gap: 12px; flex: none; }
.foot { padding: 30px 0 46px; background: var(--bg-deep); box-shadow: 0 calc(-1 * var(--line)) 0 var(--ink); font-size: 13px; color: var(--text-dim); }
.foot__grid { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--body); font-size: 10px; text-transform: uppercase; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--text); }
.foot p { margin-top: 10px; max-width: 60ch; line-height: 1.6; }

/* Legal pages and 404 */
.legal-main { width: min(100% - 40px, 820px); margin: 0 auto; padding: 56px 0 100px; }
.legal-main h1 { font-family: var(--body); font-weight: 700; font-size: clamp(32px, 5vw, 48px); line-height: 1.1; margin: 8px 0 18px; }
.legal-main h2 { font-size: 24px; margin: 40px 0 10px; }
.legal-main h3 { margin: 22px 0 8px; }
.legal-main p, .legal-main li { color: var(--text); }
.legal-main p + p { margin-top: 12px; }
.legal-main ul { padding-left: 22px; }
.legal-main li + li { margin-top: 8px; }
.legal-meta { color: var(--text-dim); margin-bottom: 30px; }
.legal-note { padding: 14px 18px; background: var(--panel); box-shadow: inset 4px 0 0 var(--yellow), 0 0 0 2px var(--ink); }
.legal-main .btn { margin-top: 22px; }

/* Almanac */
.almanac { padding: 48px 0 100px; }
.almanac-head { max-width: 760px; margin-bottom: 34px; }
.almanac-head h1 { font-family: var(--body); font-weight: 700; font-size: clamp(32px, 5vw, 48px); line-height: 1.1; margin: 8px 0 14px; }
.almanac-index { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 44px; }
.almanac-index__group { display: grid; gap: 6px; padding: 14px 16px; background: var(--bg-deep); box-shadow: 0 0 0 var(--line) var(--ink); align-content: start; }
.almanac-index__group b { font-family: var(--body); font-size: 10px; color: var(--yellow); text-transform: uppercase; margin-bottom: 4px; }
.almanac-index__group a { font-size: 14px; text-decoration: none; color: var(--text); }
.almanac-index__group a:hover { color: var(--yellow); }
.almanac-group { padding-top: 24px; }
.almanac-group .fine { margin: -8px 0 18px; }
.almanac-entry { max-width: 760px; padding: 20px 22px 22px; margin-bottom: 18px; background: var(--bg-deep); box-shadow: 0 0 0 var(--line) var(--ink); scroll-margin-top: 90px; }
.almanac-entry h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; margin-bottom: 4px; }
.almanac-icon { display: inline-grid; place-items: center; width: 30px; height: 30px; background: var(--panel); box-shadow: 0 0 0 2px var(--ink); font-size: 15px; }
.almanac-blurb { font-family: var(--body); font-size: 10px; color: var(--yellow); margin-bottom: 12px; }
.almanac-entry p { max-width: 66ch; font-size: 15px; }
.almanac-entry p + p { margin-top: 10px; }
.almanac-you { margin-top: 12px; padding: 10px 14px; background: var(--panel); box-shadow: inset 4px 0 0 var(--blue-hi), 0 0 0 2px var(--ink); }
.almanac-you b { font-family: var(--body); font-size: 9px; color: var(--blue-hi); text-transform: uppercase; margin-right: 8px; }
.almanac-facts { margin-top: 14px; display: grid; background: var(--bg); box-shadow: 0 0 0 2px var(--ink); }
.almanac-facts div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 8px 12px; border-bottom: 2px solid var(--ink); font-size: 14px; }
.almanac-facts div:last-child { border-bottom: 0; }
.almanac-facts dt { font-family: var(--body); font-size: 9px; color: var(--text-dim); text-transform: uppercase; padding-top: 4px; }
.almanac-facts dd { margin: 0; }
.almanac-related { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; }
.almanac-related b { font-family: var(--body); font-size: 9px; color: var(--text-dim); text-transform: uppercase; }
.almanac-related a { padding: 3px 8px; background: var(--panel); box-shadow: 0 0 0 2px var(--ink); text-decoration: none; }
.almanac-related a:hover { color: var(--yellow); }

@media (max-width: 980px) {
  .hero__grid, .receipt-wrap, .away, .two, .city, .make, .access { grid-template-columns: 1fr; }
  .phone { justify-self: start; }
  .nav { display: none; }
  .cols { grid-template-columns: 1fr; }
  .track { grid-template-columns: 1fr 1fr; }
  .cta__box { flex-direction: column; align-items: stretch; }
  .almanac-index { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 24px, var(--wrap)); }
  .brand__tag { display: none; }
  .hero { padding-top: 28px; }
  h1 { font-size: 24px; }
  .hero__actions .btn { flex: 1; }
  .facts > div { grid-template-columns: 1fr; gap: 4px; }
  /* Phones get the game's own 375-wide night street, shown once at native size (no tiling). */
  .street { height: 240px; background: url("/assets/ui/login_hero.png") center bottom no-repeat #0d1220; }
  .walker { --s: 1; bottom: 14px; }
  .nots { grid-template-columns: 1fr; }
  .receipt { padding: 20px 16px 18px; }
  details.day > summary { grid-template-columns: 1fr 20px; }
  details.day .daysep { grid-column: 1 / -1; }
  details.day .one { font-size: 14px; }
  .day__body { padding: 14px 12px 18px; }
  .track { grid-template-columns: 1fr; }
  .districts div { grid-template-columns: 1fr; gap: 2px; }
  .cards4 { grid-template-columns: 1fr 1fr; }
  .card { max-width: 100%; }
  .phone { width: 100%; box-shadow: 0 0 0 var(--line) var(--ink); }
  .legal-main { width: min(100% - 24px, 820px); padding-top: 36px; }
  .almanac-index { grid-template-columns: 1fr; }
  .almanac-facts div { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .eyebrow i { animation: none; }
  .walker { animation: none; transform: translateX(40vw); }
  .btn, .btn:hover { transition: none; transform: none; }
}
