/* World chrome, filters, the slot cabinet, the map skin and the night edition.
   One file: this used to be four layers each correcting the last. */

/* ── Night edition tokens ─────────────────────────────────────── */
html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #17130f;
  --paper-hi: #251d15;
  --paper-low: #0f0c09;
  --ink: #f7edd9;
  --red: #ff5661;
  --acid: #ddff4d;
  --yellow: #ffd45b;
  --orange: #ff7a46;
  /* light-on-dark already clears contrast, so type keeps the bright red here */
  --red-type: #ff7b84;
}
/* .view, .filter-sheet, .dossier, .place-row and .focus-card are deliberately
   absent: listing them here replaces their transition-property wholesale and
   kills every slide-in they were authored with. They fold these same colour
   properties into their own transition declarations instead. */
body,
.masthead,
.dock,
.filter-launch,
.about-card,
.about-form,
.policy-block,
input,
textarea,
select,
button { transition: background-color .28s, color .28s, border-color .28s, box-shadow .28s; }

/* ── The sky is a graded field, not flat paper ────────────────── */
.world-view { background: linear-gradient(#f8f2e2 0%, var(--paper) 44%, var(--paper-low) 100%); }
html[data-theme="dark"] .world-view { background: linear-gradient(#3a2a1a 0%, #1b1611 46%, #0d0a07 100%); }
html[data-theme="dark"] .world-view::before {
  background:
    linear-gradient(rgba(243,234,213,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243,234,213,.055) 1px, transparent 1px);
}

/* Grain belongs on the render, not on 10px mono type. */
.grain { opacity: .06; }
html[data-theme="dark"] .grain { opacity: .05; mix-blend-mode: screen; }
.world-view::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: .17;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 170 170' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='.6'/%3E%3C/svg%3E");
}
body.world-engaged:not(.street-mode) .world-intro {
  opacity: 0;
  transform: translateY(-12px);
}
html[data-theme="dark"] .world-view::after { mix-blend-mode: screen; opacity: .1; }
/* A vignette so the row falls away at the edges of frame. */
.world-vignette {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: radial-gradient(120% 92% at 50% 46%, transparent 42%, rgba(24,20,16,.14) 74%, rgba(24,20,16,.34) 100%);
}
html[data-theme="dark"] .world-vignette {
  background: radial-gradient(120% 92% at 50% 46%, transparent 38%, rgba(6,4,2,.3) 72%, rgba(6,4,2,.62) 100%);
}

/* ── Navigation chrome ───────────────────────────────────────── */
.world-nav {
  position: absolute;
  z-index: 8;
  left: 12px;
  top: 14px;
  display: flex;
  align-items: stretch;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .3s, transform .35s var(--ease), visibility .3s;
}
body.street-mode .world-nav { opacity: 1; visibility: visible; transform: none; }
.world-up {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1.5px solid #181410;
  background: var(--acid);
  color: #181410;
  box-shadow: 4px 5px 0 #181410;
  padding: 0 12px;
  min-height: 44px;
  text-transform: uppercase;
  font-size: var(--t-label);
  font-weight: 800;
  letter-spacing: .1em;
}
.world-up b { font-size: 14px; line-height: 1; }
/* The breadcrumb is orientation, so it sits back. */
.world-crumb {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  border: 1px solid var(--ink);
  background: color-mix(in srgb, var(--paper-hi) 82%, transparent);
  backdrop-filter: blur(6px);
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  padding: 0 11px;
  min-height: 44px;
  text-transform: uppercase;
  font-size: var(--t-micro);
  font-weight: 800;
  letter-spacing: .09em;
  opacity: .92;
}
.world-crumb i { font-style: normal; opacity: .42; }
.world-crumb button { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; text-decoration: underline; text-underline-offset: 3px; }
.world-crumb .crumb-here { color: var(--red); }

/* ── Street scrubber ──────────────────────────────────────────
   A full-width band of its own, directly above the dock, so it and the focus
   card no longer fight for the bottom-right corner. */
.street-rail {
  position: absolute;
  z-index: 7;
  left: 12px;
  right: 12px;
  bottom: calc(var(--dock-h) + 10px);
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: stretch;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
body.street-mode .street-rail { opacity: 1; visibility: visible; }
.street-rail.empty { opacity: 0; pointer-events: none; }
.street-step {
  display: grid;
  place-items: center;
  height: 44px;
  border: 1.5px solid #181410;
  background: var(--acid);
  color: #181410;
  box-shadow: 3px 4px 0 #181410;
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
  padding: 0;
}
.street-track {
  display: flex;
  align-items: stretch;
  gap: 3px;
  height: 44px;
  padding: 0 5px;
  border: 1.5px solid var(--ink);
  background: color-mix(in srgb, var(--paper-hi) 88%, transparent);
  backdrop-filter: blur(6px);
  box-shadow: 2px 2px 0 var(--ink);
}
/* One tick per shop, each a tap target in its own right. The mark itself stays
   narrow so fifteen of them read as a scale rather than a dashed rule. */
.street-tick {
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  padding: 0;
}
.street-tick i { display: block; width: 3px; height: 9px; background: color-mix(in srgb, var(--ink) 32%, transparent); transition: height .18s var(--ease), background .18s, width .18s; }
.street-tick:hover i { height: 15px; background: color-mix(in srgb, var(--ink) 62%, transparent); }
.street-tick.on i { width: 5px; height: 22px; background: var(--red); }
@media (hover: none) {
  .street-tick i { width: 4px; height: 11px; }
  .street-tick.on i { width: 6px; height: 22px; }
}

body.street-mode .world-intro,
body.street-mode .gesture-coach { opacity: 0 !important; pointer-events: none !important; }
body.is-picking .world-nav,
body.is-picking .street-rail,
body.is-picking .world-intro,
body.is-picking .gesture-coach,
body.is-picking .focus-card { opacity: 0 !important; pointer-events: none !important; }
body.is-picking #world-canvas { pointer-events: none; filter: saturate(1.18) contrast(1.04); }
body.is-picking .dock-btn:not(.random) { opacity: .35; pointer-events: none; }
body.is-picking .dock-btn.random .dock-icon { animation: randomDockSpin .45s linear infinite; }
@keyframes randomDockSpin { to { transform: rotate(180deg) scale(1.12); } }

/* ── Elevation: two levels, not one flat border language ─────── */
.world-up,
.street-step,
.dossier-nav,
.maps-link { box-shadow: 4px 5px 0 #181410; }
.filter-launch,
.place-row,
.search { box-shadow: 2px 2px 0 var(--ink); }

/* One corner language: hard corners everywhere but map pins. */
.dock-icon,
.focus-open,
.row-open,
.dossier-close,
.load-mark { border-radius: 0; }
.dock-btn.active .dock-icon { transform: translateY(-3px); }

/* The focus card stops repeating the review sheet. */
.focus-card {
  grid-template-columns: 1fr 44px;
  min-height: 0;
  padding: 9px 10px;
  box-shadow: 3px 3px 0 var(--ink);
  overflow: hidden;
  isolation: isolate;
}
.focus-card img { display: none; }
.focus-card h2 { font-size: 19px; margin: 2px 0 1px; }
.focus-card .focus-label { font-size: var(--t-micro); }
html[data-theme="dark"] .focus-card { background: var(--paper-hi); }

/* Loading state speaks the same language as the street. */
.load-mark {
  border-width: 2px;
  background: var(--red);
  color: #fffaf0;
  box-shadow: 6px 7px 0 var(--ink);
  font-size: 30px;
  letter-spacing: -.04em;
}

/* ── Filters ─────────────────────────────────────────────────── */
/* .pool-controls (filter + near me) lives in the dock's top row — ui.css */
.filter-launch {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 8px;
  min-width: 206px;
  min-height: 44px;
  padding: 5px 7px;
  border: 1.5px solid var(--ink);
  background: var(--paper-hi);
  text-align: left;
  transition: background-color .28s, color .28s, border-color .28s;
}
.near-toggle {
  flex: none;
  display: grid;
  place-items: center;
  gap: 1px;
  width: 52px;
  min-height: 44px;
  padding: 4px 3px;
  border: 1.5px solid var(--ink);
  background: var(--paper-hi);
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 14px;
  line-height: 1;
}
.near-toggle small { font-size: 8px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; opacity: .72; }
.near-toggle small { font-size: var(--t-micro); }
.near-toggle.active { background: var(--acid); color: #181410; transform: translate(2px,2px); box-shadow: none; }
.near-toggle.active small { opacity: 1; }
.near-toggle.loading { animation: nearPulse .8s steps(2, end) infinite; }
@keyframes nearPulse { 50% { background: var(--red); color: #fffaf0; } }
.filter-launch-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--ink);
  background: var(--red);
  color: white;
  font-size: 13px;
}
.filter-launch-copy small {
  display: block;
  color: var(--red-type);
  font-size: var(--t-micro);
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.filter-launch-copy strong {
  display: block;
  max-width: 153px;
  margin-top: 2px;
  overflow: hidden;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  line-height: .92;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.filter-launch-count {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 5px;
  border: 1.5px solid var(--ink);
  background: var(--acid);
  color: #181410;
  font-size: var(--t-label);
  font-weight: 900;
}
/* the scrubber owns the band directly above the dock in street mode */

.filter-scrim {
  position: fixed;
  z-index: 95;
  inset: var(--masthead-h) 0 var(--dock-h);
  background: rgba(24,20,16,.45);
  opacity: 0;
  visibility: hidden;
  transition: .25s;
}
.filter-scrim.show { opacity: 1; visibility: visible; }
.filter-sheet {
  position: fixed;
  z-index: 96;
  left: 0;
  right: 0;
  bottom: var(--dock-h);
  max-height: min(72svh, 610px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 2px solid var(--ink);
  background: var(--paper-hi);
  box-shadow: 0 -7px 0 var(--red);
  padding: 12px 12px 0;
  transform: translateY(calc(100% + 12px));
  /* visibility flips instantly on open so the sheet can take focus, and waits
     out the slide on close */
  transition: transform .42s var(--ease), visibility 0s linear .42s, background-color .28s, color .28s, border-color .28s, box-shadow .28s;
  visibility: hidden;
  pointer-events: none;
}
.filter-sheet.open { transform: none; visibility: visible; pointer-events: auto; transition: transform .42s var(--ease), visibility 0s linear 0s, background-color .28s, color .28s, border-color .28s, box-shadow .28s; }
.filter-sheet-head {
  position: sticky;
  z-index: 2;
  top: -12px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 12px;
  margin: -12px -12px 12px;
  padding: 14px 12px 11px;
  border-bottom: 3px double var(--ink);
  background: var(--paper-hi);
}
.filter-kicker { color: var(--red-type); font-size: var(--t-micro); font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.filter-sheet h2 { margin: 3px 0 0; font-family: var(--serif); font-size: 34px; line-height: .85; font-weight: 400; }
.filter-close { width: 44px; height: 44px; border: 1.5px solid var(--ink); background: var(--acid); color: #181410; box-shadow: 2px 2px 0 var(--ink); font-size: 17px; }
.filter-group { padding: 10px 0 12px; border-bottom: 1px dashed var(--ink); }
.filter-group-title { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 7px; font-size: var(--t-micro); font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.filter-group-title span:last-child { color: color-mix(in srgb, var(--ink) 62%, transparent); font-weight: 600; letter-spacing: 0; }
.filter-options { display: flex; flex-wrap: wrap; gap: 6px; }
.facet {
  min-height: 44px;
  border: 1.5px solid var(--ink);
  padding: 7px 9px;
  background: var(--paper);
  box-shadow: 2px 2px 0 var(--ink);
  font-size: var(--t-label);
  font-weight: 900;
  text-transform: uppercase;
}
.facet.active { background: var(--red); color: white; transform: translate(-1px,-1px); }
.region-facet { flex: 1 1 calc(50% - 6px); min-height: 49px; text-align: left; }
.region-facet b { display: block; font-family: var(--serif); font-size: 16px; line-height: .95; font-weight: 400; text-transform: none; }
.region-facet span { display: block; margin-top: 4px; font-size: var(--t-micro); opacity: .72; }
.filter-foot {
  position: sticky;
  z-index: 3;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  margin: 0 -12px;
  padding: 12px;
  border-top: 1.5px solid var(--ink);
  background: color-mix(in srgb, var(--paper-hi) 96%, transparent);
  backdrop-filter: blur(12px);
}
.filter-result { font-family: var(--serif); font-size: 18px; line-height: 1; }
.filter-result small { display: block; margin-top: 4px; font: var(--t-micro) var(--mono); text-transform: uppercase; }
.filter-actions { display: flex; gap: 7px; }
.filter-clear,
.filter-apply { min-height: 44px; border: 1.5px solid var(--ink); padding: 8px 11px; box-shadow: 3px 3px 0 var(--ink); font-size: var(--t-micro); font-weight: 900; text-transform: uppercase; }
.filter-clear { background: var(--paper); }
.filter-apply { background: var(--acid); color: #181410; }

.place-row[data-citywide="true"] { border-color: var(--red); }
.chain-stamp {
  display: inline-block;
  margin-top: 5px;
  padding: 3px 5px;
  border: 1px solid var(--ink);
  background: var(--yellow);
  color: #181410;
  font-size: var(--t-micro);
  font-weight: 900;
  text-transform: uppercase;
}

/* The review sheet still frames the archive card, but list rows with no
   photograph drop the image column entirely — see .place-row.no-photo. */
.dossier-photo { isolation: isolate; overflow: hidden; }
#dossier-image[src$="no-photo-v2.svg"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 8px;
  background: var(--paper-low);
  object-fit: contain;
}

/* Map pins reveal a compact editorial card before committing to the dossier. */
.map-tools .map-caption {
  position: static;
  width: max-content;
  max-width: 100%;
  justify-self: start;
  pointer-events: none;
}
.map-filter-row {
  max-width: 100%;
  padding: 1px 0 3px;
  pointer-events: auto;
}
.map-preview {
  position: absolute;
  z-index: 510;
  left: 12px;
  right: 12px;
  bottom: calc(var(--dock-h) + 14px);
  display: grid;
  grid-template-columns: 1fr 46px;
  align-items: center;
  gap: 10px;
  min-height: 82px;
  padding: 11px 12px;
  border: 1.5px solid var(--ink);
  background: var(--paper-hi);
  box-shadow: 5px 5px 0 var(--ink);
}
.map-preview[hidden] { display: none; }
.map-preview-copy { min-width: 0; }
.map-preview-kicker { color: var(--red-type); font-size: var(--t-micro); font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.map-preview h2 { margin: 3px 0 2px; overflow: hidden; font-family: var(--serif); font-size: 24px; font-weight: 400; line-height: .95; text-overflow: ellipsis; white-space: nowrap; }
.map-preview p { margin: 0; overflow: hidden; font-size: var(--t-micro); text-transform: uppercase; text-overflow: ellipsis; white-space: nowrap; }
.map-preview-open { width: 46px; height: 46px; border: 1.5px solid #181410; background: var(--acid); color: #181410; box-shadow: 3px 3px 0 #181410; font-size: 17px; }

/* ── Slot cabinet ────────────────────────────────────────────── */
.lottery-overlay {
  position: fixed;
  z-index: 150;
  inset: var(--masthead-h) 0 var(--dock-h);
  display: grid;
  place-items: center;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 68px 12px 36px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 45%, rgba(220,255,63,.16), transparent 38%),
    rgba(24,20,16,.62);
  backdrop-filter: blur(4px);
  transition: opacity .3s, visibility .3s;
}
.lottery-overlay.show { opacity: 1; visibility: visible; pointer-events: auto; }

/* A freestanding machine: arched crown, illuminated fascia, heavy chassis,
   inset reels, payout hardware and a lever mounted outside the body line. */
.slot-shell {
  position: relative;
  width: min(430px, calc(100vw - 42px));
  border: 3px solid #0c0a08;
  border-radius: 28px 28px 15px 15px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.14), transparent 7% 91%, rgba(0,0,0,.32)),
    linear-gradient(180deg, #514739, #292219 10%, #17130f 64%, #30281e);
  box-shadow:
    inset 0 3px 0 rgba(255,250,240,.2),
    inset 4px 0 0 rgba(255,250,240,.07),
    inset -5px 0 0 rgba(0,0,0,.48),
    inset 0 -5px 0 rgba(0,0,0,.55),
    0 0 0 5px #615646,
    0 0 0 8px #100d0a,
    13px 18px 0 rgba(10,9,7,.58),
    0 26px 58px rgba(0,0,0,.35);
  transform: translateY(26px) scale(.94);
  transition: transform .5s var(--ease);
  isolation: isolate;
}
.lottery-overlay.show .slot-shell { transform: none; }
.slot-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  border-radius: 24px 24px 12px 12px;
  background: linear-gradient(155deg, rgba(255,250,240,.16), transparent 28% 72%, rgba(0,0,0,.12));
}
.slot-shell::before {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: 10;
  pointer-events: none;
  border: 1px solid rgba(255,250,240,.08);
  border-radius: 20px 20px 9px 9px;
  background:
    radial-gradient(circle at 6px 6px, #6b6154 0 2.1px, rgba(0,0,0,.4) 2.1px 3.2px, transparent 3.4px),
    radial-gradient(circle at calc(100% - 6px) 6px, #6b6154 0 2.1px, rgba(0,0,0,.4) 2.1px 3.2px, transparent 3.4px),
    radial-gradient(circle at 6px calc(100% - 6px), #6b6154 0 2.1px, rgba(0,0,0,.4) 2.1px 3.2px, transparent 3.4px),
    radial-gradient(circle at calc(100% - 6px) calc(100% - 6px), #6b6154 0 2.1px, rgba(0,0,0,.4) 2.1px 3.2px, transparent 3.4px);
}

.slot-crown {
  position: absolute;
  z-index: 6;
  top: -58px;
  right: 38px;
  left: 38px;
  height: 78px;
  display: grid;
  place-content: center;
  justify-items: center;
  border: 3px solid #17110c;
  border-radius: 50% 50% 12px 12px / 72% 72% 12px 12px;
  background:
    radial-gradient(circle at 50% 92%, rgba(255,232,88,.42), transparent 40%),
    linear-gradient(180deg, #ff6d72, #e62b31 60%, #97171d);
  color: #fffaf0;
  box-shadow: inset 0 4px 0 rgba(255,255,255,.25), inset 0 -5px 0 rgba(90,11,15,.45), 0 0 0 4px #756753, 0 0 0 7px #110e0a, 0 8px 0 rgba(0,0,0,.38);
  text-align: center;
  text-transform: uppercase;
}
.slot-crown span { margin-top: 11px; font-size: 8px; font-weight: 900; letter-spacing: .2em; }
.slot-crown b { color: var(--yellow); font-family: var(--serif); font-size: 29px; font-style: italic; line-height: .8; letter-spacing: .04em; text-shadow: 2px 2px 0 #6d1519; }
.slot-crown-bulbs { position: absolute; top: 7px; left: 12%; right: 12%; display: flex; justify-content: space-between; }
.slot-crown-bulbs i { width: 8px; height: 8px; border: 1px solid #3b2f1f; border-radius: 50%; background: #fff6ad; box-shadow: 0 0 7px var(--yellow), inset 0 -1px 0 rgba(0,0,0,.28); }
.slot-crown-bulbs i:nth-child(even) { background: var(--acid); box-shadow: 0 0 7px var(--acid); }
.slot-crown.wink { animation: crownWink .36s steps(2,end); }
@keyframes crownWink { 50% { filter: brightness(1.8); transform: translateY(-2px); } }
/* the cabinet's close lives in ui.css: outside the machine, top-right */
.slot-shell.shaking { animation: slotShake .09s steps(2,end) infinite; }
@keyframes slotShake {
  0% { transform: translate(-1.5px,0) rotate(-.22deg); }
  100% { transform: translate(1.5px,1px) rotate(.22deg); }
}

.slot-marquee {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  min-height: 104px;
  padding: 32px 57px 13px 16px;
  border-radius: 24px 24px 0 0;
  color: #fffaf0;
  background: linear-gradient(180deg, #f2434a, #e62b31 55%, #b81f26);
  box-shadow: inset 0 2px 0 rgba(255,250,240,.3), inset 0 -5px 0 rgba(91,14,18,.35), 0 3px 0 #0e0b08;
}
.slot-kicker { text-transform: uppercase; font-size: var(--t-micro); font-weight: 800; letter-spacing: .14em; opacity: .9; }
.slot-marquee h2 { margin: 4px 0 0; font-family: var(--serif); font-size: 27px; line-height: .88; font-weight: 400; letter-spacing: -.04em; }
.slot-pool {
  flex: none;
  border: 2px solid #181410;
  border-radius: 8px;
  background: var(--acid);
  color: #181410;
  padding: 6px 9px;
  text-align: center;
  text-transform: uppercase;
  font-size: var(--t-micro);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .06em;
}
.slot-pool b { display: block; font-size: 17px; line-height: 1; }

.slot-machine-deck {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: .7fr 1.45fr .7fr;
  gap: 4px;
  padding: 6px 13px;
  border-top: 2px solid #aa9b83;
  border-bottom: 3px solid #0b0907;
  background: linear-gradient(#615646, #292218);
}
.slot-machine-deck div {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 4px 6px;
  border: 1px solid #0a0806;
  border-radius: 3px;
  background: #080906;
  color: #e8dfcb;
  box-shadow: inset 0 2px 5px #000;
  text-transform: uppercase;
}
.slot-machine-deck span { overflow: hidden; font-size: 7px; font-weight: 900; letter-spacing: .1em; text-overflow: ellipsis; white-space: nowrap; }
.slot-machine-deck b { flex: none; color: var(--acid); font-size: 11px; letter-spacing: .05em; text-shadow: 0 0 5px rgba(220,255,63,.55); }

.slot-body { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) 68px; }
.slot-main {
  padding: 14px 13px 0;
  border-right: 3px solid #0d0a08;
  background:
    linear-gradient(90deg, rgba(255,255,255,.06), transparent 8% 94%, rgba(0,0,0,.25)),
    linear-gradient(180deg, #211b14, #100d0a);
}

/* Neighbourhood names are as long as spend labels now, so the reels are
   equal; all three share one baseline. */
.slot-reels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  align-items: start;
  padding: 10px 9px 11px;
  border: 3px solid #070605;
  border-radius: 12px;
  background: linear-gradient(#050403, #19140e 42%, #070605);
  box-shadow: inset 0 4px 9px rgba(0,0,0,.86), 0 0 0 2px #756a58, 0 3px 0 #050403;
}
.slot-col { min-width: 0; }
.slot-col-label {
  margin-bottom: 5px;
  color: var(--yellow);
  text-transform: uppercase;
  font-size: var(--t-micro);
  font-weight: 800;
  letter-spacing: .12em;
  text-align: center;
}
.slot-col[data-reel="2"] .slot-col-label { color: var(--acid); }
.slot-window {
  position: relative;
  height: 46px;
  box-sizing: content-box;
  overflow: hidden;
  border: 3px solid #d9cdb4;
  border-radius: 7px;
  background: #fffaf0;
  box-shadow: inset 0 7px 10px rgba(24,20,16,.42), inset 0 -7px 10px rgba(24,20,16,.42), inset 0 0 0 1px rgba(0,0,0,.35), 0 2px 0 rgba(255,255,255,.18);
}
.slot-col[data-reel="2"] .slot-window { border-color: #f0e6d0; }
.slot-window::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(rgba(24,20,16,.2), transparent 27% 73%, rgba(24,20,16,.2));
}
.slot-strip { will-change: transform; }
.slot-cell {
  display: grid;
  place-items: center;
  height: 46px;
  max-width: 100%;
  padding: 0 3px;
  color: #181410;
  overflow-wrap: anywhere;
  text-align: center;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: 0;
}
.slot-cell.long { font-size: 8.7px; letter-spacing: -.025em; }
.slot-cell.xlong { font-size: 7.8px; letter-spacing: -.04em; }
.slot-col.blur .slot-strip { filter: blur(1.7px); }
.slot-col.clunk .slot-window { animation: slotClunk .26s var(--ease); }
@keyframes slotClunk {
  0% { transform: translateY(-3px); }
  46% { transform: translateY(2px); }
  100% { transform: none; }
}
.slot-col.locked .slot-col-label { color: #fffaf0; }
.slot-col.locked .slot-window { border-color: var(--yellow); }
.slot-col[data-reel="2"].locked .slot-window { border-color: var(--acid); }

/* Each reel is a button: tap it to hold that reel before the pull. */
button.slot-col { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.slot-col-label, .slot-window, .slot-strip { display: block; }
/* the tag sits on the window's bottom rail so held and free reels keep one baseline */
.slot-col-label i {
  display: none;
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: -9px;
  transform: translateX(-50%);
  padding: 1px 5px;
  border: 1.5px solid #050403;
  border-radius: 3px;
  background: var(--yellow);
  color: #181410;
  font-style: normal;
  line-height: 1.2;
  letter-spacing: .08em;
}
.slot-col.held .slot-col-label i { display: inline-block; }
.slot-col.held .slot-window { border-color: var(--yellow); }
.slot-col.open .slot-window { outline: 3px solid var(--acid); outline-offset: 2px; }
.slot-col:focus-visible { outline: none; }
.slot-col:focus-visible .slot-window { outline: 3px solid var(--acid); outline-offset: 2px; }
.slot-cell.any { color: #8b7f6c; letter-spacing: .1em; }
.slot-cell { overflow-wrap: normal; word-break: normal; }
.slot-shell.spinning .slot-col { pointer-events: none; cursor: default; }
.slot-shell.nudge { animation: slotShake .09s steps(2,end) 4; }

/* The hold tray takes the name bank's place while it is open. */
.slot-tray {
  margin-top: 12px;
  padding: 9px 10px 10px;
  border: 3px solid var(--acid);
  border-radius: 9px;
  background: #0e0d0b;
  box-shadow: inset 0 0 0 2px #050403, 0 3px 0 #050403;
}
.slot-tray[hidden] { display: none; }
.lottery-overlay.tray-open .slot-bank,
.lottery-overlay.tray-open .slot-meter { display: none; }
.slot-tray-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--acid); text-transform: uppercase; font-size: var(--t-micro); font-weight: 800; letter-spacing: .12em; }
.slot-tray-done { border: 1.5px solid #d9cdb4; border-radius: 4px; background: transparent; color: #fffaf0; padding: 5px 9px; text-transform: uppercase; font-size: var(--t-micro); font-weight: 800; letter-spacing: .1em; }
.slot-tray-options { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.slot-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-height: 38px;
  padding: 8px 10px;
  border: 2px solid #050403;
  border-radius: 6px;
  background: #fffaf0;
  color: #181410;
  box-shadow: 0 3px 0 #050403;
  text-transform: uppercase;
  font-size: var(--t-micro);
  font-weight: 800;
  letter-spacing: .04em;
}
.slot-chip small { color: #6f6555; font-size: var(--t-micro); }
.slot-chip.active { background: var(--yellow); }
.slot-chip.active small { color: #181410; }
.slot-chip:disabled { opacity: .35; cursor: not-allowed; }
.slot-chip:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 #050403; }

/* The winner prints as a ticket: where, what it costs, what to order. */
.slot-ticket[hidden] { display: none; }
.slot-ticket { margin-top: 6px; }
.slot-ticket-meta { display: grid; gap: 3px; margin: 0; color: #d9cdb4; text-transform: uppercase; font-size: var(--t-micro); font-weight: 800; line-height: 1.35; letter-spacing: .06em; }
.slot-ticket-meta b { color: var(--acid); }
.slot-ticket-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 9px; }
.slot-read,
.slot-again {
  min-height: 44px;
  border: 2px solid #050403;
  border-radius: 6px;
  padding: 0 8px;
  box-shadow: 0 3px 0 #050403;
  white-space: nowrap;
  text-transform: uppercase;
  font-size: var(--t-micro);
  font-weight: 900;
  letter-spacing: .04em;
}
.slot-read { background: var(--acid); color: #181410; }
.slot-again { border-color: var(--yellow); background: #2a231a; color: var(--yellow); }

.slot-bank {
  margin-top: 12px;
  border: 3px solid #756a58;
  border-radius: 9px;
  background: #0e0d0b;
  padding: 9px 10px 10px;
  box-shadow: inset 0 0 0 2px #050403, inset 0 8px 14px rgba(0,0,0,.58), 0 3px 0 #050403;
}
.slot-status { color: var(--yellow); text-transform: uppercase; font-size: var(--t-micro); font-weight: 800; letter-spacing: .12em; }
.slot-name-window { height: 58px; margin-top: 5px; overflow: hidden; }
.slot-name {
  display: flex;
  align-items: center;
  height: 58px;
  color: #fffaf0;
  font-family: var(--serif);
  font-size: 30px;
  line-height: .96;
  letter-spacing: -.03em;
  overflow-wrap: anywhere;
}
.slot-name.long { font-size: 24px; }
.slot-name.xlong { font-size: 19px; line-height: 1.04; }
.slot-name-window.rolling .slot-name { animation: nameRoll .1s linear infinite; }
@keyframes nameRoll { 0% { opacity: .55; transform: translateY(4px); } 100% { opacity: 1; transform: translateY(-3px); } }

.slot-meter { height: 8px; margin: 11px 0 0; border: 1.5px solid #d9cdb4; background: #0e0d0b; }
.slot-meter-fill {
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 6px, var(--orange) 6px 12px);
}
.slot-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
  border-top: 2px solid #5c5142;
  border-bottom: 2px solid #0b0907;
  background: #17120d;
  color: #d9cdb4;
  text-transform: uppercase;
  font-size: var(--t-micro);
  font-weight: 800;
  letter-spacing: .1em;
}

/* Lever */
.slot-lever-bay {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  margin: 8px -15px 8px 0;
  border: 3px solid #0b0907;
  border-left: 0;
  border-radius: 0 18px 18px 0;
  background: linear-gradient(90deg, #11100c, #51483a 54%, #17130e);
  box-shadow: inset 3px 0 0 rgba(0,0,0,.55), inset -4px 0 0 rgba(255,255,255,.08), 5px 6px 0 rgba(0,0,0,.55);
  touch-action: none;
  cursor: grab;
}
.slot-lever-bay.armed { cursor: grabbing; }
.slot-lever-plate {
  position: absolute;
  top: 8px;
  right: 7px;
  left: 7px;
  padding: 4px 2px;
  border: 1px solid #060504;
  border-radius: 4px;
  background: #cbbfa9;
  color: #181410;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 #fff9e8, 0 2px 0 #090705;
}
.slot-lever-slot {
  position: absolute;
  top: 52px;
  bottom: 35px;
  width: 12px;
  border: 2px solid #0a0806;
  border-radius: 8px;
  background: #17150f;
  box-shadow: inset 0 0 0 2px #756a58, inset 0 4px 8px #000;
}
.slot-lever-arm {
  position: absolute;
  top: 58px;
  width: 8px;
  height: 67px;
  border: 1px solid #181410;
  border-radius: 4px;
  background: linear-gradient(90deg, #6f665a, #d9cdb4 45%, #5d554b);
  transform-origin: 50% 100%;
  will-change: transform;
}
.slot-lever-knob {
  position: absolute;
  top: 39px;
  width: 31px;
  height: 31px;
  border: 3px solid #181410;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #ff6d72, #e62b31 52%, #9d1a20);
  box-shadow: inset 0 3px 0 rgba(255,255,255,.38), inset 0 -4px 0 rgba(91,9,14,.28), 0 4px 0 rgba(10,9,7,.8), 0 0 0 2px #817461;
  will-change: transform;
}
.slot-lever-arm,
.slot-lever-knob { transition: transform .42s var(--ease); }
.slot-lever-bay.dragging .slot-lever-arm,
.slot-lever-bay.dragging .slot-lever-knob { transition: none; }
.slot-lever-hint {
  position: absolute;
  bottom: 11px;
  color: var(--yellow);
  text-transform: uppercase;
  font-size: var(--t-micro);
  font-weight: 800;
  letter-spacing: .1em;
  text-align: center;
}
.slot-shell.spinning .slot-lever-hint { opacity: 0; }

.slot-hardware {
  position: relative;
  z-index: 2;
  min-height: 62px;
  display: grid;
  grid-template-columns: 52px 62px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 14px 10px;
  border-radius: 0 0 12px 12px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.12), transparent 10% 89%, rgba(0,0,0,.3)),
    linear-gradient(#5c5142, #2a231a);
  box-shadow: inset 0 3px 0 rgba(255,255,255,.15), inset 0 -4px 0 rgba(0,0,0,.35);
}
.slot-speaker {
  width: 48px;
  height: 38px;
  border: 2px solid #120f0b;
  border-radius: 5px;
  background: radial-gradient(circle, #100d0a 0 1.5px, transparent 1.7px) 0 0 / 7px 7px, #817461;
  box-shadow: inset 0 2px 5px rgba(0,0,0,.35);
}
.slot-coin-slot { display: grid; justify-items: center; gap: 4px; color: #e3d8c1; text-transform: uppercase; }
.slot-coin-slot span { font-size: 7px; font-weight: 900; letter-spacing: .1em; }
.slot-coin-slot i { width: 30px; height: 8px; border: 2px solid #080604; border-radius: 6px; background: #0b0907; box-shadow: inset 0 1px 3px #000, 0 1px 0 rgba(255,255,255,.22); }
.slot-payout { min-width: 0; display: grid; justify-items: center; gap: 3px; }
.slot-payout span { width: min(150px, 100%); height: 27px; border: 3px solid #090705; border-radius: 5px 5px 12px 12px; background: linear-gradient(#080604, #201a13); box-shadow: inset 0 7px 9px #000, 0 2px 0 rgba(255,255,255,.13); }
.slot-payout b { color: #d9cdb4; font-size: 7px; letter-spacing: .13em; text-transform: uppercase; }
.slot-feet { position: absolute; z-index: -1; right: 28px; bottom: -20px; left: 28px; display: flex; justify-content: space-between; }
.slot-feet i { width: 62px; height: 22px; border: 3px solid #090705; border-radius: 0 0 8px 8px; background: linear-gradient(90deg, #17120d, #574d3e, #17120d); box-shadow: 3px 4px 0 rgba(0,0,0,.45); }

.lottery-overlay.jackpot-primed .slot-crown-bulbs i { animation: primedBulbs .48s steps(2,end) infinite alternate; }
.lottery-overlay.jackpot-primed .slot-bank { box-shadow: inset 0 0 0 2px #050403, inset 0 8px 14px rgba(0,0,0,.58), 0 0 20px rgba(220,255,63,.45); }
.lottery-overlay.near-miss .slot-window { border-color: #ff6d72; animation: nearMissWindow .16s steps(2,end) 5; }
.lottery-overlay.near-miss .slot-name { color: #ff6d72; }
.lottery-overlay.near-miss .slot-crown { filter: saturate(1.5); }
@keyframes primedBulbs { to { filter: brightness(2); box-shadow: 0 0 13px var(--acid); } }
@keyframes nearMissWindow { 50% { transform: translateY(2px); filter: brightness(1.45); } }

/* Win moment — the cabinet hands itself to the winner. */
.slot-flash {
  position: fixed;
  inset: 0;
  z-index: 4;
  background: var(--acid);
  opacity: 0;
  pointer-events: none;
}
.lottery-overlay.winner .slot-flash { animation: slotFlash .5s var(--ease) forwards; }
@keyframes slotFlash { 0% { opacity: .82; } 100% { opacity: 0; } }
.lottery-overlay.winner .slot-shell { animation: slotWin .55s var(--ease) both; }
@keyframes slotWin {
  0% { transform: scale(.95) rotate(-1.4deg); }
  55% { transform: scale(1.045) rotate(.8deg); }
  100% { transform: none; }
}
.lottery-overlay.winner .slot-marquee { background: var(--acid); color: #181410; }
.lottery-overlay.winner .slot-pool { background: var(--red); color: #fffaf0; }
.lottery-overlay.winner .slot-status { color: var(--yellow); }
.slot-reels,
.slot-name-window,
.slot-name { transition: height .45s var(--ease), opacity .35s, font-size .35s; }
/* still readable, still tappable — change a hold and pull again */
.lottery-overlay.winner .slot-reels { opacity: .62; }
.lottery-overlay.winner .slot-meter { display: none; }
.lottery-overlay.winner .slot-bank { border-color: var(--acid); }
.lottery-overlay.winner .slot-name-window { height: 92px; }
.lottery-overlay.winner .slot-name { height: 92px; font-size: 44px; }
.lottery-overlay.winner .slot-name.long { font-size: 34px; }
.lottery-overlay.winner .slot-name.xlong { font-size: 27px; line-height: 1.02; }

/* open at the top and sides only: a box hanging below the machine made a
   short phone scroll for nothing */
.slot-confetti { position: absolute; inset: -20% -10% 0; z-index: 6; pointer-events: none; overflow: hidden; }
.slot-confetti span {
  position: absolute;
  top: 42%;
  width: 7px;
  height: 15px;
  opacity: 0;
}
.lottery-overlay.winner .slot-confetti span { animation: slotConfetti 1.25s var(--ease) forwards; }
@keyframes slotConfetti {
  0% { opacity: 1; transform: translate3d(0,0,0) rotate(0deg); }
  100% { opacity: 0; transform: translate3d(var(--cx), var(--cy), 0) rotate(var(--cr)); }
}

/* ── Map, in the same edition ────────────────────────────────── */
.leaflet-tile-pane { filter: grayscale(1) sepia(.42) contrast(.82) brightness(1.06); }
html[data-theme="dark"] .leaflet-tile-pane { filter: grayscale(1) invert(.9) sepia(.3) hue-rotate(6deg) brightness(.6) contrast(.9); }
.leaflet-container { background: var(--paper-low); }
.leaflet-control-zoom {
  border: 1.5px solid var(--ink) !important;
  border-radius: 0 !important;
  box-shadow: 4px 5px 0 var(--ink) !important;
  overflow: hidden;
}
.leaflet-top.leaflet-left { right: 12px; left: auto; }
.leaflet-control-zoom a {
  width: 44px !important;
  height: 44px !important;
  line-height: 42px !important;
  border-radius: 0 !important;
  background: var(--paper-hi) !important;
  color: var(--ink) !important;
  font-weight: 800 !important;
}
.leaflet-control-zoom a:hover { background: var(--acid) !important; color: #181410 !important; }
.leaflet-control-attribution {
  border: 1px solid var(--ink) !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  background: color-mix(in srgb, var(--paper-hi) 88%, transparent) !important;
  color: var(--ink) !important;
  padding: 3px 6px !important;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.leaflet-control-attribution a { color: var(--red) !important; }
.marker-cluster { background: transparent !important; }
.marker-cluster div {
  border-radius: 0 !important;
  border: 2px solid #181410 !important;
  background: var(--acid) !important;
  color: #181410 !important;
  box-shadow: 3px 3px 0 #181410;
}
.marker-cluster span { font: 800 11px var(--mono) !important; }
.map-caption { max-width: calc(100vw - 24px); line-height: 1.35; box-shadow: 3px 3px 0 rgba(24,20,16,.35); }
.user-pin { box-shadow: 0 0 0 2px var(--ink), 0 0 0 10px rgba(230,43,49,.18); }

/* ── Prominent prev/next in the review sheet ─────────────────── */
.dossier-actions { grid-template-columns: minmax(0, 1fr) auto 54px 54px; gap: 8px; }
.share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  padding: 0 12px;
  border: 2px solid #181410;
  background: var(--paper-hi);
  color: var(--ink);
  box-shadow: 4px 5px 0 #181410;
  text-transform: uppercase;
  font-size: var(--t-label);
  font-weight: 800;
}
.share-link span { font-size: 15px; line-height: 1; }
.share-link:hover { background: var(--yellow); color: #181410; }

/* ── "More around here" — the next page for a reader who came in from a story ── */
.dossier-more { margin-top: 22px; }
.dossier-more-list { display: grid; gap: 8px; margin-top: 9px; }
.more-spot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 3px 10px;
  width: 100%;
  padding: 10px 11px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  text-align: left;
}
.more-spot-kicker { grid-column: 1 / -1; overflow: hidden; color: var(--red-type); text-overflow: ellipsis; white-space: nowrap; text-transform: uppercase; font-size: var(--t-micro); font-weight: 800; letter-spacing: .06em; }
.more-spot b { min-width: 0; overflow: hidden; font-family: var(--serif); font-size: 22px; font-weight: 400; line-height: 1.05; text-overflow: ellipsis; white-space: nowrap; }
.more-spot-price { text-transform: uppercase; font-size: var(--t-micro); font-weight: 800; }
.more-spot:hover { background: var(--acid); color: #181410; }
.more-spot:hover .more-spot-kicker { color: #181410; }
.dossier-nav {
  border: 2px solid #181410;
  background: var(--acid);
  color: #181410;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}
.maps-link { border-width: 2px; }

/* ── Night-edition corrections ───────────────────────────────────
   Buttons, chips, stamps and the near-me bar take their night colours from
   the tokens in ui.css; only the pieces outside the system are corrected. */
html[data-theme="dark"] .map-caption,
html[data-theme="dark"] .dossier-photo-count,
html[data-theme="dark"] .toast {
  background: var(--ink);
  color: var(--paper-low);
}
html[data-theme="dark"] .pin-body,
html[data-theme="dark"] .pin-body.cafe,
html[data-theme="dark"] .pin-body.stall,
html[data-theme="dark"] .pin-body.bakery,
html[data-theme="dark"] .pin-body.dessert { color: #181410; }
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder { color: color-mix(in srgb, var(--ink) 68%, transparent); opacity: 1; }
html[data-theme="dark"] .map-preview { background: var(--paper-hi); }

/* ── Breakpoints ─────────────────────────────────────────────── */
@media (max-width: 759px) {
  .world-intro { top: 12px; left: 12px; right: 12px; }
  .world-intro h1 { font-size: clamp(43px, 12vw, 62px); line-height: .8; }
  .world-intro p { width: min(290px, 78vw); margin-top: 12px; font-size: var(--t-copy); line-height: 1.48; }
  .world-kicker { font-size: var(--t-micro); }
  .gesture-coach { font-size: var(--t-micro); }
  .filter-launch { min-width: min(230px, calc(100vw - 83px)); }
  .filter-launch-copy strong { font-size: 18px; }
  .filter-sheet h2 { font-size: 36px; }
  .filter-group-title span:last-child { max-width: 54%; text-align: right; }
  .slot-marquee h2 { font-size: 24px; }
  .lottery-overlay.winner .slot-name-window,
  .lottery-overlay.winner .slot-name { height: 82px; }
  .lottery-overlay.winner .slot-name { font-size: 36px; line-height: .9; }
  .lottery-overlay.winner .slot-name.long { font-size: 27px; line-height: .94; }
  .lottery-overlay.winner .slot-name.xlong { font-size: 21px; line-height: 1; }
}
@media (min-width: 760px) {
  .world-nav { left: 4vw; top: 5vh; }
  .world-intro h1 { font-size: clamp(68px, 7.4vw, 108px); line-height: .78; }
  .world-intro p { width: min(340px, 62vw); margin-top: 22px; }
  .street-rail { left: 4vw; right: 4vw; bottom: calc(var(--dock-h) + 22px); }
  .focus-card { width: 320px; bottom: calc(var(--dock-h) + 86px); }
  .lottery-overlay { bottom: 0; }
  .filter-scrim { bottom: 0; }
  .filter-sheet { left: 50%; right: auto; bottom: 0; width: 560px; transform: translate(-50%, calc(100% + 12px)); }
  .filter-sheet.open { transform: translate(-50%, 0); }
  .map-preview { left: 24px; right: auto; bottom: 24px; width: 420px; }
  .slot-shell { width: 452px; }
  .slot-marquee h2 { font-size: 31px; }
  .slot-name { font-size: 34px; }
  .lottery-overlay.winner .slot-name { font-size: 50px; }
}
@media (max-height: 720px) and (max-width: 759px) {
  .lottery-overlay { align-items: start; padding: 45px 10px 28px; }
  .slot-shell,
  .lottery-overlay.show .slot-shell { transform: none; }
  .slot-crown { top: -39px; height: 55px; }
  .slot-crown span { margin-top: 8px; }
  .slot-crown b { font-size: 22px; }
  .slot-marquee { min-height: 82px; padding-top: 22px; padding-bottom: 8px; }
  .slot-marquee h2 { font-size: 23px; }
  .slot-machine-deck { padding-top: 4px; padding-bottom: 4px; }
  .slot-main { padding: 8px 8px 0; }
  .slot-reels { padding: 5px 6px 6px; }
  .slot-col-label { margin-bottom: 3px; }
  .slot-bank { margin-top: 7px; padding: 7px 9px 8px; }
  .slot-name-window,
  .slot-name { height: 45px; }
  .slot-name { font-size: 26px; }
  .slot-name.long { font-size: 22px; }
  .slot-name.xlong { font-size: 18px; }
  .slot-meter { margin-top: 7px; }
  .slot-foot { padding: 6px 10px; }
  .slot-hardware { min-height: 47px; padding-top: 5px; padding-bottom: 6px; }
  .slot-speaker { height: 30px; }
  .slot-payout span { height: 22px; }
  .slot-lever-plate { top: 6px; }
  .slot-lever-slot { top: 46px; bottom: 27px; }
  .slot-lever-arm { top: 51px; height: 55px; }
  .slot-lever-knob { top: 33px; width: 28px; height: 28px; }
  .slot-lever-hint { bottom: 6px; }
  .lottery-overlay.winner .slot-name-window,
  .lottery-overlay.winner .slot-name { height: 64px; }
  .lottery-overlay.winner .slot-name { font-size: 30px; }
  .lottery-overlay.winner .slot-name.long { font-size: 23px; }
  .lottery-overlay.winner .slot-name.xlong { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .slot-shell.shaking,
  .slot-shell.nudge,
  .slot-col.clunk .slot-window,
  .slot-name-window.rolling .slot-name,
  .lottery-overlay.winner .slot-shell,
  .lottery-overlay.winner .slot-confetti span,
  .lottery-overlay.winner .slot-flash,
  body.is-picking .dock-btn.random .dock-icon { animation: none !important; }
  .slot-crown.wink,
  .lottery-overlay.jackpot-primed .slot-crown-bulbs i,
  .lottery-overlay.near-miss .slot-window { animation: none !important; }
  .slot-col.blur .slot-strip { filter: none; }
  .slot-reels, .slot-name-window, .slot-name { transition: none; }
  .gesture-coach { animation: none; }
}

/* ── Layout guards ──────────────────────────────────────────────
   Each rule here fixes a collision found by walking every view at
   320–430px phones, a landscape phone, a tablet and a laptop. They sit last
   so they win over the older rules they correct. */


/* The review's close button travels with the reader instead of scrolling
   away with the photograph. It stays in flow so it can be sticky, and pulls
   the photo back up under itself. */
.dossier-close { position: sticky; top: 34px; right: auto; display: grid; place-items: center; margin: 11px 18px -55px auto; }

/* The map's chip row is a transparent strip; only the chips take taps, so the
   map underneath (and the zoom column beside it) keeps working. */
.map-filter-row { pointer-events: none; }
.map-filter-row .active-filter-chip { pointer-events: auto; }

/* Touch targets that measured under 30px. */
.world-crumb button { min-height: 44px; margin: 0 -6px; padding: 0 6px; }
.slot-tray-done { flex: none; min-height: 40px; padding: 8px 12px; }
.slot-tray-head { align-items: center; }
.slot-tray-head span { min-width: 0; line-height: 1.3; }
.street-track { touch-action: none; cursor: ew-resize; }

.slot-ticket-meta span { overflow-wrap: anywhere; }

/* The hint has said its piece after a few seconds; it was sitting on the
   nearest landmark's sign for as long as nobody touched the city. */
.gesture-coach { animation: coachOut .45s ease 6s forwards; }
@keyframes coachOut { to { opacity: 0; visibility: hidden; transform: translate(-50%, 8px); } }

@media (max-width: 759px) {
  /* a tighter masthead card, so the city stays the picture */
  .world-intro { right: auto; width: min(320px, calc(100% - 24px)); padding: 10px 12px 12px; }
  .world-intro h1 { font-size: clamp(38px, 11vw, 52px); }
  .world-intro p { width: auto; max-width: 270px; margin-top: 10px; font-size: 13px; }
  /* the top-left tools stop short of the zoom column on the right */
  .map-tools { right: 70px; }
}
@media (max-width: 380px) {
  .slot-ticket-actions { grid-template-columns: 1fr; }
  /* the decorative counters truncated to "CRED…" and "O…"; the footer
     keeps only its first line */
  .slot-machine-deck { display: none; }
  .slot-foot { justify-content: center; }
  .slot-foot span:last-child { display: none; }
}
@media (max-width: 480px) and (max-height: 720px) {
  /* the short crown has room for the bulbs and the sevens, not the label too */
  .slot-crown span { display: none; }
  .slot-crown b { margin-top: 8px; }
}
@media (max-width: 759px) and (max-height: 720px) {
  .world-intro p { display: none; }
  .filter-sheet-head { padding: 10px 12px 8px; }
  .filter-sheet h2 { font-size: 26px; }
  .region-facet { min-height: 44px; }
}

/* Tablets and laptops: the pin preview clears the floating dock. */
@media (min-width: 760px) {
  .map-preview { bottom: calc(var(--dock-h) + 36px); }
}

/* Landscape phones are wide enough for the desk layout but only ~340px tall,
   so the intro, the filter bar and the hint were stacked on top of each
   other. Everything gets shorter and the hint goes. */
@media (min-width: 760px) and (max-height: 520px) {
  :root { --dock-h: 52px; }
  .dock { bottom: 8px; }
  .dock-btn { gap: 3px; }
  .dock-icon { width: 25px; height: 25px; }
  .world-intro { top: 10px; width: 290px; padding: 8px 12px 10px; }
  .world-intro h1 { font-size: 42px; }
  .world-intro p { display: none; }
  .gesture-coach { display: none; }
  .world-nav { top: 10px; }
  .street-rail { bottom: calc(var(--dock-h) + 18px); }
  .focus-card { bottom: calc(var(--dock-h) + 74px); }
  .map-preview { bottom: calc(var(--dock-h) + 20px); }
  .filter-sheet { max-height: calc(100svh - var(--masthead-h) - 12px); }
}
