/* SHOPLOTS · "After Hours on Shoplot Street"
   Flat colour only. No rounded corners, no blurred shadows, no gradients. All motion uses steps().
   Art is shown only at 256 / 512 / 768 / 1024 CSS px; smaller slots crop it inside a window. */

@font-face { font-family: "Silkscreen"; src: url("../fonts/silkscreen-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* night (sampled from brand/logo.png) */
  --night-sky: #3b3866;
  --night-ground: #373560;
  --ground-line: #201f38;
  --sign-box: #1e2a48;
  --sign-deep: #16203a;
  --sign-mid: #2b3a60;
  --sign-cyan: #3ae0ff;
  --roof-lip: #39b6e2;
  --moon-cream: #f4f0d8;
  --lit-window: #f6d27a;
  --neon-pink: #ff8ad0;
  --dim: #a3abc6;
  /* storeys (sampled from the GIFs) */
  --storey-red: #e8463c;
  --red-text: #ff8078;
  --storey-mustard: #f2b230;
  --storey-teal: #2aa0a8;
  --teal-text: #4fc7cf;
  /* lots: background / ground line / ground band (GIF rows 0-927 / 928-935 / 936-1023) */
  --nightmarket: #7a6ad8; --nightmarket-gl: #433a77; --nightmarket-band: #7364cb;
  --arcade: #ffc8a8; --arcade-gl: #8c6e5c; --arcade-band: #f0bc9e;
  --flowershop: #ffd6e0; --flowershop-gl: #8c767b; --flowershop-band: #f0c9d3;
  --recordshop: #b8d8ff; --recordshop-gl: #65778c; --recordshop-band: #adcbf0;
  --cornerstore: #bfe3d8; --cornerstore-gl: #697d77; --cornerstore-band: #b4d5cb;
  --repairshop: #f6e7b8; --repairshop-gl: #877f65; --repairshop-band: #e7d9ad;

  --sign: "Silkscreen", monospace;
  --text: "Inter Tight", sans-serif;
  --mono: "JetBrains Mono", monospace;
  --step: polygon(0 4px, 4px 4px, 4px 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px));
  /* ground geometry at each art size: line top / line height / band below line */
  --gy768: 696px; --gh768: 6px; --gb768: 72px;
  --gy512: 464px; --gh512: 4px; --gb512: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--night-sky); color: var(--moon-cream); font: 400 18px/1.6 var(--text); overflow-x: hidden; }
img { display: block; max-width: none; }
.px, .gif { image-rendering: pixelated; image-rendering: crisp-edges; }
a { color: var(--sign-cyan); }
h1, h2, h3, p, dl, dd { margin: 0; }
b { font-weight: 700; }
code { font: 400 16px var(--mono); color: var(--sign-cyan); }
[hidden] { display: none !important; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

:focus-visible { outline: 2px solid var(--sign-cyan); outline-offset: 2px; box-shadow: 0 0 0 2px var(--sign-box); }
.btn:focus-visible, .pill:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--sign-cyan), inset 0 0 0 4px var(--sign-box); }

.skip { position: absolute; left: 16px; top: -80px; z-index: 50; background: var(--sign-box); color: var(--sign-cyan); padding: 8px 12px; font: 16px var(--sign); text-transform: uppercase; }
.skip:focus { top: 8px; }

/* ---------- shared signage ---------- */
.litsign, .panel h2 {
  display: inline-block; font: 400 32px/1 var(--sign); text-transform: uppercase; letter-spacing: .02em;
  color: var(--sign-cyan); background: var(--sign-box); padding: 14px 20px;
  box-shadow: inset 0 2px 0 var(--sign-cyan), inset 0 -2px 0 var(--sign-cyan);
}
.note { font-size: 16px; color: var(--moon-cream); }
.sec-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-bottom: 32px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 400 16px/1 var(--sign); text-transform: uppercase; letter-spacing: .02em;
  clip-path: var(--step);
}
.btn.sign { background: var(--sign-box); color: var(--sign-cyan); box-shadow: inset 0 4px 0 var(--sign-cyan), inset 0 -4px 0 var(--sign-cyan); padding: 0 24px; }
.btn.sign:hover:not(:disabled) { background: var(--sign-mid); animation: flick .2s steps(1) 1; }
.btn.big { min-height: 64px; font-size: 24px; }
.btn.neon { background: var(--sign-box); color: var(--teal-text); box-shadow: inset 0 2px 0 var(--storey-teal), inset 0 -2px 0 var(--storey-teal); }
.btn.neon:hover:not(:disabled) { background: var(--sign-mid); }
.btn.plate { min-height: 40px; padding: 0 14px; background: var(--sign-mid); color: var(--moon-cream); box-shadow: inset 0 2px 0 var(--roof-lip); }
.btn.plate:hover:not(:disabled) { color: var(--sign-cyan); }
.btn:disabled { background: var(--sign-deep); color: #8e97b4; box-shadow: inset 0 2px 0 #4a5578, inset 0 -2px 0 #4a5578; cursor: not-allowed; }
.btn.full { width: 100%; }
.btn.grow { flex: 1; }
.textlink { font: 400 16px var(--sign); text-transform: uppercase; color: var(--moon-cream); text-decoration: none; padding: 12px 4px; }
.textlink:hover { color: var(--sign-cyan); animation: flick .2s steps(1) 1; }

/* roof slab: 12px navy slab, 4px cyan lip on top, overhanging 8px each side */
.panel { position: relative; background: var(--sign-box); color: var(--moon-cream); padding: 24px; margin-top: 16px; }
.panel::before { content: ""; position: absolute; left: -8px; right: -8px; top: -16px; height: 16px; background: var(--sign-box); box-shadow: inset 0 4px 0 var(--roof-lip), inset 0 -4px 0 var(--sign-deep); }
.panel h2 { font-size: 24px; padding: 10px 14px; }

/* ---------- header ---------- */
.hdr { position: fixed; top: 0; left: 0; right: 0; z-index: 20; }
.hdr.scrolled { background: var(--sign-box); box-shadow: inset 0 4px 0 var(--roof-lip), 0 4px 0 var(--ground-line); }
.hdr-in { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 32px; }
.brand { display: block; line-height: 0; }
.links { display: flex; gap: 24px; margin-left: auto; }
.links a { font: 400 16px/1 var(--sign); text-transform: uppercase; letter-spacing: .02em; color: var(--moon-cream); text-decoration: none; padding: 8px 0; }
.links a:hover { color: var(--sign-cyan); animation: flick .2s steps(1) 1; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 0; cursor: pointer;
  background: var(--sign-box); color: var(--sign-cyan); font: 400 16px/1 var(--sign); text-transform: uppercase;
  box-shadow: inset 0 2px 0 var(--sign-cyan), inset 0 -2px 0 var(--sign-cyan); clip-path: var(--step); white-space: nowrap;
}
.pill .dot { width: 8px; height: 8px; background: #5d6788; }
.pill.on .dot { background: #3ddc5c; }
.pill.on #pill-t { font-family: var(--mono); font-size: 16px; text-transform: none; }
.pill.warn .dot { background: var(--storey-mustard); animation: blink 1s steps(1) infinite; }

/* ---------- 1 · hero ---------- */
.stars { position: absolute; inset: 0; pointer-events: none; }
.stars::before, .stars::after { content: ""; position: absolute; left: 0; top: 0; width: 2px; height: 2px; background: #b9b5dc; }
.stars::before { box-shadow: 40px 90px #b9b5dc, 130px 210px #f4f0d8, 220px 60px #b9b5dc, 310px 340px #b9b5dc, 380px 150px #f4f0d8, 470px 420px #b9b5dc, 560px 110px #b9b5dc, 640px 260px #f4f0d8, 700px 470px #b9b5dc, 90px 520px #b9b5dc, 260px 600px #f4f0d8, 520px 560px #b9b5dc, 1480px 120px #b9b5dc, 1540px 380px #f4f0d8, 1600px 240px #b9b5dc, 1680px 90px #b9b5dc, 1750px 450px #f4f0d8, 1820px 200px #b9b5dc, 1900px 330px #b9b5dc, 1990px 140px #f4f0d8, 1400px 560px #b9b5dc, 1640px 610px #b9b5dc; }
.stars::after { width: 4px; height: 4px; background: #f4f0d8; box-shadow: 170px 380px #f4f0d8, 450px 250px #d8d4f0, 610px 60px #f4f0d8, 1570px 170px #d8d4f0, 1720px 300px #f4f0d8, 1860px 520px #d8d4f0; }
.stars i { position: absolute; width: 4px; height: 4px; background: var(--moon-cream); animation: twinkle 3.2s steps(1) infinite; }
.stars i:nth-child(1) { left: 6%; top: 18%; }
.stars i:nth-child(2) { left: 14%; top: 44%; animation-duration: 4.4s; }
.stars i:nth-child(3) { left: 27%; top: 12%; animation-duration: 2.6s; }
.stars i:nth-child(4) { left: 38%; top: 58%; animation-duration: 5s; }
.stars i:nth-child(5) { left: 88%; top: 10%; animation-duration: 3.8s; }
.stars i:nth-child(6) { left: 94%; top: 36%; animation-duration: 2.9s; }
.stars i:nth-child(7) { left: 3%; top: 70%; width: 2px; height: 2px; animation-duration: 4.1s; }
.stars i:nth-child(8) { left: 47%; top: 30%; width: 2px; height: 2px; animation-duration: 3.5s; }
.eyebrow { font: 400 16px/1.4 var(--sign); text-transform: uppercase; letter-spacing: .02em; color: var(--sign-cyan); margin-bottom: 24px; }
.lede { margin-top: 24px; max-width: 34ch; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; }
.ground { position: relative; background: var(--night-ground); border-top: var(--gh768) solid var(--ground-line); }
.ticker { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 16px 32px; }
.ticker div { display: flex; align-items: baseline; gap: 12px; }
.ticker dt { font: 400 16px/1 var(--sign); text-transform: uppercase; color: var(--dim); }
.ticker dd { font: 700 24px/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--sign-cyan); }

/* ---------- 2 · mint: the counter ---------- */
.head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mint-panel .row + .row, .mint-panel .row + .hint { margin-top: 20px; }
.mint-panel .hint + .btn, .mint-panel .hint + .row, .mint-panel .btn + .row { margin-top: 20px; }
.status {
  font: 400 16px/1 var(--sign); text-transform: uppercase; letter-spacing: .02em; padding: 10px 12px; white-space: nowrap;
  background: var(--sign-deep); clip-path: var(--step); font-variant-numeric: tabular-nums;
}
.status.off { color: #8e97b4; box-shadow: inset 0 2px 0 #4a5578, inset 0 -2px 0 #4a5578; }
.status.open { color: var(--sign-cyan); box-shadow: inset 0 2px 0 var(--sign-cyan), inset 0 -2px 0 var(--sign-cyan); animation: flicker-on .6s steps(1) 1; }
.status.hot { color: var(--storey-mustard); box-shadow: inset 0 2px 0 var(--storey-mustard), inset 0 -2px 0 var(--storey-mustard); }
.status.stale { color: var(--red-text); box-shadow: inset 0 2px 0 var(--storey-red), inset 0 -2px 0 var(--storey-red); }
.count { font: 700 48px/1 var(--mono); color: var(--sign-cyan); font-variant-numeric: tabular-nums; }
.count > span { color: var(--dim); font-size: 24px; font-weight: 400; }
.meter { position: relative; display: flex; height: 16px; margin: 16px 0 12px; background: var(--sign-mid); }
.meter i { display: block; height: 100%; width: 0; }
#meter-free { background: var(--storey-teal); }
#meter-paid { background: var(--storey-mustard); }
.meter::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Crect x='6' width='2' height='8' fill='%231e2a48'/%3E%3C/svg%3E"); }
.split { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.split b { font: 700 16px var(--mono); color: var(--sign-cyan); margin-right: 16px; }
.key { width: 12px; height: 12px; display: inline-block; }
.k-free { background: var(--storey-teal); }
.k-paid { background: var(--storey-mustard); }
.gate { padding: 12px 14px; background: var(--sign-deep); font-size: 16px; }
.gate.cold { }
.gate.hot { }
.gate .clock { font: 700 16px var(--mono); color: var(--storey-mustard); background: #0f1629; padding: 2px 6px; letter-spacing: .06em; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 12px 0; box-shadow: inset 0 2px 0 var(--sign-mid), inset 0 -2px 0 var(--sign-mid); font-size: 16px; }
.lbl { font: 400 16px var(--sign); text-transform: uppercase; color: var(--dim); }
#price { font: 700 24px var(--mono); color: var(--sign-cyan); font-variant-numeric: tabular-nums; }
#price-usd { color: var(--dim); }
.buy-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.buy-row #buy { flex: 1 1 260px; }
.stepper { display: flex; }
.stepper button { width: 48px; border: 0; cursor: pointer; background: var(--sign-mid); color: var(--sign-cyan); font: 400 24px/1 var(--sign); box-shadow: inset 0 -4px 0 var(--sign-deep); clip-path: var(--step); }
.stepper button:hover:not(:disabled) { background: #36497a; }
.stepper button:active:not(:disabled) { box-shadow: inset 0 4px 0 var(--sign-deep); }
.stepper button:disabled { color: #5d6788; cursor: not-allowed; }
.stepper button:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--sign-cyan), inset 0 0 0 4px var(--sign-box); }
.stepper output { min-width: 48px; display: grid; place-items: center; font: 700 24px/1 var(--mono); color: var(--sign-cyan); font-variant-numeric: tabular-nums; }
.hint { margin-top: 8px; font-size: 16px; color: var(--dim); }
.wallet-row { padding-top: 16px; box-shadow: inset 0 2px 0 var(--sign-mid); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.wline { font-size: 16px; overflow-wrap: anywhere; }
.wline .mono { font: 700 16px var(--mono); color: var(--sign-cyan); }
.wbtns { display: flex; gap: 8px; flex-wrap: wrap; }

/* tx states */
.tx { position: relative; margin-top: 16px; padding: 12px 14px; background: var(--sign-deep); font-size: 16px; overflow-wrap: anywhere; box-shadow: inset 0 2px 0 var(--roof-lip), inset 0 -2px 0 var(--roof-lip); }
.tx p + p { margin-top: 6px; }
.tx .btn { margin-top: 10px; }
.tx.busy { padding-left: 64px; box-shadow: inset 0 2px 0 var(--lit-window), inset 0 -2px 0 var(--lit-window); }
.tx.busy::before { content: ""; position: absolute; left: 14px; top: 50%; margin-top: -6px; width: 8px; height: 12px; animation: lanterns .9s steps(1) infinite; }
.tx.ok { box-shadow: inset 0 2px 0 var(--lit-window), inset 0 -2px 0 var(--lit-window); }
.tx.ok p:first-child { color: var(--lit-window); font-weight: 700; }
.tx.error { padding-left: 52px; box-shadow: inset 0 4px 0 var(--storey-red), inset 0 -4px 0 var(--storey-red); }
.tx.error::before { content: "!"; position: absolute; left: 14px; top: 12px; width: 24px; height: 24px; display: grid; place-items: center; background: var(--storey-red); color: var(--sign-box); font: 400 16px/1 var(--sign); clip-path: var(--step); }
.tx.info { box-shadow: inset 0 2px 0 var(--sign-cyan), inset 0 -2px 0 var(--sign-cyan); }
.fresh { list-style: none; margin: 16px 0 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.fresh a { display: block; text-decoration: none; font: 700 16px var(--mono); color: var(--sign-cyan); text-align: center; }

/* kiosk overlays: +1 bubble on success, CLOSED sign when sold out */
#mint[data-tx="ok"] .bubble { display: block; animation: pop .3s steps(2) 1; }
#mint[data-state="soldout"] .closed-sign { display: block; animation: flicker-on .8s steps(1) 1; }

/* ---------- 3 · the street ---------- */
.street-sec { padding-top: 96px; }
.street { overflow: hidden; }
.track { list-style: none; margin: 0; padding: 0; display: flex; width: max-content; animation: drift 150s steps(768) infinite; }
.street:hover .track, .street:focus-within .track, .street:focus .track { animation-play-state: paused; }
.track li { position: relative; flex: none; width: 512px; }
.track img { width: 512px; height: 512px; }
.track li::after { content: ""; display: block; height: 72px; }
.woodsign { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); white-space: nowrap; padding: 8px 12px; background: #6b4a2b; color: var(--moon-cream); font: 400 16px/1 var(--sign); text-transform: uppercase; box-shadow: inset 0 2px 0 #8a6340, inset 0 -2px 0 #4a3220; }
.lot-nightmarket { background: var(--nightmarket-band); }
.lot-arcade { background: var(--arcade-band); }
.lot-flowershop { background: var(--flowershop-band); }
.lot-recordshop { background: var(--recordshop-band); }
.lot-cornerstore { background: var(--cornerstore-band); }
.lot-repairshop { background: var(--repairshop-band); }
.win.lot-cornerstore { background: var(--cornerstore); }

/* ---------- 4 · how it grows ---------- */
.grow { --lot: var(--nightmarket); --gl: var(--nightmarket-gl); --band: var(--nightmarket-band); background: var(--lot); }
.grow[data-shop="arcade"] { --lot: var(--arcade); --gl: var(--arcade-gl); --band: var(--arcade-band); }
.grow[data-shop="flowershop"] { --lot: var(--flowershop); --gl: var(--flowershop-gl); --band: var(--flowershop-band); }
.grow[data-shop="recordshop"] { --lot: var(--recordshop); --gl: var(--recordshop-gl); --band: var(--recordshop-band); }
.grow[data-shop="cornerstore"] { --lot: var(--cornerstore); --gl: var(--cornerstore-gl); --band: var(--cornerstore-band); }
.grow[data-shop="repairshop"] { --lot: var(--repairshop); --gl: var(--repairshop-gl); --band: var(--repairshop-band); }
.panel-text { margin-top: 16px; font-size: 16px; }
.rail { list-style: none; margin: 20px 0; padding: 0; display: grid; gap: 8px; }
.rail li { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 4px; background: var(--sign-deep); }
.rail .fl { width: 40px; height: 40px; display: grid; place-items: center; font: 700 24px/1 var(--mono); background: var(--sign-mid); color: #8e97b4; }
.rail .nm { font: 400 16px/1 var(--sign); text-transform: uppercase; color: var(--dim); }
.rail .rq { font: 400 16px var(--mono); color: var(--dim); padding-right: 8px; }
.rail .rq b { font-weight: 700; }
.grow[data-level="1"] .rail li:nth-child(1), .grow[data-level="2"] .rail li:nth-child(2),
.grow[data-level="3"] .rail li:nth-child(3), .grow[data-level="4"] .rail li:nth-child(4) { box-shadow: inset 0 0 0 2px var(--sign-cyan); }
.grow[data-level="1"] .rail li:nth-child(1) .fl, .grow[data-level="2"] .rail li:nth-child(2) .fl,
.grow[data-level="3"] .rail li:nth-child(3) .fl, .grow[data-level="4"] .rail li:nth-child(4) .fl { background: var(--sign-cyan); color: var(--sign-box); }
.grow[data-level="1"] .rail li:nth-child(1) span, .grow[data-level="2"] .rail li:nth-child(2) span,
.grow[data-level="3"] .rail li:nth-child(3) span, .grow[data-level="4"] .rail li:nth-child(4) span { color: var(--sign-cyan); }
.notice, .posted { font-size: 16px; line-height: 1.5; padding: 10px 12px; background: var(--moon-cream); color: var(--sign-box); box-shadow: 4px 4px 0 var(--ground-line); }
.grow-panel .notice { margin-top: 20px; }
.grow-panel #swap { display: flex; }
.grow[data-level="1"] .lv:nth-child(1), .grow[data-level="2"] .lv:nth-child(2),
.grow[data-level="3"] .lv:nth-child(3), .grow[data-level="4"] .lv:nth-child(4) { visibility: visible; animation: pop .2s steps(2) 1; transform-origin: 50% 90%; }

/* ---------- 5 · how minting works ---------- */
.how { padding: 120px 0 96px; }
.plaques { list-style: none; margin: 48px 0 32px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.plaque { position: relative; background: var(--sign-box); padding: 24px; margin-top: 16px; }
.plaque::before { content: ""; position: absolute; left: -8px; right: -8px; top: -16px; height: 16px; background: var(--sign-box); box-shadow: inset 0 4px 0 var(--roof-lip), inset 0 -4px 0 var(--sign-deep); }
.floor { display: inline-grid; place-items: center; min-width: 48px; height: 40px; padding: 0 8px; background: var(--lit-window); color: var(--sign-box); font: 700 24px/1 var(--mono); clip-path: var(--step); }
.plaque h3 { margin: 16px 0 8px; font: 400 24px/1 var(--sign); text-transform: uppercase; color: var(--sign-cyan); }
.plaque p { font-size: 18px; }
.posted { display: inline-block; max-width: 70ch; }

/* ---------- 6 · street log ---------- */
.feed { padding: 96px 0; background: var(--night-ground); box-shadow: inset 0 6px 0 var(--ground-line); content-visibility: auto; contain-intrinsic-size: auto 1200px; }
.fstat { font: 400 16px var(--mono); color: var(--moon-cream); }
.fstat.stale { color: var(--red-text); }
.board { background: var(--sign-deep); box-shadow: inset 0 4px 0 var(--roof-lip), 4px 4px 0 var(--ground-line); }
.feedlist::-webkit-scrollbar { display: none; }
.feedlist a:hover { background: var(--sign-box); }
.chip { display: inline-block; padding: 6px 8px; font: 400 16px/1 var(--sign); text-transform: uppercase; clip-path: var(--step); }
.chip.up { background: var(--sign-cyan); color: var(--sign-box); }
.chip.sale { background: var(--storey-teal); color: var(--sign-box); }
.chip.top { background: var(--storey-mustard); color: var(--sign-box); }
.feedlist .num { font: 700 18px var(--mono); color: var(--sign-cyan); }
.feedlist .when { font: 400 16px var(--mono); color: var(--dim); }
.feedlist .go { font: 400 16px var(--sign); text-transform: uppercase; color: var(--sign-cyan); text-align: right; }
.feedlist .sep { padding: 12px 16px 8px; font: 400 16px var(--sign); text-transform: uppercase; color: var(--lit-window); }
.feedlist li.new { animation: slide-in .4s steps(4) 1, flash .6s steps(1) 1; }
.empty { display: flex; align-items: center; gap: 32px; padding: 24px; }
.neon-closed { position: absolute; left: 50%; top: 40px; transform: translateX(-50%); padding: 6px 10px; background: var(--sign-box); color: var(--red-text); font: 400 24px/1 var(--sign); text-transform: uppercase; box-shadow: inset 0 2px 0 var(--storey-red), inset 0 -2px 0 var(--storey-red); animation: flicker-on 4s steps(1) infinite; }
#feed-empty-t { font-size: 18px; max-width: 40ch; }

/* ---------- 7 · legendaries ---------- */
.legends { padding: 96px 0; background: var(--ground-line); content-visibility: auto; contain-intrinsic-size: auto 600px; }
.legends-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; }
.legends-text { margin-top: 24px; max-width: 40ch; font-size: 18px; }
.windows { display: grid; grid-template-columns: repeat(3, 96px); gap: 16px; }
.windows i { width: 96px; height: 96px; display: grid; place-items: center; font: 400 32px/1 var(--sign); font-style: normal; color: #3d3a66; background: #17162a; box-shadow: inset 0 0 0 4px #2c2a4d, inset 0 -12px 0 #2c2a4d; animation: glint 7s steps(1) infinite; }
.windows i:nth-child(2) { animation-duration: 9s; animation-delay: -2s; }
.windows i:nth-child(3) { animation-duration: 11s; animation-delay: -5s; }
.windows i:nth-child(4) { animation-duration: 8s; animation-delay: -1s; }
.windows i:nth-child(5) { animation-duration: 13s; animation-delay: -7s; }
.windows i:nth-child(6) { animation-duration: 10s; animation-delay: -3s; }
.windows i:nth-child(7) { animation-duration: 12s; animation-delay: -9s; }
.windows i:nth-child(8) { animation-duration: 7.5s; animation-delay: -4s; }
.windows i:nth-child(9) { animation-duration: 14s; animation-delay: -6s; }

/* ---------- 8 · footer ---------- */
.foot { background: var(--night-ground); box-shadow: inset 0 6px 0 var(--ground-line); padding: 48px 0 64px; }
.foot-in { display: grid; gap: 24px; justify-items: start; }
.contract-plate { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 12px 16px; background: var(--sign-box); box-shadow: inset 0 2px 0 var(--roof-lip); max-width: 100%; }
#contract { font: 700 16px var(--mono); color: var(--sign-cyan); overflow-wrap: anywhere; }
#contract a { color: var(--sign-cyan); }
.posted.small { font-size: 16px; }
.posted code { color: var(--sign-box); font-weight: 700; }

.dock { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 15; }

/* ---------- motion ---------- */
@keyframes flick { 0% { color: var(--moon-cream); } 50% { color: var(--sign-cyan); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes twinkle { 0%, 60% { opacity: 1; } 61%, 70% { opacity: .2; } 71%, 80% { opacity: 1; } 81%, 88% { opacity: .2; } }
@keyframes flicker-on { 0% { opacity: .3; } 15% { opacity: 1; } 25% { opacity: .3; } 35% { opacity: 1; } }
@keyframes pop { 0% { transform: scale(1.03, .94); } 50% { transform: scale(.98, 1.03); } 100% { transform: none; } }
@keyframes drift { to { transform: translateX(-50%); } }
@keyframes slide-in { from { transform: translateX(-16px); } }
@keyframes flash { 0% { background: var(--lit-window); } 50% { background: transparent; } }
@keyframes glint { 0%, 90% { color: #3d3a66; background: #17162a; } 91%, 93% { color: var(--lit-window); background: #3a3217; } 94%, 95% { color: #3d3a66; background: #17162a; } 96%, 97% { color: var(--lit-window); background: #3a3217; } }
@keyframes lanterns {
  0% { background: var(--lit-window); box-shadow: 14px 0 0 #5a4d2e, 28px 0 0 #5a4d2e; }
  33% { background: #5a4d2e; box-shadow: 14px 0 0 var(--lit-window), 28px 0 0 #5a4d2e; }
  66% { background: #5a4d2e; box-shadow: 14px 0 0 #5a4d2e, 28px 0 0 var(--lit-window); }
}

/* ---------- ≤1100: stack panels under the art ---------- */
@media (max-width: 1100px) {
  .plaques { grid-template-columns: 1fr; }
  .legends-in { grid-template-columns: 1fr; }
}

/* pinned grow only where it fits and motion is welcome */
@media (max-width: 1100px), (prefers-reduced-motion: reduce) {
}

/* ---------- mobile 375 ---------- */
@media (max-width: 760px) {
  .wrap, .hdr-in, .ticker, .hero-in, .mint-in, .grow-in { padding-left: 16px; padding-right: 16px; }
  .links { display: none; }
  .hdr-in { justify-content: space-between; height: 56px; }
  .pill { height: 36px; padding: 0 10px; }
  .lede { font-size: 18px; }
  .ticker { grid-template-columns: 1fr 1fr; }
  .ticker div { flex-direction: column; align-items: flex-start; gap: 6px; }
  .ticker dd { font-size: 16px; }
  .panel { padding: 16px; }
  .count { font-size: 32px; }
  .btn.big { font-size: 16px; min-height: 56px; }
  .street-sec { padding-top: 64px; }
  .street { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .street::-webkit-scrollbar { display: none; }
  .track { animation: none; }
  .track li { scroll-snap-align: center; }
  .track .dup { display: none; }
  .litsign { font-size: 24px; }
  .how { padding: 64px 0; }
  .plaques { margin-top: 32px; gap: 32px; }
  .feed { padding: 64px 0; }
  .feedlist .num { display: none; }
  .legends { padding: 64px 0; }
  .windows { grid-template-columns: repeat(3, 80px); gap: 12px; justify-content: center; }
  .windows i { width: 80px; height: 80px; }
}
@media (min-width: 761px) { .dock { display: none !important; } }

@media (min-width: 1400px) {
}

/* 1600+: hero logo at 1024 */
@media (min-width: 1600px) {
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .street { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .street::-webkit-scrollbar { display: none; }
  .track .dup { display: none; }
  .track li { scroll-snap-align: start; }
}

/* =====================================================================
   Fix round: aligned hero, mint tile, centred grow pair, full-height art
   Rule: art windows never crop the top. Full art height at an integer
   scale, ground line at the bottom, crops on the sides only.
   ===================================================================== */

/* ---------- hero: animated scene at native 1600 x 900 ---------- */
.hero { position: relative; overflow: hidden; }
.hero-in { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: minmax(0, 1fr) 560px; column-gap: 48px; height: 872px; }
.hero-copy { align-self: center; padding-top: 64px; }
.hero h1 { font: 400 48px/1.1 var(--sign); text-transform: uppercase; letter-spacing: .02em; color: var(--moon-cream); }
/* the building left wall (scene x 520) sits on the column line; 40px of sign and roof overhang shows in the gutter */
.hero-art { position: relative; clip-path: inset(0 -100vw 0 -40px); }
.hero-art img { position: absolute; top: 24px; left: -520px; width: 1600px; height: 900px; }
/* page ground line = scene ground line (scene y 840-847 = hero y 864-871) */
.hero-ground { position: relative; z-index: 2; margin-top: -8px; border-top: 8px solid #1f1e34; background: var(--night-ground); padding: 20px 0 24px; }
@media (min-width: 1400px) { .hero h1 { font-size: 64px; line-height: 1.05; } }

/* ---------- mint: lot tile + counter on one ground line ---------- */
.lot-mint { position: relative; background: var(--night-sky); padding-top: 96px; }
.lot-mint::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: calc(768px - var(--gy768)); background: var(--night-ground); border-top: var(--gh768) solid var(--ground-line); }
.mint-in { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; align-items: stretch; }
.kiosk { position: relative; overflow: hidden; min-height: 768px; margin-top: 0; background: var(--nightmarket); }
.kiosk img { position: absolute; bottom: 0; left: calc(50% - 386px); width: 768px; height: 768px; }
.mint-panel { margin-bottom: calc(768px - var(--gy768)); z-index: 2; }
.bubble { position: absolute; left: calc(50% + 48px); bottom: 360px; display: none; padding: 8px 12px; background: var(--moon-cream); color: var(--sign-box); font: 400 32px/1 var(--sign); z-index: 1; }
.bubble::after { content: ""; position: absolute; left: 12px; bottom: -8px; width: 8px; height: 8px; background: var(--moon-cream); box-shadow: -4px 4px 0 var(--moon-cream); }
.closed-sign { position: absolute; left: 50%; bottom: 400px; transform: translateX(-50%); display: none; z-index: 1; padding: 12px 18px; background: var(--sign-box); color: var(--red-text); font: 400 48px/1 var(--sign); text-transform: uppercase; box-shadow: inset 0 4px 0 var(--storey-red), inset 0 -4px 0 var(--storey-red); }

/* ---------- how it grows: list + shop centred as a pair ---------- */
.grow-scroll { height: 400vh; }
.grow-pin { position: sticky; top: 0; height: 100vh; min-height: 680px; overflow: hidden; }
.grow-pin::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: calc(512px - var(--gy512)); background: var(--band); border-top: var(--gh512) solid var(--gl); }
.grow-in { position: relative; z-index: 1; height: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: center; align-items: flex-end; gap: 48px; }
.grow-panel { flex: none; width: 400px; margin-bottom: calc(512px - var(--gy512) + 24px); }
.levels { list-style: none; margin: 0; padding: 0; position: relative; flex: none; width: 512px; height: 512px; }
.lv { position: absolute; inset: 0; visibility: hidden; }
.lv-art { position: relative; width: 512px; height: 512px; overflow: hidden; background: var(--lot); }
.lv-art .gif { position: absolute; bottom: 0; left: 0; width: 512px; height: 512px; }
.lv-cap { display: none; }

/* ---------- feed: full-height 256 art windows ---------- */
.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.counter { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 8px 12px; padding: 8px 8px 12px; background: var(--sign-box); box-shadow: inset 0 2px 0 var(--roof-lip); }
.counter .win { grid-column: 1 / -1; position: relative; display: block; height: 256px; overflow: hidden; }
.counter .win img { position: absolute; bottom: 0; left: calc(50% - 128px); width: 256px; height: 256px; }
.counter .k { font: 400 16px/1 var(--sign); text-transform: uppercase; color: var(--dim); }
.counter b { font: 700 32px/1 var(--mono); color: var(--sign-cyan); font-variant-numeric: tabular-nums; }
.board-head { display: none; }
.feedlist { list-style: none; margin: 0; padding: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(256px, 1fr)); gap: 16px; }
.feedlist .sep { grid-column: 1 / -1; padding: 8px 0 0; }
.feedlist a { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "who who" "chg when" "num go"; gap: 8px 12px; padding: 8px 8px 12px; text-decoration: none; color: var(--moon-cream); background: var(--sign-box); }
.feedlist a:hover { background: var(--sign-mid); }
.feedlist .who { grid-area: who; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font: 700 18px var(--mono); color: var(--sign-cyan); font-variant-numeric: tabular-nums; }
.feedlist .thumbwin { position: relative; display: block; width: 100%; height: 256px; overflow: hidden; background: var(--sign-mid); }
.feedlist .thumbwin .gif { position: absolute; bottom: 0; left: calc(50% - 128px); width: 256px; height: 256px; }
.feedlist .chg { grid-area: chg; }
.feedlist .when { grid-area: when; text-align: right; }
.feedlist .num { grid-area: num; }
.feedlist .num::after { content: " footfall"; font-weight: 400; color: var(--dim); }
.feedlist .go { grid-area: go; }
.shopfront { position: relative; flex: none; width: 256px; height: 256px; overflow: hidden; background: var(--recordshop); }
.shopfront img { width: 256px; height: 256px; filter: brightness(.35) saturate(.5); }
.fresh .win { position: relative; display: block; width: 160px; height: 256px; overflow: hidden; background: var(--nightmarket); }
.fresh .win .gif { position: absolute; bottom: 0; left: calc(50% - 128px); width: 256px; height: 256px; }

/* ---------- 1100 and below: stack ---------- */
@media (max-width: 1100px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); height: auto; }
  .hero-copy { padding: 112px 0 32px; }
  .hero-art { height: 872px; margin: 0 -24px; overflow: hidden; clip-path: none; }
  .hero-art img { left: calc(50% - 800px); }
  .mint-in { grid-template-columns: minmax(0, 1fr); }
  .lot-mint { padding-bottom: 48px; }
  .lot-mint::after { display: none; }
  .kiosk { margin: 0 -24px; }
  .mint-panel { margin: 40px 0 0; }
  .counters { grid-template-columns: 1fr 1fr; }
}

/* ---------- pinned grow only where it fits and motion is welcome ---------- */
@media (max-width: 1100px), (prefers-reduced-motion: reduce) {
  .grow-scroll { height: auto; }
  .grow-pin { position: static; height: auto; min-height: 0; padding: 96px 0 48px; }
  .grow-pin::after { display: none; }
  .grow-in { display: block; height: auto; }
  .grow-panel { width: auto; max-width: 560px; margin: 0 auto 48px; }
  .levels { width: auto; height: auto; display: grid; grid-template-columns: repeat(2, 512px); justify-content: center; gap: 24px; }
  .lv { position: static; visibility: visible !important; animation: none !important; }
  .lv-cap { display: block; padding: 8px 12px; background: var(--sign-box); font: 400 16px/1.2 var(--sign); text-transform: uppercase; color: var(--sign-cyan); }
  .rail li { box-shadow: none !important; }
  .rail .fl { background: var(--sign-mid) !important; color: var(--dim) !important; }
  .rail span { color: var(--dim) !important; }
}
@media (max-width: 1100px) { .levels { grid-template-columns: 512px; } }

/* ---------- mobile 375 ---------- */
@media (max-width: 760px) {
  .hero-in { padding: 0 16px; }
  .hero-copy { padding: 88px 0 24px; }
  .hero h1 { font-size: 32px; }
  .hero-art { height: 468px; margin: 0 -16px; }
  .hero-art img { top: 0; left: calc(50% - 256px); width: 512px; height: 512px; }
  .hero-ground { margin-top: -4px; border-top-width: 4px; border-top-color: var(--ground-line); }
  .lot-mint { padding-top: 48px; }
  .mint-in { padding: 0 16px; }
  .kiosk { margin: 0 -16px; min-height: 512px; }
  .kiosk img { left: calc(50% - 257px); width: 512px; height: 512px; }
  .bubble { bottom: 240px; left: calc(50% + 24px); }
  .closed-sign { bottom: 260px; font-size: 32px; }
  .levels { grid-template-columns: minmax(0, 1fr); margin: 0 -16px; }
  .lv-art { width: auto; }
  .lv-art .gif { left: calc(50% - 250px); }
  .lv-cap { margin: 0 16px; }
  .grow-pin { padding-top: 64px; }
  .counters { gap: 12px; }
  .counter { grid-template-columns: 1fr; }
  .feedlist { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .empty { flex-direction: column; text-align: center; }
}

/* =====================================================================
   Fix round 2: lot tiles end at the ground line (the band below is always
   --night-ground), and the hero art sits fully below the 56px nav.
   ===================================================================== */
.hdr-in { height: 56px; }
.hero { padding-top: 56px; }
.stars { top: 56px; }
.hero-in { height: 848px; }
.hero-copy { padding-top: 0; }
.hero-art img { top: 0; }

/* mint: tile clipped at the ground line; the page band continues underneath */
.kiosk { min-height: var(--gy768); margin-bottom: calc(768px - var(--gy768)); }
.kiosk img { bottom: calc(var(--gy768) - 768px); }
.bubble { bottom: 288px; }
.closed-sign { bottom: 328px; }

/* grow: page ground under the lot, art clipped at its ground line */
.grow-pin::after { background: var(--night-ground); border-top-color: var(--ground-line); }
.lv-art { height: var(--gy512); }
.lv-art .gif { bottom: calc(var(--gy512) - 512px); }
.levels { height: var(--gy512); margin-bottom: calc(512px - var(--gy512)); }

/* street: cover each GIF's own ground band with the page ground */
.track li { background: var(--night-ground); }
.track li::before { content: ""; position: absolute; left: 0; right: 0; top: var(--gy512); height: calc(512px - var(--gy512) + 72px); background: var(--night-ground); border-top: var(--gh512) solid var(--ground-line); }
.woodsign { z-index: 1; }

@media (max-width: 1100px), (prefers-reduced-motion: reduce) {
  .levels { height: auto; margin-bottom: 0; }
  .lv-art { height: var(--gy512); border-bottom: var(--gh512) solid var(--ground-line); box-sizing: content-box; }
  .lv-cap { background: var(--night-ground); }
}
@media (max-width: 1100px) {
  .hero-copy { padding-top: 56px; }
  .hero-art { height: 848px; }
  .lot-mint { background: var(--night-ground); padding-top: 0; }
  .kiosk { min-height: var(--gy768); margin-bottom: 0; border-bottom: var(--gh768) solid var(--ground-line); }
}
@media (max-width: 760px) {
  .hdr-in { height: 56px; }
  .hero-copy { padding-top: 32px; }
  .hero-art { height: 468px; }
  .kiosk { min-height: var(--gy512); border-bottom-width: var(--gh512); }
  .kiosk img { bottom: calc(var(--gy512) - 512px); }
  .bubble { bottom: 196px; }
  .closed-sign { bottom: 216px; }
}
.kiosk, .lv-art { box-sizing: content-box; }

/* Fix round 3: below 1400 px the hero uses logo-animated.gif (1024 native, 3x grid = 768)
   so the sign box and both walls always sit inside the content area. */
@media (min-width: 1101px) and (max-width: 1399px) {
  .hero-in { grid-template-columns: minmax(0, 1fr) 462px; height: 696px; }
  .hero-art { clip-path: inset(0); }
  .hero-art img { top: 0; left: -153px; width: 768px; height: 768px; }
  .hero-ground { margin-top: -6px; border-top: 6px solid var(--ground-line); }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .hero-art { height: 696px; }
  .hero-art img { top: 0; left: calc(50% - 384px); width: 768px; height: 768px; }
  .hero-ground { margin-top: -6px; border-top: 6px solid var(--ground-line); }
}

/* Fix round 4: no big sign box in the hero. The scene is cropped at the top
   (scene y 160 = just below the sign) and shows the SOUP BAR from its rooftop
   down to the ground, at native scale everywhere. 24px of page sky above it. */
.feed-intro { margin: -16px 0 32px; max-width: 64ch; font-size: 18px; }
.hero { padding-top: 80px; }
.stars { top: 0; }
.hero-in { height: 688px; }
.hero-art img { top: -160px; }
@media (min-width: 1101px) and (max-width: 1399px) {
  .hero-in { grid-template-columns: minmax(0, 1fr) 560px; height: 688px; }
  .hero-art { clip-path: inset(0 -100vw 0 -40px); }
  .hero-art img { top: -160px; left: -520px; width: 1600px; height: 900px; }
  .hero-ground { margin-top: -8px; border-top: 8px solid #1f1e34; }
}
@media (max-width: 1100px) {
  .hero-in { height: auto; }
  .hero-copy { padding-top: 32px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .hero-art { height: 688px; }
  .hero-art img { top: -160px; left: calc(50% - 800px); width: 1600px; height: 900px; }
  .hero-ground { margin-top: -8px; border-top: 8px solid #1f1e34; }
}
@media (max-width: 760px) {
  .hero { padding-top: 56px; }
  .hero-art { height: 364px; }
  .hero-art img { top: -104px; left: calc(50% - 256px); width: 512px; height: 512px; }
  .hero-ground { margin-top: -4px; border-top: 4px solid var(--ground-line); }
}

/* Nav: three-column grid so the links sit on the page midpoint (desktop only) */
@media (min-width: 761px) {
  .hdr-in { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; }
  .brand { justify-self: start; }
  .links { margin-left: 0; justify-self: center; }
  .pill { justify-self: end; }
}

.listed-note { color: var(--moon-cream); font-size: 17px; line-height: 1.45; box-shadow: inset 0 2px 0 var(--sign-cyan), inset 0 -2px 0 var(--sign-cyan); }
.listed-note b { font-family: var(--pixel, Silkscreen, monospace); font-size: 16px; letter-spacing: .02em; color: var(--sign-cyan); margin-right: 8px; }
