/* ============================================================
   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; }
.hit-counter {
  font-family: "Caveat", cursive;
  font-size: clamp(1.3rem, 4vw, 1.9rem);
  color: var(--white);
  margin: 0.6em 0 0;
  text-shadow: 0 2px 0 rgba(0,0,0,0.5);
  transform: rotate(-1deg);
}
.hit-counter .flags {
  font-family: system-ui, sans-serif;   /* flag emoji don't render in Caveat */
  font-size: 0.85em;
  margin-left: 0.35em;
  letter-spacing: 0.15em;
  vertical-align: 0.1em;
}

/* ---------- 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--busters { background: linear-gradient(180deg, #2e6fd8, #1c4c9e); box-shadow: 0 6px 0 #0e3268, 0 10px 20px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.12); }
.funbox--busters:active { box-shadow: 0 2px 0 #0e3268, 0 4px 10px rgba(0,0,0,0.5); }
.funbox--whaskey { background: linear-gradient(180deg, #c8912f, #9a6512); box-shadow: 0 6px 0 #613f0a, 0 10px 20px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.12); }
.funbox--whaskey:active { box-shadow: 0 2px 0 #613f0a, 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; }

/* compact sub-page hero: everything above the reel stays short so the
   controls + spin bar fit one screen */
.hero--tight { padding: 1.2vh 1rem 0.6rem; }
.hero--tight .hero-title { font-size: clamp(2rem, 7vw, 3.6rem); }
.hero--tight .hero-mooch { margin-top: 0.5em; }
.hero--tight .backlink { margin-bottom: 0.3rem; }

/* stake + bet side by side when there's room */
.r-controls { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.r-controls .r-panel { margin-bottom: 0; }
@media (min-width: 680px) {
  .r-controls { grid-template-columns: 1fr 1fr; }
  .r-controls .r-chips { margin-left: 0; }
}

/* sticky spin bar: the button rides the bottom of the viewport until the
   page bottom catches up with it */
.r-spinbar {
  position: sticky; bottom: 0; z-index: 5;
  margin-top: 1rem;
  padding: 0.5rem 0 calc(0.5rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(11,14,17,0) 0%, rgba(11,14,17,0.92) 40%);
}

/* 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; }
}

/* ============================================================
   BLOT BUSTERS — the hexagon board battle
   ============================================================ */
/* 14-segment LCD font for the hex letters (DSEG, SIL OFL) */
@font-face {
  font-family: "DSEG14";
  src: url("fonts/DSEG14Classic-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
.bb-page { display: block; max-width: 860px; }

.bb-status {
  display: flex; align-items: stretch; justify-content: center; gap: 0.7rem;
  flex-wrap: wrap; margin-bottom: 1.1rem;
}
.bb-team {
  font-family: "Anton", sans-serif; font-size: 1.05rem; letter-spacing: 0.03em;
  display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
  padding: 0.55rem 1.1rem; border-radius: 12px; cursor: pointer;
  border: 3px solid var(--outline); opacity: 0.55; transition: opacity 0.15s ease, box-shadow 0.15s ease;
}
.bb-team small { font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: 0.72rem; letter-spacing: 0.05em; }
.bb-team--white { background: linear-gradient(180deg, #f5f7f9, #d9dee3); color: #15191d; }
.bb-team--blue  { background: linear-gradient(180deg, #58a6f2, #2e6fd8); color: #fff; }
.bb-team.on { opacity: 1; box-shadow: 0 0 0 4px #ffd34d, 0 0 20px rgba(255,211,77,0.55); }
.bb-vs { align-self: center; font-family: "Caveat", cursive; font-size: 1.6rem; color: var(--bus-blue); transform: rotate(-4deg); }
.bb-new { align-self: center; }

/* the board: 5 interlocking columns, odd columns dropped half a hex */
.bb-board {
  --hexw: clamp(110px, 18vw, 158px);
  --hexh: calc(var(--hexw) * 0.87);
  --hgap: 5px;
  display: flex; justify-content: center; align-items: flex-start;
  padding: 0.5rem 0 1.2rem; min-height: calc(var(--hexh) * 4.9);
}
.bb-col { display: flex; flex-direction: column; gap: var(--hgap); }
.bb-col + .bb-col { margin-left: calc(var(--hexw) * -0.225); }
.bb-col--odd { padding-top: calc((var(--hexh) + var(--hgap)) / 2); }

/* wrapper carries the outline (clip-path eats borders) + glow via drop-shadow */
.bb-hexwrap {
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  background: var(--outline);
  padding: 3px; width: var(--hexw); height: var(--hexh);
  box-sizing: border-box;
  transition: filter 0.15s ease;
}
.bb-hex {
  width: 100%; height: 100%; border: none; cursor: pointer;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  background: linear-gradient(180deg, #17456e, #0d2c4c);
  color: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.3rem; padding: 0 10%;
}
.bb-hex:hover { filter: brightness(1.15); }
.bbh-emoji { font-size: 1.35rem; line-height: 1; filter: drop-shadow(0 2px 0 rgba(0,0,0,0.4)); }
.bbh-letter {
  position: relative;
  font-family: "DSEG14", "Anton", sans-serif; font-weight: 700;
  font-size: clamp(1rem, 3vw, 1.6rem); line-height: 1;
  color: #ffc832;                                   /* lit amber segments */
  text-shadow: 0 0 6px rgba(255,200,50,0.55);
}
.bbh-letter::before {                               /* dim unlit segments behind */
  content: "~"; position: absolute; inset: 0;
  color: rgba(255,200,50,0.14); text-shadow: none;
}
.bbh-label {
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; text-transform: uppercase;
  font-size: clamp(0.72rem, 1.6vw, 0.86rem); line-height: 1.05; text-align: center;
  letter-spacing: 0.02em; text-shadow: 0 1px 0 rgba(0,0,0,0.45);
}
.own-w .bb-hex .bbh-label { text-shadow: none; }
.own-w .bb-hex { background: linear-gradient(180deg, #f5f7f9, #cfd6dc); color: #15191d; }
.own-w .bb-hex .bbh-emoji { filter: none; }
.own-w .bb-hex .bbh-letter { color: #a86f00; text-shadow: none; }
.own-w .bb-hex .bbh-letter::before { color: rgba(120,90,20,0.15); }
.own-b .bb-hex { background: linear-gradient(180deg, #58a6f2, #2e6fd8); }
.bb-hexwrap.on-path { background: #ffd34d; filter: drop-shadow(0 0 10px rgba(255,211,77,0.8)); }

.bb-hint {
  text-align: center; color: #8a99a3; font-size: 0.85rem; max-width: 560px; margin: 0 auto 1rem;
}

@media (max-width: 560px) {
  .bb-board { --hexw: 19.5vw; }
  .bbh-emoji { font-size: 1rem; }
  .bbh-letter { font-size: 0.95rem; }
  .bbh-label { font-size: 0.58rem; }
}

/* ============================================================
   THE WHASKEY CHART
   ============================================================ */
.whaskey-page { display: block; max-width: 900px; margin: 0 auto; padding: 0 clamp(0.6rem, 2vw, 1.2rem) 2rem; }

.wk-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.6rem; margin: 0 0 1.2rem;
}
.wk-stat {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0.7rem 0.5rem; border: 3px solid var(--outline); border-radius: 12px;
  background: linear-gradient(180deg, var(--plate-hi), var(--plate));
  box-shadow: 0 4px 0 rgba(0,0,0,0.35);
}
.wk-stat b { font-family: "Anton", sans-serif; font-size: 1.7rem; line-height: 1; color: #ffd98a; }
.wk-stat span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: #b9c4cc; margin-top: 0.25rem; text-align: center; }
.wk-stat--good b { color: #6fd08a; }
.wk-stat--bad b { color: #f28b6b; }

.wk-controls {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-bottom: 1rem;
}
.wk-search {
  flex: 1 1 220px; min-width: 160px;
  padding: 0.6rem 0.9rem; border: 3px solid var(--outline); border-radius: 12px;
  background: var(--plate); color: var(--white);
  font-family: "Barlow Condensed", sans-serif; font-size: 1.05rem;
}
.wk-search::placeholder { color: #8a99a3; }
.wk-sorts { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.wk-sort {
  padding: 0.5rem 0.7rem; border: 3px solid var(--outline); border-radius: 10px;
  background: var(--plate); color: #cfd8de; cursor: pointer;
  font-family: "Anton", sans-serif; font-size: 0.82rem; letter-spacing: 0.03em;
  transition: filter 0.12s ease, transform 0.05s ease;
}
.wk-sort:hover { filter: brightness(1.15); }
.wk-sort:active { transform: translateY(2px); }
.wk-sort.is-on { background: linear-gradient(180deg, #c8912f, #9a6512); color: #fff; }
.wk-toggle { display: flex; align-items: center; gap: 0.35rem; font-size: 0.9rem; color: #cfd8de; cursor: pointer; }

.wk-rows { display: flex; flex-direction: column; gap: 0.5rem; }
.wk-row {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.6rem 0.8rem; border: 3px solid var(--outline); border-radius: 14px;
  background: linear-gradient(180deg, var(--plate-hi), var(--plate));
  box-shadow: 0 4px 0 rgba(0,0,0,0.3);
  color: var(--white); text-decoration: none;
  transition: transform 0.06s ease, filter 0.14s ease;
}
a.wk-row:hover { filter: brightness(1.08); transform: translateY(-1px); }
a.wk-row:active { transform: translateY(2px); }
/* "maybe" ratings — greyed out until Richard verifies them by ear */
.wk-row.is-unsure { border-style: dashed; opacity: 0.72; filter: grayscale(0.85); }
.wk-row.is-unsure:hover { opacity: 0.95; filter: grayscale(0.35); }
.wk-row.is-unsure .wk-badge,
.wk-row.is-unsure .wk-prev--now { background: #6b7680 !important; outline: none; }
.wk-row.is-unsure .wk-name { color: #c2ccd2; }

.wk-badge {
  flex: 0 0 auto; width: 56px; height: 56px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: "Anton", sans-serif; font-size: 1.5rem; color: #fff;
  background: var(--c, #6b7680); border: 2px solid rgba(0,0,0,0.4);
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.18); text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.wk-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.wk-name {
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.15rem;
  line-height: 1.1; display: flex; align-items: center; gap: 0.35rem;
}
.wk-meta { font-size: 0.78rem; color: #9fb0ba; text-transform: uppercase; letter-spacing: 0.03em; }
.wk-flag { font-size: 0.9rem; cursor: help; }

.wk-history { display: flex; align-items: center; flex-wrap: wrap; gap: 0.2rem; margin-top: 0.2rem; }
.wk-hlabel { font-size: 0.68rem; text-transform: uppercase; color: #8a99a3; margin-right: 0.15rem; }
.wk-prev {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 22px; padding: 0 0.3rem; border-radius: 6px;
  font-family: "Anton", sans-serif; font-size: 0.82rem; color: #fff;
  background: var(--c, #6b7680); border: 1.5px solid rgba(0,0,0,0.4);
}
.wk-prev--now { outline: 2px solid #ffd98a; }
.wk-arrow { color: #8a99a3; font-size: 0.8rem; }

.wk-side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 0.25rem; }
.wk-guest { font-size: 0.8rem; color: #b9c4cc; white-space: nowrap; }
.wk-play { color: #ffd98a; font-size: 0.9rem; }

@media (max-width: 480px) {
  .wk-badge { width: 46px; height: 46px; font-size: 1.2rem; }
  .wk-name { font-size: 1.02rem; }
  .wk-sort { font-size: 0.72rem; padding: 0.45rem 0.55rem; }
}


/* ---------- ABOUT / FAQ (SEO copy) ---------- */
.about { max-width: 46rem; margin: 2.5rem auto 0; padding: 0 1.2rem; color: #c7d1d8; font-size: 0.98rem; line-height: 1.55; }
.about h2 { font-family: "Anton", sans-serif; color: var(--white); font-size: 1.5rem; letter-spacing: 0.02em; margin: 0 0 0.5em; text-shadow: 0 2px 0 rgba(0,0,0,0.5); }
.about a { color: var(--bus-blue); font-weight: 600; text-decoration: none; }
.about a:hover { text-decoration: underline; }
.faq { margin: 1.2em 0 0; }
.faq dt { font-family: "Barlow Condensed", sans-serif; font-weight: 700; color: var(--white); font-size: 1.1rem; margin-top: 0.9em; }
.faq dd { margin: 0.2em 0 0; }
