/* ============================================================
   BLOT SOUNDBOARD — "Rainy Thumbnail Plate" theme
   Palette pulled straight off the channel's thumbnails:
   slate sky, wet-charcoal tarmac, Stagecoach bus-blue, brick red,
   white outlined condensed caps.
   ============================================================ */
:root {
  --sky:        #5b6b78;   /* rain-grey sky */
  --sky-2:      #3c4750;   /* heavier cloud */
  --tarmac:     #20262b;   /* wet road */
  --tarmac-2:   #161a1e;   /* deep shade */
  --bus-blue:   #1f8fe0;   /* the bus */
  --bus-blue-d: #0f6cb3;
  --brick:      #b5462f;   /* terraced brick */
  --white:      #f5f7f8;
  --outline:    #11161a;   /* thick thumbnail outline */
  --plate:      #2b333a;   /* button face */
  --plate-hi:   #38424b;
}

* { box-sizing: border-box; }

/* the [hidden] attribute must always win over display:flex/grid rules below */
[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  font-family: "Barlow Condensed", system-ui, sans-serif;
  color: var(--white);
  background:
    radial-gradient(120% 80% at 50% -10%, var(--sky) 0%, var(--sky-2) 38%, var(--tarmac) 78%, var(--tarmac-2) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* subtle wet-tarmac reflection band along the bottom */
body::after {
  content: "";
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 28vh;
  background: linear-gradient(to top, rgba(31,143,224,0.10), transparent);
  pointer-events: none;
  z-index: 0;
}

#rain {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

header, main, footer { position: relative; z-index: 2; }

/* ---------- HERO ---------- */
.hero {
  text-align: center;
  padding: 5vh 1rem 1.5rem;
}
.hero-weather {
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  filter: drop-shadow(0 3px 0 rgba(0,0,0,0.4));
  letter-spacing: 0.3rem;
}
.hero-title {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 12vw, 7rem);
  line-height: 0.9;
  margin: 0.2em 0 0;
  color: var(--white);
  letter-spacing: 0.01em;
  /* thick thumbnail-style outline */
  -webkit-text-stroke: clamp(2px, 0.6vw, 5px) var(--outline);
  text-shadow:
    0 4px 0 var(--bus-blue-d),
    0 6px 10px rgba(0,0,0,0.55);
  transform: rotate(-1.2deg);
}
.hero-sub {
  font-family: "Caveat", cursive;
  font-size: clamp(1.4rem, 5vw, 2.6rem);
  color: var(--bus-blue);
  margin: 0.1em 0 0;
  text-shadow: 0 2px 0 rgba(0,0,0,0.5);
  transform: rotate(-2deg);
}
.hero-mooch {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: clamp(0.7rem, 2.4vw, 0.95rem);
  color: #aebcc6;
  margin: 0.8em 0 0;
}

/* ---------- LAYOUT: board + meter side by side ---------- */
main {
  display: flex;
  align-items: flex-start;
  gap: clamp(1rem, 2vw, 1.6rem);
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 clamp(0.6rem, 2vw, 1.4rem);
}

/* ---------- BOARD ---------- */
.board {
  flex: 1 1 auto;
  min-width: 0;
  padding: 1rem 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: clamp(0.6rem, 1.8vw, 1.1rem);
}

@media (max-width: 980px) {
  main { flex-direction: column; }
}
.loading { grid-column: 1 / -1; text-align: center; color: #aebcc6; font-size: 1.3rem; }

/* a "plate" button, like the outlined text plates on the thumbnails */
.pad {
  position: relative;
  border: none;
  cursor: pointer;
  border-radius: 14px;
  padding: 1.1rem 0.9rem 1rem;
  min-height: 116px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
  color: var(--white);
  background: linear-gradient(180deg, var(--plate-hi), var(--plate));
  border: 3px solid var(--outline);
  box-shadow:
    0 5px 0 var(--bus-blue-d),
    0 9px 16px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.08);
  transition: transform 0.06s ease, box-shadow 0.06s ease, filter 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  font-family: "Barlow Condensed", sans-serif;
}
.pad:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 7px 0 var(--bus-blue-d), 0 12px 20px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08); }
.pad:active, .pad.is-hit {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--bus-blue-d), 0 3px 8px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08);
}
.pad:focus-visible { outline: 3px dashed var(--bus-blue); outline-offset: 3px; }

.pad .emoji { font-size: 1.8rem; line-height: 1; filter: drop-shadow(0 2px 0 rgba(0,0,0,0.4)); }
.pad .title {
  font-family: "Anton", sans-serif;
  font-size: clamp(1rem, 2.4vw, 1.4rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  -webkit-text-stroke: 1px var(--outline);
  text-shadow: 0 2px 0 rgba(0,0,0,0.45);
}
.pad .sub {
  font-size: 0.78rem;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  color: #9fb0bb;
}
.pad .dur {
  position: absolute;
  top: 7px; right: 9px;
  font-size: 0.7rem;
  color: #8a99a3;
  font-variant-numeric: tabular-nums;
}

/* the hero "BUS WANKERS" plate spans two columns + brick-red livery */
.pad.hero-pad {
  grid-column: span 2;
  background: linear-gradient(180deg, #c8543c, var(--brick));
  box-shadow: 0 5px 0 #7e2c1c, 0 9px 16px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.12);
}
.pad.hero-pad:active, .pad.hero-pad.is-hit { box-shadow: 0 1px 0 #7e2c1c, 0 3px 8px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.12); }
.pad.hero-pad .title { font-size: clamp(1.4rem, 4vw, 2.2rem); }

/* playing pulse */
.pad.is-playing { animation: blip 0.9s ease-in-out infinite; }
.pad.is-playing::after {
  content: "▶ playin'";
  position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%);
  font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bus-blue);
}
@keyframes blip {
  0%, 100% { box-shadow: 0 5px 0 var(--bus-blue-d), 0 0 0 0 rgba(31,143,224,0.0); }
  50%      { box-shadow: 0 5px 0 var(--bus-blue-d), 0 0 22px 2px rgba(31,143,224,0.6); }
}

/* ---------- BLOT METER ---------- */
.blotmeter {
  flex: 0 0 360px;
  align-self: stretch;
  margin: 1rem 0 0;
  padding: 1.3rem clamp(0.9rem, 2vw, 1.3rem) 1.6rem;
  background: linear-gradient(180deg, rgba(22,26,30,0.92), rgba(16,19,22,0.92));
  border: 3px solid var(--outline);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.05);
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}
@media (max-width: 980px) {
  .blotmeter { flex: none; width: 100%; position: static; max-height: none; }
}
.bm-head { text-align: center; margin-bottom: 1.1rem; }
.bm-title {
  font-family: "Anton", sans-serif; font-weight: 400;
  font-size: clamp(1.6rem, 6vw, 2.6rem); margin: 0;
  color: var(--white); -webkit-text-stroke: 2px var(--outline);
  text-shadow: 0 3px 0 var(--brick); transform: rotate(-1deg);
}
.bm-sub { color: #aebcc6; margin: 0.35em 0 0; font-size: 0.95rem; }
.bm-scale {
  display: flex; justify-content: space-between;
  font-family: "Anton", sans-serif; font-size: 0.7rem; letter-spacing: 0.08em;
  color: #7e8c96; margin-top: 0.7rem; padding: 0 2px;
}
.bm-rows { display: flex; flex-direction: column; gap: 0.5rem; }
.bm-row { display: grid; grid-template-columns: 1.6rem minmax(8.5rem, 1.2fr) 3fr auto; align-items: center; gap: 0.5rem; }
.bm-emoji { font-size: 1.1rem; text-align: center; }
.bm-label {
  font-family: "Barlow Condensed", sans-serif; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.02em;
  font-size: clamp(0.72rem, 2vw, 0.9rem); color: var(--white);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bm-track {
  position: relative; height: 16px; border-radius: 999px;
  background: #0c0f12; border: 1.5px solid #2b333a; overflow: hidden;
}
.bm-fill {
  position: absolute; inset: 0 auto 0 0; width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #2a6fb0 0%, var(--bus-blue) 45%, #e0a32a 78%, var(--brick) 100%);
  box-shadow: 0 0 10px rgba(31,143,224,0.4);
  transition: width 1.1s cubic-bezier(.2,.8,.2,1);
}
.bm-row.boiling .bm-fill { box-shadow: 0 0 14px rgba(181,70,47,0.7); }
.bm-count {
  font-family: "Anton", sans-serif; font-size: 0.85rem; color: #cdd8df;
  font-variant-numeric: tabular-nums; min-width: 3.2rem; text-align: right;
}
.bm-count small { color: #7e8c96; font-family: "Barlow Condensed"; font-weight: 600; }
@media (max-width: 520px) {
  .bm-row { grid-template-columns: 1.4rem minmax(6rem, 1.1fr) 2fr auto; }
  .bm-label { font-size: 0.66rem; }
}

/* ---------- FOOTER ---------- */
.footer { text-align: center; padding: 1rem 1rem 7rem; }
.controls { display: flex; gap: 1.2rem; justify-content: center; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.ctl {
  font-family: "Anton", sans-serif;
  background: var(--plate); color: var(--white);
  border: 3px solid var(--outline); border-radius: 10px;
  padding: 0.5rem 1rem; cursor: pointer; letter-spacing: 0.03em;
  box-shadow: 0 4px 0 var(--bus-blue-d);
  transition: transform 0.06s;
}
.ctl:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--bus-blue-d); }
.vol { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 1.2rem; }
.vol input { accent-color: var(--bus-blue); width: 140px; }
.smallprint { color: #93a3ad; font-size: 0.9rem; line-height: 1.5; }
.smallprint a { color: var(--bus-blue); text-decoration: none; font-weight: 600; }
.smallprint a:hover { text-decoration: underline; }

/* ---------- NOW PLAYING ticker ---------- */
.now-playing {
  position: fixed;
  left: 50%; bottom: 1rem; transform: translateX(-50%);
  z-index: 5;
  background: var(--tarmac-2);
  border: 3px solid var(--bus-blue);
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  font-family: "Anton", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 0.6rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
  max-width: 90vw;
}
.np-light { width: 12px; height: 12px; border-radius: 50%; background: var(--bus-blue); box-shadow: 0 0 10px var(--bus-blue); animation: blip 0.9s infinite; }

@media (prefers-reduced-motion: reduce) {
  .pad.is-playing, .np-light { animation: none; }
  #rain { display: none; }
}
@media (max-width: 420px) {
  .pad.hero-pad { grid-column: span 1; }
}

/* ============================================================
   FUN BOXES (top-of-board nav cards)
   ============================================================ */
.funboxes {
  position: relative; z-index: 2;
  max-width: 1500px;
  margin: 0.5rem auto 0;
  padding: 0 clamp(0.6rem, 2vw, 1.4rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(0.7rem, 2vw, 1.2rem);
}

.funbox {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.35rem; text-align: center; text-decoration: none;
  padding: 1.1rem 1rem 1rem;
  border: 3px solid var(--outline); border-radius: 16px;
  color: var(--white);
  background: linear-gradient(180deg, #2f6fa8, var(--bus-blue-d));
  box-shadow: 0 6px 0 #0a4d83, 0 10px 20px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.12);
  transition: transform 0.07s ease, box-shadow 0.07s ease, filter 0.15s ease;
}
.funbox--bingo { background: linear-gradient(180deg, #c8543c, var(--brick)); box-shadow: 0 6px 0 #7e2c1c, 0 10px 20px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.12); }
.funbox--roulette { background: linear-gradient(180deg, #1f7a4d, #145c39); box-shadow: 0 6px 0 #0c3a24, 0 10px 20px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.12); }
.funbox:hover { filter: brightness(1.08); transform: translateY(-2px); }
.funbox:active { transform: translateY(4px); box-shadow: 0 2px 0 #0a4d83, 0 4px 10px rgba(0,0,0,0.5); }
.funbox--bingo:active { box-shadow: 0 2px 0 #7e2c1c, 0 4px 10px rgba(0,0,0,0.5); }
.funbox--roulette:active { box-shadow: 0 2px 0 #0c3a24, 0 4px 10px rgba(0,0,0,0.5); }
.funbox:focus-visible { outline: 3px dashed var(--white); outline-offset: 3px; }
.fb-emoji { font-size: 2rem; line-height: 1; filter: drop-shadow(0 2px 0 rgba(0,0,0,0.4)); }
.fb-title {
  font-family: "Anton", sans-serif; font-size: clamp(1.4rem, 4vw, 2rem);
  text-transform: uppercase; -webkit-text-stroke: 1.5px var(--outline);
  text-shadow: 0 2px 0 rgba(0,0,0,0.45);
}
.fb-sub { font-size: 0.92rem; color: #eaf2f8; }
.fb-sub em { font-style: normal; color: #fff; text-decoration: underline; }
.fb-go { font-family: "Caveat", cursive; font-size: 1.3rem; color: #fff; transform: rotate(-2deg); margin-top: 0.1rem; }

/* ---------- sub-page hero + back link ---------- */
.hero--sub { padding: 3.5vh 1rem 1rem; }
.backlink {
  display: inline-block; margin-bottom: 0.6rem;
  font-family: "Anton", sans-serif; letter-spacing: 0.04em; text-transform: uppercase;
  font-size: 0.95rem; color: var(--bus-blue); text-decoration: none;
}
.backlink:hover { text-decoration: underline; }
.hero-sub em { font-style: normal; text-decoration: underline; }

/* ---------- METER as its own page (full width) ---------- */
.meter-page { display: block; max-width: 1500px; }
.blotmeter--page {
  flex: none; width: 100%; position: static; max-height: none; margin: 0 auto;
}
.bm-foot { text-align: center; margin-top: 1.4rem; }

/* ============================================================
   BLOT BINGO
   ============================================================ */
.bingo-page { display: block; max-width: 600px; }
.bingo-status {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.8rem; margin: 0.2rem 0 1rem;
}
.bingo-goals { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.goal {
  font-family: "Anton", sans-serif; font-size: 0.8rem; letter-spacing: 0.05em;
  padding: 0.35rem 0.7rem; border-radius: 999px;
  border: 2px solid #2b333a; color: #8a99a3; background: #11161a;
  transition: all 0.25s ease;
}
.goal.got {
  color: var(--white); border-color: var(--bus-blue);
  background: linear-gradient(180deg, #2f6fa8, var(--bus-blue-d));
  box-shadow: 0 0 14px rgba(31,143,224,0.55);
}

.bingo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.35rem, 1.2vw, 0.7rem);
}
.bingo-grid .loading { grid-column: 1 / -1; }
.bingo-cell {
  position: relative; cursor: pointer;
  aspect-ratio: 1 / 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2rem; padding: 0.3rem;
  border: 3px solid var(--outline); border-radius: 12px;
  background: linear-gradient(180deg, var(--plate-hi), var(--plate));
  color: var(--white); text-align: center;
  box-shadow: 0 4px 0 rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.06);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.bingo-cell:hover { filter: brightness(1.08); }
.bingo-cell:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,0.4); }
.bingo-cell:focus-visible { outline: 3px dashed var(--bus-blue); outline-offset: 2px; }
.bc-emoji { font-size: clamp(1.1rem, 4vw, 1.7rem); line-height: 1; }
.bc-label {
  font-family: "Barlow Condensed", sans-serif; font-weight: 700;
  text-transform: uppercase; line-height: 0.95;
  font-size: clamp(0.5rem, 1.8vw, 0.78rem); letter-spacing: 0.01em;
}
.bc-stamp {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: clamp(2rem, 9vw, 3.4rem); color: var(--brick);
  opacity: 0; transform: rotate(-18deg) scale(0.4);
  text-shadow: 0 2px 0 rgba(0,0,0,0.4); pointer-events: none;
  transition: opacity 0.12s ease, transform 0.12s cubic-bezier(.2,1.4,.4,1);
}
.bingo-cell.marked {
  background: linear-gradient(180deg, #2f6fa8, var(--bus-blue-d));
  border-color: var(--bus-blue);
}
.bingo-cell.marked .bc-stamp { opacity: 0.92; transform: rotate(-18deg) scale(1); }
.bingo-cell.marked .bc-emoji, .bingo-cell.marked .bc-label { opacity: 0.45; }
.bingo-cell.is-free {
  background: linear-gradient(180deg, #c8543c, var(--brick)); border-color: var(--brick);
  cursor: default;
}
.bingo-cell.is-free .bc-stamp { color: #fff; }
.bingo-cell.on-line {
  animation: lineGlow 1s ease-in-out infinite;
  border-color: #e0a32a;
}
@keyframes lineGlow {
  0%,100% { box-shadow: 0 4px 0 rgba(0,0,0,0.4), 0 0 0 0 rgba(224,163,42,0); }
  50%     { box-shadow: 0 4px 0 rgba(0,0,0,0.4), 0 0 20px 3px rgba(224,163,42,0.75); }
}

/* ---------- celebration shout ---------- */
.bingo-shout {
  position: fixed; inset: 0; z-index: 20;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8,11,14,0.62); backdrop-filter: blur(2px);
}
.shout-card {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  padding: 2rem 2.4rem; max-width: 90vw; text-align: center;
  background: linear-gradient(180deg, rgba(22,26,30,0.96), rgba(16,19,22,0.96));
  border: 4px solid var(--bus-blue); border-radius: 20px;
  box-shadow: 0 16px 50px rgba(0,0,0,0.6);
}
.bingo-shout.pop .shout-card { animation: shoutPop 0.4s cubic-bezier(.2,1.5,.4,1); }
@keyframes shoutPop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.shout-emoji { font-size: 3.4rem; line-height: 1; }
.shout-text {
  font-family: "Anton", sans-serif; font-size: clamp(2rem, 9vw, 3.4rem);
  text-transform: uppercase; -webkit-text-stroke: 2px var(--outline);
  text-shadow: 0 3px 0 var(--brick); transform: rotate(-1.5deg);
}
.shout-sub { font-family: "Caveat", cursive; font-size: 1.5rem; color: var(--bus-blue); }
.shout-card .ctl { margin-top: 0.6rem; }

/* ---------- confetti ---------- */
.confetti {
  position: fixed; top: -3rem; z-index: 19; pointer-events: none;
  animation-name: fall; animation-timing-function: linear; animation-fill-mode: forwards;
}
@keyframes fall {
  to { transform: translateY(112vh) rotate(540deg); opacity: 0.2; }
}
@media (prefers-reduced-motion: reduce) {
  .bingo-cell.on-line, .bingo-shout.pop .shout-card { animation: none; }
  .confetti { display: none; }
}

/* ============================================================
   BLOT ROULETTE
   ============================================================ */
.roulette-page { display: block; max-width: 760px; }

/* the spinning reel */
.reel-wrap {
  position: relative; overflow: hidden;
  border: 3px solid var(--outline); border-radius: 14px;
  background: linear-gradient(180deg, #11161a, #0b0e11);
  box-shadow: inset 0 0 30px rgba(0,0,0,0.6), 0 8px 22px rgba(0,0,0,0.4);
  margin: 0.4rem 0 1.2rem;
}
.reel { display: flex; will-change: transform; }
.r-tile {
  flex: 0 0 120px; height: 112px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.3rem; border-right: 2px solid rgba(0,0,0,0.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.r-tile.r-red   { background: linear-gradient(180deg, #c5402a, #9c2f1f); }
.r-tile.r-black { background: linear-gradient(180deg, #2a2f34, #16191d); }
.r-tile.r-green { background: linear-gradient(180deg, #1f7a4d, #0f5232); }
.rt-emoji { font-size: 1.6rem; line-height: 1; filter: drop-shadow(0 2px 0 rgba(0,0,0,0.4)); }
.rt-label {
  font-family: "Barlow Condensed", sans-serif; font-weight: 700;
  text-transform: uppercase; font-size: 0.62rem; line-height: 0.95;
  text-align: center; padding: 0 5px; color: var(--white);
}
.reel-marker {
  position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  z-index: 3; width: 0; border-left: 3px solid #ffd34d;
  box-shadow: 0 0 12px #ffd34d; pointer-events: none;
}
.reel-marker::before, .reel-marker::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  border: 9px solid transparent;
}
.reel-marker::before { top: -1px;    border-top-color: #ffd34d; }
.reel-marker::after  { bottom: -1px; border-bottom-color: #ffd34d; }

/* bank + result */
.r-bankrow { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.r-bank { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.r-bank-label { font-family: "Anton", sans-serif; font-size: 0.7rem; letter-spacing: 0.12em; color: #8a99a3; }
.r-bank-amt { font-family: "Anton", sans-serif; font-size: clamp(2rem, 8vw, 2.8rem); color: #ffd34d; text-shadow: 0 2px 0 rgba(0,0,0,0.5); font-variant-numeric: tabular-nums; }
.r-bank-amt.skint { color: var(--brick); }
.r-bank-unit { font-size: 0.75rem; color: #8a99a3; }
.r-result { flex: 1 1 200px; text-align: right; color: #cdd8df; font-size: 1rem; min-width: 160px; }
.r-topup { display: block; margin: 0.7rem 0 0; width: 100%; }

/* panels */
.r-panel {
  background: linear-gradient(180deg, rgba(22,26,30,0.9), rgba(16,19,22,0.9));
  border: 3px solid var(--outline); border-radius: 14px;
  padding: 0.9rem 1rem 1.1rem; margin-bottom: 1rem;
}
.r-panel-title { font-family: "Anton", sans-serif; font-size: 1rem; letter-spacing: 0.05em; margin: 0 0 0.7rem; color: #aebcc6; }

/* stake */
.r-stake { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.r-step { padding: 0.25rem 0.8rem; font-size: 1.4rem; line-height: 1; }
.r-stake-in {
  width: 92px; font-family: "Anton", sans-serif; font-size: 1.3rem; text-align: center;
  background: #0c0f12; color: var(--white); border: 3px solid var(--outline); border-radius: 10px; padding: 0.35rem;
}
.r-chips { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-left: auto; }
.chip { font-family: "Anton", sans-serif; background: var(--plate); color: var(--white); border: 2px solid var(--outline); border-radius: 999px; padding: 0.35rem 0.85rem; cursor: pointer; }
.chip:hover { filter: brightness(1.12); }
.chip--all { background: linear-gradient(180deg, #e0a32a, #b97f12); color: #1b1b1b; }

/* bets */
.r-bets { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.r-bet {
  font-family: "Anton", sans-serif; color: var(--white);
  border: 3px solid var(--outline); border-radius: 12px; padding: 0.8rem; cursor: pointer;
  font-size: 1.2rem; display: flex; flex-direction: column; gap: 0.2rem; align-items: center; text-align: center;
}
.r-bet small { font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: 0.72rem; color: rgba(255,255,255,0.82); letter-spacing: 0.03em; }
.r-bet--red   { background: linear-gradient(180deg, #c5402a, #9c2f1f); }
.r-bet--black { background: linear-gradient(180deg, #2a2f34, #16191d); }
.r-bet--name  { grid-column: 1 / -1; background: linear-gradient(180deg, #1f7a4d, #145c39); cursor: default; }
.r-bet.on { outline: 4px solid #ffd34d; outline-offset: 1px; box-shadow: 0 0 18px rgba(255,211,77,0.6); }
.r-bet--name select {
  margin-top: 0.4rem; font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 0.95rem;
  padding: 0.45rem; border-radius: 8px; border: 2px solid var(--outline); background: #0c0f12; color: var(--white); max-width: 100%; cursor: pointer;
}

/* spin */
.r-spin {
  display: block; width: 100%; font-family: "Anton", sans-serif; font-size: clamp(1.3rem, 5vw, 1.7rem);
  letter-spacing: 0.04em; color: #1b1b1b; background: linear-gradient(180deg, #ffd34d, #e0a32a);
  border: 3px solid var(--outline); border-radius: 14px; padding: 0.9rem; cursor: pointer;
  box-shadow: 0 6px 0 #9c7012, 0 10px 20px rgba(0,0,0,0.4); transition: transform 0.07s ease;
}
.r-spin:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 2px 0 #9c7012; }
.r-spin:disabled { opacity: 0.45; cursor: not-allowed; filter: grayscale(0.4); }

@media (max-width: 540px) {
  .r-result { text-align: left; }
  .r-bets { grid-template-columns: 1fr; }
}
