/* ==========================================================================
   GOLD ROLL — style.css
   A dark medieval tavern interface: stone, dark wood, iron trim, gold and
   old parchment. All texture is drawn with CSS gradients — no external art
   beyond the logo, so the site is three files plus one image.
   --------------------------------------------------------------------------
   1.  Tokens & reset
   2.  Backdrop (tavern wall, beams, candles)
   3.  Shared furniture (panels, buttons, scrollbars)
   4.  Header & brand
   5.  Board layout
   6.  Wager panel
   7.  The D100 stage
   8.  Statistics & history
   9.  Parchment scrolls, about, footer
   10. Modals
   11. Animations
   12. Responsive
   ========================================================================== */

/* ============ 1. TOKENS & RESET ========================================== */
:root {
  --gold-hi:   #ffe9a8;
  --gold:      #e8b93a;
  --gold-mid:  #c9922a;
  --gold-deep: #8a5f14;
  --gold-dark: #4d3208;

  --iron:      #6e6558;
  --iron-dark: #2b2721;
  --stone:     #3b372f;

  --wood:      #1c130b;
  --wood-lo:   #0e0906;

  --ink:       #f3e6c8;
  --ink-dim:   #b9a884;
  --ink-faint: #8a7c62;

  --win:       #63d68a;
  --win-deep:  #1d6b3a;
  --lose:      #e05a45;
  --lose-deep: #7a2418;

  --well-1:    #123a63;
  --well-2:    #06162b;

  --parchment: #e6d5a8;
  --parchment-ink: #3d2b13;

  --panel-radius: 12px;
  --shadow-deep: 0 18px 44px rgba(0, 0, 0, .72);

  --font-display: "Cinzel Decorative", "Cinzel", "Trajan Pro", Georgia, serif;
  --font-body: "Cinzel", "Georgia", "Times New Roman", serif;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  padding: 0 16px 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: #0a0705;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

h1, h2, h3, p, dl, dd, dt { margin: 0; }

button, input { font: inherit; color: inherit; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
}

/* ============ 2. BACKDROP ================================================ */
.tavern { position: fixed; inset: 0; z-index: -1; overflow: hidden; }

/* Rough stone wall behind everything */
.tavern__wall {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(90, 62, 28, .45), transparent 70%),
    radial-gradient(900px 600px at 8% 30%, rgba(120, 74, 24, .22), transparent 65%),
    radial-gradient(900px 600px at 92% 30%, rgba(120, 74, 24, .22), transparent 65%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .022) 0 2px, transparent 2px 76px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .30) 0 2px, transparent 2px 128px),
    linear-gradient(180deg, #241a12 0%, #150e09 45%, #0a0705 100%);
}

/* Dark timber beams across the ceiling and floor */
.tavern__beams {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 12, 7, .96) 0 62px, transparent 62px),
    linear-gradient(0deg, rgba(16, 10, 6, .96) 0 46px, transparent 46px),
    repeating-linear-gradient(90deg,
      rgba(0, 0, 0, .35) 0 3px, transparent 3px 210px);
  opacity: .85;
}

/* Candle glows */
.candle {
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 186, 84, .40), rgba(255, 150, 40, .10) 45%, transparent 70%);
  animation: flicker 3.4s ease-in-out infinite;
}
.candle--a { top: 2%;  left: 6%; }
.candle--b { top: 1%;  left: 28%; animation-delay: -1.1s; }
.candle--c { top: 1%;  right: 24%; animation-delay: -2.3s; }
.candle--d { top: 3%;  right: 5%;  animation-delay: -.6s; }

.tavern__vignette {
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 40%, transparent 40%, rgba(0, 0, 0, .78) 100%);
}

/* Heraldic banners — clickable theme switches, wide screens only */
.banner {
  position: fixed;
  top: 74px;
  width: 150px;
  z-index: 6;
  display: none;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.banner--left  { left: 10px; }
.banner--right { right: 10px; }

.banner__cloth {
  display: block;
  padding: 24px 12px 10px;
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%);
  border-left: 2px solid rgba(0, 0, 0, .5);
  border-right: 2px solid rgba(0, 0, 0, .5);
  box-shadow: var(--shadow-deep);
  transition: filter .18s ease, transform .18s ease;
}
.banner:hover .banner__cloth { filter: brightness(1.25); transform: translateY(2px); }
.banner:active .banner__cloth { transform: translateY(4px); }

/* "Play Theme" cue at the foot of the cloth */
.banner__cue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  padding-bottom: 26px;
  font-family: var(--font-display);
  font-size: .6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-hi);
  opacity: .72;
  transition: opacity .18s ease;
}
.banner:hover .banner__cue { opacity: 1; }
.banner[aria-pressed="true"] .banner__cueText::after { content: " ✦"; }
.banner[aria-pressed="true"] .banner__cloth {
  filter: brightness(1.3);
  box-shadow: var(--shadow-deep), 0 0 26px rgba(232, 185, 58, .45);
}
.banner[aria-pressed="true"] .banner__crest {
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(255, 233, 168, .7));
}
.banner--left .banner__cloth {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 9px),
    linear-gradient(180deg, #17325c, #0d1c34);
}
.banner--right .banner__cloth {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 9px),
    linear-gradient(180deg, #5c1a17, #2f0d0b);
}
.banner__crest {
  display: block;
  width: 62px; height: 62px; margin: 0 auto 14px;
  background:
    radial-gradient(circle at 50% 38%, var(--gold-hi), var(--gold) 42%, var(--gold-deep) 78%);
  clip-path: polygon(50% 0, 100% 26%, 84% 100%, 50% 86%, 16% 100%, 0 26%);
  opacity: .82;
}
.banner__crest--alt { clip-path: polygon(50% 0, 92% 22%, 100% 74%, 50% 100%, 0 74%, 8% 22%); }
.banner__text {
  display: block;
  font-family: var(--font-display);
  font-size: .82rem; letter-spacing: .14em; line-height: 1.85;
  color: var(--ink-dim);
  text-transform: uppercase;
  text-shadow: 0 2px 3px rgba(0, 0, 0, .8);
}

/* ============ MUSIC DOCK ================================================= */
.dock {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 40;
  padding: 8px 10px 9px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 74, .3);
  background: linear-gradient(180deg, rgba(26, 20, 13, .95), rgba(10, 7, 5, .97));
  box-shadow: 0 10px 28px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 226, 160, .1);
  backdrop-filter: blur(4px);
}
.dock__now {
  margin-bottom: 6px;
  text-align: center;
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}
.dock__now.is-playing { color: var(--gold-hi); }
.dock__row { display: flex; gap: 6px; align-items: stretch; }

.dock__theme {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 7px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--ink-dim);
  border: 1px solid rgba(120, 105, 70, .45);
  background: linear-gradient(180deg, #241d14, #100c07);
  transition: color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.dock__theme:hover { color: var(--gold-hi); border-color: rgba(232, 185, 58, .55); }

.dock__crest {
  width: 17px; height: 17px;
  flex: 0 0 auto;
  background: linear-gradient(180deg, #6f95d6, #1d3358);
  clip-path: polygon(50% 0, 100% 26%, 84% 100%, 50% 86%, 16% 100%, 0 26%);
  transition: filter .18s ease;
}
.dock__crest--alt {
  background: linear-gradient(180deg, #d1674f, #5c1a14);
  clip-path: polygon(50% 0, 92% 22%, 100% 74%, 50% 100%, 0 74%, 8% 22%);
}

.dock__theme[aria-pressed="true"] {
  color: #2b1c05;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 48%, var(--gold-deep));
  border-color: rgba(255, 240, 190, .7);
  box-shadow: 0 4px 16px rgba(232, 185, 58, .38), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.dock__theme[aria-pressed="true"] .dock__crest { filter: brightness(1.2) drop-shadow(0 0 4px rgba(0, 0, 0, .5)); }

.dock__mute {
  width: 38px;
  border-radius: 7px;
  cursor: pointer;
  color: var(--gold-hi);
  border: 1px solid rgba(120, 105, 70, .45);
  background: linear-gradient(180deg, #241d14, #100c07);
  transition: color .15s ease, border-color .15s ease;
}
.dock__mute:hover { border-color: rgba(232, 185, 58, .55); }
.dock__icon { font-size: 1.05rem; line-height: 1; }
.dock__mute.is-muted { color: var(--lose); border-color: rgba(224, 90, 69, .45); }
.dock__mute.is-muted .dock__icon { position: relative; opacity: .65; }
.dock__mute.is-muted .dock__icon::after {
  content: "";
  position: absolute;
  left: -4px; right: -4px; top: 50%;
  height: 2px;
  background: var(--lose);
  transform: rotate(-38deg);
}

/* little equaliser, animated only while that theme plays */
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 9px; }
.eq i {
  width: 2px; height: 3px;
  background: currentColor;
  border-radius: 1px;
  animation: eqbar .62s ease-in-out infinite alternate;
  animation-play-state: paused;
  opacity: .55;
}
.eq i:nth-child(2) { animation-delay: .2s; height: 6px; }
.eq i:nth-child(3) { animation-delay: .4s; height: 4px; }
[aria-pressed="true"] .eq i { animation-play-state: running; opacity: 1; }

/* ============ 3. SHARED FURNITURE ======================================== */

/* Iron-trimmed stone panel */
.panel {
  position: relative;
  padding: 18px 16px 20px;
  border: 2px solid transparent;
  border-radius: var(--panel-radius);
  background:
    linear-gradient(180deg, rgba(28, 21, 14, .97), rgba(12, 9, 6, .98)) padding-box,
    linear-gradient(160deg, #8d7c58 0%, #4a4238 28%, #2c2822 55%, #6f6047 100%) border-box;
  box-shadow:
    var(--shadow-deep),
    inset 0 1px 0 rgba(255, 226, 160, .10),
    inset 0 0 42px rgba(0, 0, 0, .62);
}
/* inner hairline + corner studs */
.panel::before {
  content: "";
  position: absolute; inset: 5px;
  border: 1px solid rgba(212, 175, 74, .18);
  border-radius: 7px;
  /* four gold studs, one per corner — sized tiles so the dot stays put */
  background-image:
    radial-gradient(circle at 50% 50%, var(--gold-hi) 0 1.4px, var(--gold-mid) 1.4px 2.6px, transparent 3px),
    radial-gradient(circle at 50% 50%, var(--gold-hi) 0 1.4px, var(--gold-mid) 1.4px 2.6px, transparent 3px),
    radial-gradient(circle at 50% 50%, var(--gold-hi) 0 1.4px, var(--gold-mid) 1.4px 2.6px, transparent 3px),
    radial-gradient(circle at 50% 50%, var(--gold-hi) 0 1.4px, var(--gold-mid) 1.4px 2.6px, transparent 3px);
  background-size: 8px 8px;
  background-repeat: no-repeat;
  background-position: 3px 3px, calc(100% - 3px) 3px, 3px calc(100% - 3px), calc(100% - 3px) calc(100% - 3px);
  pointer-events: none;
  opacity: .75;
}

.panel__title {
  font-family: var(--font-display);
  font-size: .96rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink);
  text-shadow: 0 2px 4px rgba(0, 0, 0, .9);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(212, 175, 74, .22);
  margin-bottom: 14px;
}
.panel__title--sub {
  font-size: .8rem;
  border-bottom: 0;
  padding-bottom: 4px;
  margin: 16px 0 8px;
  color: var(--ink-dim);
}

/* Gold-leaf text used for the big numbers */
.gold-leaf {
  background: linear-gradient(180deg, #fff4cd 4%, var(--gold-hi) 24%, var(--gold) 52%, #b3801f 74%, #ffdf90 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Generic buttons */
.btn {
  font-family: var(--font-display);
  font-size: .88rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, .6);
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}
.btn:hover { filter: brightness(1.16); }
.btn:active { transform: translateY(1px); }

.btn--ghost {
  background: linear-gradient(180deg, #2a231a, #17120c);
  color: var(--ink-dim);
  box-shadow: inset 0 1px 0 rgba(255, 226, 160, .12);
}
.btn--danger {
  background: linear-gradient(180deg, #7d2318, #45120b);
  color: #ffd9c9;
  border-color: rgba(224, 90, 69, .5);
  box-shadow: inset 0 1px 0 rgba(255, 170, 140, .22), 0 6px 18px rgba(120, 24, 12, .45);
}
.btn--gold {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 45%, var(--gold-deep));
  color: #2b1c05;
  font-weight: 700;
  border-color: rgba(255, 233, 168, .55);
  box-shadow: 0 8px 26px rgba(232, 185, 58, .34), inset 0 1px 0 rgba(255, 255, 255, .55);
}

/* Themed scrollbars */
.history::-webkit-scrollbar { width: 9px; }
.history::-webkit-scrollbar-track { background: rgba(0, 0, 0, .45); border-radius: 5px; }
.history::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-mid), var(--gold-dark));
  border-radius: 5px;
}
.history { scrollbar-width: thin; scrollbar-color: var(--gold-mid) rgba(0, 0, 0, .45); }

/* ============ 4. HEADER & BRAND ========================================== */
.topbar {
  position: relative;
  max-width: 1500px;
  margin: 0 auto;
  padding: 10px 0 6px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.topbar__nav { display: flex; gap: 26px; padding-left: 8px; }
.topbar__nav a {
  font-family: var(--font-display);
  font-size: .92rem;
  letter-spacing: .06em;
  color: var(--ink-dim);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.topbar__nav a:hover { color: var(--gold-hi); }
.topbar__nav a.is-current { color: var(--ink); border-bottom-color: var(--gold); }

.brand { display: block; text-decoration: none; justify-self: center; }
.brand__img {
  width: min(460px, 62vw);
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, .85));
}
.brand__text { display: none; }
.brand--noimg .brand__text {
  display: block;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 900;
  letter-spacing: .04em;
  background: linear-gradient(180deg, #fff4cd, var(--gold) 55%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.brand--noimg .brand__text em {
  display: block;
  font-size: .28em;
  font-style: normal;
  letter-spacing: .34em;
  -webkit-text-fill-color: var(--ink-dim);
  color: var(--ink-dim);
}

.topbar__tagline {
  justify-self: end;
  padding-right: 8px;
  text-align: right;
  font-family: var(--font-display);
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-shadow: 0 2px 4px rgba(0, 0, 0, .9);
}

/* ============ 5. BOARD LAYOUT ============================================ */
.board {
  max-width: 1500px;
  margin: 6px auto 0;
  display: grid;
  grid-template-columns: minmax(250px, 300px) minmax(0, 1fr) minmax(280px, 340px);
  gap: 18px;
  align-items: start;
}
.rail { display: grid; gap: 18px; }

/* ============ 6. WAGER PANEL ============================================= */
.panel--wager { display: flex; flex-direction: column; }

.purse {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 4px 0 6px;
}
.coin {
  width: 34px; height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, #fff6d6, var(--gold) 44%, var(--gold-deep) 82%);
  box-shadow:
    inset 0 -2px 4px rgba(0, 0, 0, .5),
    inset 0 2px 3px rgba(255, 255, 255, .6),
    0 3px 10px rgba(232, 185, 58, .38);
  position: relative;
}
.coin::after {
  content: "";
  position: absolute; inset: 7px;
  border-radius: 50%;
  border: 1.5px solid rgba(93, 60, 8, .55);
  background: radial-gradient(circle at 40% 34%, rgba(255, 255, 255, .55), transparent 60%);
}
.purse__value {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.4vw, 2.9rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: .01em;
  background: linear-gradient(180deg, #fff4cd 6%, var(--gold-hi) 28%, var(--gold) 56%, #b3801f 82%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .85));
  transition: transform .2s ease;
}
.purse__value.is-bump { animation: bump .45s ease; }

/* Bet input with iron stepper */
.betfield {
  position: relative;
  display: flex;
  align-items: stretch;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 74, .32);
  background: linear-gradient(180deg, #0b0906, #14100a);
  box-shadow: inset 0 3px 10px rgba(0, 0, 0, .85);
}
.betfield.is-bad { border-color: var(--lose); box-shadow: inset 0 3px 10px rgba(0, 0, 0, .85), 0 0 0 2px rgba(224, 90, 69, .28); }

.betfield__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 8px 12px 16px;
  background: transparent;
  border: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--gold-hi);
  text-shadow: 0 2px 4px rgba(0, 0, 0, .8);
}
.betfield__input:focus { outline: none; }
.betfield__input::selection { background: rgba(232, 185, 58, .3); }

.betfield__stepper { display: flex; flex-direction: column; width: 40px; flex: 0 0 auto; }
.step {
  flex: 1 1 50%;
  border: 0;
  border-left: 1px solid rgba(212, 175, 74, .22);
  background: linear-gradient(180deg, #2c251b, #171208);
  color: var(--gold);
  font-size: .58rem;
  line-height: 1;
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
.step--up { border-bottom: 1px solid rgba(0, 0, 0, .7); }
.step:hover { background: linear-gradient(180deg, #40331f, #241a0c); color: var(--gold-hi); }
.step:active { background: #171208; }

/* Quick-bet chips */
.chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.chip {
  padding: 10px 4px;
  border-radius: 7px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink-dim);
  border: 1px solid rgba(120, 105, 70, .45);
  background: linear-gradient(180deg, #241d14, #100c07);
  box-shadow: inset 0 1px 0 rgba(255, 226, 160, .10), 0 3px 8px rgba(0, 0, 0, .5);
  transition: color .14s ease, border-color .14s ease, transform .1s ease, box-shadow .14s ease;
}
.chip:hover { color: var(--gold-hi); border-color: rgba(232, 185, 58, .6); }
.chip:active { transform: translateY(1px); }
.chip.is-active {
  color: #2b1c05;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 48%, var(--gold-deep));
  border-color: rgba(255, 240, 190, .7);
  box-shadow: 0 5px 16px rgba(232, 185, 58, .35), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.chip--max { grid-column: 1 / -1; letter-spacing: .16em; }

.betnote {
  min-height: 1.35em;
  margin: 9px 0 2px;
  text-align: center;
  font-size: .76rem;
  letter-spacing: .04em;
  color: var(--lose);
}

/* ROLL button */
.roll-btn {
  margin-top: 8px;
  width: 100%;
  padding: 17px 10px;
  cursor: pointer;
  border-radius: 10px;
  border: 2px solid transparent;
  background:
    linear-gradient(180deg, #8f2a1c 0%, #66190f 45%, #3d0d07 100%) padding-box,
    linear-gradient(180deg, var(--gold-hi), var(--gold-mid) 45%, var(--gold-deep)) border-box;
  box-shadow:
    0 10px 26px rgba(0, 0, 0, .6),
    inset 0 1px 0 rgba(255, 190, 160, .3),
    inset 0 -8px 18px rgba(0, 0, 0, .45);
  transition: transform .12s ease, filter .12s ease, box-shadow .2s ease;
}
.roll-btn__label {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: .16em;
  background: linear-gradient(180deg, #fff4cd, var(--gold) 55%, #a8761a);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .9));
}
.roll-btn:hover:not(:disabled) {
  filter: brightness(1.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .65), 0 0 26px rgba(232, 185, 58, .28),
              inset 0 1px 0 rgba(255, 190, 160, .3), inset 0 -8px 18px rgba(0, 0, 0, .45);
}
.roll-btn:active:not(:disabled) { transform: translateY(2px); }
.roll-btn:disabled { cursor: not-allowed; filter: grayscale(.55) brightness(.62); }

.fineprint {
  margin-top: 12px;
  text-align: center;
  font-size: .68rem;
  letter-spacing: .05em;
  color: var(--ink-faint);
}

/* ============ 7. THE D100 STAGE ========================================== */
.panel--stage {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background:
    linear-gradient(180deg, rgba(30, 22, 15, .96), rgba(10, 7, 5, .98)) padding-box,
    linear-gradient(160deg, #8d7c58 0%, #4a4238 28%, #2c2822 55%, #6f6047 100%) border-box;
}

.stage__head { text-align: center; }
.stage__title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.1vw, 1.4rem);
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff4cd, var(--gold) 60%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.stage__sub {
  font-size: .74rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 3px;
}

/* --- The dial itself --- */
.dial {
  position: relative;
  width: min(400px, 74vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 2px 0 4px;
}

.dial__aura {
  position: absolute; inset: -12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 185, 58, .20), transparent 62%);
  opacity: .5;
  transition: opacity .35s ease, background .35s ease;
}
.dial[data-state="win"]  .dial__aura {
  opacity: 1;
  background:
    radial-gradient(circle, rgba(255, 226, 150, .34), transparent 52%),
    radial-gradient(circle, rgba(99, 214, 138, .48), transparent 68%);
}
.dial[data-state="lose"] .dial__aura { opacity: 1; background: radial-gradient(circle, rgba(224, 90, 69, .32), transparent 64%); }
.dial[data-state="rolling"] .dial__aura { opacity: 1; animation: pulse 1s ease-in-out infinite; }

/* Iron / stone ring with rune notches carved into it */
.dial__ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  background:
    /* carved rune notches */
    repeating-conic-gradient(from 3deg,
      rgba(10, 8, 5, .78) 0deg 1.4deg,
      rgba(255, 233, 168, .12) 1.4deg 2.1deg,
      transparent 2.1deg 9deg),
    /* segmented stone blocks */
    repeating-conic-gradient(from 0deg,
      rgba(0, 0, 0, .5) 0deg .9deg,
      transparent .9deg 45deg),
    /* the stone itself, lit from the upper left */
    conic-gradient(from 200deg,
      #6b6153 0deg, #322e27 34deg, #8f8574 76deg, #3a352d 118deg,
      #7d7364 156deg, #2f2b24 200deg, #9c9281 246deg, #383329 292deg,
      #6b6153 340deg, #6b6153 360deg);
  box-shadow:
    0 14px 38px rgba(0, 0, 0, .8),
    inset 0 0 30px rgba(0, 0, 0, .78);
  transition: transform .5s cubic-bezier(.2, .8, .3, 1);
}
/* outer iron lip */
.dial__ring::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(18, 14, 10, .85);
  box-shadow:
    inset 0 2px 3px rgba(255, 240, 205, .18),
    inset 0 -3px 6px rgba(0, 0, 0, .7);
}
/* gold rim where the stone meets the well */
.dial__ring::after {
  content: "";
  position: absolute; inset: 11.5%;
  border-radius: 50%;
  border: 3px solid transparent;
  background:
    linear-gradient(#0000, #0000) padding-box,
    linear-gradient(160deg, var(--gold-hi), var(--gold-mid) 38%, var(--gold-dark) 62%, var(--gold)) border-box;
  box-shadow:
    inset 0 0 24px rgba(0, 0, 0, .9),
    0 0 12px rgba(0, 0, 0, .75),
    0 0 16px rgba(232, 185, 58, .18);
}
.dial[data-state="rolling"] .dial__ring { animation: spin 1.1s linear infinite; }

/* four gold pips at the compass points */
.dial__pip {
  position: absolute;
  width: 5.5%; height: 5.5%;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-deep));
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .8));
}
.dial__pip--n { top: 1.4%; left: 47.25%; }
.dial__pip--s { bottom: 1.4%; left: 47.25%; }
.dial__pip--w { left: 1.4%; top: 47.25%; }
.dial__pip--e { right: 1.4%; top: 47.25%; }

/* Deep blue well holding the number */
.dial__well {
  position: relative;
  width: 74%; height: 74%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 32%, rgba(120, 190, 255, .16), transparent 58%),
    radial-gradient(circle at 50% 55%, var(--well-1), var(--well-2) 78%);
  box-shadow:
    inset 0 10px 34px rgba(0, 0, 0, .9),
    inset 0 -6px 26px rgba(70, 150, 230, .18),
    0 0 0 3px rgba(0, 0, 0, .5);
  overflow: hidden;
  transition: box-shadow .3s ease;
}
.dial[data-state="win"] .dial__well {
  box-shadow: inset 0 10px 34px rgba(0, 0, 0, .85), inset 0 0 44px rgba(99, 214, 138, .35), 0 0 0 3px rgba(0, 0, 0, .5);
}
.dial[data-state="lose"] .dial__well {
  box-shadow: inset 0 10px 34px rgba(0, 0, 0, .9), inset 0 0 40px rgba(224, 90, 69, .28), 0 0 0 3px rgba(0, 0, 0, .5);
}

/* THE ENORMOUS NUMBER */
.dial__number {
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 15vw, 8.6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff8dd 4%, var(--gold-hi) 26%, var(--gold) 54%, #a8761a 78%, #ffe6a0 98%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, .9));
  user-select: none;
}
/* the idle placeholder dash sits back and waits */
.dial[data-state="idle"] .dial__number {
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  opacity: .45;
}
.dial[data-state="rolling"] .dial__number { opacity: .92; }
.dial[data-state="win"]  .dial__number { animation: land .55s cubic-bezier(.2, 1.4, .4, 1); }
.dial[data-state="lose"] .dial__number { animation: land .55s cubic-bezier(.2, 1.4, .4, 1); }

/* Coin burst layer — coins spray past the dial and rain down the stage */
.coins {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 3;
}
.coin-bit {
  position: absolute;
  top: 50%;
  width: 22px; height: 22px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, #fffbe8 0 12%, var(--gold-hi) 26%, var(--gold) 52%, var(--gold-deep) 88%);
  box-shadow:
    0 3px 9px rgba(0, 0, 0, .65),
    inset 0 -2px 3px rgba(90, 58, 8, .65),
    inset 0 2px 2px rgba(255, 255, 255, .5),
    0 0 12px rgba(232, 185, 58, .45);
  animation: coinfly var(--dur, 1.1s) cubic-bezier(.15, .6, .4, 1) forwards;
}
/* the rim detail on each coin */
.coin-bit::after {
  content: "";
  position: absolute; inset: 4px;
  border-radius: 50%;
  border: 1.5px solid rgba(122, 82, 14, .5);
}

/* Verdict banner */
.verdict {
  width: 100%;
  max-width: 460px;
  padding: 11px 18px;
  text-align: center;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 74, .22);
  background: linear-gradient(180deg, rgba(38, 29, 19, .9), rgba(14, 10, 7, .92));
  box-shadow: inset 0 1px 0 rgba(255, 226, 160, .08);
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.verdict__title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1.15;
  color: var(--ink-dim);
  text-shadow: 0 2px 5px rgba(0, 0, 0, .9);
  transition: font-size .2s ease;
}
/* WIN / LOSE shout much louder than the idle prompt */
.verdict[data-state="win"] .verdict__title,
.verdict[data-state="lose"] .verdict__title {
  font-size: clamp(1.7rem, 4.2vw, 2.5rem);
}
.verdict__amount {
  font-size: .95rem;
  letter-spacing: .12em;
  color: var(--ink-faint);
  margin-top: 2px;
}
.verdict[data-state="win"] {
  border-color: rgba(99, 214, 138, .55);
  background: linear-gradient(180deg, rgba(28, 80, 46, .85), rgba(8, 26, 15, .92));
  box-shadow: 0 0 30px rgba(99, 214, 138, .3), inset 0 1px 0 rgba(180, 255, 205, .18);
  animation: banner-pop .5s cubic-bezier(.2, 1.3, .4, 1);
}
.verdict[data-state="win"] .verdict__title {
  color: #d8ffe6;
  text-shadow: 0 0 18px rgba(99, 214, 138, .8), 0 2px 5px rgba(0, 0, 0, .9);
}
.verdict[data-state="win"] .verdict__amount { color: var(--win); font-weight: 700; }

.verdict[data-state="lose"] {
  border-color: rgba(224, 90, 69, .5);
  background: linear-gradient(180deg, rgba(86, 26, 18, .85), rgba(26, 8, 5, .92));
  box-shadow: 0 0 24px rgba(224, 90, 69, .22), inset 0 1px 0 rgba(255, 180, 160, .14);
  animation: banner-shake .5s ease;
}
.verdict[data-state="lose"] .verdict__title { color: #ffd8ce; text-shadow: 0 2px 5px rgba(0, 0, 0, .9); }
.verdict[data-state="lose"] .verdict__amount { color: var(--lose); font-weight: 700; }

.verdict[data-state="rolling"] .verdict__title {
  color: var(--gold-hi);
  animation: pulse 1s ease-in-out infinite;
}

/* Always-visible rules strip */
.rules {
  width: 100%;
  padding: 10px 14px 11px;
  text-align: center;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 74, .18);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .015) 0 1px, transparent 1px 6px),
    linear-gradient(180deg, rgba(24, 18, 12, .95), rgba(10, 7, 5, .96));
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, .7);
}
.rules__line {
  font-family: var(--font-display);
  font-size: clamp(.92rem, 2vw, 1.14rem);
  font-weight: 700;
  letter-spacing: .08em;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 14px;
}
.rules__win  { color: var(--win); text-shadow: 0 0 12px rgba(99, 214, 138, .35); }
.rules__lose { color: var(--lose); text-shadow: 0 0 12px rgba(224, 90, 69, .3); }
.rules__sep  { color: var(--ink-faint); }
.rules__pays {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--gold-hi);
}
.rules__odds {
  margin-top: 5px;
  font-size: .72rem;
  letter-spacing: .03em;
  color: var(--ink-faint);
}

/* ============ 8. STATISTICS & HISTORY ==================================== */
.stats { display: grid; gap: 1px; }
.stats__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: .86rem;
}
.stats__row:nth-child(odd) { background: rgba(255, 255, 255, .028); }
.stats__row dt { color: var(--ink-dim); letter-spacing: .02em; }
.stats__row dd {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold-hi);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
}

.reset-btn {
  width: 100%;
  margin-top: 14px;
  padding: 11px 10px;
  cursor: pointer;
  border-radius: 8px;
  border: 1px solid rgba(224, 90, 69, .45);
  background: linear-gradient(180deg, #5e1a12, #2e0b07);
  font-family: var(--font-display);
  font-size: .95rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #ffcfc2;
  box-shadow: inset 0 1px 0 rgba(255, 170, 140, .18), 0 5px 14px rgba(0, 0, 0, .5);
  transition: filter .14s ease, transform .1s ease;
}
.reset-btn:hover { filter: brightness(1.25); }
.reset-btn:active { transform: translateY(1px); }
.reset-note {
  margin-top: 5px;
  text-align: center;
  font-size: .68rem;
  color: var(--ink-faint);
}

.panel--history { padding-bottom: 14px; }
.history { max-height: 320px; overflow-y: auto; overflow-x: auto; }
.history__table {
  width: 100%;
  border-collapse: collapse;
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
}
.history__table th {
  position: sticky; top: 0; z-index: 1;
  padding: 5px 6px;
  text-align: right;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: #14100a;
  border-bottom: 1px solid rgba(212, 175, 74, .25);
}
.history__table th:first-child, .history__table td:first-child { text-align: left; }
.history__table td {
  padding: 5px 6px;
  text-align: right;
  color: var(--ink-dim);
  border-bottom: 1px solid rgba(255, 255, 255, .045);
}
.history__table tbody tr:nth-child(even) { background: rgba(255, 255, 255, .025); }
.history__table tbody tr.is-fresh { animation: rowin .45s ease; }
.history__num { color: var(--gold-hi); font-weight: 700; }
.history__win  { color: var(--win);  font-weight: 700; }
.history__loss { color: var(--lose); font-weight: 700; }
.history__empty td { text-align: center !important; padding: 22px 8px; color: var(--ink-faint); font-style: italic; }

/* ============ 9. SCROLLS, ABOUT, FOOTER ================================== */
.scrolls {
  max-width: 1500px;
  margin: 20px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.scroll {
  position: relative;
  width: 230px;
  padding: 20px 18px;
  text-align: center;
  color: var(--parchment-ink);
  font-family: var(--font-display);
  font-size: .92rem;
  line-height: 1.55;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .35), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(140, 100, 50, .28), transparent 50%),
    linear-gradient(160deg, #f0e2ba, var(--parchment) 45%, #cdb783);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .6), inset 0 0 26px rgba(150, 110, 55, .3);
  clip-path: polygon(2% 3%, 97% 0, 100% 96%, 60% 100%, 4% 97%);
}
.scroll--left  { transform: rotate(-2.4deg); }
.scroll--right { transform: rotate(2.4deg); letter-spacing: .1em; }
.scroll__small { margin-top: 8px; font-size: .76rem; opacity: .8; }
.scroll__chant { font-size: 1.4rem; font-weight: 700; line-height: 1.4; }

.about {
  max-width: 1500px;
  margin: 26px auto 0;
}
.about__inner { padding: 22px 24px 26px; }
.about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px 34px;
}
.about h3 {
  font-family: var(--font-display);
  font-size: .95rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-hi);
  margin-bottom: 6px;
}
.about h3 + p + h3 { margin-top: 16px; }
.about p {
  font-size: .88rem;
  line-height: 1.7;
  color: var(--ink-dim);
  margin-bottom: 10px;
}
.about strong { color: var(--ink); }
.about code {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: .82em;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(232, 185, 58, .1);
  color: var(--gold-hi);
}

.footer {
  max-width: 1500px;
  margin: 26px auto 0;
  padding: 16px 8px 96px;   /* clears the fixed music dock */
  border-top: 1px solid rgba(212, 175, 74, .18);
  text-align: center;
}
.footer__mantra {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 34px;
  font-family: var(--font-display);
  font-size: .84rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.footer__mantra span { position: relative; }
.footer__mantra span::before {
  content: "";
  display: block;
  width: 20px; height: 20px;
  margin: 0 auto 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff6d6, var(--gold) 46%, var(--gold-deep) 84%);
  opacity: .75;
}
.footer__legal {
  margin-top: 14px;
  font-size: .7rem;
  line-height: 1.6;
  color: var(--ink-faint);
  max-width: 760px;
  margin-inline: auto;
}

/* ============ 10. MODALS ================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 3, 2, .82);
  backdrop-filter: blur(3px);
  animation: fade .25s ease;
}
.modal[hidden] { display: none; }
.modal__box {
  width: min(460px, 100%);
  padding: 26px 26px 22px;
  text-align: center;
  animation: banner-pop .35s cubic-bezier(.2, 1.2, .4, 1);
}
.modal__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff4cd, var(--gold) 58%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.modal__title--broke {
  font-size: clamp(1.9rem, 7vw, 2.9rem);
  background: linear-gradient(180deg, #ffd9c9, var(--lose) 55%, var(--lose-deep));
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 16px rgba(224, 90, 69, .5));
}
.modal__body {
  margin: 14px 0 20px;
  font-size: .88rem;
  line-height: 1.7;
  color: var(--ink-dim);
}
.modal__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.modal__actions .btn { flex: 1 1 150px; }
.modal__actions--single .btn { flex: 0 1 auto; padding: 14px 26px; font-size: 1rem; }

/* ============ 11. ANIMATIONS ============================================= */
@keyframes spin { to { transform: rotate(360deg); } }

@keyframes pulse {
  0%, 100% { opacity: .65; }
  50%      { opacity: 1; }
}

@keyframes land {
  0%   { transform: scale(1.5); filter: drop-shadow(0 0 26px rgba(255, 233, 168, .9)); }
  60%  { transform: scale(.94); }
  100% { transform: scale(1); }
}

@keyframes bump {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.16); }
  100% { transform: scale(1); }
}

@keyframes banner-pop {
  0%   { transform: scale(.86); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes banner-shake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-7px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(3px); }
}

@keyframes rowin {
  0%   { background: rgba(232, 185, 58, .22); transform: translateY(-6px); opacity: 0; }
  100% { background: transparent; transform: none; opacity: 1; }
}

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@keyframes eqbar {
  from { height: 2px; }
  to   { height: 9px; }
}

@keyframes flicker {
  0%, 100% { opacity: .85; transform: scale(1); }
  30%      { opacity: 1;   transform: scale(1.06); }
  55%      { opacity: .7;  transform: scale(.97); }
  75%      { opacity: .95; transform: scale(1.03); }
}

/* Coins burst outward, hang, then rain down past the dial */
@keyframes coinfly {
  0% {
    transform: translate(-50%, -50%) translate(0, 0) scale(.35) rotate(0deg);
    opacity: 0;
  }
  10% { opacity: 1; }
  42% {
    transform: translate(-50%, -50%) translate(var(--dx), var(--dy)) scale(1.05) rotate(240deg);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) translate(calc(var(--dx) * 1.4), 300px) scale(.7) rotate(620deg);
    opacity: 0;
  }
}

/* ============ 12. RESPONSIVE ============================================= */

/* Show the banners only where they genuinely clear the 1500px board —
   below this the music dock is the way in. */
@media (min-width: 1840px) {
  .banner { display: block; }
}

/* Tablet: history/stats drop under the stage */
@media (max-width: 1080px) {
  .board {
    grid-template-columns: minmax(230px, 290px) minmax(0, 1fr);
  }
  .rail {
    grid-column: 1 / -1;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  .history { max-height: 300px; }
}

/* Phone: one column, dice first */
@media (max-width: 780px) {
  body { padding-inline: 12px; }

  .topbar {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
    padding-top: 14px;
  }
  .topbar__nav { order: 2; gap: 18px; padding-left: 0; flex-wrap: wrap; justify-content: center; }
  .brand { order: 1; }
  .brand__img { width: min(340px, 86vw); }
  .topbar__tagline { order: 3; justify-self: center; text-align: center; padding-right: 0; font-size: .74rem; }
  .topbar__tagline br { display: none; }

  .board {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .panel--stage { order: 1; }
  .panel--wager { order: 2; }
  .rail { order: 3; grid-template-columns: minmax(0, 1fr); }

  .dial { width: min(340px, 82vw); }
  .verdict { max-width: none; }

  .scrolls { flex-direction: column; align-items: center; }
  .scroll { width: min(320px, 100%); }
  .scroll--left, .scroll--right { transform: none; }

  .footer__mantra { gap: 12px 22px; font-size: .74rem; }

  /* dock shrinks to crests only so it never covers the board */
  .dock { right: 8px; bottom: 8px; padding: 6px 7px 7px; }
  .dock__now { font-size: .55rem; }
  .dock__name { display: none; }
  .dock__theme { padding: 8px 10px; }
  .dock__mute { width: 34px; }
}

@media (max-width: 420px) {
  .chips { gap: 6px; }
  .chip { font-size: .84rem; padding: 9px 2px; }
  .history__table { font-size: .74rem; }
  .history__table th, .history__table td { padding: 4px 3px; }
}

/* Respect reduced-motion: keep feedback, drop the spinning and confetti */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .candle,
  .dial[data-state="rolling"] .dial__ring,
  .dial[data-state="rolling"] .dial__aura,
  .verdict[data-state="rolling"] .verdict__title { animation: none; }
  .verdict[data-state="win"],
  .verdict[data-state="lose"],
  .modal, .modal__box,
  .dial[data-state="win"] .dial__number,
  .dial[data-state="lose"] .dial__number,
  .history__table tbody tr.is-fresh,
  .purse__value.is-bump { animation: none; }
  .coin-bit { display: none; }
  .eq i { animation: none; }
}
