/*
  Tiltmore's: pinball bar website (Screenery template)
  The page is a 1970s cabinet: black backglass mask, airbrushed sunset, chrome trim, a teal playfield,
  cream instruction and score cards on the apron, an orange dot-matrix display, a steel coin door.

  Contents
   1. Tokens
   2. Base and browser surfaces
   3. Shared kit: buttons, chips, steppers, checks, segmented, alerts, keys
   4. Header (the backbox top)
   5. Cabinet: backglass, reels, lamps, playfield, deck
   6. Apron: booking form and the score card
   7. Floor: filters, plan, machine list
   8. Kitchen
   9. League (dot-matrix)
  10. House rules (instruction card)
  11. Bench (workshop)
  12. Visit (coin door, map)
  13. Footer
  14. Motion
  15. Narrow screens
*/

/* ---------- 1. Tokens ---------- */
:root {
  /* Glass and cabinet */
  --glass: #140d12;          /* the black mask, page ground */
  --glass-2: #1f151b;
  --glass-3: #2c1d26;
  --trim: #4a3641;           /* cabinet trim lines on glass */

  /* Backglass inks */
  --plum: #3b1838;
  --red: #c4213a;            /* cream on red: 4.7:1 */
  --red-hi: #ef4452;
  --red-deep: #a3192a;
  --orange: #f26a21;
  --mustard: #f7b733;
  --mustard-deep: #c98a0e;

  /* Cards and playfield */
  --cream: #f6e7c4;
  --cream-2: #ead6a6;
  --ink: #1f1418;
  --ink-2: #4c3842;          /* secondary text on cream, 8:1 */
  --teal: #13807a;
  --teal-deep: #0b4744;
  --teal-ink: #062b29;
  --chrome: #d9dde3;
  --chrome-dk: #8d939c;
  --steel: #b9bec6;

  /* Text on glass */
  --text: #f3e6d0;
  --text-2: #cdb9a0;         /* 9:1 on --glass */
  --dmd: #ff8a3d;            /* dot-matrix orange */

  /* Type */
  --disp: "Bungee Shade", "Arial Black", sans-serif;
  --sans: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.625rem;

  /* Space and shape */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: 104px;
  --r-sm: 4px; --r: 8px; --r-lg: 14px; --r-pill: 999px;
  --gutter: clamp(16px, 3vw, 40px);
  --maxw: 1320px;
  --top-h: 60px;

  --shadow-card: 0 2px 4px rgb(0 0 0 / .25), 0 18px 40px -12px rgb(0 0 0 / .55);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- 2. Base and browser surfaces ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 12px); scrollbar-color: var(--mustard-deep) var(--glass-2); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--glass); color: var(--text);
  font: 400 var(--fs-md)/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
::selection { background: var(--mustard); color: var(--ink); }
input, textarea { caret-color: var(--red); }
:root { accent-color: var(--red); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--glass-2); }
::-webkit-scrollbar-thumb { background: var(--mustard-deep); border-radius: 6px; border: 3px solid var(--glass-2); }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; border-radius: 4px; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1.5px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }
button { font: inherit; color: inherit; }
img, svg { display: block; }
[hidden] { display: none !important; }
.no-js .deck, .no-js .deck__help { display: none; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--mustard); color: var(--ink); padding: 10px 14px; border-radius: var(--r); font-weight: 700; }
.skip:focus { top: 12px; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.num, .reels, .price, .scorecard, .ltable td { font-variant-numeric: tabular-nums; }

/* Section heading: Bungee Shade, lettered like a backglass title */
.sh { font: 400 clamp(1.9rem, 3.6vw, 3.1rem)/1.05 var(--disp); color: var(--mustard); letter-spacing: .01em; }
.sh--ink { color: var(--red-deep); }
.chrome { font-family: var(--disp); font-weight: 400; color: var(--cream); }

/* ---------- 3. Shared kit ---------- */
.btn {
  --b: var(--red); --f: var(--cream);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: var(--r-pill);
  background: var(--b); color: var(--f); font: 700 var(--fs-md)/1 var(--sans); letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background-color .2s, box-shadow .2s;
}
/* Start button: domed red plastic */
.btn--start {
  background: radial-gradient(120% 140% at 50% 0%, var(--red-hi), var(--red) 55%, var(--red-deep));
  box-shadow: inset 0 -3px 0 rgb(0 0 0 / .25), inset 0 2px 0 rgb(255 255 255 / .25), 0 6px 14px -4px rgb(0 0 0 / .55);
}
.btn--start:hover { transform: translateY(-1px); box-shadow: inset 0 -3px 0 rgb(0 0 0 / .25), inset 0 2px 0 rgb(255 255 255 / .3), 0 10px 20px -6px rgb(0 0 0 / .6); }
.btn--start:active { transform: translateY(1px); }
.btn--line { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--chrome-dk); }
.btn--line:hover { box-shadow: inset 0 0 0 2px var(--mustard); color: var(--mustard); }
.btn--ghost { background: rgb(20 13 18 / .86); color: var(--cream); box-shadow: inset 0 0 0 2px var(--mustard); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: var(--fs-sm); }
.btn--lg { min-height: 58px; padding: 0 30px; font-size: var(--fs-lg); }
.btn[disabled], .btn[aria-busy="true"] { cursor: progress; }
.btn[disabled]:not([aria-busy="true"]) { opacity: .5; cursor: not-allowed; }

.chip {
  min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); border: 2px solid var(--chrome-dk);
  background: transparent; color: var(--text); font-weight: 600; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--mustard); }
.chip[aria-pressed="true"] { background: var(--mustard); border-color: var(--mustard); color: var(--ink); }

.stepper { display: inline-flex; align-items: center; gap: 4px; }
.step {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer;
}
.step svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.step:hover { background: var(--ink); color: var(--cream); }
.step:disabled { opacity: .35; cursor: not-allowed; background: transparent; color: var(--ink); }
.step__v { min-width: 2ch; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.stepper--big .step { width: 46px; height: 46px; }
.stepper--big .step__v { font: 700 2rem/1 var(--sans); min-width: 2.2ch; color: var(--red-deep); }

.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { flex: none; width: 26px; height: 26px; border: 2px solid var(--ink); border-radius: 6px; display: grid; place-items: center; background: #fff8e8; margin-top: 1px; }
.check__box svg { width: 16px; height: 16px; fill: none; stroke: var(--cream); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.check input:checked + .check__box { background: var(--red); border-color: var(--red); }
.check input:checked + .check__box svg { opacity: 1; }
.check input:focus-visible + .check__box { outline: 3px solid var(--red); outline-offset: 2px; }
.check input:disabled ~ span:last-child { color: var(--ink-2); }
.check input:disabled + .check__box { opacity: .5; }
.check:has(input:disabled) { cursor: not-allowed; }

.seg { display: inline-flex; border: 2px solid var(--ink); border-radius: var(--r-pill); padding: 3px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: grid; place-items: center; min-height: 38px; padding: 0 16px; border-radius: var(--r-pill); font-weight: 600; }
.seg input:checked + span { background: var(--ink); color: var(--cream); }
.seg input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }

.key { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin: 0 6px 0 14px; }
.key:first-child { margin-left: 0; }
.key--on { background: var(--cream); }
.key--rep { background: repeating-linear-gradient(45deg, var(--red) 0 3px, var(--glass-2) 3px 6px); }
.key--dim { background: transparent; box-shadow: inset 0 0 0 2px rgb(246 231 196 / .5); }
.key--in { background: var(--dmd); margin-left: 0; border-radius: 50%; }

/* ---------- 4. Header ---------- */
.top {
  position: sticky; top: 0; z-index: 30; height: var(--top-h);
  display: flex; align-items: center; gap: var(--s5); padding: 0 var(--gutter);
  background: var(--glass); border-bottom: 1px solid var(--trim);
}
.top__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 400 1.35rem/1 var(--disp); color: var(--mustard); }
.top__brand svg { width: 26px; height: 26px; }
.top__nav { display: flex; gap: 4px; margin-left: auto; }
.top__nav a { padding: 8px 10px; text-decoration: none; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: var(--fs-sm); color: var(--text-2); border-radius: var(--r-sm); }
.top__nav a:hover { color: var(--mustard); }
.top__open { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--text-2); white-space: nowrap; }
.top__open.is-open { color: var(--mustard); }

/* ---------- 5. Cabinet ---------- */
.cabinet {
  display: grid; gap: var(--s5); padding: var(--s5) var(--gutter) var(--s7);
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  grid-template-areas: "glass field";
  min-height: calc(100svh - var(--top-h)); max-width: 1560px; margin: 0 auto;
}

/* The backglass: a framed pane with art behind real text */
.glass {
  grid-area: glass; position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; min-height: 520px;
  border-radius: var(--r-lg); background: var(--plum);
  box-shadow: 0 0 0 2px var(--chrome-dk), 0 0 0 8px var(--glass-3), 0 0 0 10px var(--trim), var(--shadow-card);
  margin: 10px;
}
.glass__scene { position: relative; flex: 1; min-height: 380px; isolation: isolate; container-type: size; }
/* Wide panes crop the sky away, so the set shrinks toward the horizon to keep the title clear */
.glass__set { transform-box: view-box; transform-origin: 300px 560px; }
@container (min-aspect-ratio: 5 / 4) { .glass__set { transform: scale(.8); } }
@container (min-aspect-ratio: 8 / 5) { .glass__set { transform: scale(.68); } }
.glass__art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.glass__head { padding: var(--s5) var(--s5) 0; text-align: center; }
.glass__head .chrome {
  font-size: clamp(2.4rem, 4.6vw, 4.4rem); line-height: .95; color: var(--mustard);
  /* the font's own shade carries the chrome; a soft drop sits it on the airbrush */
  text-shadow: 0 6px 18px rgb(42 15 44 / .7);
}
.glass__sub {
  display: inline-block; margin-top: var(--s3); padding: 6px 14px; border-radius: var(--r-pill);
  background: var(--glass); color: var(--cream); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: var(--fs-sm);
}
.burst { position: absolute; right: 6%; bottom: 14%; width: clamp(120px, 12vw, 170px); aspect-ratio: 1; display: grid; place-items: center; transform: rotate(-10deg); }
.burst svg { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 6px 10px rgb(42 15 44 / .45)); }
.burst span { position: relative; text-align: center; color: var(--ink); font-weight: 700; text-transform: uppercase; font-size: .8rem; line-height: 1.05; letter-spacing: .04em; max-width: 9ch; }
.burst b { display: block; font: 400 2.6rem/1 var(--disp); color: var(--red-deep); }

/* Black mask with score reels and lit lamps */
.mask { background: var(--glass); padding: var(--s4) var(--s5);
  display: grid; grid-template-columns: auto 1fr; gap: var(--s3) var(--s5); align-items: center;
  border-top: 3px solid var(--mustard);
}
.reel-label { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); font-weight: 600; margin-bottom: 4px; }
.reels { display: inline-flex; gap: 3px; padding: 4px; background: #000; border-radius: 6px; box-shadow: inset 0 0 0 2px var(--chrome-dk); }
.reel {
  width: 30px; height: 44px; overflow: hidden; border-radius: 3px; position: relative;
  background: linear-gradient(#bfb39a, #f7f0dc 30%, #f7f0dc 70%, #bfb39a);
}
.reel i { display: block; font: 700 2rem/44px var(--sans); color: var(--ink); text-align: center; font-style: normal; transition: transform .45s var(--ease); }
.mask__lamps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.mask__lamps li {
  padding: 5px 10px; border-radius: var(--r-sm); font-weight: 700; font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase;
  color: #9c8a90; background: var(--glass-3); transition: background-color .25s, color .25s, box-shadow .25s;
}
.mask__lamps li.lit { background: var(--mustard); color: var(--ink); box-shadow: inset 0 0 0 2px #ffe08a; }
.mask__lamps li[data-lamp="tilt"].lit { background: var(--red); color: var(--cream); box-shadow: inset 0 0 0 2px var(--red-hi); }
.mask__hi { grid-column: 1 / -1; font-size: var(--fs-sm); color: var(--text-2); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.mask__hi b { color: var(--mustard); font-size: var(--fs-lg); font-variant-numeric: tabular-nums; }

/* Lede under the glass */
.cabinet__lede { grid-column: 1 / -1; display: grid; gap: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--trim); }
.cabinet__lede { gap: var(--s3); padding-top: var(--s3); }
.cabinet__lede p { font-size: var(--fs-md); max-width: 68ch; color: var(--text); }
.cabinet__acts { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* The playfield */
.field { grid-area: field; display: flex; flex-direction: column; gap: var(--s3); min-width: 0; }
.table {
  position: relative; flex: 1; min-height: 460px; border-radius: 18px 18px 6px 6px; overflow: hidden;
  background: #071a19;
  /* side rails in chrome, the glass edge inside */
  box-shadow: inset 0 0 0 3px #071a19, 0 0 0 6px var(--chrome-dk), 0 0 0 9px var(--glass-3), var(--shadow-card);
  margin: 9px 9px 0; outline-offset: 10px; cursor: pointer; touch-action: manipulation;
}
.table__still, .table__gl { position: absolute; inset: 0; width: 100%; height: 100%; }
.table__still { padding: 8px; background: radial-gradient(120% 80% at 50% 100%, #0f3c3a, #071a19); }
.table__gl { opacity: 0; transition: opacity .6s var(--ease); }
.table.is-live .table__gl { opacity: 1; }
.table.is-live .table__still { opacity: 0; transition: opacity .6s .2s; }
.table__msg {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 2; width: max-content; max-width: calc(100% - 32px);
  padding: 8px 14px; border-radius: var(--r-pill); background: rgb(20 13 18 / .92); color: var(--cream); font-weight: 600; text-align: center; font-size: var(--fs-sm);
}
.table__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; }
.table__play[hidden] { display: none; }

.deck {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s4);
  margin: 0 9px; padding: var(--s3) var(--s4); border-radius: 0 0 var(--r) var(--r);
  background: var(--glass-3); box-shadow: inset 0 10px 0 var(--chrome-dk); padding-top: calc(var(--s3) + 10px);
}
.flip {
  width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  background: radial-gradient(circle at 36% 26%, var(--red-hi) 0 10%, var(--red) 40%, var(--red-deep));
  box-shadow: 0 0 0 4px var(--chrome-dk), inset 0 -4px 0 rgb(0 0 0 / .25);
  color: var(--cream); font-weight: 700; font-size: var(--fs-sm); touch-action: none; user-select: none; -webkit-user-select: none;
}
.flip.is-down, .flip:active { transform: translateY(2px); box-shadow: 0 0 0 4px var(--chrome-dk), inset 0 2px 0 rgb(0 0 0 / .3); }
.plunger {
  display: grid; gap: 6px; justify-items: center; background: transparent; border: 0; cursor: pointer; padding: 6px; border-radius: var(--r);
  touch-action: none; user-select: none; -webkit-user-select: none; color: var(--text-2);
}
.plunger__rod { width: min(100%, 260px); height: 16px; border-radius: 8px; background: #000; box-shadow: inset 0 0 0 2px var(--chrome-dk); overflow: hidden; }
.plunger__rod i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--mustard), var(--orange), var(--red)); border-radius: 8px; }
.plunger__txt { font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.deck__help { font-size: var(--fs-sm); color: var(--text-2); margin: 0 9px; }

/* ---------- 6. Apron: booking ---------- */
.apron {
  padding: var(--s8) var(--gutter); background: var(--glass-3);
  border-top: 4px solid var(--chrome-dk);
  background-image: radial-gradient(rgb(255 255 255 / .035) 1px, transparent 1.5px); background-size: 6px 6px;
}
.apron__head, .apron__body { max-width: var(--maxw); margin: 0 auto; }
.apron__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--s5) var(--s7); align-items: end; margin-bottom: var(--s6); }
.apron__head p { color: var(--text); max-width: 62ch; }
.apron__body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: var(--s6); align-items: start; }

.card { background: var(--cream); color: var(--ink); border-radius: var(--r); box-shadow: var(--shadow-card); }
.form { padding: var(--s6); display: grid; gap: var(--s6); }
.note { background: var(--cream-2); padding: var(--s4); border-radius: var(--r); }
.q { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: var(--s3); }
.q legend, .lbl { font-weight: 700; font-size: var(--fs-lg); padding: 0; margin-bottom: var(--s3); }
.lbl { margin-bottom: var(--s2); }
.q legend + * { margin-top: 0; }
.opt { font-weight: 500; font-size: var(--fs-sm); color: var(--ink-2); margin-left: 6px; }
.hint { font-size: var(--fs-sm); color: var(--ink-2); }
.err { color: #a3192a; font-weight: 600; font-size: var(--fs-sm); font-style: normal; display: flex; gap: 6px; align-items: center; }
.err[hidden] { display: none; }
.q--row { display: flex; flex-wrap: wrap; gap: var(--s5) var(--s7); align-items: flex-start; }
.hours[hidden] { display: none; }

.kind { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.kind__opt { position: relative; cursor: pointer; }
.kind__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kind__opt span { display: grid; gap: 4px; height: 100%; padding: var(--s4); border: 2px solid var(--ink); border-radius: var(--r); font-size: var(--fs-sm); color: var(--ink-2); transition: background-color .2s; }
.kind__opt b { font-size: var(--fs-lg); color: var(--ink); }
.kind__opt input:checked + span { background: var(--ink); color: var(--cream-2); }
.kind__opt input:checked + span b { color: var(--mustard); }
.kind__opt input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }

.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day {
  display: grid; gap: 2px; justify-items: center; padding: 8px 4px; min-height: 72px; border-radius: var(--r);
  border: 2px solid rgb(31 20 24 / .35); background: #fff8e8; cursor: pointer; color: var(--ink);
}
.day b { font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; }
.day strong { font-size: 1.375rem; line-height: 1; font-variant-numeric: tabular-nums; }
.day small { font-size: .75rem; font-weight: 600; color: var(--ink-2); }
.day small.busy { color: #a3192a; }
.day small.lg { color: var(--teal-deep); }
.day:hover { border-color: var(--ink); }
.day[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: var(--cream); }
.day[aria-pressed="true"] small { color: var(--cream); }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
.slot {
  display: grid; gap: 2px; padding: 8px 10px; min-height: 60px; border-radius: var(--r); text-align: left;
  border: 2px solid rgb(31 20 24 / .35); background: #fff8e8; cursor: pointer; color: var(--ink);
}
.slot strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 6px; }
.slot small { font-size: .75rem; font-weight: 600; color: var(--ink-2); }
.slot small.few { color: #a3192a; }
.slot:hover:not(:disabled) { border-color: var(--ink); }
.slot[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.slot[aria-pressed="true"] small { color: var(--cream-2); }
.slot:disabled { cursor: not-allowed; background: transparent; border-style: dashed; color: var(--ink-2); }
.slot:disabled strong { text-decoration: line-through; text-decoration-thickness: 2px; }
.tag18 { display: inline-grid; place-items: center; padding: 0 5px; height: 18px; border-radius: 4px; background: var(--ink); color: var(--mustard); font-size: .6875rem; font-weight: 700; letter-spacing: .04em; }
.slot[aria-pressed="true"] .tag18 { background: var(--mustard); color: var(--ink); }

.check-wrap { gap: var(--s2); }
.check-wrap[hidden] { display: none; }
[data-age] { background: #fff1c9; padding: var(--s4); border-radius: var(--r); border: 2px solid var(--mustard-deep); }

.preorder { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); }
.pre__h { font-weight: 700; font-size: var(--fs-sm); letter-spacing: .12em; text-transform: uppercase; color: var(--red-deep); margin-bottom: var(--s2); }
.pre__list { list-style: none; margin: 0; padding: 0; }
.pre { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: 6px 0; border-bottom: 1px dashed rgb(31 20 24 / .25); }
.pre__name { font-weight: 600; }
.pre__name small { font-weight: 500; color: var(--ink-2); margin-left: 4px; font-variant-numeric: tabular-nums; }
.pre.has .pre__name { color: var(--red-deep); }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.field-l { display: grid; gap: 6px; }
.field-l--wide { grid-column: 1 / -1; }
.field-l > span { font-weight: 600; }
.field-l i { font-style: normal; font-weight: 500; color: var(--ink-2); font-size: var(--fs-sm); }
.field-l input {
  font: inherit; color: var(--ink); background: #fff8e8; min-height: 48px; padding: 0 14px;
  border: 2px solid rgb(31 20 24 / .45); border-radius: var(--r);
}
.field-l input::placeholder { color: #75606a; }
.field-l input:hover { border-color: var(--ink); }
.field-l input:focus-visible { outline: 3px solid var(--red); outline-offset: 1px; border-color: var(--ink); }
.field-l input[aria-invalid="true"] { border-color: #a3192a; background: #fde9e4; }

.alert { display: flex; gap: var(--s3); padding: var(--s4); border-radius: var(--r); background: #fde1dc; border: 2px solid #a3192a; color: var(--ink); }
.alert[hidden] { display: none; }
.alert .ic { color: #a3192a; margin-top: 2px; }
.submit { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); }
.btn[aria-busy="true"] span::after { content: ""; display: inline-block; width: 1.2em; text-align: left; animation: dots 1s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }

/* The score card */
.slot-wrap { position: sticky; top: calc(var(--top-h) + 20px); }
.cardslot { height: 14px; margin: 0 18px -7px; border-radius: 7px; background: #000; box-shadow: inset 0 2px 0 rgb(255 255 255 / .12), 0 0 0 3px var(--chrome-dk); position: relative; z-index: 2; }
.scorecard {
  position: relative; background: #fbf2dc; color: var(--ink); border-radius: 4px; padding: var(--s5) var(--s5) var(--s4);
  box-shadow: var(--shadow-card);
}
.scorecard__top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); border-bottom: 3px double var(--red); padding-bottom: var(--s3); margin-bottom: var(--s3); }
.scorecard__brand { font: 400 1.5rem/1 var(--disp); color: var(--red-deep); }
.scorecard__kind { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: var(--fs-sm); text-align: right; }
.scorecard__meta { margin: 0 0 var(--s3); display: grid; gap: 2px; }
.scorecard__meta div { display: flex; justify-content: space-between; gap: var(--s3); padding: 4px 0; border-bottom: 1px dashed rgb(31 20 24 / .25); }
.scorecard__meta dt { color: var(--ink-2); }
.scorecard__meta dd { margin: 0; font-weight: 700; text-align: right; }
.scorecard__lines { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.scorecard__lines td { padding: 5px 0; vertical-align: top; }
.scorecard__lines tbody td { border-bottom: 1px dashed rgb(31 20 24 / .18); }
.scorecard__lines td:last-child { text-align: right; white-space: nowrap; padding-left: var(--s3); font-weight: 600; }
.scorecard__lines .empty td { color: var(--ink-2); text-align: left; font-weight: 500; }
.scorecard__lines tfoot th, .scorecard__lines tfoot td { border-top: 2px solid var(--ink); padding-top: 8px; font-size: var(--fs-lg); font-weight: 700; text-align: left; }
.scorecard__lines tfoot td { text-align: right; }
.scorecard__code { margin-top: var(--s4); font: 400 1.8rem/1 var(--disp); color: var(--red-deep); text-align: center; letter-spacing: .04em; }
.scorecard__code[hidden] { display: none; }
.scorecard__foot { margin-top: var(--s3); font-size: var(--fs-sm); color: var(--ink-2); text-align: center; }
.scorecard__done { margin-top: var(--s3); display: grid; gap: var(--s3); justify-items: center; text-align: center; }
.scorecard__done[hidden] { display: none; }
.scorecard__done .btn--line { color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.scorecard__done .btn--line:hover { color: var(--red-deep); box-shadow: inset 0 0 0 2px var(--red-deep); }
.scorecard.is-printed { animation: print .9s var(--ease) both; }
.scorecard.is-printed .scorecard__code { position: relative; text-align: left; }
.scorecard.is-printed .scorecard__code::after {
  content: "Booked"; position: absolute; right: 0; top: 50%; transform: translateY(-50%) rotate(-10deg);
  font: 400 1.1rem/1 var(--disp); color: var(--red); border: 3px solid var(--red); padding: 6px 10px; border-radius: 6px; opacity: .85;
}

/* ---------- 7. Floor ---------- */
.floor { padding: var(--s8) var(--gutter); background: var(--teal-deep); color: var(--cream); position: relative; }
.floor > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.floor__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--s4); margin-bottom: var(--s5); }
.floor__head p { color: var(--cream); font-size: var(--fs-lg); }
.filters { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s6); margin-bottom: var(--s6); }
.filters__g { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.filters__g .lbl { margin: 0 6px 0 0; font-size: var(--fs-sm); letter-spacing: .12em; text-transform: uppercase; color: var(--cream-2); }
.floor .chip { color: var(--cream); border-color: rgb(246 231 196 / .5); }
.floor .chip[aria-pressed="true"] { color: var(--ink); border-color: var(--mustard); }
.floor__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--s6); align-items: start; }

.plan { margin: 0; position: sticky; top: calc(var(--top-h) + 20px); }
.plan svg { width: 100%; height: auto; }
.plan figcaption { margin-top: var(--s3); font-size: var(--fs-sm); color: var(--cream-2); }
.fp-room { fill: var(--teal); stroke: var(--cream); stroke-width: 4; }
.fp-door { stroke: var(--teal); stroke-width: 10; }
.fp-zone { fill: rgb(6 43 41 / .55); stroke: rgb(246 231 196 / .55); stroke-width: 2; stroke-dasharray: 6 5; }
.fp-zone--w { fill: rgb(216 38 58 / .25); }
.fp-lbl { fill: var(--cream); font: 600 18px var(--sans); text-anchor: middle; letter-spacing: .04em; }
.fp-lbl--big { font: 700 28px var(--sans); fill: var(--mustard); letter-spacing: .2em; }
.fp-lbl--bank { fill: var(--cream-2); font-size: 17px; font-style: italic; }
.fp-tables circle { fill: var(--teal-deep); stroke: var(--cream-2); stroke-width: 2; }
.fp-tables text { fill: var(--cream); font: 700 18px var(--sans); text-anchor: middle; }
.fp-m rect { fill: var(--cream); stroke: var(--teal-ink); stroke-width: 2; transition: fill .25s, opacity .25s; }
.fp-m text { fill: var(--ink); font: 700 22px var(--sans); text-anchor: middle; pointer-events: none; }
.fp-m--repair rect { fill: url(#hatch); }
.fp-m--repair text { fill: var(--cream); }
.fp-m.is-off rect { fill: transparent; stroke: rgb(246 231 196 / .45); stroke-dasharray: 4 4; }
.fp-m.is-off text { fill: rgb(246 231 196 / .7); }
.fp-m.is-hot rect { fill: var(--mustard); stroke: var(--ink); stroke-width: 3; }
.fp-m.is-hot text { fill: var(--ink); }

.mlist { list-style: none; margin: 0; padding: 0; border-top: 2px solid rgb(246 231 196 / .35); }
.mrow {
  display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) auto auto; grid-template-areas: "n name diff st" "n note note tok";
  gap: 2px var(--s4); padding: 10px var(--s2); border-bottom: 1px solid rgb(246 231 196 / .22); align-items: baseline;
  transition: background-color .2s;
}
.mrow[hidden] { display: none; }
.mrow:hover, .mrow.is-hot { background: rgb(6 43 41 / .55); }
.mrow__n { grid-area: n; font: 700 1.375rem/1 var(--sans); color: var(--mustard); font-variant-numeric: tabular-nums; }
.mrow__name { grid-area: name; display: flex; flex-wrap: wrap; gap: 0 10px; align-items: baseline; }
.mrow__name b { font-size: var(--fs-lg); }
.mrow__name small { font-size: var(--fs-sm); color: var(--cream-2); }
.mrow__note { grid-area: note; font-size: var(--fs-sm); color: var(--cream-2); }
.mrow__diff { grid-area: diff; font-size: var(--fs-sm); display: flex; gap: 8px; align-items: center; }
.mrow__tok { grid-area: tok; font-size: var(--fs-sm); color: var(--cream-2); text-align: right; }
.mrow__st { grid-area: st; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: var(--r-sm); white-space: nowrap; }
.mrow__st--playing { background: var(--cream); color: var(--teal-ink); }
.mrow__st--repair { background: var(--red); color: var(--cream); }
.pips { display: inline-flex; gap: 3px; }
.pips i { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--cream-2); }
.pips i.on { background: var(--mustard); box-shadow: none; }
.empty-note { padding: var(--s5); border: 2px dashed rgb(246 231 196 / .5); border-radius: var(--r); margin-top: var(--s4); }
.empty-note[hidden] { display: none; }

/* ---------- 8. Kitchen ---------- */
.kitchen { padding: var(--s8) var(--gutter); background: var(--glass); }
.kitchen__card { max-width: var(--maxw); margin: 0 auto; padding: calc(var(--s7) + 10px) clamp(20px, 4vw, var(--s7)) var(--s7); background: linear-gradient(var(--orange) 0 10px, var(--cream) 10px); }
.kitchen__intro { margin: var(--s3) 0 var(--s6); max-width: 64ch; font-size: var(--fs-lg); color: var(--ink-2); }
.menu { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5) var(--s8); }
.menu h3 { font-size: var(--fs-sm); letter-spacing: .14em; text-transform: uppercase; color: var(--red-deep); border-bottom: 3px double var(--ink); padding-bottom: var(--s2); margin-bottom: var(--s3); }
.menu__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); }
.dish { display: flex; align-items: baseline; gap: 8px; }
.dish b { font-size: var(--fs-lg); }
.dots { flex: 1; border-bottom: 2px dotted rgb(31 20 24 / .45); transform: translateY(-4px); min-width: 20px; }
.price { font-weight: 700; font-size: var(--fs-lg); }
.desc { display: block; color: var(--ink-2); font-size: var(--fs-sm); max-width: 52ch; }
.menu__note { margin-top: var(--s5); padding: var(--s3) var(--s4); background: var(--cream-2); border-radius: var(--r); font-size: var(--fs-sm); }

/* ---------- 9. League ---------- */
.league { padding: var(--s8) var(--gutter); background: var(--glass-2); }
.league__head, .dmd { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.league__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--s4) var(--s7); align-items: end; margin-bottom: var(--s6); }
.league__head p { max-width: 64ch; }
.dmd {
  background: #0b0607; border-radius: var(--r-lg); padding: var(--s5); color: var(--dmd);
  box-shadow: inset 0 0 0 3px #2a1a12, 0 0 0 6px var(--chrome-dk), var(--shadow-card);
  background-image: radial-gradient(rgb(255 138 61 / .09) 1.2px, transparent 1.6px); background-size: 5px 5px;
}
.ltable { width: 100%; border-collapse: collapse; font-size: var(--fs-md); }
.ltable th { text-align: left; font-weight: 600; font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: #e07a3a; padding: 0 10px 10px; border-bottom: 2px solid rgb(255 138 61 / .4); }
.ltable td { padding: 10px; border-bottom: 1px solid rgb(255 138 61 / .16); }
.ltable .num { text-align: right; }
.ltable td:first-child { width: 3.2rem; }
.rk { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 50%; font-weight: 700; }
.ltable tr.in .rk { background: var(--dmd); color: #0b0607; }
.ltable .pts { font-weight: 700; font-size: var(--fs-lg); color: #ffb067; }
.ini { display: inline-block; min-width: 3.4ch; font-weight: 700; color: #ffb067; letter-spacing: .08em; }
.dmd__foot { margin-top: var(--s4); font-size: var(--fs-sm); color: #e9935a; }

/* ---------- 10. House rules ---------- */
.rules { padding: var(--s8) var(--gutter); background: var(--plum); background-image: repeating-conic-gradient(from 0deg at 50% 120%, rgb(242 106 33 / .14) 0 6deg, transparent 6deg 12deg); }
.icard {
  max-width: 880px; margin: 0 auto; background: #fbf2dc; color: var(--ink); border-radius: 6px; padding: var(--s6) clamp(20px, 4vw, var(--s7));
  box-shadow: var(--shadow-card); outline: 3px solid var(--red-deep); outline-offset: -14px;
}
.icard__head { text-align: center; padding: var(--s3) 0 var(--s4); border-bottom: 2px solid var(--ink); margin-bottom: var(--s5); }
.icard__head h2 { font: 400 clamp(1.8rem, 3.6vw, 2.8rem)/1.05 var(--disp); color: var(--red-deep); }
.icard__head p { margin-top: 6px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: var(--fs-sm); }
.icard__list { margin: 0; padding: 0 0 0 1.6em; display: grid; gap: var(--s4); }
.icard__list li { padding-left: 6px; max-width: 70ch; }
.icard__list li::marker { font-weight: 700; color: var(--red-deep); }
.icard__list b { text-transform: uppercase; letter-spacing: .04em; }
.icard__foot { margin-top: var(--s5); padding-top: var(--s4); border-top: 2px solid var(--ink); text-align: center; font-weight: 600; }

/* ---------- 11. Bench ---------- */
.bench { padding: var(--s8) var(--gutter); background: #2a221d; background-image: radial-gradient(#1a1411 2.4px, transparent 3px); background-size: 26px 26px; }
.bench__head, .bench__body { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.bench__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--s4) var(--s7); align-items: end; margin-bottom: var(--s6); }
.bench__head p { max-width: 62ch; }
.bench__body { display: grid; grid-template-columns: minmax(240px, .75fr) minmax(0, 1.6fr); gap: var(--s6); align-items: start; }
.xray { margin: 0; background: #e9e2d0; color: var(--ink); border-radius: var(--r); padding: var(--s4); box-shadow: var(--shadow-card); }
.xray svg { width: 100%; height: auto; }
.xray figcaption { font-size: var(--fs-sm); color: var(--ink-2); margin-top: var(--s2); }
.xr * { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.xr .xr-cap { fill: var(--red); }
.xr .xr-body { fill: var(--mustard); }
.xr .xr-skirt { fill: var(--cream); }
.xr .xr-base { fill: #cfc6b0; }
.xr .xr-coil { fill: var(--orange); }
.xr .xr-thin { stroke-width: 1.5; fill: none; }
.xr .xr-plunger { stroke-width: 6; stroke-linecap: round; }
.xr .xr-axis { stroke-dasharray: 3 4; stroke-width: 1.5; }
.xr-lbl path { stroke: var(--ink); stroke-width: 1.25; fill: none; }
.xr-lbl text { font: 600 16px var(--sans); fill: var(--ink); }
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); }
.log__e { background: var(--cream); color: var(--ink); border-radius: var(--r); padding: var(--s4) var(--s5); box-shadow: var(--shadow-card); }
.log__e h3 { font-size: var(--fs-xl); line-height: 1.15; margin: 4px 0 6px; }
.log__e p:last-child { max-width: 68ch; }
.log__d { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: var(--fs-sm); color: var(--ink-2); font-weight: 600; }
.st { font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: var(--r-sm); font-weight: 700; }
.st--repair { background: var(--red); color: var(--cream); }
.st--ok { background: var(--teal-deep); color: var(--cream); }

/* ---------- 12. Visit ---------- */
.visit { padding: var(--s8) var(--gutter); background: var(--glass); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; align-items: start; }
.door {
  color: var(--ink); border-radius: var(--r-lg); padding: var(--s6);
  background: linear-gradient(100deg, #9fa5ae, #dde1e6 30%, #aeb4bc 52%, #e3e6ea 74%, #a4aab2);
  box-shadow: inset 0 0 0 2px #6e747c, inset 0 0 0 8px #c9cdd3, var(--shadow-card);
  display: grid; grid-template-columns: 1fr auto; gap: var(--s5);
}
.door__plate { display: grid; gap: var(--s3); }
.door__plate h2 { font: 400 clamp(1.9rem, 3.6vw, 3.1rem)/1 var(--disp); color: #5e0b17; }
.door__addr { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.door__addr .ic { margin-top: 3px; }
.door__contact { display: flex; flex-wrap: wrap; gap: 6px 20px; font-weight: 700; }
.door__contact a { min-height: 32px; display: inline-flex; align-items: center; }
.door__coins { display: grid; gap: var(--s4); align-content: start; }
.coin { display: grid; justify-items: center; gap: 6px; }
.coin i { width: 64px; height: 84px; border-radius: 10px; background: linear-gradient(#dfe2e6, #9aa0a8); box-shadow: inset 0 0 0 2px #5d636b; position: relative; }
.coin i::before { content: ""; position: absolute; left: 50%; top: 14px; width: 6px; height: 30px; margin-left: -3px; border-radius: 3px; background: #111; }
.coin i::after { content: ""; position: absolute; left: 50%; bottom: 10px; width: 34px; height: 22px; margin-left: -17px; border-radius: 5px; background: radial-gradient(circle at 50% 30%, var(--red-hi), var(--red-deep)); }
.coin b { font-weight: 700; font-size: var(--fs-sm); background: var(--ink); color: var(--mustard); padding: 2px 8px; border-radius: 4px; }
.hours-t { grid-column: 1 / -1; width: 100%; border-collapse: collapse; background: #fbf2dc; border-radius: var(--r); overflow: hidden; }
.hours-t caption { text-align: left; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: var(--fs-sm); padding-bottom: var(--s2); }
.hours-t th, .hours-t td { text-align: left; padding: 8px 14px; border-bottom: 1px solid rgb(31 20 24 / .15); }
.hours-t th { font-weight: 700; width: 9.5rem; }
.hours-t tr.is-today { background: var(--mustard); }
.hours-t tr.is-today th::after { content: " (today)"; font-weight: 500; }
.map { margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 0 0 2px var(--trim), var(--shadow-card); }
.map svg { width: 100%; height: auto; }
.map__land { fill: #2c1d26; }
.map__lake { fill: #0b4744; }
.map__blocks rect { fill: #3b2a33; }
.map__blocks .map__here { fill: var(--plum); stroke: var(--mustard); stroke-width: 3; }
.map__road path { stroke: #5b4650; stroke-width: 20; fill: none; }
.map__lbl { fill: var(--text-2); font: 600 15px var(--sans); text-anchor: middle; letter-spacing: .04em; }
.map__lbl--lake { fill: #9fd6cf; font-style: italic; }
.map__lbl--here { fill: var(--mustard); font: 700 19px var(--sans); letter-spacing: .08em; }
.map__pin { fill: var(--red); stroke: var(--cream); stroke-width: 3; }
.map__pinhi { fill: var(--cream); }
.map__tram { fill: var(--mustard); }
.map__tramt { fill: var(--ink); font: 700 15px var(--sans); text-anchor: middle; }

/* ---------- 13. Footer ---------- */
.foot { padding: var(--s7) var(--gutter); border-top: 1px solid var(--trim); display: grid; gap: var(--s3); justify-items: center; text-align: center; color: var(--text-2); }
.foot__brand { font-size: 2.2rem; color: var(--mustard); }
.foot__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
.foot__nav a { min-height: 32px; display: inline-flex; align-items: center; color: var(--text); }
.foot__small { font-size: var(--fs-xs); }

/* ---------- 14. Motion ---------- */
@keyframes print { from { transform: translateY(-36px); clip-path: inset(0 0 100% 0); } to { transform: none; clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: no-preference) {
  .rays { transform-origin: 330px 372px; animation: rays 60s linear infinite; transform-box: view-box; }
  @keyframes rays { to { rotate: 360deg; } }
  .mask__lamps li[data-lamp="over"].lit { animation: blink 1.6s steps(2, jump-none) infinite; }
  @keyframes blink { 50% { background: var(--glass-3); color: #9c8a90; box-shadow: none; } }
}
@media (prefers-reduced-motion: reduce) {
  .scorecard.is-printed { animation: none; }
  .reel i { transition: none; }
}

/* ---------- 15. Narrow screens ---------- */
@media (max-width: 1180px) {
  .top__open { display: none; }
  .apron__body { grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); }
  .days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .preorder { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .top__nav { display: none; }
  .top .btn { margin-left: auto; }
  .cabinet { grid-template-columns: minmax(0, 1fr); grid-template-areas: "glass" "field"; min-height: 0; }
  .glass { min-height: 700px; }
  .glass__head .chrome { font-size: clamp(2.4rem, 7vw, 4.4rem); }
  .table { flex: none; height: min(78svh, 720px); min-height: 440px; }
  .apron__head, .league__head, .bench__head { grid-template-columns: 1fr; }
  .apron__body { grid-template-columns: 1fr; }
  .slot-wrap { position: static; }
  .floor__body { grid-template-columns: 1fr; }
  .plan { position: static; }
  .bench__body { grid-template-columns: 1fr; }
  .xray { max-width: 420px; }
  .visit { grid-template-columns: 1fr; }
  .menu { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --top-h: 56px; }
  .cabinet { padding-top: var(--s3); gap: var(--s4); }
  .glass { min-height: 500px; margin: 8px; }
  .glass__head { padding: var(--s5) var(--s4) 0; }
  .glass__head .chrome { font-size: clamp(1.7rem, 8.4vw, 3rem); }
  .glass__scene { min-height: 360px; }
  .glass__sub { font-size: var(--fs-xs); }
  .glass__where { display: none; }
  .burst { width: 104px; bottom: 6%; right: 3%; }
  .burst b { font-size: 1.9rem; }
  .burst span { font-size: .6875rem; }
  .mask { grid-template-columns: 1fr; padding: var(--s3) var(--s4); }
  .mask__lamps { justify-content: flex-start; }
  .reel { width: 26px; height: 38px; }
  .reel i { font-size: 1.7rem; line-height: 38px; }
  .cabinet__lede p { font-size: var(--fs-md); }
  .cabinet__acts .btn { flex: 1 1 100%; }
  .table { height: 70svh; min-height: 420px; }
  .deck { gap: var(--s3); padding-left: var(--s3); padding-right: var(--s3); }
  .flip { width: 52px; height: 52px; }
  .form { padding: var(--s5) var(--s4); gap: var(--s5); }
  .kind, .fields { grid-template-columns: 1fr; }
  .days { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .submit .btn { width: 100%; }
  .mrow { grid-template-columns: 2rem minmax(0, 1fr) auto; grid-template-areas: "n name st" "n note note" "n diff tok"; }
  .ltable .best, .ltable th.best { display: none; }
  .ltable td, .ltable th { padding-left: 6px; padding-right: 6px; }
  .dmd { padding: var(--s3); }
  .door { grid-template-columns: 1fr; padding: var(--s5); }
  /* drawn plan and map: bigger lettering when the drawing shrinks */
  .fp-m text { font-size: 30px; }
  .fp-lbl { font-size: 26px; }
  .fp-lbl--bank { display: none; }
  .fp-tables text { font-size: 26px; }
  .map__lbl { font-size: 22px; }
  .map__lbl--here { font-size: 24px; }
  .map__tramt { font-size: 18px; }
  .door__coins { grid-auto-flow: column; justify-content: start; }
  .hours-t th { width: auto; }
  .apron, .floor, .kitchen, .league, .rules, .bench, .visit { padding-top: var(--s7); padding-bottom: var(--s7); }
}
