@font-face {
  font-family: "Jersey 15"; font-weight: 400; font-display: swap;
  src: url("/static/fonts/jersey15-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0;
}
@font-face {
  font-family: "Jersey 15"; font-weight: 400; font-display: swap;
  src: url("/static/fonts/jersey15-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, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jersey Body"; font-weight: 400; font-display: swap; size-adjust: 128%;
  src: url("/static/fonts/jersey15-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0;
}
@font-face {
  font-family: "Jersey Body"; font-weight: 400; font-display: swap; size-adjust: 128%;
  src: url("/static/fonts/jersey15-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, U+FEFF, U+FFFD;
}


:root {
  color-scheme: dark;
  --night: #0d1f2b; --ink: #1f1e1d; --cream: #f6ead7; --muted: #c9c0b0;
  --coral: #d97757; --coral-light: #f0a07e; --gold: #f2c14e; --grass: #76b548;
  --turquoise: #57c7d4; --panel: rgba(9, 15, 19, .94); --bad: #ff9c8a; --good: #9be36b;
  --font-display: "Jersey 15", ui-monospace, monospace;
  --font-body: "Jersey Body", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --edge: 0 -4px 0 #000, 0 4px 0 #000, -4px 0 0 #000, 4px 0 0 #000;
  --gutter: clamp(1rem, 5vw, 4rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { font-synthesis: none; margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; background: var(--night); color: var(--cream); font: 17px/1.6 var(--font-body); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.05; margin: 0 0 .45em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.5vw, 2.7rem); color: var(--gold); text-shadow: 3px 3px 0 #0006; }
h3 { font-size: 1.75rem; color: var(--accent, var(--gold)); }
p { margin: 0 0 1em; }
strong { font-weight: 400; color: var(--gold); }
a { color: var(--coral-light); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
code { font: 1em var(--font-body); background: #0007; padding: .1em .4em; color: var(--gold); overflow-wrap: anywhere; }
svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 30; background: var(--gold); color: var(--ink); padding: .5em 1em; }
.skip-link:focus { left: 8px; }
.fine-print { font-size: .88rem; color: var(--muted); margin: 0 0 .8em; }

.site-header { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.25rem; min-height: 64px; padding: .3rem clamp(1rem, 4vw, 2.5rem); background: #0a161e; border-bottom: 4px solid #050b0f; }
.brand { display: flex; align-items: center; gap: .6rem; margin-right: auto; color: var(--gold); text-decoration: none; font: 400 1.7rem var(--font-display); }
.site-header nav { display: flex; gap: .1rem; order: 3; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.site-header nav a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: .3rem .8rem; color: var(--cream); text-decoration: none; font: 400 1.3rem var(--font-display); }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--ink); background: var(--gold); }
.logout { display: flex; align-items: center; gap: .4rem; order: 2; }
.who { font: 400 1.25rem var(--font-display); color: var(--turquoise); max-width: 11em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-button { min-height: 44px; padding: 0 .8rem; border: 0; background: #1f1e1d; color: var(--cream); font: 400 1.2rem var(--font-display); cursor: pointer; box-shadow: inset 0 0 0 3px #000, inset 3px 3px 0 #4a4744, inset -3px -3px 0 #000; }
.link-button:hover { background: var(--coral); color: var(--ink); }
@media (min-width: 760px) { .site-header nav { order: 1; margin-left: 1rem; } .brand { margin-right: 0; } .logout { margin-left: auto; } }

.mascot { width: 64px; height: 40px; flex: none; }
.mascot-mini { width: 38px; height: 24px; }
.mascot-eyes { animation: blink 5s steps(1) infinite; transform-box: fill-box; transform-origin: center; }
.legs-b { visibility: hidden; }
.mascot-walking .legs-a { animation: step-a .5s steps(1) infinite; }
.mascot-walking .legs-b { animation: step-b .5s steps(1) infinite; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 94%, 97% { transform: scaleY(.1); } }
@keyframes step-a { 0%, 49% { visibility: visible; } 50%, 100% { visibility: hidden; } }
@keyframes step-b { 0%, 49% { visibility: hidden; } 50%, 100% { visibility: visible; } }

.stage { position: relative; overflow: hidden; padding: clamp(1.5rem, 5vw, 3.2rem) var(--gutter) calc(64px + 1.2rem); background: var(--night) url("/static/img/scene.png") center bottom / cover no-repeat; image-rendering: pixelated; }
.stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: url("/static/img/grass.png") 0 0 / 158px 64px repeat-x; image-rendering: pixelated; }
.stage-inner { position: relative; z-index: 2; max-width: 1040px; margin: auto; }
.eyebrow { display: block; font: 400 1.4rem var(--font-display); color: var(--turquoise); text-shadow: 2px 2px 0 #000; }
.stage h1 { font-size: clamp(2.8rem, 9vw, 5.4rem); color: var(--gold); margin: 0 0 .15em; text-shadow: 0 4px 0 #a4562f, 0 8px 0 #0005; overflow-wrap: anywhere; }
.lead { font-size: clamp(1.05rem, 2.4vw, 1.25rem); max-width: 32em; margin: 0; text-shadow: 1px 2px 0 #000, 0 0 10px var(--night); }
.walker { position: absolute; z-index: 3; bottom: 38px; left: 0; animation: roam 22s linear infinite alternate; }
@keyframes roam { from { transform: translateX(8vw); } to { transform: translateX(calc(100vw - 88px)); } }
@media (prefers-reduced-motion: reduce) { .walker { animation: none; transform: translateX(calc(100vw - 100px)); } .mascot-walking * { animation: none !important; } }

.content { flex: 1; padding: 2.2rem var(--gutter) 3rem; background: linear-gradient(#0d1f2bf2, #0d1f2bf2), url("/static/img/stone.png") 0 0 / 256px 256px; image-rendering: auto; }
.content > * { max-width: 1040px; margin-left: auto; margin-right: auto; }
.panel { position: relative; padding: 1.2rem 1.4rem 1.3rem; background: var(--panel); box-shadow: var(--edge), inset 4px 4px 0 #ffffff14, inset -4px -4px 0 #00000080; margin-bottom: 1.6rem; }
.two-col { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.75rem; align-items: start; }
.login-panel { max-width: 460px !important; }
.lead-dark { font-size: 1.15rem; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: .5rem 1.25rem; color: var(--ink); background: var(--grass); border: 0; cursor: pointer; text-decoration: none; font: 400 1.5rem var(--font-display); box-shadow: inset 4px 4px 0 #a7d97f, inset -4px -4px 0 #3f7d33; }
.button:hover { color: var(--ink); background: var(--gold); box-shadow: inset 4px 4px 0 #fbe19b, inset -4px -4px 0 #c9932c; }
.button-off { background: #55504a; color: var(--muted); cursor: not-allowed; box-shadow: inset 4px 4px 0 #6d675f, inset -4px -4px 0 #38342f; }
.button-off:hover { background: #55504a; color: var(--muted); box-shadow: inset 4px 4px 0 #6d675f, inset -4px -4px 0 #38342f; }
.text-link { display: inline-block; padding: .6rem .8rem; font: 400 1.3rem var(--font-display); }

label { display: block; margin: 1rem 0 .3rem; font: 400 1.35rem var(--font-display); color: var(--turquoise); }
input[type=text], input[type=password] { width: 100%; min-height: 52px; padding: .4rem .8rem; border: 0; background: #000; color: var(--cream); font: 1.2rem var(--font-body); box-shadow: inset 4px 4px 0 #373737, inset -4px -4px 0 #6b6b6b; }
input:focus-visible { outline-offset: 0; }
.login-panel form .button { width: 100%; margin-top: 1.4rem; }
.hints { list-style: none; margin: 1.4rem 0 0; padding: 1rem 0 0; border-top: 2px solid #fff2; color: var(--muted); font-size: .95rem; }
.hints li { position: relative; padding: .2rem 0 .2rem 1.1rem; line-height: 1.4; }
.hints li::before { content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; background: var(--coral); }

.notice { margin: 0 auto 1.4rem; padding: .7rem 1rem; border-left: 6px solid var(--gold); background: #000a; }
.notice-bad { border-color: var(--bad); color: var(--bad); }
.notice-good { border-color: var(--good); color: var(--good); }
.notice-info { border-color: var(--turquoise); }
.panel .notice { margin-bottom: 1rem; }
.empty { color: var(--muted); }

.coin { display: inline-block; width: 20px; height: 20px; margin-right: .45rem; vertical-align: -3px; background: var(--gold); box-shadow: inset 4px 4px 0 #fbe19b, inset -4px -4px 0 #c9932c, 0 0 0 3px #000; }
.balance { font: 400 clamp(3.4rem, 10vw, 5rem)/1 var(--font-display); color: var(--gold); margin: 0 0 .6rem; text-shadow: 3px 3px 0 #000; }
.balance .coin { width: 34px; height: 34px; margin-right: .7rem; vertical-align: 2px; }
.balance-chip { display: inline-flex; align-items: center; margin-top: .6rem; padding: .35rem .9rem; background: #000a; font: 400 1.5rem var(--font-display); color: var(--gold); }
.scoreboard { border-right: 6px solid var(--coral); }
.scoreboard dl, .sums { margin: 0 0 1rem; display: grid; gap: .25rem; font: 400 1.4rem var(--font-display); }
.scoreboard dl > div, .sums > div { display: flex; justify-content: space-between; gap: 1rem; }
dt { color: var(--muted); } dd { margin: 0; color: var(--cream); text-align: right; }

.slot { --size: 88px; flex: none; display: grid; place-items: center; width: var(--size); height: var(--size); background: #8b8b8b; box-shadow: inset 4px 4px 0 #373737, inset -4px -4px 0 #fff, 0 0 0 4px #000; }
.slot-sm { --size: 56px; }
.ico { display: block; width: calc(var(--size, 88px) - 24px); height: calc(var(--size, 88px) - 24px); background-repeat: no-repeat; image-rendering: pixelated; }
.slot-sm .ico { width: 40px; height: 40px; }
.ico-none { background: var(--coral); box-shadow: inset 6px 6px 0 var(--coral-light), inset -6px -6px 0 #a4562f; }

.tabs { display: flex; gap: .5rem; margin-bottom: 1.8rem; overflow-x: auto; scrollbar-width: none; padding: 4px; }
.tabs a { flex: 1 0 auto; text-align: center; min-height: 54px; display: inline-flex; align-items: center; justify-content: center; padding: .3rem 1.4rem; color: var(--cream); text-decoration: none; background: #1f1e1d; font: 400 1.6rem var(--font-display); box-shadow: inset 0 0 0 3px #000, inset 4px 4px 0 #4a4744, inset -4px -4px 0 #000; }
.tabs a:hover { background: #3b3835; color: var(--gold); }
.tabs a[aria-current] { background: var(--gold); color: var(--ink); box-shadow: inset 0 0 0 3px #000, inset 4px 4px 0 #fbe19b, inset -4px -4px 0 #c9932c; }
[data-cat="1"] { --accent: var(--gold); } [data-cat="2"] { --accent: var(--turquoise); } [data-cat="3"] { --accent: var(--grass); }
.cards { list-style: none; margin: 0 auto; padding: 4px; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.6rem 1.25rem; }
.card { display: flex; flex-direction: column; align-items: flex-start; padding: 1.4rem 1.1rem 1.1rem; border: 4px solid var(--accent); background: linear-gradient(color-mix(in srgb, var(--accent) 20%, #100812), #100812 62%); box-shadow: var(--edge), 0 0 0 0 transparent; }
.card:hover { box-shadow: var(--edge), 0 0 26px color-mix(in srgb, var(--accent) 45%, transparent); }
.card .slot { margin-bottom: 1rem; }
.card h3 { margin-bottom: .3rem; }
.card p { color: var(--muted); line-height: 1.35; }
.card .price { margin: auto 0 .8rem; padding-top: .6rem; font: 400 2.1rem/1 var(--font-display); color: var(--gold); }
.card .button { align-self: stretch; }

.order-list { list-style: none; margin: 0 0 1rem; padding: 1rem; display: grid; gap: .9rem; }
.panel.order-list { padding: 1.2rem 1.4rem; }
.order { display: flex; align-items: center; gap: .9rem; }
.order-text { display: grid; min-width: 0; flex: 1; line-height: 1.25; }
.order-text strong { font: 400 1.4rem var(--font-display); overflow-wrap: anywhere; }
.order-text small { color: var(--muted); font-size: .9rem; }
.badge { flex: none; padding: .15rem .6rem; font: 400 1.1rem var(--font-display); color: var(--ink); background: var(--gold); text-align: center; }
.badge-delivered { background: var(--grass); } .badge-failed, .badge-review { background: var(--bad); } .badge-delivering { background: var(--turquoise); }

.confirm-head { display: flex; gap: 1.2rem; align-items: center; margin-bottom: 1.2rem; }
.confirm-head h2 { margin-bottom: .2em; color: var(--accent); }
.confirm-head p { margin: 0; color: var(--muted); }
.confirm-panel form { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.confirm-panel { max-width: 640px !important; }

.steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.steps li { display: grid; gap: .2rem; align-content: start; padding: 1rem; background: #0007; box-shadow: inset 0 0 0 3px #000, inset 4px 4px 0 #ffffff12; color: var(--muted); }
.steps li strong { font: 400 1.6rem var(--font-display); }
.step-no { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: .4rem; background: var(--coral); color: var(--ink); font: 400 1.6rem var(--font-display); box-shadow: inset 3px 3px 0 var(--coral-light), inset -3px -3px 0 #a4562f; }

.site-footer > * { max-width: 1040px; margin-left: auto; margin-right: auto; }
.site-footer { padding: 1.5rem var(--gutter) 2rem; background: #07101a; border-top: 4px solid #050b0f; }
.site-footer .footer-brand { display: flex; align-items: center; gap: .6rem; margin: 0 auto .6rem; font: 400 1.7rem var(--font-display); color: var(--gold); }

@media (max-width: 760px) {
  .two-col, .steps ol { grid-template-columns: minmax(0, 1fr); }
  .scoreboard { border-right: 0; border-bottom: 6px solid var(--coral); }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .tabs a { padding: .3rem .8rem; font-size: 1.4rem; }
  .confirm-head { flex-direction: column; align-items: flex-start; }
  .who { max-width: 7em; }
  .order { flex-wrap: wrap; }
  .order-text { flex-basis: 8rem; }
  .badge { margin-left: 72px; }
}
