/* Let It Ride Poker - roadside diner styles. Light room, chrome trim, cherry and mint. */

@font-face {
  font-family: "Signwriter";
  src: url("../fonts/yellowtail.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Roadster";
  src: url("../fonts/fugaz.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Counter Sans";
  src: url("../fonts/cabin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Counter Sans";
  src: url("../fonts/cabin-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --cream: #fdf5e4;
  --paper: #fffdf7;
  --cream-deep: #f5e5c4;
  --cherry: #c41230;
  --cherry-deep: #8e0b22;
  --cherry-soft: #ff8597;
  --mint: #a8e3cf;
  --mint-pale: #dcf4ea;
  --mint-ink: #16624f;
  --ink: #2b1f1c;
  --ink-soft: #5b4943;
  --mustard: #f4b73a;
  --steel: #8a939b;
  --chrome: linear-gradient(180deg, #ffffff 0%, #dde2e6 38%, #aeb6bd 50%, #eef1f3 62%, #c3c9ce 100%);
  --felt: #17614f;
  --script: "Signwriter", "Brush Script MT", cursive;
  --display: "Roadster", "Arial Black", Impact, sans-serif;
  --text: "Counter Sans", "Segoe UI", Arial, sans-serif;
  --gutter: 16px;
  --room: min(1180px, 100% - 2 * var(--gutter));
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--cream);
  background-image: radial-gradient(rgba(196, 18, 48, .07) 1.2px, transparent 1.6px);
  background-size: 22px 22px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cherry-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--cherry); text-decoration-style: wavy; }
:focus-visible { outline: 3px solid #0b56a8; outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 400; }
h2 { font-family: var(--display); font-size: clamp(1.4rem, 3.4vw, 1.85rem); color: var(--cherry-deep); }
h3 { font-family: var(--display); font-size: 1.2rem; color: var(--ink); }
code { font-size: .92em; background: var(--mint-pale); padding: .05em .35em; border-radius: 5px; }

.hide-visually {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.jumpto {
  position: absolute; left: 12px; top: -80px; z-index: 200;
  background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 10px;
  font-weight: 700; text-decoration: none;
}
.jumpto:focus { top: 12px; color: var(--cream); }

/* ---------- awning (header) ---------- */
.awning {
  position: sticky; top: 0; z-index: 60;
  background: var(--paper);
  box-shadow: 0 2px 0 rgba(43, 31, 28, .08);
}
.awning::before {
  content: ""; display: block; height: 7px;
  background: repeating-linear-gradient(90deg, var(--cherry) 0 22px, var(--paper) 22px 44px);
}
.awning-row {
  width: var(--room); margin-inline: auto;
  display: flex; align-items: center; gap: 12px;
  min-height: 64px; position: relative;
}
.sign {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--cherry); margin-right: auto; flex-shrink: 0;
}
.sign:hover { color: var(--cherry); text-decoration: none; }
.emblem { flex-shrink: 0; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25)); }
.sign-word {
  font-family: var(--script); font-size: 2rem; line-height: 1; white-space: nowrap;
  text-shadow: 1px 1px 0 #fff, 2px 2px 0 rgba(43, 31, 28, .18);
  padding-top: 4px;
}
.routes { order: 2; }
.coinjar { order: 3; }
.routes-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 4px;
}
.routes-list a {
  display: block; padding: 8px 12px; border-radius: 10px;
  font-family: var(--display); font-size: .98rem; color: var(--ink); text-decoration: none;
}
.routes-list a:hover { background: var(--mint-pale); color: var(--mint-ink); }
.routes-list a[aria-current="page"] { color: var(--cherry); box-shadow: inset 0 -3px 0 var(--cherry); border-radius: 10px 10px 2px 2px; }
.routes-toggle { display: none; }

.coinjar {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 44px; padding: 6px 14px 6px 10px;
  border: 2px solid var(--steel); border-radius: 999px;
  background: var(--chrome);
  font-family: var(--display); font-size: 1rem; color: var(--ink);
  cursor: pointer; white-space: nowrap;
  box-shadow: 0 2px 0 var(--steel);
}
.coinjar:hover { border-color: var(--ink); }
.coinjar-icon { flex-shrink: 0; }

@media (max-width: 1000px) {
  .routes { order: 3; }
  .coinjar { order: 2; }
  .routes-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 44px; min-width: 44px; padding: 0 12px;
    border: 2px solid var(--steel); border-radius: 12px; background: var(--chrome);
    font-family: var(--display); font-size: .95rem; color: var(--ink); cursor: pointer;
  }
  .routes-burger, .routes-burger::before, .routes-burger::after {
    display: block; width: 18px; height: 2.5px; background: var(--ink); border-radius: 2px; position: relative;
  }
  .routes-burger::before, .routes-burger::after { content: ""; position: absolute; left: 0; }
  .routes-burger::before { top: -6px; }
  .routes-burger::after { top: 6px; }
  .routes.is-open .routes-burger { background: transparent; }
  .routes.is-open .routes-burger::before { top: 0; transform: rotate(45deg); }
  .routes.is-open .routes-burger::after { top: 0; transform: rotate(-45deg); }
  .routes-list {
    display: none;
    position: absolute; top: calc(100% + 6px); right: 0; left: 0;
    flex-direction: column; gap: 2px;
    background: var(--paper); padding: 10px;
    border: 2px solid var(--ink); border-radius: 16px;
    box-shadow: 0 18px 30px -12px rgba(43, 31, 28, .45);
  }
  .routes.is-open .routes-list { display: flex; }
  .routes-list a { padding: 12px 14px; font-size: 1.1rem; }
}
@media (max-width: 520px) {
  :root { --gutter: 14px; }
  .awning-row { gap: 8px; min-height: 58px; }
  .emblem { width: 36px; height: 36px; }
  .sign { gap: 6px; }
  .sign-word { font-size: 1.6rem; }
  .routes-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .routes-toggle { padding: 0; justify-content: center; }
  .coinjar { padding: 4px 10px 4px 7px; font-size: .92rem; gap: 5px; }
}
@media (max-width: 370px) {
  .sign-word { font-size: 1.42rem; }
  .coinjar-icon { display: none; }
}

.checkerband {
  height: 20px;
  background: repeating-conic-gradient(var(--ink) 0 25%, var(--paper) 0 50%) 0 0 / 20px 20px;
  box-shadow: 0 3px 0 rgba(43, 31, 28, .08);
}
.checkerband-thin { height: 12px; background-size: 12px 12px; box-shadow: none; }

/* ---------- buttons ---------- */
.press {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: .55em 1.15em;
  font-family: var(--display); font-size: 1rem; line-height: 1.1; text-align: center;
  border: 2px solid; border-radius: 14px; cursor: pointer; text-decoration: none;
  transition: transform .08s ease, box-shadow .08s ease;
}
.press:hover { text-decoration: none; }
.press:active:not(:disabled) { transform: translateY(3px); }
.press:disabled { cursor: not-allowed; filter: grayscale(.55); opacity: .48; box-shadow: none; transform: translateY(3px); }
.press-cherry {
  background: linear-gradient(180deg, #d61a36, #a80d27); color: #fff; border-color: #6d0819;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), 0 4px 0 #6d0819;
}
.press-cherry:hover { color: #fff; background: linear-gradient(180deg, #c8142f, #940b22); }
.press-cherry:active:not(:disabled) { box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), 0 1px 0 #6d0819; }
.press-mint {
  background: linear-gradient(180deg, #c6f2e2, #8fd8bd); color: #0d4536; border-color: #2a7f68;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), 0 4px 0 #2a7f68;
}
.press-mint:hover { color: #0d4536; }
.press-mint:active:not(:disabled) { box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), 0 1px 0 #2a7f68; }
.press-plain {
  background: var(--chrome); color: var(--ink); border-color: #6f7880;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .8), 0 4px 0 #6f7880;
}
.press-plain:hover { color: var(--ink); }
.press-plain:active:not(:disabled) { box-shadow: 0 1px 0 #6f7880; }
.press-big { font-size: 1.12rem; min-height: 54px; padding-inline: 1.4em; }
.press-small { font-size: .9rem; min-height: 40px; padding: .4em .9em; border-radius: 11px; }

/* ---------- shared page widths ---------- */
.counter-intro, .front-floor, .tickets, .chalkboard, .table-head, .booth-wrap, .reading,
.lostfound, .menu-sheet {
  width: var(--room); margin-inline: auto;
}

.script-title {
  font-family: var(--script); font-weight: 400;
  font-size: clamp(3rem, 9vw, 5.2rem); line-height: .95; color: var(--cherry);
  text-shadow: 2px 2px 0 #fff, 4px 4px 0 rgba(43, 31, 28, .14);
  margin: 0 0 .35em;
}
.title-tag {
  display: block; font-family: var(--display); font-size: clamp(1.02rem, 2.6vw, 1.4rem);
  color: var(--mint-ink); text-shadow: none; margin-top: .45em; line-height: 1.25;
}

.age-roundel {
  display: inline-grid; place-items: center; flex-shrink: 0;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--cherry); color: #fff; border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--cherry);
  font-family: var(--display); font-size: .82rem; line-height: 1;
}

/* ---------- front page ---------- */
.counter-intro {
  display: grid; gap: 28px; align-items: center;
  padding: 34px 0 30px;
}
.counter-lead { font-size: 1.16rem; }
.counter-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 18px; }
.counter-small { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--ink-soft); }
.roadside { margin: 0; position: relative; }
.roadside-frame {
  padding: 10px; border-radius: 34px 34px 18px 18px;
  background: var(--chrome);
  box-shadow: 0 0 0 2px var(--steel), 0 26px 40px -24px rgba(43, 31, 28, .65);
}
.roadside-frame img {
  width: 100%; aspect-ratio: 1600 / 1067; object-fit: cover;
  border-radius: 26px 26px 10px 10px;
  background: linear-gradient(160deg, var(--mint) 0%, #f7d9a0 60%, var(--cherry-soft) 100%);
  color: transparent;
}
.neon-tag {
  position: absolute; left: -6px; bottom: 26px;
  font-family: var(--script); font-size: 1.7rem; line-height: 1;
  padding: 8px 16px 10px; border-radius: 12px;
  background: var(--ink); color: #ffd2da;
  text-shadow: 0 0 6px #ff4d6d, 0 0 14px #ff4d6d;
  transform: rotate(-5deg);
  box-shadow: 0 0 0 3px #4a3a36, 0 10px 18px -8px rgba(0, 0, 0, .6);
}
@media (min-width: 900px) {
  .counter-intro { grid-template-columns: 1.02fr 1fr; gap: 52px; padding: 52px 0 46px; }
  .neon-tag { left: -24px; }
}

.countertop {
  position: relative; height: 34px;
  background: var(--chrome) top / 100% 11px no-repeat, linear-gradient(var(--cherry), var(--cherry-deep));
  display: flex; justify-content: space-around; align-items: flex-end;
  box-shadow: 0 8px 14px -10px rgba(43, 31, 28, .5);
}
.countertop span {
  width: clamp(36px, 7vw, 64px); height: 10px; margin-bottom: -10px;
  border-radius: 50% 50% 8px 8px / 100% 100% 8px 8px;
  background: linear-gradient(180deg, #e83b55, #a80d27);
  box-shadow: 0 3px 0 #6f7880;
}

.front-floor {
  display: grid; gap: 32px; margin-top: 48px; margin-bottom: 48px; align-items: start;
}
@media (min-width: 960px) {
  .front-floor { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; }
}

.laminate {
  position: relative;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, .75) 0 14%, rgba(255, 255, 255, 0) 30%),
    var(--paper);
  border: 3px solid var(--cherry); border-radius: 20px;
  box-shadow: 0 0 0 6px var(--paper), 0 0 0 9px var(--cherry), 0 26px 40px -26px rgba(43, 31, 28, .6);
  padding: 26px clamp(16px, 4vw, 40px) 18px;
  margin: 9px;
}
.laminate-title {
  font-family: var(--script); font-size: clamp(2.6rem, 7vw, 3.4rem); color: var(--cherry);
  text-align: center; margin: 0;
}
.laminate-sub { text-align: center; font-style: italic; color: var(--ink-soft); margin-bottom: 18px; }
.laminate-course {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--display); font-size: 1.05rem; color: var(--mint-ink);
  margin: 22px 0 10px;
}
.laminate-course::before, .laminate-course::after { content: ""; flex: 1; height: 2px; background: var(--mint); }
.dishes { list-style: none; margin: 0; padding: 0; }
.dish { margin-bottom: 14px; }
.dish-line { display: flex; align-items: baseline; gap: 8px; margin: 0; }
.dish-name {
  font-family: var(--display); font-size: clamp(1.08rem, 3.2vw, 1.3rem);
  color: var(--ink); text-decoration: none;
}
.dish-name:hover { color: var(--cherry); text-decoration: underline; text-decoration-style: solid; }
.dish-dots { flex: 1 1 20px; min-width: 16px; border-bottom: 3px dotted rgba(43, 31, 28, .4); transform: translateY(-5px); }
.dish-price { font-family: var(--display); color: var(--cherry); white-space: nowrap; font-size: .98rem; }
.dish-note { font-style: italic; color: var(--ink-soft); margin: 4px 0 0; max-width: 54ch; }
.dishes-side .dish { margin-bottom: 8px; }
.dishes-side .dish-name { font-size: 1.02rem; }

.front-side { display: grid; gap: 34px; }
.specials {
  position: relative; background: var(--mint-pale);
  border: 2px solid var(--mint-ink); border-radius: 18px;
  padding: 44px 22px 22px; margin-top: 18px;
}
.specials-flag {
  position: absolute; top: -20px; left: 50%; transform: translateX(-50%) rotate(-2deg);
  margin: 0; padding: 4px 26px 8px; white-space: nowrap;
  font-family: var(--script); font-size: 2rem; line-height: 1; color: #fff;
  background: var(--cherry);
  clip-path: polygon(0 0, 100% 0, 94% 50%, 100% 100%, 0 100%, 6% 50%);
}
.specials-name { font-size: 1.35rem; color: var(--ink); text-align: center; }
.specials-pic img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px;
  border: 4px solid #fff; box-shadow: 0 10px 18px -12px rgba(0, 0, 0, .55);
  background: linear-gradient(135deg, var(--felt), #2c8a71);
  color: transparent; margin-bottom: 14px;
}
@media (min-width: 960px) { .specials { transform: rotate(-1deg); } }

.jukebox-box {
  position: relative; text-align: center;
  background: linear-gradient(180deg, #d01a37, var(--cherry-deep));
  border-radius: 200px 200px 26px 26px;
  padding: 20px 18px 18px;
  box-shadow: inset 0 0 0 6px #dfe3e6, inset 0 0 0 8px var(--steel), 0 24px 34px -22px rgba(43, 31, 28, .7);
}
.jukebox-crown {
  height: 64px; margin: 0 auto 10px; width: 78%;
  border-radius: 200px 200px 0 0;
  background: radial-gradient(circle at 50% 100%, var(--cherry-deep) 0 28%, var(--mustard) 28.5% 40%, var(--mint) 40.5% 54%, var(--mustard) 54.5% 64%, #fff3c9 64.5% 70%, transparent 70.5%) 50% 100% / 100% 200%;
}
.jukebox-glass {
  background: var(--paper); border-radius: 20px; padding: 16px 16px 20px;
  box-shadow: inset 0 3px 10px rgba(0, 0, 0, .18);
}
.jukebox-title { font-family: var(--script); font-size: 2.3rem; color: var(--cherry); margin: 0; }
.jukebox-coins { font-family: var(--display); font-size: 2.5rem; line-height: 1.1; margin: 4px 0 6px; }
.jukebox-coins small { font-size: 1rem; color: var(--ink-soft); }
.jukebox-line { color: var(--ink-soft); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.jukebox-grille {
  height: 44px; margin-top: 14px; border-radius: 12px;
  background: repeating-linear-gradient(90deg, #e9ecef 0 6px, #6b0718 6px 12px);
  box-shadow: inset 0 0 0 3px var(--steel);
}

.tickets { margin-top: 56px; margin-bottom: 56px; }
.section-title { text-align: center; color: var(--ink); }
.ticket-rail { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 26px; }
.ticket {
  position: relative; background: #fff; padding: 26px 22px 20px;
  border-left: 5px solid var(--cherry);
  box-shadow: 0 14px 22px -16px rgba(43, 31, 28, .6);
}
.ticket::before {
  content: ""; position: absolute; left: -5px; right: 0; top: -9px; height: 10px;
  background: radial-gradient(circle at 7px 0, transparent 5px, #fff 5.5px) 0 0 / 14px 10px repeat-x;
}
.ticket:nth-child(1) { transform: rotate(-.7deg); }
.ticket:nth-child(3) { transform: rotate(.6deg); }
.ticket-no { display: block; font-family: var(--script); font-size: 1.8rem; color: var(--cherry); line-height: 1; margin-bottom: 8px; }
.ticket strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.12rem; margin-bottom: 4px; }
@media (min-width: 820px) { .ticket-rail { grid-template-columns: repeat(3, 1fr); } }

.chalkboard {
  margin-bottom: 64px;
  background: radial-gradient(ellipse at 30% 20%, #2b4a41, #1c3530 70%);
  color: #f3efe6;
  border: 12px solid #7a4a22; border-radius: 10px;
  box-shadow: inset 0 0 0 2px #5b3315, inset 0 0 30px rgba(0, 0, 0, .4), 0 20px 30px -22px rgba(0, 0, 0, .7);
  padding: 26px clamp(18px, 4vw, 44px) 18px;
}
.chalk-title { font-family: var(--script); font-size: clamp(2.4rem, 6vw, 3rem); color: #fdf5e4; }
.chalk-list { margin: 0 0 16px; padding-left: 1.2em; }
.chalk-list li { margin-bottom: 8px; }
.chalk-list li::marker { content: "\2605  "; color: var(--mustard); }
.chalkboard a { color: #ffd57a; }
.chalkboard a:hover { color: #ffe7b0; }

/* ---------- game pages ---------- */
.table-head { padding: 22px 0 6px; }
.table-head .script-title { font-size: clamp(2.7rem, 6.5vw, 3.9rem); margin-bottom: .2em; }
.table-blurb { max-width: 70ch; font-size: 1.08rem; }
.booth-wrap { display: grid; gap: 30px; align-items: start; margin-bottom: 52px; }
@media (min-width: 1040px) { .booth-wrap { grid-template-columns: minmax(0, 1fr) 300px; } }

.booth {
  border-radius: 30px;
  padding: clamp(10px, 2.6vw, 22px);
  background-color: var(--cherry);
  background-image:
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, .28) 0 2px, transparent 2.6px),
    linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(0, 0, 0, .12));
  background-size: 34px 34px, 100% 100%;
  box-shadow: inset 0 0 0 3px #6d0819, 0 24px 34px -22px rgba(43, 31, 28, .75);
}
.booth-rim {
  padding: 10px; border-radius: 26px; background: var(--chrome);
  box-shadow: 0 5px 0 #6f7880, 0 14px 22px -12px rgba(0, 0, 0, .55);
}
.felt {
  position: relative; border-radius: 18px;
  background: radial-gradient(ellipse at 50% 28%, #24846c 0%, var(--felt) 58%, #0e4639 100%);
  padding: 16px clamp(8px, 2.6vw, 24px) 22px;
  color: var(--cream);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .12), inset 0 6px 24px rgba(0, 0, 0, .35);
}
.felt-print {
  text-align: center; font-family: var(--script); font-size: clamp(1.2rem, 3.6vw, 1.6rem);
  color: #e6f6ee; margin: 0 0 6px; line-height: 1.2;
}
.felt-zone { margin-top: 8px; }
@media (min-width: 720px) {
  .felt-ride { display: grid; grid-template-columns: auto auto; justify-content: center; column-gap: clamp(28px, 5vw, 56px); }
  .felt-ride .felt-print, .felt-ride .bet-spots { grid-column: 1 / -1; }
}
.felt-label { text-align: center; font-family: var(--display); font-size: .88rem; color: #cdeee1; margin: 0 0 6px; }
.hand-row { --cw: clamp(56px, 17vw, 88px); display: flex; justify-content: center; gap: clamp(6px, 2vw, 12px); min-height: calc(var(--cw) * 1.4); }
.cardslot {
  width: var(--cw); aspect-ratio: 5 / 7; border-radius: 10px;
  border: 2px dashed rgba(253, 245, 228, .4);
}
.playcard {
  position: relative; display: grid; place-items: center;
  width: var(--cw); aspect-ratio: 5 / 7; border-radius: 10px;
  background: #fffdf7; color: #1f1a18; font-family: var(--display);
  box-shadow: 0 3px 0 rgba(0, 0, 0, .28), 0 10px 16px -8px rgba(0, 0, 0, .6);
}
.playcard.is-red { color: #c0112d; }
.pc-corner {
  position: absolute; top: 5px; left: 6px; text-align: center;
  font-size: calc(var(--cw) * .19); line-height: 1.02;
}
.pc-corner-low { top: auto; left: auto; bottom: 5px; right: 6px; transform: rotate(180deg); }
.pc-pip { font-size: calc(var(--cw) * .5); line-height: 1; }
.playcard.is-down {
  background:
    radial-gradient(circle, #fffdf7 0 18%, transparent 19%),
    repeating-linear-gradient(45deg, #c41230 0 5px, #9c0e26 5px 10px);
  border: 5px solid #fffdf7;
}
.playcard.is-arriving { animation: deal-in .28s ease-out both; }
.playcard.is-turning { animation: turn-over .32s ease-out both; }
@keyframes deal-in { from { transform: translateY(-24px) rotate(-7deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes turn-over { from { transform: rotateY(90deg); } to { transform: rotateY(0); } }

.bet-spots { list-style: none; margin: 18px 0 0; padding: 0; display: flex; justify-content: center; gap: clamp(10px, 4vw, 30px); }
.bet-spot {
  width: clamp(78px, 22vw, 104px); aspect-ratio: 1; border-radius: 50%;
  border: 3px solid rgba(253, 245, 228, .75);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; line-height: 1.1; color: var(--cream);
  transition: border-color .2s, background-color .2s;
}
.bet-mark { font-family: var(--script); font-size: 1.7rem; line-height: .9; }
.bet-sum { font-family: var(--display); font-size: 1rem; }
.bet-word { font-size: .76rem; font-weight: 700; }
.bet-spot[data-state="riding"] {
  border-color: var(--mustard);
  background: radial-gradient(circle, rgba(244, 183, 58, .38) 0 45%, rgba(244, 183, 58, .08) 70%);
}
.bet-spot[data-state="riding"] .bet-word { color: #ffe3a3; }
.bet-spot[data-state="back"] { border-style: dashed; border-color: rgba(253, 245, 228, .45); }
.bet-spot[data-state="back"] .bet-word, .bet-spot[data-state="back"] .bet-sum { color: #cfe3dc; }

.booth-controls {
  margin-top: 16px; background: var(--paper); border-radius: 18px;
  padding: 14px clamp(12px, 2.4vw, 18px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px;
}
.coin-pick { border: 0; margin: 0; padding: 0; display: flex; align-items: center; gap: 8px; min-width: 0; }
.coin-pick legend { float: left; font-family: var(--display); font-size: .95rem; margin-right: 4px; padding: 0; }
.coin-pick label { position: relative; cursor: pointer; }
.coin-pick input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.coin-pick span {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  font-family: var(--display); font-size: 1rem; color: #4a3000;
  background: radial-gradient(circle, #ffe08f 0 52%, #e9a520 53% 100%);
  border: 3px dashed #fff4d2;
  box-shadow: 0 0 0 2px #b67a07, 0 3px 0 #8a5a00;
  transition: transform .1s;
}
.coin-pick input:checked + span {
  transform: translateY(-3px);
  background: radial-gradient(circle, #fff 0 52%, var(--cherry) 53% 100%);
  color: var(--cherry-deep); border-color: #ffd2da;
  box-shadow: 0 0 0 2px #6d0819, 0 5px 0 #6d0819;
}
.coin-pick input:focus-visible + span { outline: 3px solid #0b56a8; outline-offset: 3px; }
.coin-pick input:disabled + span { opacity: .55; }
.coin-pick input:disabled { cursor: not-allowed; }
.press-row { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 640px) {
  .booth-controls { gap: 12px; }
  .coin-pick, .press-row { flex-basis: 100%; }
  .press-row { display: grid; grid-template-columns: 1fr 1fr; }
  .press-row .press:first-child { grid-column: 1 / -1; }
  .press-row .press { padding-inline: .6em; font-size: 1.02rem; }
}
.hint-switch { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; min-height: 40px; }
.hint-switch input { width: 20px; height: 20px; accent-color: var(--cherry); }
.hint-out {
  flex-basis: 100%; margin: 0; padding: 10px 14px; border-radius: 10px;
  background: #fff3cf; border-left: 5px solid var(--mustard); font-weight: 600;
}
.ticker {
  margin: 12px 0 0; padding: 12px 16px; border-radius: 16px; min-height: 3.4em;
  background: #fffdf7; font-weight: 600; box-shadow: inset 0 0 0 2px rgba(43, 31, 28, .1);
}
.booth.is-winner .ticker { background: #fff3cf; box-shadow: inset 0 0 0 3px var(--mustard); }
.tab-strip {
  margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px;
  background: var(--ink); color: var(--cream); border-radius: 16px; padding: 10px 14px;
}
.tab-strip p { margin: 0; }
.tab-strip strong { font-family: var(--display); font-weight: 400; font-size: 1.25rem; color: var(--mustard); }
.tab-strip-label { font-size: .9rem; color: #e4d6bf; }
.tab-strip-line { font-size: .92rem; color: #e4d6bf; font-variant-numeric: tabular-nums; }
.tab-strip .press { margin-left: auto; }

.bill {
  position: relative; background: var(--paper); padding: 20px 18px 16px; margin-bottom: 12px;
  border-radius: 6px 6px 0 0;
  box-shadow: 0 12px 20px -14px rgba(43, 31, 28, .55);
  border-top: 8px solid var(--mint);
}
.bill::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px;
  background:
    linear-gradient(135deg, var(--paper) 50%, transparent 50%) 0 0 / 20px 10px repeat-x,
    linear-gradient(225deg, var(--paper) 50%, transparent 50%) 0 0 / 20px 10px repeat-x;
}
.bill-title { font-family: var(--script); font-size: 2.2rem; color: var(--cherry); text-align: center; margin: 0; }
.bill-sub { text-align: center; font-style: italic; color: var(--ink-soft); font-size: .95rem; margin-bottom: 10px; }
.bill-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.bill-table thead th { font-family: var(--display); font-size: .82rem; font-weight: 400; color: var(--mint-ink); text-align: left; padding: 4px 6px; }
.bill-table thead th:last-child, .bill-table td { text-align: right; }
.bill-table tbody th { text-align: left; font-weight: 600; padding: 7px 6px; border-bottom: 2px dotted rgba(43, 31, 28, .22); }
.bill-table td { font-family: var(--display); color: var(--cherry-deep); padding: 7px 6px; border-bottom: 2px dotted rgba(43, 31, 28, .22); white-space: nowrap; }
.bill-table tr.is-lit { background: #ffe9a6; box-shadow: inset 4px 0 0 var(--cherry); }
.bill-table tr.is-lit th, .bill-table tr.is-lit td { border-bottom-color: transparent; }

/* poker dice */
.dice-tray { display: flex; justify-content: center; gap: clamp(5px, 1.8vw, 16px); padding: 22px 0 14px; }
.die {
  position: relative; display: grid; place-items: center;
  width: clamp(42px, 12.4vw, 86px); aspect-ratio: 1; padding: 0;
  border: 0; border-radius: 20%;
  background: linear-gradient(160deg, #fffdf7, #efe3c8);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .12), 0 5px 0 #a8976f, 0 12px 16px -8px rgba(0, 0, 0, .6);
  font-family: var(--display); font-size: clamp(1.25rem, 5vw, 2.1rem); color: var(--ink);
  cursor: pointer; transition: transform .12s ease;
}
.die:disabled { cursor: default; }
.die[data-face="J"], .die[data-face="Q"], .die[data-face="K"], .die[data-face="A"] { color: var(--cherry); }
.die[aria-pressed="true"] {
  transform: translateY(-9px);
  box-shadow: 0 0 0 4px var(--mustard), inset 0 -5px 0 rgba(0, 0, 0, .12), 0 5px 0 #a8976f, 0 18px 18px -8px rgba(0, 0, 0, .6);
}
.die-hold {
  display: none; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--cherry); color: #fff; font-size: .7rem; line-height: 1; padding: 3px 7px 4px; border-radius: 7px;
}
.die[aria-pressed="true"] .die-hold { display: block; }
.die.is-tumbling { animation: tumble .42s ease-out; }
@keyframes tumble {
  0% { transform: translateY(-16px) rotate(-30deg) scale(.9); }
  60% { transform: translateY(2px) rotate(8deg); }
  100% { transform: none; }
}

/* jukebox reels */
.booth-rim-juke { border-radius: 190px 190px 26px 26px; }
.felt-juke {
  border-radius: 180px 180px 18px 18px;
  background: radial-gradient(ellipse at 50% 0%, #fff4cf 0%, #f8cf6b 42%, #e09a1f 100%);
  color: var(--ink); padding-top: 40px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .4), inset 0 -10px 30px rgba(120, 60, 0, .35);
}
.turntables { position: relative; z-index: 1; display: flex; justify-content: center; gap: clamp(5px, 2vw, 22px); padding: 6px 0 4px; }
.deck { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.vinyl {
  position: relative; width: clamp(72px, 23vw, 156px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: repeating-radial-gradient(circle, #171717 0 2px, #2a2a2a 2px 4px);
  box-shadow: 0 0 0 4px #2b1f1c, 0 10px 18px -8px rgba(0, 0, 0, .7);
}
.vinyl::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 20deg, transparent 0 40deg, rgba(255, 255, 255, .16) 55deg, transparent 75deg 220deg, rgba(255, 255, 255, .12) 235deg, transparent 255deg);
}
.vinyl-label {
  position: relative; width: 64%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #fffdf7 0 66%, var(--cherry) 67% 100%);
  display: grid; place-items: center; overflow: hidden;
}
.vinyl-label img { width: 70%; height: auto; aspect-ratio: 1; object-fit: contain; color: transparent; }
.vinyl-name {
  font-family: var(--display); font-size: clamp(.75rem, 2.4vw, .95rem); text-align: center;
  background: var(--paper); border-radius: 8px; padding: 2px 8px; min-width: 7ch; line-height: 1.3;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .18);
}
.deck.is-spinning .vinyl { animation: spin-record .45s linear infinite; }
.deck.is-spinning .vinyl-label img { filter: blur(1.5px); }
@keyframes spin-record { to { transform: rotate(360deg); } }
.booth.is-winner .felt-juke { box-shadow: inset 0 0 0 4px #fff, inset 0 -10px 30px rgba(120, 60, 0, .35); }

/* ---------- reading sections ---------- */
.reading { margin-bottom: 60px; }
.reading > section, .reading > article { max-width: 78ch; margin-bottom: 40px; }
.reading h2 { margin-top: 0; }
.steps-list { list-style: none; counter-reset: step; padding: 0; margin: 0 0 1em; }
.steps-list li { counter-increment: step; position: relative; padding-left: 46px; margin-bottom: 12px; min-height: 32px; }
.steps-list li::before {
  content: counter(step); position: absolute; left: 0; top: -1px;
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--cherry); color: #fff; font-family: var(--display); font-size: .95rem;
}
.odds-scroll { overflow-x: auto; margin: 0 0 1em; border-radius: 14px; box-shadow: 0 0 0 2px rgba(43, 31, 28, .12); background: var(--paper); }
.odds-sheet { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .97rem; }
.odds-sheet th, .odds-sheet td { padding: 9px 12px; text-align: right; border-bottom: 1px solid rgba(43, 31, 28, .12); white-space: nowrap; }
.odds-sheet th[scope="row"], .odds-sheet thead th:first-child { text-align: left; white-space: normal; min-width: 9em; }
.odds-sheet thead th { background: var(--ink); color: var(--cream); font-family: var(--display); font-weight: 400; font-size: .86rem; }
.odds-sheet tbody tr:nth-child(even) { background: rgba(168, 227, 207, .22); }
.odds-sheet tbody tr:last-child th, .odds-sheet tbody tr:last-child td { border-bottom: 0; }
.coin-note {
  background: var(--mint-pale); border: 2px solid var(--mint-ink); border-radius: 18px;
  padding: 18px 22px 6px;
}
.coin-note h2 { color: var(--mint-ink); font-size: 1.3rem; }
.groove-list { list-style: none; padding: 0; margin: 0 0 1em; display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 10px; }
.groove-list li {
  display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
  background: var(--paper); border-radius: 14px; padding: 8px 10px; box-shadow: 0 0 0 2px rgba(43, 31, 28, .08);
}
.groove-list img { grid-row: span 2; width: 52px; height: 52px; object-fit: contain; color: transparent; background: var(--mint-pale); border-radius: 50%; }
.groove-list span { font-weight: 700; line-height: 1.2; }
.groove-list strong { font-family: var(--display); font-weight: 400; color: var(--cherry-deep); font-size: .9rem; }

/* ---------- placemat (text pages) ---------- */
.placemat {
  position: relative; width: min(860px, 100% - 2 * var(--gutter)); margin: 44px auto 64px;
  background: var(--paper); border-radius: 4px 4px 22px 22px;
  padding: 30px clamp(18px, 5vw, 56px) 34px;
  box-shadow: 0 22px 34px -24px rgba(43, 31, 28, .55);
}
.placemat::before {
  content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px;
  background: radial-gradient(circle at 50% 100%, var(--paper) 9px, transparent 9.5px) 0 0 / 20px 12px repeat-x;
}
.placemat .script-title { font-size: clamp(2.6rem, 8vw, 4.2rem); }
.placemat h2 { margin-top: 1.6em; }
.placemat ul, .placemat ol { padding-left: 1.3em; }
.placemat li { margin-bottom: .45em; }
.placemat .opening { font-size: 1.15rem; }
.placemat-meta { color: var(--ink-soft); font-size: .95rem; font-style: italic; }
.helpline-box {
  display: grid; gap: 4px; margin: 1.4em 0; padding: 18px 20px; border-radius: 16px;
  background: var(--cherry); color: #fff;
}
.helpline-box a { color: #fff; }
.helpline-box strong { font-family: var(--display); font-weight: 400; font-size: 1.6rem; }
.mail-plate {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--display); font-size: clamp(1.05rem, 4vw, 1.4rem);
  background: var(--mint-pale); padding: 12px 18px; border-radius: 14px; border: 2px dashed var(--mint-ink);
  word-break: break-all;
}
.store-table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .97rem; }
.store-table th, .store-table td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid rgba(43, 31, 28, .14); }
.store-table thead th { background: var(--ink); color: var(--cream); font-family: var(--display); font-weight: 400; }
@media (max-width: 600px) {
  .store-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .store-table tr, .store-table td { display: block; }
  .store-table tr { background: var(--cream); border-radius: 14px; padding: 6px 4px; }
  .store-table td { border: 0; padding: 6px 10px; }
  .store-table td::before { content: attr(data-label); display: block; font-family: var(--display); font-size: .85rem; color: var(--mint-ink); }
}

/* example hands in the guide */
.minihand { display: inline-flex; gap: 4px; vertical-align: middle; flex-wrap: wrap; }
.minicard {
  display: inline-grid; place-items: center; min-width: 2.3em; padding: 2px 4px;
  font-family: var(--display); font-size: .92rem; line-height: 1.3;
  background: #fff; color: var(--ink); border-radius: 5px; box-shadow: 0 0 0 1.5px rgba(43, 31, 28, .35);
}
.minicard.is-red { color: #b8102b; }
.hand-gallery { list-style: none; padding: 0 !important; margin: 0 0 1.2em; display: grid; gap: 10px; }
.hand-gallery li {
  display: grid; gap: 4px 14px; align-items: center; margin: 0 !important;
  background: var(--cream); border-radius: 14px; padding: 10px 14px;
}
.hand-gallery b { font-family: var(--display); font-weight: 400; color: var(--cherry-deep); }
@media (min-width: 640px) { .hand-gallery li { grid-template-columns: 11em 1fr auto; } }
.hand-gallery em { font-style: normal; font-family: var(--display); color: var(--mint-ink); }
.rule-board { border-left: 6px solid var(--mint-ink); background: var(--mint-pale); padding: 14px 18px 4px; border-radius: 0 14px 14px 0; margin-bottom: 1.2em; }

/* ---------- menu page ---------- */
.menu-sheet { margin: 34px auto 60px; }
.menu-sheet .laminate { padding-bottom: 28px; }
.plate-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.plate-item { display: grid; gap: 16px; align-items: start; }
.plate-item img {
  width: 100%; max-width: 220px; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  border: 6px solid #fff; box-shadow: 0 0 0 3px var(--cherry), 0 14px 20px -12px rgba(0, 0, 0, .6);
  background: radial-gradient(circle, var(--mint) 0 50%, var(--mint-ink) 100%); color: transparent;
}
.plate-item h3 { margin-bottom: .2em; }
.plate-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 6px 0 12px; padding: 0; list-style: none; font-size: .95rem; }
.plate-facts li { background: var(--cream); border-radius: 8px; padding: 2px 10px; }
@media (min-width: 720px) { .plate-item { grid-template-columns: 200px 1fr; gap: 28px; } }

/* ---------- lost and found ---------- */
.lostfound { text-align: center; padding: 50px 0 70px; max-width: 640px; }
.lostfound-number {
  font-family: var(--display); font-size: clamp(5rem, 22vw, 9rem); line-height: 1; margin: 0;
  color: var(--paper); -webkit-text-stroke: 3px var(--cherry); text-shadow: 6px 6px 0 var(--mint);
}
.lostfound-ways { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; font-family: var(--display); }

/* ---------- footer ---------- */
.kickplate { background: var(--ink); color: #efe3cf; margin-top: 20px; }
.kick-grid {
  width: var(--room); margin-inline: auto; padding: 38px 0 18px;
  display: grid; gap: 30px; font-size: .97rem;
}
@media (min-width: 980px) { .kick-grid { grid-template-columns: 1.3fr 1.5fr 1.2fr; gap: 40px; } }
.kick-sign { font-family: var(--script); font-size: 2.3rem; line-height: 1; color: var(--cherry-soft); margin-bottom: 12px; }
.kick-head { font-family: var(--display); font-size: 1.05rem; color: #fff; margin-bottom: 8px; }
.kick-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (min-width: 560px) { .kick-links { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kick-links ul { list-style: none; margin: 0; padding: 0; }
.kick-links li { margin-bottom: 4px; }
.kick-links a { display: inline-block; padding: 4px 0; }
.kickplate a { color: var(--mint); }
.kickplate a:hover { color: #fff; }
.kickplate :focus-visible { outline-color: var(--mustard); }
.kick-age { display: flex; align-items: center; gap: 10px; }
.kick-base {
  width: var(--room); margin: 0 auto; padding: 16px 0 26px; text-align: center; font-size: .9rem; color: #cbbca6;
  border-top: 1px solid rgba(255, 255, 255, .14); overflow-wrap: anywhere;
}

/* ---------- storage memo ---------- */
.memo-slip {
  position: fixed; z-index: 70; left: 12px; right: 12px; bottom: 12px;
  max-width: 600px; margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 16px;
  padding: 12px 14px; font-size: .95rem;
  box-shadow: 0 16px 30px -12px rgba(43, 31, 28, .55);
}
.memo-slip p { margin: 0; flex: 1 1 260px; }
@media (max-width: 520px) {
  .memo-slip { left: 8px; right: 8px; bottom: 8px; padding: 10px 12px; font-size: .86rem; line-height: 1.45; gap: 8px; }
  .memo-slip .press { min-height: 36px; }
}

/* ---------- dialogs ---------- */
.doorway {
  border: 0; padding: 0; width: min(500px, 100% - 28px); max-height: calc(100dvh - 28px);
  border-radius: 24px; background: var(--paper); color: var(--ink);
  box-shadow: 0 0 0 4px var(--cherry), 0 30px 60px rgba(0, 0, 0, .45);
  overflow: auto;
}
.doorway::before {
  content: ""; display: block; height: 14px;
  background: repeating-conic-gradient(var(--ink) 0 25%, var(--paper) 0 50%) 0 0 / 28px 28px;
}
.doorway::backdrop { background: rgba(43, 31, 28, .74); backdrop-filter: blur(3px); }
.doorway-body { padding: 20px clamp(18px, 5vw, 30px) 26px; }
.doorway-script { font-family: var(--script); font-size: 2.1rem; color: var(--cherry); margin: 0; line-height: 1.1; }
.doorway h2 { color: var(--ink); font-size: 1.55rem; }
.doorway h2:focus { outline: none; }
.doorway-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.doorway-actions .press { flex: 1 1 180px; }
.field-label { display: block; font-family: var(--display); margin: 14px 0 6px; }
.field-input {
  width: 100%; font: inherit; font-size: 1.15rem; padding: 12px 14px;
  border: 2px solid #6f7880; border-radius: 12px; background: #fff; color: var(--ink);
}
.field-input[aria-invalid="true"] { border-color: var(--cherry); box-shadow: 0 0 0 3px #ffd2da; }
.field-rule { font-size: .92rem; color: var(--ink-soft); margin: 6px 0 0; }
.field-error { color: var(--cherry-deep); font-weight: 700; margin: 6px 0 0; }
.booth-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0 16px; }
.booth-facts div { background: var(--cream); border-radius: 12px; padding: 10px 12px; }
.booth-facts dt { font-size: .85rem; color: var(--ink-soft); }
.booth-facts dd { margin: 0; font-family: var(--display); font-size: 1.3rem; }
.refill-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between;
  background: var(--mint-pale); border-radius: 14px; padding: 12px 14px;
}
.refill-strip p { margin: 0; font-variant-numeric: tabular-nums; }
.leave-check { margin-top: 18px; border-top: 2px dotted rgba(43, 31, 28, .25); padding-top: 14px; }
.doorway.is-refused { box-shadow: 0 0 0 4px var(--ink), 0 30px 60px rgba(0, 0, 0, .45); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}
