/* Unibox Casino Radio — pixel casino theme */

@font-face {
  font-family: 'Press Start 2P';
  src: url('/assets/fonts/press-start-2p-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  font-display: swap;
}
@font-face {
  font-family: 'Press Start 2P';
  src: url('/assets/fonts/press-start-2p-greek.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
  font-display: swap;
}
@font-face {
  font-family: 'VT323';
  src: url('/assets/fonts/vt323-latin.woff2') format('woff2');
  font-display: swap;
}

:root {
  color-scheme: dark;
  --felt: #0c4a2c;
  --felt-dark: #072d1b;
  --felt-light: #13643c;
  --night: #0b0710;
  --panel: #120c18;
  --panel-2: #1b1224;
  --gold: #f6c544;
  --gold-dark: #b8860b;
  --gold-light: #ffe58a;
  --red: #d7263d;
  --red-dark: #8f1424;
  --black-chip: #1c1c22;
  --neon-pink: #ff4fa3;
  --neon-cyan: #3ff5e6;
  --text: #fff6dc;
  --muted: #c8b88f;
  --line: rgba(246, 197, 68, 0.28);
  --px: 4px;
  --pixel-font: 'Press Start 2P', ui-monospace, monospace;
  --body-font: 'VT323', ui-monospace, 'Cascadia Mono', Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body-font);
  font-size: 21px;
  line-height: 1.15;
  color: var(--text);
  background-color: var(--night);
  background-image:
    radial-gradient(ellipse at 50% -10%, rgba(255, 79, 163, 0.18), transparent 55%),
    radial-gradient(ellipse at 50% 110%, rgba(63, 245, 230, 0.10), transparent 50%),
    repeating-linear-gradient(45deg, rgba(246, 197, 68, 0.035) 0 2px, transparent 2px 14px),
    repeating-linear-gradient(-45deg, rgba(246, 197, 68, 0.035) 0 2px, transparent 2px 14px);
  image-rendering: pixelated;
}
button, input, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
img { image-rendering: auto; }
:focus-visible { outline: 3px solid var(--neon-cyan); outline-offset: 2px; }
.hidden { display: none !important; }

.eyebrow {
  font-size: 20px;
  letter-spacing: 1px;
  color: var(--muted);
  text-transform: uppercase;
}
.neon {
  font-family: var(--pixel-font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--gold-light);
  text-shadow: 0 0 6px rgba(246, 197, 68, 0.9), 0 0 18px rgba(255, 79, 163, 0.6), 3px 3px 0 var(--red-dark);
}
.hint { color: var(--muted); margin: 0 0 12px; }

/* ---------- Inputs & buttons ---------- */
input, select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  font-size: 22px;
  background: #07040a;
  color: var(--text);
  border: var(--px) solid var(--gold-dark);
  box-shadow: inset var(--px) var(--px) 0 rgba(0, 0, 0, 0.6);
}
input::placeholder { color: #7d6f52; }
/* Custom dropdown arrow, set in from the edge. */
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 52px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' shape-rendering='crispEdges'%3E%3Cpath fill='%23f6c544' d='M0 0h10v2H8v2H6v2H4V4H2V2H0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 14px 9px;
}
select option { background: #07040a; color: var(--text); }
input[type="checkbox"] { width: 22px; min-height: 22px; accent-color: var(--red); }
label { display: grid; gap: 6px; margin-top: 12px; color: var(--muted); }
.toggles label { display: flex; align-items: center; gap: 10px; }

.button {
  --b: var(--panel-2);
  --b-dark: #000;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  font-size: 24px;
  white-space: nowrap;
  color: var(--text);
  background: var(--b);
  border: none;
  cursor: pointer;
  box-shadow:
    inset calc(var(--px) * -1) calc(var(--px) * -1) 0 var(--b-dark),
    inset var(--px) var(--px) 0 rgba(255, 255, 255, 0.25),
    0 0 0 var(--px) #000;
  transition: transform 80ms steps(2);
}
.button:hover:not(:disabled) { filter: brightness(1.15); }
.button:active:not(:disabled) { transform: translateY(var(--px)); box-shadow: inset var(--px) var(--px) 0 var(--b-dark), 0 0 0 var(--px) #000; }
.button:disabled { opacity: 0.45; cursor: not-allowed; }
.button.gold { --b: var(--gold); --b-dark: var(--gold-dark); color: #2a1600; }
.button.red { --b: var(--red); --b-dark: var(--red-dark); }
.button.green { --b: var(--felt-light); --b-dark: var(--felt-dark); }
.button.big { min-height: 56px; font-size: 28px; padding: 0 24px; }
.button.subtle { min-height: 34px; padding: 0 12px; font-size: 20px; }

.badge {
  font-family: var(--body-font);
  font-size: 20px;
  line-height: 1;
  padding: 4px 10px;
  color: #2a1600;
  background: var(--gold);
  box-shadow: 0 0 0 3px #000;
  text-transform: uppercase;
  white-space: nowrap;
  /* Section titles have a dark text shadow; on the gold badge it smudges the letters. */
  text-shadow: none;
}

/* ---------- Marquee header ---------- */
.marquee {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 10px;
  background: linear-gradient(#3a0a14, #1b050a);
  border-bottom: var(--px) solid #000;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.5);
}
.bulbs {
  position: absolute;
  inset: 3px;
  pointer-events: none;
  background-image: radial-gradient(circle, var(--gold-light) 0 3px, transparent 4px);
  background-size: 22px 22px;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% 8px no-repeat, linear-gradient(#000 0 0) bottom / 100% 8px no-repeat;
  mask: linear-gradient(#000 0 0) top / 100% 8px no-repeat, linear-gradient(#000 0 0) bottom / 100% 8px no-repeat;
  animation: chase 0.8s steps(2) infinite;
}
@keyframes chase { 50% { background-position: 11px 0; filter: hue-rotate(-40deg) brightness(0.8); } }
.marquee-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 6px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-dice {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  font-family: var(--pixel-font);
  font-size: 24px;
  color: var(--red);
  background: var(--text);
  box-shadow: inset -4px -4px 0 #c9bfa5, 0 0 0 4px #000;
  animation: wobble 2.4s steps(4) infinite;
}
@keyframes wobble { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
.add-song { display: flex; gap: 10px; flex: 1 1 360px; max-width: 560px; }
.add-song.compact { max-width: none; margin-bottom: 14px; }
.status-pill {
  font-size: 20px;
  padding: 4px 10px;
  color: var(--neon-cyan);
  border: 3px solid currentColor;
  text-transform: uppercase;
}
.control-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---------- How it works ---------- */
.how {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 16px;
}
.how li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  font-size: 22px;
  background: rgba(0, 0, 0, 0.45);
  box-shadow: 0 0 0 3px #000, inset 0 0 0 2px var(--gold-dark);
  list-style: none;
}
.how b {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  font-family: var(--pixel-font);
  font-size: 16px;
  color: #2a1600;
  background: var(--gold);
  box-shadow: 0 0 0 3px #000;
}
.how ol { display: contents; }

/* ---------- Layout ---------- */
.floor { max-width: 1400px; margin: 0 auto; padding: 20px 16px 60px; display: grid; gap: 20px; }
.row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; }
.row.hero { grid-template-columns: minmax(0, 1.3fr) minmax(320px, 1fr); }
.row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.panel {
  position: relative;
  min-width: 0;
  padding: 18px;
  background: radial-gradient(ellipse at 50% 0%, var(--felt-light), var(--felt) 45%, var(--felt-dark));
  box-shadow:
    0 0 0 var(--px) #000,
    0 0 0 calc(var(--px) * 3) var(--gold-dark),
    0 0 0 calc(var(--px) * 4) #000,
    8px 10px 0 calc(var(--px) * 4) rgba(0, 0, 0, 0.45);
  margin: calc(var(--px) * 4);
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--pixel-font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--gold-light);
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #000;
}
.empty { padding: 18px 10px; text-align: center; color: var(--muted); border: 3px dashed rgba(246, 197, 68, 0.3); }
.stack { display: grid; gap: 10px; }

/* ---------- Now playing / slot machine ---------- */
.slot { background: linear-gradient(180deg, #5a0d1c, #2a0610 70%); }
.reel {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: #07040a;
  box-shadow: inset 0 0 0 var(--px) var(--gold-dark), inset 0 0 0 calc(var(--px) * 2) #000;
}
.reel .thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; box-shadow: 0 0 0 var(--px) #000, 0 0 0 calc(var(--px) * 2) var(--gold); }
.thumb.station-thumb { display: grid; place-items: center; font-family: var(--pixel-font); font-size: 32px; color: var(--gold); background: var(--felt-dark); }
.reel h2 { font-size: 30px; line-height: 1.1; color: var(--text); overflow-wrap: anywhere; }
.reel p { color: var(--muted); margin-top: 6px; }
.jackpot-lights { display: flex; gap: 6px; margin-bottom: 12px; }
.jackpot-lights i { width: 12px; height: 12px; background: var(--gold); box-shadow: 0 0 8px var(--gold); animation: blink 1s steps(1) infinite; }
.jackpot-lights i:nth-child(even) { background: var(--neon-pink); box-shadow: 0 0 8px var(--neon-pink); animation-delay: 0.5s; }
@keyframes blink { 50% { opacity: 0.25; } }
.progress { height: 16px; margin-top: 14px; background: #07040a; box-shadow: 0 0 0 3px #000, inset 0 0 0 2px var(--gold-dark); overflow: hidden; }
.progress span { display: block; height: 100%; background: repeating-linear-gradient(90deg, var(--gold) 0 10px, var(--gold-light) 10px 12px); transition: width 1s linear; }
.meta-row { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; color: var(--muted); }
.reaction-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; min-height: 28px; }
.reaction-row span { padding: 2px 8px; background: rgba(0, 0, 0, 0.4); }
.control-row.reactions { margin-top: 12px; }
.icon-button {
  width: 44px;
  height: 44px;
  font-size: 20px;
  background: var(--panel-2);
  border: none;
  cursor: pointer;
  box-shadow: 0 0 0 3px #000, inset -3px -3px 0 #000;
}
.icon-button:hover { background: #2c1d3a; transform: translateY(-2px); }
.visualizer-wrap {
  height: 190px;
  margin-bottom: 12px;
  padding: 6px;
  background: radial-gradient(ellipse at 50% 100%, #2a0a1c, #07040a 70%);
  box-shadow: 0 0 0 var(--px) #000, 0 0 0 calc(var(--px) * 2) var(--gold-dark), inset 0 0 30px rgba(255, 79, 163, 0.15);
}
.visualizer-wrap { position: relative; }
.visualizer-wrap canvas { display: block; width: 100%; height: 100%; }
/* Fallback: a song the server couldn't download plays in YouTube's own player here. */
.embed-host { display: none; position: absolute; inset: 6px; }
.embed-host iframe { width: 100%; height: 100%; border: 0; display: block; }
.embed-mode .embed-host { display: block; }
.embed-mode #visualizer { visibility: hidden; }
.warn-mark {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-left: 10px;
  vertical-align: middle;
  font-family: var(--body-font);
  font-size: 18px;
  color: #2a1600;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 2px #000;
  cursor: help;
}
.prep { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-right: 8px; font-size: 15px; vertical-align: 2px; cursor: help; }
.prep.ok { color: #6be08a; }
.prep.busy { color: var(--neon-cyan); animation: blink 0.8s steps(1) infinite; }
.prep.wait { color: var(--muted); }
.prep.warn { color: #2a1600; background: var(--gold); border-radius: 50%; box-shadow: 0 0 0 2px #000; font-family: var(--body-font); font-size: 17px; }
.source-line.source-history { color: #b9a6ff; }
.source-line.source-dedication { color: #ffb3d9; }
.source-line.source-playlist { color: var(--neon-cyan); }
#musicAudio, #radioAudio { display: none; }
#nowPlaying .reel { grid-template-columns: 1fr; }
.sound-btn { width: 100%; margin-bottom: 14px; }
.sound-btn.pulse { animation: pulse 1s steps(2) infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 var(--px) #000, 0 0 0 calc(var(--px) * 2) var(--neon-cyan), 0 0 24px var(--neon-cyan); } }
.radio-audio { width: 100%; margin-bottom: 12px; }

.idle-slot { display: grid; place-items: center; gap: 18px; min-height: 320px; text-align: center; color: var(--muted); }
.reels { display: flex; gap: 12px; padding: 14px; background: #07040a; box-shadow: inset 0 0 0 var(--px) var(--gold-dark), 0 0 0 var(--px) #000; }
.reels span {
  display: grid;
  place-items: center;
  width: 72px;
  height: 92px;
  font-family: var(--pixel-font);
  font-size: 32px;
  color: var(--red);
  background: linear-gradient(#cfc6ad, #fff6dc 30% 70%, #cfc6ad);
  box-shadow: 0 0 0 3px #000;
  animation: reel 1.6s steps(3) infinite;
}
.reels span:nth-child(2) { color: var(--black-chip); animation-delay: -0.5s; }
.reels span:nth-child(3) { animation-delay: -1s; }
@keyframes reel { 0%, 70% { transform: translateY(0); } 80% { transform: translateY(-6px); } 90% { transform: translateY(4px); } }

/* ---------- Roulette ---------- */
.roulette-panel { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.roulette-panel .section-title { align-self: stretch; }
.wheel-wrap { position: relative; width: min(100%, 360px); aspect-ratio: 1; }
.wheel-wrap canvas { width: 100%; height: 100%; display: block; filter: drop-shadow(6px 8px 0 rgba(0, 0, 0, 0.5)); }
.wheel-pointer {
  position: absolute;
  top: -10px;
  left: 50%;
  z-index: 2;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 30px solid var(--gold-light);
  filter: drop-shadow(0 3px 0 #000) drop-shadow(0 0 6px var(--gold));
}
.wheel-wrap.spinning .wheel-pointer { animation: tick 0.12s steps(2) infinite; }
@keyframes tick { 50% { transform: translateX(-50%) rotate(-12deg); } }
.roulette-info { min-height: 48px; text-align: center; color: var(--muted); }
.roulette-info strong { display: block; font-size: 26px; line-height: 1.1; color: var(--gold-light); }
#spinBtn { width: min(100%, 360px); }

/* ---------- Dance floor ---------- */
.dance-panel { padding-bottom: 12px; }
.dance-floor {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #120a1c 0 42%, transparent 42%),
    conic-gradient(from 45deg at 50% 50%, #2a1846 25%, #3b1b52 0 50%, #2a1846 0 75%, #3b1b52 0) 0 0 / 48px 48px;
  box-shadow: inset 0 0 0 var(--px) #000;
}
.is-playing .dance-floor::after {
  content: '';
  position: absolute;
  inset: 42% 0 0;
  background:
    conic-gradient(from 45deg, rgba(255, 79, 163, 0.35) 25%, transparent 0 50%, rgba(63, 245, 230, 0.3) 0 75%, transparent 0) 0 0 / 96px 96px;
  mix-blend-mode: screen;
  animation: floor 0.9s steps(1) infinite;
  pointer-events: none;
}
@keyframes floor { 50% { background-position: 48px 0; filter: hue-rotate(90deg); } }
.disco-ball {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0 2px, transparent 2px 8px),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.35) 0 2px, transparent 2px 8px),
    radial-gradient(circle at 35% 35%, #fff, #b9c4d6 40%, #6a7690);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.35);
}
.disco-ball::before { content: ''; position: absolute; left: 50%; top: -10px; width: 2px; height: 10px; background: #888; }
.is-playing .disco-ball { animation: disco 0.6s steps(3) infinite; }
@keyframes disco { 50% { background-position: 4px 0, 0 4px, 0 0; box-shadow: 0 0 30px rgba(255, 79, 163, 0.7); } }
.spot { position: absolute; top: 0; width: 160px; height: 100%; opacity: 0; pointer-events: none; filter: blur(2px); }
.spot-a { left: 15%; background: linear-gradient(180deg, rgba(255, 79, 163, 0.35), transparent 90%); clip-path: polygon(45% 0, 55% 0, 100% 100%, 0 100%); transform-origin: top; }
.spot-b { right: 15%; background: linear-gradient(180deg, rgba(63, 245, 230, 0.3), transparent 90%); clip-path: polygon(45% 0, 55% 0, 100% 100%, 0 100%); transform-origin: top; }
.is-playing .spot { opacity: 1; animation: sweep 3s ease-in-out infinite alternate; }
.is-playing .spot-b { animation-delay: -1.5s; }
@keyframes sweep { from { transform: rotate(-18deg); } to { transform: rotate(18deg); } }

.dancers { position: absolute; inset: 0; }
.dancer {
  position: absolute;
  bottom: 6px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  transform: translateX(-50%);
  transition: left 0.35s steps(5);
}
.dancer.me { z-index: 2; }
.dancer .body { display: block; }
.dancer .sprite { position: relative; display: block; width: 64px; height: 116px; }
.dancer .sprite svg { position: absolute; inset: 0; width: 100%; height: 100%; shape-rendering: crispEdges; visibility: hidden; }
.dancer .sprite .f-rest { visibility: visible; }
.dancer .shadow { width: 46px; height: 8px; margin-top: -8px; background: rgba(0, 0, 0, 0.45); }
.dancer .name {
  max-width: 120px;
  padding: 3px 6px;
  font-size: 20px;
  line-height: 1;
  color: var(--text);
  background: rgba(0, 0, 0, 0.65);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dancer.me .name { color: #2a1600; background: var(--gold); }
.dancer.master .name::before { content: '♛ '; color: var(--gold); }
.dancer.me.master .name::before { color: #2a1600; }
.dancer:hover .name { outline: 2px solid var(--neon-cyan); }

/* Idle when no music, groove when music plays, special moves on demand. */
.dancer:not([data-move]) .sprite { animation: idle 2.4s steps(2) infinite; }
.is-playing .dancer:not([data-move]) .sprite { animation: bounce var(--tempo, 0.5s) steps(2) infinite var(--delay, 0s); }
.is-playing .dancer:not([data-move]) .f-rest { animation: frameA calc(var(--tempo, 0.5s) * 2) steps(1) infinite var(--delay, 0s); }
.is-playing .dancer:not([data-move]) .f-up { animation: frameB calc(var(--tempo, 0.5s) * 2) steps(1) infinite var(--delay, 0s); }

.dancer[data-move='disco'] .f-rest,
.dancer[data-move='hands'] .f-rest,
.dancer[data-move='spin'] .f-rest { animation: frameA 0.5s steps(1) infinite; }
.dancer[data-move='disco'] .f-disco { animation: frameB 0.5s steps(1) infinite; }
.dancer[data-move='disco'] .sprite { animation: sway 0.5s steps(2) infinite; }
.dancer[data-move='hands'] .f-rest { animation-duration: 0.3s; }
.dancer[data-move='hands'] .f-up { animation: frameB 0.3s steps(1) infinite; }
.dancer[data-move='hands'] .sprite { animation: bounce 0.15s steps(2) infinite; }
.dancer[data-move='jump'] .f-rest { animation: none; visibility: hidden; }
.dancer[data-move='jump'] .f-up { visibility: visible; }
.dancer[data-move='jump'] .sprite { animation: jump 0.6s ease-in-out infinite; }
.dancer[data-move='spin'] .f-up { animation: frameB 0.5s steps(1) infinite; }
.dancer[data-move='spin'] .sprite { animation: spinY 0.6s steps(6) infinite; }
.dancer[data-move='point'] .f-rest { animation: none; visibility: hidden; }
.dancer[data-move='point'] .f-disco { visibility: visible; }
.dancer[data-move='point'] .sprite { animation: flipX 0.5s steps(1) infinite; }
.dancer[data-move='push'] .f-rest { animation: none; visibility: hidden; }
.dancer[data-move='push'] .f-push { visibility: visible; }
.dancer[data-move='push'] .sprite { animation: lunge 0.6s steps(3); }
.dancer[data-move='pushed'] .sprite { animation: stagger 0.9s steps(6); }
.dancer[data-move='pushed']::before {
  content: '💥';
  position: absolute;
  top: -10px;
  font-size: 28px;
  animation: pop 0.4s steps(3);
}
@keyframes frameA { 0% { visibility: visible; } 50% { visibility: hidden; } }
@keyframes frameB { 0% { visibility: hidden; } 50% { visibility: visible; } }
@keyframes idle { 50% { transform: translateY(2px); } }
@keyframes bounce { 50% { transform: translateY(-10px); } }
@keyframes sway { 0% { transform: rotate(-8deg); } 50% { transform: rotate(8deg) translateY(-4px); } }
@keyframes jump { 0%, 100% { transform: translateY(0) scaleY(0.9); } 50% { transform: translateY(-46px) scaleY(1.05); } }
@keyframes spinY { to { transform: rotateY(360deg); } }
@keyframes flipX { 50% { transform: scaleX(-1); } }
@keyframes lunge { 50% { transform: translateX(14px); } }
@keyframes stagger { 20% { transform: rotate(-25deg) translateX(-10px); } 50% { transform: rotate(15deg); } 80% { transform: rotate(-8deg); } }
.is-spinning .dancer:not([data-move]) .sprite { animation: hype 0.25s steps(2) infinite; }
@keyframes hype { 50% { transform: translateY(-6px) scale(1.05); } }

.dance-floor { min-height: 0; height: 290px; }
.dance-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.dance-controls .group { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.button.small { min-height: 40px; padding: 0 12px; font-size: 21px; }

/* ---------- Character wizard ---------- */
.modal.char-modal { width: min(100%, 880px); max-height: calc(100vh - 32px); overflow: hidden; display: flex; flex-direction: column; text-align: left; padding: 20px; }
.wiz-head h2 { font-family: var(--pixel-font); font-size: 16px; line-height: 1.5; color: var(--gold-light); text-align: center; margin-bottom: 12px; }
.wiz-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.wiz-steps button {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 10px; font-size: 19px; color: var(--muted);
  background: rgba(0, 0, 0, 0.35); border: none; cursor: pointer; box-shadow: 0 0 0 2px #000;
}
.wiz-steps button.done { color: var(--text); }
.wiz-steps button.current { color: #2a1600; background: var(--gold); }
.wiz-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; min-height: 0; flex: 1 1 auto; }
.wiz-stage { display: grid; align-content: start; justify-items: center; gap: 12px; }
.char-preview {
  position: relative; display: grid; place-items: end center; width: 100%; height: 330px; padding-bottom: 10px;
  background: radial-gradient(circle at 50% 75%, #3b1b52, #120a1c 70%);
  box-shadow: inset 0 0 0 var(--px) #000;
}
.preview-dancer { position: relative; display: block; width: 160px; height: 290px; animation: bounce 0.55s steps(2) infinite; }
.preview-dancer svg { position: absolute; inset: 0; width: 100%; height: 100%; visibility: hidden; }
.preview-dancer .f-rest { animation: frameA 1.1s steps(1) infinite; }
.preview-dancer .f-up { animation: frameB 1.1s steps(1) infinite; }
.wiz-panel { min-height: 0; overflow-y: auto; padding-right: 6px; }
.wiz-panel h3 { margin: 0 0 6px; font-family: var(--pixel-font); font-size: 12px; line-height: 1.6; color: var(--gold-light); }
.wiz-panel label { color: var(--muted); }
.opt { margin-top: 12px; }
.opt > span { display: block; margin-bottom: 6px; color: var(--muted); }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.opt-grid.big { grid-template-columns: repeat(2, minmax(110px, 160px)); }
.opt-card {
  display: grid; justify-items: center; gap: 4px; padding: 6px 4px;
  color: var(--text); background: var(--panel-2); border: none; cursor: pointer;
  box-shadow: 0 0 0 2px #000;
}
.opt-card svg { width: 100%; height: 64px; }
.opt-grid.big .opt-card svg { height: 150px; }
.opt-card small { font-size: 16px; line-height: 1.1; text-align: center; }
.opt-card:hover { background: #2c1d3a; }
.opt-card[aria-pressed='true'] { background: #3a2a07; box-shadow: 0 0 0 2px #000, inset 0 0 0 3px var(--gold); }
.swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.swatch { width: 32px; height: 32px; padding: 0; border: none; cursor: pointer; box-shadow: 0 0 0 3px #000; }
.swatch[aria-pressed='true'] { box-shadow: 0 0 0 3px #000, 0 0 0 6px var(--gold-light); }
.swatches input[type='color'] { width: 44px; min-height: 32px; height: 32px; padding: 0; border: 3px solid #000; background: none; cursor: pointer; }
.char-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.char-actions .spacer { flex: 1 1 auto; }
@media (max-width: 700px) {
  .wiz-body { grid-template-columns: 1fr; }
  .char-preview { height: 200px; }
  .preview-dancer { width: 100px; height: 181px; }
  .modal.char-modal { overflow-y: auto; }
}

/* ---------- Bets (next-song vote) ---------- */
.bet-list { display: grid; gap: 12px; }
.bet {
  display: grid;
  grid-template-columns: 34px 96px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 0 0 3px rgba(246, 197, 68, 0.25);
}
.bet.pick { box-shadow: inset 0 0 0 3px var(--neon-cyan), 0 0 14px rgba(63, 245, 230, 0.4); }
.bet.mine { background: rgba(215, 38, 61, 0.22); }
.bet .rank { font-family: var(--pixel-font); font-size: 16px; color: var(--gold); text-align: center; }
.bet .votes { font-size: 22px; color: var(--gold-light); white-space: nowrap; }
.bet .mini-thumb { width: 96px; aspect-ratio: 16 / 9; object-fit: cover; box-shadow: 0 0 0 3px #000; }
.bet .info { min-width: 0; display: grid; gap: 4px; }
.bet .info strong { font-size: 22px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bet .info small { color: var(--muted); font-size: 18px; }
.bet .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 18px; line-height: 1; padding: 3px 8px; background: var(--neon-cyan); color: #00211e; }
.tag.fav { background: var(--gold); color: #2a1600; }
.odds { display: flex; align-items: center; gap: 10px; }
.odds .bar { flex: 1; height: 10px; background: rgba(0, 0, 0, 0.5); box-shadow: 0 0 0 2px #000; }
.odds .bar span { display: block; height: 100%; background: var(--red); }
.chips { display: flex; align-items: center; }
.chip {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-left: -8px;
  border-radius: 50%;
  background: var(--red);
  border: 4px dashed #fff;
  box-shadow: 0 0 0 2px #000;
}
.chip:first-child { margin-left: 0; }
.chip.black { background: var(--black-chip); }
.chip.gold { background: var(--gold); border-color: #fff6; }
.chip-count { margin-left: 6px; font-size: 22px; color: var(--gold-light); }
.bet-actions { display: flex; gap: 8px; align-items: center; }

/* ---------- Stations, moods, history, stats ---------- */
.station { display: grid; grid-template-columns: minmax(0, 1fr) 90px auto auto; gap: 10px; align-items: center; padding: 8px; background: rgba(0, 0, 0, 0.3); }
.station.winner { box-shadow: inset 0 0 0 3px var(--gold); }
.station-vote { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 0; background: none; border: none; cursor: pointer; text-align: left; font-size: 20px; }
.station-vote span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.station-logo {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-family: var(--pixel-font);
  font-size: 16px;
  color: #fff;
  background: var(--red);
  border-radius: 50%;
  border: 3px dashed #fff;
}
.station .bar { height: 10px; background: rgba(0, 0, 0, 0.5); }
.station .bar span { display: block; height: 100%; background: var(--gold); }
.mood-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mood {
  display: grid;
  gap: 6px;
  padding: 12px 8px;
  text-align: center;
  font-size: 20px;
  background: var(--black-chip);
  border: none;
  cursor: pointer;
  box-shadow: 0 0 0 3px #000, inset -3px -3px 0 #000;
}
.mood:nth-child(odd) { background: var(--red-dark); }
.mood span { font-size: 22px; color: var(--gold-light); }
.mood.winner { box-shadow: 0 0 0 3px var(--gold), 0 0 12px var(--gold); }
.mood.friday { animation: blink 0.8s steps(1) infinite; }
.history-list { display: grid; gap: 8px; }
.history-item { display: grid; gap: 2px; padding: 8px 10px; background: rgba(0, 0, 0, 0.3); border-left: 4px solid var(--gold); }
.history-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-item small { color: var(--muted); font-size: 17px; }
.wrapped { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.wrapped div { display: grid; gap: 6px; padding: 10px; background: rgba(0, 0, 0, 0.35); text-align: center; }
.wrapped strong { font-family: var(--pixel-font); font-size: 16px; line-height: 1.5; color: var(--gold-light); }
.wrapped span { color: var(--muted); font-size: 18px; }
.leaderboard { display: grid; gap: 6px; }
.leader-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 10px; background: rgba(0, 0, 0, 0.3); }
.leader-row div { min-width: 0; display: grid; }
.leader-row div strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leader-row div small { color: var(--muted); font-size: 16px; }
.leader-row b { font-family: var(--pixel-font); font-size: 14px; color: var(--gold-light); white-space: nowrap; }
.leader-row b small { font-family: var(--body-font); font-size: 16px; color: var(--muted); }
.leader-row.first { background: rgba(246, 197, 68, 0.18); }
.leader-row.first span { font-size: 22px; }
.leader-row.me { outline: 2px solid var(--neon-cyan); outline-offset: -2px; }
.live-badge { animation: blink 1.2s steps(1) infinite; }
.dj-rules { font-size: 16px; margin-top: 8px; }
.leader-row span { font-family: var(--pixel-font); font-size: 16px; color: var(--gold); }
.leader-row:first-child { box-shadow: inset 0 0 0 3px var(--gold); }
.leader-row small { color: var(--muted); }
.control-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 6px; }

/* ---------- Live chat ---------- */
/* Floating chat: a button bottom-right with an unread count, opening a panel above it. */
.chat-launcher {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 65;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  font-size: 28px;
  background: var(--gold);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0 4px #000, 0 6px 0 4px rgba(0, 0, 0, 0.45), 0 0 18px rgba(246, 197, 68, 0.5);
  transition: transform 0.15s;
}
.chat-launcher:hover { transform: translateY(-2px) scale(1.05); }
.chat-launcher[aria-expanded='true'] { background: var(--neon-cyan); }
.chat-launcher.bump { animation: bump 0.5s ease-out; }
@keyframes bump { 30% { transform: scale(1.18) rotate(-8deg); } 60% { transform: scale(0.95) rotate(4deg); } }
.chat-unread {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  font-family: var(--body-font);
  font-size: 20px;
  line-height: 1;
  color: #fff;
  background: var(--red);
  border-radius: 13px;
  box-shadow: 0 0 0 3px #000;
}
.chat-popup {
  position: fixed;
  right: 16px;
  bottom: 92px;
  z-index: 66;
  display: flex;
  flex-direction: column;
  width: min(calc(100% - 32px), 380px);
  height: min(calc(100vh - 140px), 520px);
  padding: 12px;
  background: radial-gradient(ellipse at 50% 0%, var(--felt-light), var(--felt-dark));
  box-shadow: 0 0 0 var(--px) #000, 0 0 0 calc(var(--px) * 3) var(--gold-dark), 0 0 0 calc(var(--px) * 4) #000, 10px 12px 0 calc(var(--px) * 4) rgba(0, 0, 0, 0.45);
  animation: chat-open 0.18s ease-out;
}
@keyframes chat-open { from { transform: translateY(16px) scale(0.97); opacity: 0; } }
.chat-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-family: var(--pixel-font); font-size: 16px; line-height: 1.5; color: var(--gold-light); text-shadow: 2px 2px 0 #000; }
.chat-head .icon-button { width: 36px; height: 36px; font-size: 22px; color: var(--text); }
.jail { right: 96px; }
.chat-log {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.6);
  scroll-behavior: smooth;
}
.chat-empty { margin: auto; color: var(--muted); text-align: center; }
.chat-msg { max-width: 88%; align-self: flex-start; padding: 6px 10px 8px; background: var(--panel-2); box-shadow: 0 0 0 2px #000; }
.chat-msg.mine { align-self: flex-end; background: #3a2a07; box-shadow: 0 0 0 2px #000, inset 0 0 0 2px var(--gold-dark); }
.chat-msg.fresh { animation: chat-in 0.25s ease-out; }
@keyframes chat-in { from { transform: translateY(8px); opacity: 0; } }
.chat-meta { display: flex; align-items: center; gap: 6px; font-size: 18px; }
.chat-meta small { margin-left: auto; color: var(--muted); font-size: 16px; }
.chat-dot { width: 10px; height: 10px; box-shadow: 0 0 0 2px #000; flex: none; }
.chat-text { font-family: 'Segoe UI', system-ui, sans-serif; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; color: var(--text); }
.chat-new { align-self: center; margin-top: -40px; margin-bottom: 8px; position: relative; z-index: 2; padding: 4px 12px; font: inherit; font-size: 18px; color: #00211e; background: var(--neon-cyan); border: none; cursor: pointer; box-shadow: 0 0 0 2px #000; }
.chat-form { margin-top: 10px; }
.chat-emojis { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.chat-emojis button { width: 34px; height: 30px; padding: 0; font-size: 17px; background: var(--panel-2); border: none; cursor: pointer; box-shadow: 0 0 0 2px #000; }
.chat-emojis button:hover { background: #2c1d3a; transform: translateY(-1px); }
.chat-input-row { display: flex; gap: 8px; }

/* Speech bubble above the dancer who wrote. */
.dancer .say {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  z-index: 5;
  width: max-content;
  max-width: 190px;
  padding: 6px 10px;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.3;
  color: #111;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  background: #fff6dc;
  box-shadow: 0 0 0 2px #000;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px) scale(0.9);
  transition: opacity 0.25s, transform 0.25s;
}
.dancer .say::after { content: ''; position: absolute; top: 100%; left: 50%; margin-left: -6px; border: 6px solid transparent; border-top-color: #fff6dc; }
.dancer .say.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.dancer:has(.say.show) { z-index: 4; }

/* ---------- Coins, bar & history ---------- */
.coin-pill { padding: 6px 12px; font-size: 22px; color: #2a1600; background: var(--gold); box-shadow: 0 0 0 3px #000; white-space: nowrap; }
.bar-panel select, .history-tools select { margin-bottom: 12px; }
.bar-menu { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 12px; }
.drink-btn {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 10px 6px;
  color: var(--text);
  background: var(--panel-2);
  border: none;
  cursor: pointer;
  box-shadow: 0 0 0 3px #000, inset -3px -3px 0 #000;
}
.drink-btn:hover:not(:disabled) { background: #2c1d3a; transform: translateY(-2px); }
.drink-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.drink-emoji { font-size: 34px; line-height: 1; }
.drink-name { font-size: 19px; text-align: center; }
.drink-price { font-size: 19px; color: var(--gold-light); }
.bar-log { margin-top: 14px; }
.bar-log h3 { margin: 0 0 8px; font-family: var(--pixel-font); font-size: 8px; line-height: 1.6; color: var(--muted); text-transform: uppercase; }
.bar-order { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 4px 8px; background: rgba(0, 0, 0, 0.3); margin-bottom: 6px; }
.bar-order span:first-child { font-size: 22px; }
.bar-order small { color: var(--muted); }
.dancer .drink { position: absolute; top: -6px; right: -14px; font-size: 26px; animation: bounce 1.2s steps(2) infinite; }
.history-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.history-tools select { flex: 1 1 200px; margin-bottom: 0; }
.history-panel .history-list { margin-top: 12px; max-height: 520px; overflow-y: auto; }
.history-panel .history-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.history-item .h-time { color: var(--gold-light); font-size: 19px; }
.history-item .h-info { min-width: 0; display: grid; gap: 2px; }
.history-item .h-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-item .h-actions { display: flex; gap: 6px; }
.history-item .h-actions .icon-button { width: 38px; height: 38px; font-size: 18px; color: var(--text); }
.history-item.removed { border-left-color: var(--red); }
.history-item.restored { opacity: 0.6; }

/* ---------- Drawers (offcanvas) ---------- */
.head-icon {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  font-size: 20px; background: rgba(0, 0, 0, 0.35); border: none; cursor: pointer;
  box-shadow: 0 0 0 3px #000; opacity: 0.75; transition: opacity 0.15s, transform 0.15s;
}
.head-icon:hover { opacity: 1; transform: translateY(-1px); }
.drawer-backdrop { position: fixed; inset: 0; z-index: 68; background: rgba(5, 2, 8, 0.6); }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 69;
  display: flex; flex-direction: column;
  width: min(100%, 560px);
  background: radial-gradient(ellipse at 50% 0%, var(--felt-light), var(--felt-dark) 60%);
  box-shadow: 0 0 0 var(--px) #000, -8px 0 0 var(--px) var(--gold-dark), -20px 0 60px rgba(0, 0, 0, 0.6);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s 0.28s;
}
.drawer.open { transform: none; visibility: visible; transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
.drawer-head {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px;
  font-family: var(--pixel-font); font-size: 15px; line-height: 1.5; color: var(--gold-light);
  text-shadow: 2px 2px 0 #000; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.4);
}
.drawer-head > span:first-child { flex: 1 1 auto; }
.drawer-head .icon-button { width: 38px; height: 38px; font-size: 22px; color: var(--text); }
.drawer-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 16px 18px 24px; }
.drawer .library-list { max-height: none; }

/* ---------- Unibox Library ---------- */
.dropzone {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 18px 12px;
  text-align: center;
  border: 3px dashed rgba(246, 197, 68, 0.45);
  background: rgba(0, 0, 0, 0.25);
  transition: background 0.15s, border-color 0.15s;
}
.dropzone.over { background: rgba(63, 245, 230, 0.12); border-color: var(--neon-cyan); }
.dropzone-icon { font-size: 34px; line-height: 1; }
.dropzone p { margin: 0; font-size: 21px; }
.dropzone small { color: var(--muted); font-size: 17px; }
.lib-uploads { display: grid; gap: 8px; margin-top: 10px; }
.lib-upload { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 4px 12px; align-items: center; padding: 6px 10px; background: rgba(0, 0, 0, 0.35); }
.lib-upload-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-upload-status { grid-column: 1 / -1; color: var(--muted); font-size: 17px; }
.lib-upload.ok .lib-upload-status { color: #6be08a; }
.lib-upload.bad .lib-upload-status { color: #ff8a8a; }
.lib-progress { height: 10px; background: #07040a; box-shadow: 0 0 0 2px #000; }
.lib-progress span { display: block; height: 100%; width: 0; background: var(--neon-cyan); transition: width 0.2s; }
.lib-search { margin: 12px 0; }
.library-list { display: grid; gap: 8px; max-height: 420px; overflow-y: auto; }
.lib-item { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 10px; background: rgba(0, 0, 0, 0.3); }
.lib-item.now { box-shadow: inset 0 0 0 2px var(--neon-cyan); }
.lib-disc { font-size: 26px; }
.lib-info { min-width: 0; display: grid; gap: 2px; }
.lib-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-info small { color: var(--muted); font-size: 17px; }
.lib-actions { display: flex; gap: 6px; align-items: center; }
.lib-actions .icon-button { width: 38px; height: 38px; font-size: 18px; font-family: 'Segoe UI Emoji', 'Apple Color Emoji', sans-serif; }
.lib-thumb { display: grid; place-items: center; aspect-ratio: 16 / 9; font-size: 30px; background: linear-gradient(135deg, #2a1846, #120a1c); }
.source-line.source-library { color: #ffd27a; }
@media (max-width: 600px) {
  .lib-item { grid-template-columns: 28px minmax(0, 1fr); }
  .lib-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .lib-upload { grid-template-columns: 1fr; }
}

/* ---------- Playlists ---------- */
.playlist-list { display: grid; gap: 12px; }
.playlist { background: rgba(0, 0, 0, 0.35); box-shadow: inset 0 0 0 3px rgba(246, 197, 68, 0.25); }
.playlist.open { box-shadow: inset 0 0 0 3px var(--gold); }
.playlist.playing { box-shadow: inset 0 0 0 3px var(--neon-cyan), 0 0 14px rgba(63, 245, 230, 0.35); }
.pl-songs li { cursor: grab; }
.pl-songs li { position: relative; will-change: transform; }
.pl-songs li.dragging { opacity: 0.45; outline: 2px dashed var(--gold); }
.pl-songs li.moved { animation: moved-glow 1.1s ease-out; }
@keyframes moved-glow {
  0% { background: rgba(246, 197, 68, 0.35); box-shadow: inset 0 0 0 2px var(--gold), 0 0 16px rgba(246, 197, 68, 0.5); }
  100% { background: rgba(0, 0, 0, 0.3); box-shadow: none; }
}
.pl-song-actions .pl-remove, .history-item .h-remove { font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif; font-size: 18px; }
.pl-song-actions .pl-remove:hover { background: var(--red-dark); }
.pl-songs li.now { box-shadow: inset 0 0 0 2px var(--neon-cyan); }
.pl-grip { font-size: 22px; color: var(--muted); }
.pl-song-actions { display: flex; gap: 6px; }
.pl-song-actions .icon-button { width: 36px; height: 36px; font-size: 16px; color: var(--text); }
.pl-song-actions .icon-button:disabled { opacity: 0.35; cursor: default; }
.playlist-bar, .queue-notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; padding: 8px 12px; background: rgba(63, 245, 230, 0.12); box-shadow: inset 0 0 0 2px var(--neon-cyan); }
.queue-notice strong, .playlist-bar strong { color: var(--neon-cyan); }
.pl-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; }
.pl-toggle { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; min-width: 0; padding: 0; text-align: left; color: var(--text); background: none; border: none; cursor: pointer; }
.pl-caret { font-size: 22px; color: var(--gold); }
.pl-name { font-family: var(--pixel-font); font-size: 16px; line-height: 1.5; color: var(--gold-light); overflow-wrap: anywhere; }
.pl-toggle small { color: var(--muted); font-size: 19px; }
.pl-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pl-body { padding: 0 12px 12px; }
.pl-songs { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: song; }
.pl-songs li { display: grid; grid-template-columns: 20px 80px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 6px; background: rgba(0, 0, 0, 0.3); }
.pl-songs img { width: 80px; aspect-ratio: 16 / 9; object-fit: cover; box-shadow: 0 0 0 2px #000; }
.pl-songs strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-songs small { color: var(--muted); font-size: 18px; }
@media (max-width: 600px) {
  .pl-songs li { grid-template-columns: 16px minmax(0, 1fr); }
  .pl-song-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .pl-songs img { display: none; }
}

/* ---------- Dance energy & dedications ---------- */
.energy { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin-top: 14px; }
.energy-label { font-size: 22px; color: var(--gold-light); }
.energy-bar { flex: 1 1 200px; max-width: 420px; height: 18px; background: #07040a; box-shadow: 0 0 0 3px #000, inset 0 0 0 2px var(--gold-dark); }
.energy-bar span { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--neon-cyan) 0 10px, #9ffcf4 10px 12px); transition: width 0.9s linear; }
.energy.full .energy-bar span { background: repeating-linear-gradient(90deg, var(--neon-pink) 0 10px, #ffb3d9 10px 12px); box-shadow: 0 0 14px var(--neon-pink); }
.energy.full #dedicateBtn { --b: var(--neon-pink); --b-dark: #a3125c; animation: pulse 1s steps(2) infinite; }
.energy-hint { text-align: center; margin: 8px 0 0; }
textarea {
  width: 100%;
  padding: 8px 12px;
  font: inherit;
  font-size: 22px;
  color: var(--text);
  background: #07040a;
  border: var(--px) solid var(--gold-dark);
  resize: vertical;
}
.modal.dedicate-modal { width: min(100%, 520px); text-align: left; }
.dedicate-modal h2 { font-family: var(--pixel-font); font-size: 16px; line-height: 1.5; color: #ffb3d9; text-align: center; }

.love-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 16px;
  background: radial-gradient(circle, rgba(255, 79, 163, 0.25), rgba(5, 2, 8, 0.8));
  animation: fade 0.3s ease;
}
@keyframes fade { from { opacity: 0; } }
.love-card {
  position: relative;
  width: min(100%, 460px);
  padding: 28px 24px 20px;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(180deg, #4a0f2e, #22061a);
  box-shadow: 0 0 0 var(--px) #000, 0 0 0 calc(var(--px) * 3) #ff8cc6, 0 0 0 calc(var(--px) * 4) #000, 0 0 70px rgba(255, 79, 163, 0.7);
  animation: pop 0.4s steps(4);
}
.love-close { position: absolute; top: 10px; right: 10px; z-index: 2; }
.love-from { font-size: 22px; color: #ffb3d9; }
.love-from strong, .love-to strong { color: #fff; }
.love-thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin: 14px 0; box-shadow: 0 0 0 3px #000, 0 0 0 6px #ff8cc6; }
.love-title { font-family: var(--pixel-font); font-size: 16px; line-height: 1.6; color: #fff6dc; overflow-wrap: anywhere; }
.love-to { margin-top: 10px; font-size: 24px; color: #ffb3d9; }
.love-message { margin-top: 12px; padding: 10px 14px; font-family: 'Segoe UI', system-ui, sans-serif; font-size: 17px; font-style: italic; color: #2a0a1c; background: #ffe3f1; box-shadow: 0 0 0 3px #000; overflow-wrap: anywhere; }
.love-message:empty { display: none; }
.love-timer { height: 6px; margin-top: 16px; background: rgba(0, 0, 0, 0.4); }
.love-timer span { display: block; height: 100%; background: #ff8cc6; animation: drain var(--love-ms, 12s) linear forwards; }
@keyframes drain { from { width: 100%; } to { width: 0; } }
.hearts { position: absolute; inset: 0; pointer-events: none; }
.hearts i { position: absolute; bottom: -30px; font-style: normal; font-size: 22px; animation: float var(--rise, 3s) ease-in forwards; }
@keyframes float { to { transform: translateY(-560px) rotate(var(--turn, 20deg)); opacity: 0; } }

/* ---------- Radio admin ---------- */
.station.on-air { box-shadow: inset 0 0 0 3px var(--neon-cyan); }
.station .actions { display: flex; gap: 6px; }
.station-form { margin-top: 16px; padding-top: 6px; border-top: 3px dashed rgba(246, 197, 68, 0.3); }
.station-form .control-row { margin-top: 14px; }

/* ---------- Jail ---------- */
.jail {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 45;
  width: min(calc(100% - 32px), 340px);
  padding: 12px;
  background: #1a1a22;
  box-shadow: 0 0 0 var(--px) #000, 0 0 0 calc(var(--px) * 2) #6b6b7a, 8px 8px 0 calc(var(--px) * 2) rgba(0, 0, 0, 0.5);
}
.jail-title { font-family: var(--pixel-font); font-size: 16px; line-height: 1.5; color: #ff6b6b; text-align: center; margin-bottom: 8px; animation: blink 1s steps(1) infinite; }
.jail-cells { display: grid; gap: 12px; max-height: 50vh; overflow-y: auto; }
.cell { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; align-items: end; }
.cell .bars {
  position: relative;
  height: 96px;
  background: #2b2b36;
  box-shadow: inset 0 0 0 3px #000;
}
.cell .bars svg { position: absolute; left: 50%; bottom: 2px; width: 48px; height: 87px; transform: translateX(-50%); shape-rendering: crispEdges; }
.cell .bars::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, #9aa0ad 0 4px, transparent 4px 13px);
  box-shadow: inset 0 4px 0 #9aa0ad, inset 0 -4px 0 #9aa0ad;
}
.bubble {
  position: relative;
  padding: 8px 10px;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.3;
  color: #111;
  background: #fff6dc;
  box-shadow: 0 0 0 3px #000;
}
.bubble::after { content: ''; position: absolute; left: -10px; bottom: 10px; border: 6px solid transparent; border-right-color: #fff6dc; }
.cell .who { margin-top: 6px; font-size: 19px; color: var(--muted); }
.cell .who strong { color: var(--text); }
.cell .button { margin-top: 6px; }
.report-box { margin-top: 14px; padding-top: 12px; border-top: 3px dashed rgba(246, 197, 68, 0.3); }
.report-box p { color: var(--muted); margin-bottom: 8px; }
.dance-controls.jailed { opacity: 0.45; pointer-events: none; }

/* ---------- Dialogs ---------- */
.modal.dialog-modal { width: min(100%, 420px); }
.dialog-icon { font-size: 40px; line-height: 1; }
.dialog-modal h2 { font-family: var(--pixel-font); font-size: 16px; line-height: 1.6; color: var(--gold-light); overflow-wrap: anywhere; }
.dialog-message { color: var(--text); font-size: 21px; }
.dialog-input { margin-top: 4px; }
.dialog-actions { display: flex; justify-content: center; gap: 12px; margin-top: 10px; }
#dialog { z-index: 120; } /* above games and chases, below the STOP button */

/* ---------- Overlays ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(5, 2, 8, 0.85);
}
.modal {
  display: grid;
  gap: 10px;
  width: min(100%, 440px);
  padding: 28px 24px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, var(--felt-light), var(--felt-dark));
  box-shadow: 0 0 0 var(--px) #000, 0 0 0 calc(var(--px) * 3) var(--gold), 0 0 0 calc(var(--px) * 4) #000, 0 0 60px rgba(255, 79, 163, 0.45);
}
.modal label { text-align: left; }
.modal .button { margin-top: 10px; }
.modal-chips { display: flex; justify-content: center; gap: 4px; margin-bottom: 6px; }
.modal-chips .chip { width: 30px; height: 30px; margin: 0; animation: bounce 0.8s steps(2) infinite; }
.modal-chips .chip:nth-child(2) { animation-delay: 0.2s; }
.modal-chips .chip:nth-child(3) { animation-delay: 0.4s; }

.profile-panel {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  width: min(calc(100% - 32px), 340px);
  padding: 20px;
  background: var(--panel);
  box-shadow: 0 0 0 var(--px) #000, 0 0 0 calc(var(--px) * 2) var(--gold-dark), 8px 8px 0 calc(var(--px) * 2) rgba(0, 0, 0, 0.5);
}
.profile-panel h2 { font-family: var(--pixel-font); font-size: 16px; line-height: 1.5; color: var(--gold-light); margin-bottom: 12px; padding-right: 40px; overflow-wrap: anywhere; }
.profile-panel .close { position: absolute; top: 12px; right: 12px; }
.profile-panel dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0; }
.profile-panel dt { color: var(--muted); }
.profile-panel dd { margin: 0; text-align: right; }
.profile-panel .dedicate-to { width: 100%; margin-top: 14px; }

.toasts { position: fixed; left: 16px; bottom: 16px; z-index: 60; display: grid; gap: 10px; width: min(calc(100% - 32px), 360px); }
.toast { padding: 12px 14px; background: var(--panel-2); box-shadow: 0 0 0 3px #000, inset 4px 0 0 var(--gold); animation: slide 0.2s steps(3); }
.toast.error { box-shadow: 0 0 0 3px #000, inset 4px 0 0 var(--red); }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }

.win-banner {
  position: fixed;
  left: 50%;
  top: 40%;
  z-index: 55;
  width: min(calc(100% - 32px), 640px);
  padding: 22px;
  transform: translate(-50%, -50%);
  text-align: center;
  background: #1a0710;
  box-shadow: 0 0 0 var(--px) #000, 0 0 0 calc(var(--px) * 3) var(--gold), 0 0 0 calc(var(--px) * 4) #000, 0 0 80px rgba(246, 197, 68, 0.6);
  animation: pop 0.35s steps(4);
  pointer-events: none;
}
.win-banner .neon { font-size: 24px; animation: blink 0.4s steps(1) 4; }
.win-banner p { margin-top: 12px; font-size: 24px; overflow-wrap: anywhere; }
@keyframes pop { from { transform: translate(-50%, -50%) scale(0.4); } }
.coins { position: fixed; inset: 0; z-index: 54; pointer-events: none; overflow: hidden; }
.coin {
  position: absolute;
  top: -30px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: inset -3px -3px 0 var(--gold-dark), 0 0 0 2px #000;
  animation: fall var(--fall, 2s) linear forwards;
}
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .row.three { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .how { grid-template-columns: 1fr; margin: 0 8px; }
  .row, .row.hero, .row.three { grid-template-columns: 1fr; }
  .marquee { position: static; }
}
@media (max-width: 600px) {
  body { font-size: 19px; }
  .floor { padding: 12px 4px 40px; gap: 12px; }
  .panel { padding: 14px; }
  .add-song { flex-basis: 100%; }
  .reel { grid-template-columns: 1fr; }
  .bet { grid-template-columns: 28px minmax(0, 1fr); }
  .bet .mini-thumb { display: none; }
  .bet-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .station { grid-template-columns: minmax(0, 1fr) auto; }
  .station .bar { grid-column: 1 / -1; order: 3; }
  .wrapped, .mood-grid, .control-grid { grid-template-columns: 1fr 1fr; }
  .dancer .sprite { width: 44px; height: 80px; }
  .dancer .name { font-size: 17px; max-width: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Floor upgrades: shop, treasury and votes ---------- */
.title-actions { display: inline-flex; align-items: center; gap: 10px; }
.upgrade-btn {
  text-shadow: none;
  position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px;
  font: inherit; font-size: 11px; color: #2a1600; background: var(--gold); border: none; cursor: pointer;
  box-shadow: 0 0 0 3px #000, inset 0 -3px 0 var(--gold-dark); text-shadow: none;
}
.upgrade-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.vote-dot { padding: 2px 4px; font-size: 8px; color: #fff; background: #d7263d; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
.treasury-card { display: grid; gap: 12px; padding: 14px; margin-bottom: 14px; background: rgba(0, 0, 0, 0.3); box-shadow: 0 0 0 3px #000, inset 0 0 0 2px var(--gold-dark); }
.treasury-top { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.treasury-top small, .donors small, .theme-picker small { display: block; color: var(--muted); font-size: 18px; }
.treasury-top strong { font-family: var(--pixel-font); font-size: 18px; color: var(--gold-light); text-shadow: 2px 2px 0 #000; }
.donate-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.donors { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.donors small { flex-basis: 100%; }
.donor b { color: var(--gold-light); }
.vote-card { display: grid; gap: 8px; padding: 12px; margin-bottom: 14px; background: rgba(42, 6, 30, 0.85); box-shadow: 0 0 0 3px #000, inset 0 0 0 2px var(--neon-pink); }
.vote-title { display: flex; align-items: center; gap: 10px; }
.vote-title > span:nth-child(2) { flex: 1 1 auto; display: grid; }
.vote-title small { color: var(--muted); }
.vote-emoji { font-size: 30px; }
.vote-time { font-family: var(--pixel-font); font-size: 11px; color: var(--neon-cyan); }
.vote-bar { height: 10px; background: rgba(0, 0, 0, 0.5); box-shadow: 0 0 0 2px #000; }
.vote-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--felt-light), #6be08a); transition: width 0.3s; }
.vote-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.vote-actions { display: inline-flex; gap: 8px; }
.vote-banner { margin: -4px 0 10px; }
.vote-banner .vote-card { margin: 0; }
.theme-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.theme-picker small { flex-basis: 100%; }
.upgrade-catalog h3 { margin: 16px 0 8px; font-family: var(--pixel-font); font-size: 12px; color: var(--gold-light); text-shadow: 2px 2px 0 #000; }
.upgrade-grid { display: grid; gap: 8px; }
.upgrade-item { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; padding: 10px; background: rgba(0, 0, 0, 0.28); box-shadow: 0 0 0 2px #000; }
.upgrade-item.owned { background: rgba(19, 100, 60, 0.35); box-shadow: 0 0 0 2px #000, inset 0 0 0 2px var(--felt-light); }
.upgrade-emoji { font-size: 30px; text-align: center; }
.upgrade-text { display: grid; line-height: 1.1; }
.upgrade-text small { color: var(--muted); }
.upgrade-buy { display: grid; justify-items: end; gap: 4px; text-align: right; }
.upgrade-price { color: var(--gold-light); }
.upgrade-buy .why { font-size: 16px; color: var(--muted); }
.owned-tag { color: #6be08a; }
@media (max-width: 520px) {
  .upgrade-item { grid-template-columns: 36px 1fr; }
  .upgrade-buy { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; }
}

/* ---------- Floor upgrades: what you see on the floor ---------- */
.floor-fx, .npcs { position: absolute; inset: 0; pointer-events: none; }
.fx-layer { position: absolute; inset: 0; }
.fx-fog-layer, .fx-strobe-layer, .fx-co2-layer, .fx-bubbles-layer { z-index: 3; }
.npcs .dancer { cursor: default; }
.npcs .dancer .name { font-size: 16px; color: var(--muted); }
.npc.still .sprite { animation: none !important; }
.npc.still .f-rest { animation: none !important; visibility: visible; }
.npc.still .f-up { animation: none !important; visibility: hidden; }

/* Wall washers */
.wash { position: absolute; inset: 0 0 58%; background: linear-gradient(90deg, rgba(255, 79, 163, 0.35), rgba(63, 245, 230, 0.3), rgba(246, 197, 68, 0.3), rgba(142, 68, 173, 0.35)); background-size: 300% 100%; animation: wash 12s linear infinite; }
@keyframes wash { to { background-position: 300% 0; } }

/* Neon sign */
.neon-sign { position: absolute; top: 14px; left: 20px; font-family: var(--pixel-font); font-size: 14px; color: #fff; text-shadow: 0 0 4px #fff, 0 0 10px var(--neon-pink), 0 0 20px var(--neon-pink); animation: neon 5s steps(1) infinite; }
@keyframes neon { 0%, 22%, 26%, 100% { opacity: 1; } 24% { opacity: 0.2; } 70% { opacity: 0.6; } }

/* LED wall behind the DJ */
.ledwall { position: absolute; top: 12px; left: 50%; width: 220px; height: 76px; margin-left: -110px; image-rendering: pixelated; box-shadow: 0 0 0 3px #000, 0 0 0 5px #333, 0 0 22px rgba(63, 245, 230, 0.35); }
.fx-led_wall .disco-ball { left: calc(50% + 150px); }

/* DJ booth */
.booth { position: absolute; left: 50%; top: calc(42% - 54px); width: 150px; height: 54px; margin-left: -75px; }
.booth::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: linear-gradient(180deg, #2b2b38, #15151c); box-shadow: 0 0 0 3px #000, inset 0 3px 0 var(--neon-cyan); }
.booth-dj { position: absolute; left: 50%; bottom: 8px; width: 40px; height: 72px; margin-left: -20px; }
.booth-dj svg { position: absolute; inset: 0; width: 100%; height: 100%; shape-rendering: crispEdges; visibility: hidden; }
.booth-dj .f-rest { visibility: visible; }
.is-playing .booth-dj .f-rest { animation: frameA 0.9s steps(1) infinite; }
.is-playing .booth-dj .f-up { animation: frameB 0.9s steps(1) infinite; }
.deck { position: absolute; bottom: 30px; z-index: 1; width: 26px; height: 6px; background: #111; box-shadow: 0 0 0 2px #444; }
.deck:nth-of-type(2) { left: 18px; }
.deck:nth-of-type(3) { right: 18px; }
.is-playing .deck { animation: deck 0.5s steps(2) infinite; }
@keyframes deck { 50% { box-shadow: 0 0 0 2px var(--neon-pink); } }

/* Golden disco ball and its sparkles */
.fx-gold_ball .disco-ball {
  width: 58px; height: 58px; margin-left: -29px;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.3) 0 2px, transparent 2px 8px),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.3) 0 2px, transparent 2px 8px),
    radial-gradient(circle at 35% 35%, #fffbe0, var(--gold) 40%, var(--gold-dark));
  box-shadow: 0 0 26px rgba(246, 197, 68, 0.6);
}
.sparkles { position: absolute; inset: 0; opacity: 0; background-image: radial-gradient(circle, #fff 0 1.5px, transparent 2.5px), radial-gradient(circle, var(--gold-light) 0 1.5px, transparent 2.5px); background-size: 70px 50px, 90px 64px; background-position: 0 0, 35px 25px; }
.is-playing .sparkles { opacity: 0.8; animation: sparkle 2s linear infinite; }
@keyframes sparkle { to { background-position: 70px 50px, -55px 89px; } }

/* Moving heads */
.mh { position: absolute; top: 0; width: 120px; height: 105%; opacity: 0; transform-origin: 50% 0; background: linear-gradient(180deg, var(--c), transparent 85%); clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%); mix-blend-mode: screen; }
.mh-0 { left: 2%; } .mh-1 { left: 26%; } .mh-2 { right: 26%; } .mh-3 { right: 2%; }
.is-playing .mh { opacity: 0.55; animation: mh 2.6s ease-in-out infinite alternate; }
.is-playing .mh-1 { animation-delay: -0.7s; animation-duration: 3.1s; }
.is-playing .mh-2 { animation-delay: -1.4s; }
.is-playing .mh-3 { animation-delay: -2s; animation-duration: 2.2s; }
@keyframes mh { 0% { transform: rotate(-35deg); } 50% { transform: rotate(10deg); } 100% { transform: rotate(32deg); } }

/* Lasers */
.laser-fan { position: absolute; top: 4px; left: 50%; width: 0; height: 0; }
.laser-fan span { position: absolute; top: 0; left: 0; width: 2px; height: 360px; opacity: 0; transform-origin: 50% 0; transform: rotate(calc(var(--i) * 14deg)); background: linear-gradient(180deg, #6bff6b, rgba(107, 255, 107, 0)); box-shadow: 0 0 6px #6bff6b; }
.laser-fan span:nth-child(even) { background: linear-gradient(180deg, var(--neon-pink), transparent); box-shadow: 0 0 6px var(--neon-pink); }
.is-playing .laser-fan span { opacity: 0.85; }
.is-playing .laser-fan { animation: laser 4s ease-in-out infinite alternate; }
@keyframes laser { 0% { transform: rotate(-22deg) scaleY(0.8); } 50% { transform: rotate(0) scaleY(1); } 100% { transform: rotate(22deg) scaleY(0.85); } }
.fx-fog .laser-fan span { width: 3px; }

/* LED dance floor */
.led-tiles { position: absolute; inset: 42% 0 0; opacity: 0.5; background: conic-gradient(from 45deg, #ff4fa3 25%, #3ff5e6 0 50%, #f6c544 0 75%, #8e44ad 0) 0 0 / 48px 48px; mix-blend-mode: screen; }
.is-playing .led-tiles { animation: tiles 0.9s steps(1) infinite; opacity: calc(0.35 + var(--bass, 0) * 0.5); }
@keyframes tiles { 25% { filter: hue-rotate(90deg); } 50% { filter: hue-rotate(180deg); background-position: 48px 0; } 75% { filter: hue-rotate(270deg); } }

/* Fog */
.fog { position: absolute; bottom: -20px; width: 70%; height: 90px; border-radius: 50%; background: radial-gradient(ellipse, rgba(220, 220, 255, 0.35), transparent 70%); filter: blur(6px); animation: fog 14s ease-in-out infinite alternate; }
.f1 { left: -20%; }
.f2 { left: 30%; animation-duration: 18s; animation-delay: -6s; }
.f3 { left: 60%; animation-duration: 11s; animation-delay: -3s; }
@keyframes fog { to { transform: translateX(25%) scale(1.15); } }

/* Bubbles */
.fx-bubble { position: absolute; bottom: -30px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%; opacity: 0; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6), inset 3px 3px 0 rgba(255, 255, 255, 0.4); }
.is-playing .fx-bubble { animation: bubble 5s linear infinite var(--d); }
@keyframes bubble { 10% { opacity: 1; } 100% { opacity: 0; transform: translate(30px, -320px); } }

/* Speaker stacks, pumping with the bass */
.speaker { position: absolute; bottom: 0; z-index: 1; display: grid; gap: 4px; padding: 6px; width: 46px; background: #1a1a22; box-shadow: 0 0 0 3px #000; }
.speaker.left { left: 0; }
.speaker.right { right: 0; }
.speaker i { display: block; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle, #555 0 22%, #111 24% 60%, #333 62%); transform: scale(calc(1 + var(--bass, 0) * 0.18)); }

/* CO2 jets */
.co2 { position: absolute; bottom: 0; width: 60px; height: 0; opacity: 0; background: linear-gradient(0deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0)); filter: blur(4px); }
.co2.left { left: 12%; }
.co2.right { right: 12%; }
.co2-blast .co2 { animation: co2 1.4s ease-out; }
@keyframes co2 { 0% { height: 0; opacity: 1; } 30% { height: 100%; opacity: 0.95; } 100% { height: 100%; opacity: 0; width: 120px; } }

/* Strobe */
/* Strobe: a quick coloured flash at the edges of the floor on strong beats (no white veil). */
.strobe { position: absolute; inset: 0; opacity: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 40%, transparent 55%, rgba(255, 79, 163, 0.55) 100%), radial-gradient(ellipse at 50% 100%, rgba(63, 245, 230, 0.25), transparent 60%); }
.strobe.flash { animation: strobe 0.35s ease-out; }
@keyframes strobe { 0% { opacity: 0.9; } 100% { opacity: 0; } }

/* Confetti (also when something gets bought) */
.confetti { position: absolute; top: -12px; z-index: 4; width: 7px; height: 11px; animation: confetti var(--fall, 2s) ease-in forwards; }
@keyframes confetti { to { transform: translateY(330px) rotate(var(--spin, 360deg)); opacity: 0.6; } }

/* ---------- Floor themes ---------- */
.dance-floor.theme-techno {
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.25) 0 2px, transparent 2px 60px) 0 0 / 100% 42% no-repeat,
    linear-gradient(180deg, #2b2d2f 0 42%, transparent 42%),
    conic-gradient(from 45deg, #1b1d1f 25%, #232629 0 50%, #1b1d1f 0 75%, #232629 0) 0 0 / 48px 48px;
}
.theme-techno .spot-a, .theme-techno .spot-b { background: linear-gradient(180deg, rgba(107, 255, 107, 0.4), transparent 90%); }
.is-playing .dance-floor.theme-techno::after { background: conic-gradient(from 45deg, rgba(107, 255, 107, 0.25) 25%, transparent 0 50%, rgba(255, 255, 255, 0.12) 0 75%, transparent 0) 0 0 / 96px 96px; }

.dance-floor.theme-retro {
  background:
    radial-gradient(circle at 50% 42%, #ffcf4a 0 34px, #ff4fa3 35px 40px, transparent 41px),
    linear-gradient(180deg, #2a0a40 0, #a8237b 30%, #ff7a3d 42%, transparent 42%),
    linear-gradient(90deg, rgba(255, 79, 163, 0.7) 2px, transparent 2px) 0 0 / 48px 100%,
    linear-gradient(0deg, rgba(255, 79, 163, 0.7) 2px, transparent 2px) 0 0 / 100% 24px,
    #160626;
}

.dance-floor.theme-tropical {
  background:
    radial-gradient(circle at 78% 22%, #fff1a8 0 22px, transparent 23px),
    linear-gradient(180deg, #ff9a5a 0, #ff6f91 22%, #6a4bc4 42%, transparent 42%),
    linear-gradient(180deg, #e8c57a 42%, #d4a95e);
}
.dance-floor.theme-tropical::before {
  content: "\1F334"; position: absolute; left: 6px; top: calc(42% - 70px); font-size: 64px; line-height: 1; filter: drop-shadow(3px 3px 0 #000);
}

.dance-floor.theme-space {
  background:
    radial-gradient(circle, #fff 0 1px, transparent 1.5px) 0 0 / 37px 29px,
    radial-gradient(circle, #9fd 0 1px, transparent 1.5px) 13px 11px / 53px 41px,
    radial-gradient(circle at 20% 22%, #ff8fd0 0 18px, transparent 19px),
    linear-gradient(180deg, #050314 0 42%, transparent 42%),
    conic-gradient(from 45deg, #11132a 25%, #1b1f44 0 50%, #11132a 0 75%, #1b1f44 0) 0 0 / 48px 48px;
}
.is-playing .dance-floor.theme-space { animation: stars 30s linear infinite; }
@keyframes stars { to { background-position: -370px 0, -530px 11px, 0 0, 0 0, 0 0; } }

@media (prefers-reduced-motion: reduce) {
  .strobe.flash { animation: none; }
}


/* ---------- The story, full screen over the radio (📖 History) ---------- */
.story-btn { width: auto; gap: 6px; padding: 0 10px; grid-auto-flow: column; font-family: var(--body-font); font-size: 20px; color: var(--gold-light); opacity: 0.85; }
.story-btn span { font-size: 19px; }
.story-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: radial-gradient(ellipse at 50% 30%, #2a1040, #0a0410 70%);
  clip-path: circle(0 at var(--ox, 50%) var(--oy, 0));
}
.story-overlay.open { animation: storyIn 0.65s cubic-bezier(0.7, 0, 0.2, 1) forwards; }
.story-overlay.closing { animation: storyOut 0.5s cubic-bezier(0.6, 0, 0.4, 1) forwards; }
@keyframes storyIn { from { clip-path: circle(0 at var(--ox, 50%) var(--oy, 0)); } to { clip-path: circle(150% at var(--ox, 50%) var(--oy, 0)); } }
@keyframes storyOut { from { clip-path: circle(150% at var(--ox, 50%) var(--oy, 0)); } to { clip-path: circle(0 at var(--ox, 50%) var(--oy, 0)); } }
.story-overlay iframe { display: block; width: 100%; height: 100%; border: 0; opacity: 0; transform: scale(0.96); }
.story-overlay.open iframe { animation: storyFrameIn 0.5s ease-out 0.35s forwards; }
@keyframes storyFrameIn { to { opacity: 1; transform: none; } }
.story-close {
  position: absolute; top: 14px; right: 16px; z-index: 1;
  width: 46px; height: 46px; padding: 0; font-size: 30px; line-height: 1; color: #2a1600;
  background: var(--gold); border: none; cursor: pointer; box-shadow: 0 0 0 3px #000, inset 0 -4px 0 var(--gold-dark);
}
.story-close:hover { filter: brightness(1.1); }
body.story-open { overflow: hidden; }
body.story-open .chat-launcher { display: none; }
@media (max-width: 640px) { .story-btn span { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .story-overlay.open, .story-overlay.closing { animation-duration: 0.01ms; }
}


/* ---------- Dance shop: move buttons under the floor ---------- */
.move-bar { max-width: 760px; }
.move-chip {
  position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px;
  font: inherit; font-size: 20px; color: var(--text); cursor: pointer; border: none;
  background: var(--felt-light); box-shadow: 0 0 0 3px #000, inset 0 -4px 0 var(--felt-dark);
}
.move-chip:hover { filter: brightness(1.15); transform: translateY(-1px); }
.move-chip:active { transform: translateY(2px); box-shadow: 0 0 0 3px #000; }
.move-chip kbd { font: inherit; font-size: 14px; padding: 0 4px; color: #2a1600; background: rgba(255, 246, 220, 0.75); }
.move-chip.d2 { background: #1f6f8b; box-shadow: 0 0 0 3px #000, inset 0 -4px 0 #134a5d; }
.move-chip.d3 { background: #6b3fa0; box-shadow: 0 0 0 3px #000, inset 0 -4px 0 #462a69; }
.move-chip.d4 { background: #b8452a; box-shadow: 0 0 0 3px #000, inset 0 -4px 0 #7d2e1c; }
.move-chip.d5 { color: #2a1600; background: var(--gold); box-shadow: 0 0 0 3px #000, inset 0 -4px 0 var(--gold-dark), 0 0 12px rgba(246, 197, 68, 0.6); }
.dance-points { font-size: 22px; color: var(--gold-light); }

/* Points floating over a dancer after a move. */
.score-pop { position: absolute; top: -18px; left: 50%; z-index: 6; font-family: var(--pixel-font); font-size: 11px; color: #fff; text-shadow: 2px 2px 0 #000; white-space: nowrap; pointer-events: none; animation: scorePop 1.5s ease-out forwards; }
.score-pop.p6, .score-pop.p10 { font-size: 13px; color: var(--neon-cyan); }
.score-pop.p15 { font-size: 15px; color: var(--gold); }
@keyframes scorePop { from { transform: translate(-50%, 10px); opacity: 1; } to { transform: translate(-50%, -34px); opacity: 0; } }

/* ---------- Dance shop drawer ---------- */
.shop-card { display: grid; gap: 10px; padding: 14px; margin-bottom: 8px; background: rgba(0, 0, 0, 0.3); box-shadow: 0 0 0 3px #000, inset 0 0 0 2px var(--gold-dark); }
.shop-for { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.shop-for select { flex: 1 1 auto; }
.shop-me small, .shop-top small { display: block; color: var(--muted); font-size: 18px; }
.shop-me strong { font-family: var(--pixel-font); font-size: 16px; color: var(--gold-light); }
.shop-top div { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.shop-top .me { color: var(--gold-light); }
.shop-level { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; margin: 18px 0 8px; font-family: var(--pixel-font); font-size: 12px; }
.shop-level small { font-family: var(--body-font); font-size: 17px; color: var(--muted); }
.shop-level.d1 span { color: #6be08a; }
.shop-level.d2 span { color: #5fd0f5; }
.shop-level.d3 span { color: #c48cff; }
.shop-level.d4 span { color: #ff8a65; }
.shop-level.d5 span { color: var(--gold); text-shadow: 0 0 8px rgba(246, 197, 68, 0.6); }
.shop-grid { display: grid; gap: 8px; }
.stars .off { opacity: 0.22; }
.shop-item { display: grid; grid-template-columns: 76px 1fr auto; align-items: center; gap: 10px; padding: 6px 10px 6px 14px; background: rgba(0, 0, 0, 0.28); box-shadow: 0 0 0 2px #000; overflow: hidden; }
.shop-item.owned { background: rgba(19, 100, 60, 0.3); box-shadow: 0 0 0 2px #000, inset 0 0 0 2px var(--felt-light); }
.shop-text { display: grid; line-height: 1.1; }
.shop-text small { color: var(--muted); }
.shop-buy { display: grid; justify-items: end; gap: 4px; }
.shop-price { color: var(--gold-light); }
/* The live preview: your own character doing the move, on a loop. */
.dancer.preview { position: relative; left: auto; bottom: auto; width: 64px; height: 92px; transform: none; cursor: default; overflow: visible; }
.dancer.preview .sprite { width: 44px; height: 80px; margin: 6px auto 0; }
.dancer.preview::after, .dancer.preview::before { font-size: 14px; }
@media (max-width: 520px) {
  .shop-item { grid-template-columns: 56px 1fr; }
  .shop-buy { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; align-items: center; }
}

/* ---------- The moves ---------- */
/* Four-frame cycles (rest → push → up → disco). */
@keyframes q1 { 0% { visibility: visible; } 25%, 100% { visibility: hidden; } }
@keyframes q2 { 0% { visibility: hidden; } 25% { visibility: visible; } 50%, 100% { visibility: hidden; } }
@keyframes q3 { 0%, 25% { visibility: hidden; } 50% { visibility: visible; } 75%, 100% { visibility: hidden; } }
@keyframes q4 { 0%, 50% { visibility: hidden; } 75%, 100% { visibility: visible; } }
.dancer[data-move] .sprite { transform-origin: 50% 100%; }

/* Show one frame and keep it. */
.dancer[data-move='dab'] .f-rest, .dancer[data-move='sprinkler'] .f-rest, .dancer[data-move='headbang'] .f-rest,
.dancer[data-move='wave'] .f-rest, .dancer[data-move='splits'] .f-rest, .dancer[data-move='windmill'] .f-rest,
.dancer[data-move='backflip'] .f-rest, .dancer[data-move='headspin'] .f-rest, .dancer[data-move='worm'] .f-rest { visibility: hidden; animation: none; }
.dancer[data-move='dab'] .f-push { visibility: visible; }
.dancer[data-move='sprinkler'] .f-disco { visibility: visible; }
.dancer[data-move='headbang'] .f-up, .dancer[data-move='wave'] .f-up, .dancer[data-move='splits'] .f-up,
.dancer[data-move='windmill'] .f-up, .dancer[data-move='backflip'] .f-up, .dancer[data-move='headspin'] .f-up, .dancer[data-move='worm'] .f-up { visibility: visible; }

/* Two-frame alternations. */
.dancer[data-move='clap'] .f-rest { animation: frameA 0.3s steps(1) infinite; }
.dancer[data-move='clap'] .f-up { animation: frameB 0.3s steps(1) infinite; }
.dancer[data-move='sway'] .f-rest, .dancer[data-move='shuffle'] .f-rest { animation: frameA 0.8s steps(1) infinite; }
.dancer[data-move='sway'] .f-up, .dancer[data-move='shuffle'] .f-up { animation: frameB 0.8s steps(1) infinite; }
.dancer[data-move='twist'] .f-rest, .dancer[data-move='firedance'] .f-rest { animation: frameA 0.35s steps(1) infinite; }
.dancer[data-move='twist'] .f-disco, .dancer[data-move='firedance'] .f-disco { animation: frameB 0.35s steps(1) infinite; }
.dancer[data-move='floss'] .f-rest { animation: frameA 0.3s steps(1) infinite; }
.dancer[data-move='floss'] .f-push { animation: frameB 0.3s steps(1) infinite; }
.dancer[data-move='moonwalk'] .f-rest, .dancer[data-move='kick'] .f-rest { animation: frameA 0.6s steps(1) infinite; }
.dancer[data-move='moonwalk'] .f-push, .dancer[data-move='kick'] .f-push { animation: frameB 0.6s steps(1) infinite; }
.dancer[data-move='matrix'] .f-rest { animation: frameA 0.25s steps(1) infinite; }
.dancer[data-move='matrix'] .f-up { animation: frameB 0.25s steps(1) infinite; }
.dancer[data-move='lean'] .f-rest { animation: none; visibility: visible; }

/* Four-frame cycles. */
.dancer[data-move='macarena'] .f-rest, .dancer[data-move='robot'] .f-rest, .dancer[data-move='ymca'] .f-rest { animation: q1 var(--cycle, 1.6s) steps(1) infinite; }
.dancer[data-move='macarena'] .f-push, .dancer[data-move='robot'] .f-push, .dancer[data-move='ymca'] .f-push { animation: q2 var(--cycle, 1.6s) steps(1) infinite; }
.dancer[data-move='macarena'] .f-up, .dancer[data-move='robot'] .f-up, .dancer[data-move='ymca'] .f-up { animation: q3 var(--cycle, 1.6s) steps(1) infinite; }
.dancer[data-move='macarena'] .f-disco, .dancer[data-move='robot'] .f-disco, .dancer[data-move='ymca'] .f-disco { animation: q4 var(--cycle, 1.6s) steps(1) infinite; }
.dancer[data-move='robot'] { --cycle: 1.2s; }
.dancer[data-move='ymca'] { --cycle: 2s; }

/* Body motion. */
.dancer[data-move='clap'] .sprite { animation: bounce 0.3s steps(2) infinite; }
.dancer[data-move='sway'] .sprite { animation: swayLR 1.6s ease-in-out infinite; }
.dancer[data-move='shuffle'] .sprite { animation: shuffleLR 0.4s steps(2) infinite; }
.dancer[data-move='headbang'] .sprite { animation: headbang 0.25s steps(2) infinite; }
.dancer[data-move='twist'] .sprite { animation: twist 0.35s steps(2) infinite; }
.dancer[data-move='robot'] .sprite { animation: robot 1.2s steps(1) infinite; }
.dancer[data-move='sprinkler'] .sprite { animation: sprinkler 1.4s steps(6) infinite alternate; }
.dancer[data-move='floss'] .sprite { animation: floss 0.3s steps(2) infinite; }
.dancer[data-move='macarena'] .sprite { animation: bounce 0.4s steps(2) infinite; }
.dancer[data-move='moonwalk'] .sprite { animation: moonwalk 1.75s linear infinite; }
.dancer[data-move='dab'] .sprite { animation: dab 1.25s steps(2) infinite; }
.dancer[data-move='ymca'] .sprite { animation: bounce 0.5s steps(2) infinite; }
.dancer[data-move='wave'] .sprite { animation: bodywave 0.8s ease-in-out infinite; }
.dancer[data-move='kick'] .sprite { animation: kick 0.6s steps(3) infinite; }
.dancer[data-move='windmill'] .sprite { transform-origin: 50% 60%; animation: windmill 0.7s linear infinite; }
.dancer[data-move='backflip'] .sprite { transform-origin: 50% 60%; animation: backflip 1.25s ease-in-out infinite; }
.dancer[data-move='splits'] .sprite { animation: splits 1.5s ease-in-out infinite; }
.dancer[data-move='worm'] .sprite { animation: worm 1s ease-in-out infinite; }
.dancer[data-move='headspin'] .sprite { transform-origin: 50% 50%; animation: headspin 0.5s linear infinite; }
.dancer[data-move='firedance'] .sprite { animation: shakeFire 0.1s steps(2) infinite; filter: drop-shadow(0 0 6px #ff7a1a) drop-shadow(0 -4px 10px rgba(255, 60, 0, 0.6)); }
.dancer[data-move='lean'] .sprite { animation: lean 4s ease-in-out infinite; }
.dancer[data-move='matrix'] .sprite { animation: matrix 4s ease-in-out infinite; }

@keyframes swayLR { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(12deg); } }
@keyframes shuffleLR { 0% { transform: translateX(-8px); } 100% { transform: translateX(8px); } }
@keyframes headbang { 50% { transform: translateY(5px) rotate(9deg); } }
@keyframes twist { 0% { transform: skewX(-14deg); } 100% { transform: skewX(14deg) translateY(4px); } }
@keyframes robot { 0% { transform: none; } 25% { transform: rotate(-10deg); } 50% { transform: translateY(-5px); } 75% { transform: rotate(10deg); } }
@keyframes sprinkler { 0% { transform: rotate(-22deg); } 100% { transform: rotate(22deg); } }
@keyframes floss { 0% { transform: translateX(-6px) skewX(12deg); } 100% { transform: translateX(6px) skewX(-12deg); } }
@keyframes moonwalk { 0% { transform: translateX(26px); } 100% { transform: translateX(-26px); } }
@keyframes dab { 0% { transform: none; } 50%, 100% { transform: rotate(-16deg) translateY(4px); } }
@keyframes bodywave { 0%, 100% { transform: none; } 25% { transform: skewX(12deg) scaleY(0.94); } 50% { transform: scaleY(1.05); } 75% { transform: skewX(-12deg) scaleY(0.94); } }
@keyframes kick { 50% { transform: rotate(-18deg) translateY(-8px); } }
@keyframes windmill { from { transform: translateY(34%) rotate(90deg); } to { transform: translateY(34%) rotate(450deg); } }
@keyframes backflip { 0%, 100% { transform: none; } 20% { transform: translateY(4px) scaleY(0.88); } 65% { transform: translateY(-55%) rotate(-360deg); } 85% { transform: rotate(-360deg); } }
@keyframes splits { 0%, 100% { transform: none; } 40%, 75% { transform: scaleY(0.6) scaleX(1.45); } }
@keyframes worm { 0% { transform: translate(14px, 0) rotate(-88deg) skewX(0); } 50% { transform: translate(0, -6px) rotate(-82deg) skewX(16deg); } 100% { transform: translate(-14px, 0) rotate(-88deg) skewX(0); } }
@keyframes headspin { from { transform: translateY(-14%) rotate(180deg) rotateY(0); } to { transform: translateY(-14%) rotate(180deg) rotateY(360deg); } }
@keyframes shakeFire { 0% { transform: translate(-2px, 0); } 100% { transform: translate(2px, -3px); } }
@keyframes lean { 0%, 100% { transform: none; } 25%, 75% { transform: rotate(38deg); } }
@keyframes matrix {
  0%, 100% { transform: none; filter: none; }
  30%, 70% { transform: rotate(-58deg) translateX(-4px); filter: drop-shadow(8px -4px 0 rgba(63, 245, 230, 0.45)) drop-shadow(16px -8px 0 rgba(63, 245, 230, 0.22)); }
}

/* Little extras around the dancer. */
.dancer[data-move='clap']::after, .dancer[data-move='ymca']::after, .dancer[data-move='firedance']::after,
.dancer[data-move='matrix']::after, .dancer[data-move='sprinkler']::after {
  position: absolute; left: 50%; z-index: 4; pointer-events: none; white-space: nowrap; transform: translateX(-50%);
}
.dancer[data-move='clap']::after { content: '👏'; top: -4px; font-size: 20px; animation: blink 0.3s steps(1) infinite; }
.dancer[data-move='ymca']::after { content: 'Y·M·C·A'; top: -12px; font-family: var(--pixel-font); font-size: 10px; color: var(--gold-light); text-shadow: 2px 2px 0 #000; }
.dancer[data-move='firedance']::after { content: '🔥🔥🔥'; bottom: 26px; font-size: 18px; animation: blink 0.25s steps(1) infinite; }
.dancer[data-move='matrix']::after { content: '•  •  •'; top: 30%; font-size: 18px; color: #ddd; animation: bullets 0.8s linear infinite; }
.dancer[data-move='sprinkler']::after { content: '💦'; top: 18%; font-size: 16px; animation: blink 0.4s steps(1) infinite; }
@keyframes bullets { from { transform: translateX(40px); } to { transform: translateX(-140px); } }
.dancer.preview[data-move='ymca']::after { top: 0; font-size: 8px; }


/* ---------- Toasts: icon, title, text, optional buttons ---------- */
.toasts { width: min(calc(100% - 32px), 380px); }
.toast {
  position: relative; display: grid; grid-template-columns: 40px 1fr auto; align-items: start; gap: 10px;
  padding: 12px 10px 12px 12px; line-height: 1.2;
  background: linear-gradient(135deg, #2a1440, #160a22); color: var(--text);
  box-shadow: 0 0 0 3px #000, inset 0 0 0 2px var(--gold-dark), 6px 6px 0 rgba(0, 0, 0, 0.35);
  animation: toastIn 0.3s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.toast.error { box-shadow: 0 0 0 3px #000, inset 0 0 0 2px var(--red, #d7263d), 6px 6px 0 rgba(0, 0, 0, 0.35); }
.toast.rich { background: linear-gradient(135deg, #3a1550, #1a0b2a); box-shadow: 0 0 0 3px #000, inset 0 0 0 2px var(--neon-pink), 0 0 18px rgba(255, 79, 163, 0.35), 6px 6px 0 rgba(0, 0, 0, 0.35); }
.toast.leaving { animation: toastOut 0.25s ease-in forwards; }
.toast-icon { display: grid; place-items: center; width: 40px; height: 40px; font-size: 24px; background: rgba(0, 0, 0, 0.35); box-shadow: 0 0 0 2px #000; }
.toast-body { display: grid; gap: 3px; min-width: 0; font-size: 19px; }
.toast-title { font-family: var(--pixel-font); font-size: 11px; line-height: 1.4; color: var(--gold-light); }
.toast-text { overflow-wrap: anywhere; }
.toast-actions:empty { display: none; }
.toast-actions { display: flex; gap: 8px; margin-top: 4px; }
.toast-close { width: 24px; height: 24px; padding: 0; font-size: 18px; line-height: 1; color: var(--muted); background: none; border: none; cursor: pointer; }
.toast-close:hover { color: var(--text); }
@keyframes toastIn { from { transform: translateX(-40px) scale(0.9); opacity: 0; } }
@keyframes toastOut { to { transform: translateX(-40px); opacity: 0; } }

/* ---------- Vote modal (upgrades, dance battles) ---------- */
.vote-backdrop { z-index: 95; background: radial-gradient(ellipse at 50% 40%, rgba(60, 10, 70, 0.75), rgba(5, 2, 8, 0.9)); }
.modal.vote-modal { width: min(100%, 520px); gap: 12px; }
.modal.vote-modal.pop { animation: votePop 0.4s cubic-bezier(0.2, 1.5, 0.4, 1); }
@keyframes votePop { from { transform: scale(0.6) rotate(-3deg); opacity: 0; } }
.vote-modal-icon { font-size: 54px; line-height: 1; filter: drop-shadow(3px 3px 0 #000); animation: iconBob 1.2s ease-in-out infinite; }
@keyframes iconBob { 50% { transform: translateY(-6px) rotate(-6deg); } }
.vote-modal h2 { margin: 0; font-family: var(--pixel-font); font-size: 15px; line-height: 1.6; color: var(--gold-light); text-shadow: 3px 3px 0 #000; }
.vote-modal-sub { margin: 0; font-size: 20px; color: var(--text); }
.vote-modal-sub small { color: var(--muted); }
.vote-modal-note { margin: 0; font-size: 18px; color: var(--muted); }
.vote-modal-note:empty { display: none; }
.vote-modal-timer { position: relative; height: 12px; background: rgba(0, 0, 0, 0.5); box-shadow: 0 0 0 2px #000; }
.vote-modal-timer span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--neon-pink), var(--gold)); transition: width 0.25s linear; }
.vote-modal-timer::after { content: attr(data-left); position: absolute; right: 0; top: -20px; font-size: 16px; color: var(--muted); }
.vote-modal-choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.vote-modal-choices:empty { display: none; }
.vote-choice {
  position: relative; display: grid; justify-items: center; gap: 6px; flex: 1 1 140px; max-width: 220px; padding: 12px 10px;
  font: inherit; font-size: 21px; color: var(--text); cursor: pointer; border: none;
  background: rgba(0, 0, 0, 0.35); box-shadow: 0 0 0 3px #000, inset 0 0 0 2px rgba(246, 197, 68, 0.4);
  transition: transform 0.12s;
}
.vote-choice:hover:not([disabled]) { transform: translateY(-3px); box-shadow: 0 0 0 3px #000, inset 0 0 0 2px var(--gold), 0 0 16px rgba(246, 197, 68, 0.45); }
.vote-choice[disabled] { opacity: 0.45; cursor: not-allowed; }
.vote-choice.accept { background: rgba(19, 100, 60, 0.6); }
.vote-choice.decline { background: rgba(120, 20, 40, 0.5); }
.vote-choice.chosen { background: rgba(246, 197, 68, 0.22); box-shadow: 0 0 0 3px #000, inset 0 0 0 3px var(--gold), 0 0 22px rgba(246, 197, 68, 0.55); }
.vote-choice-tick { font-size: 15px; color: var(--gold-light); }
.vote-modal-later { justify-self: center; margin-top: 4px; }
.battle-portrait { display: block; width: 52px; height: 94px; }
.battle-portrait svg { width: 100%; height: 100%; shape-rendering: crispEdges; }
.battle-modal.picker .vote-choice { flex: 0 1 120px; font-size: 18px; }
.battle-modal.picker .battle-portrait { width: 40px; height: 72px; }
.battle-choice .battle-portrait { animation: bounce 0.5s steps(2) infinite; }
.battle-choice.opponent .battle-portrait svg { transform: scaleX(-1); }
.winner-card { flex-basis: 260px; background: radial-gradient(circle, rgba(246, 197, 68, 0.35), rgba(0, 0, 0, 0.3)); }
.winner-card .battle-portrait { width: 70px; height: 127px; animation: jump 0.8s ease-in-out infinite; }

/* ---------- Dance battle on the floor ---------- */
.battle-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin: -4px 0 10px; padding: 10px 14px; font-size: 20px; text-align: center; background: linear-gradient(90deg, #4a0d1e, #2a0a3a, #0d2a4a); box-shadow: 0 0 0 3px #000, inset 0 0 0 2px var(--neon-pink), 0 0 20px rgba(255, 79, 163, 0.35); }
.battle-banner small { color: var(--muted); }
.battle-icon { font-size: 26px; }
.battle-time { font-family: var(--pixel-font); font-size: 12px; color: var(--neon-cyan); }
.battle-banner.phase-dance { gap: 18px; padding: 14px; animation: battlePulse 0.5s steps(2) infinite; }
.battle-name { font-family: var(--pixel-font); font-size: 15px; color: #fff; text-shadow: 3px 3px 0 #000; }
.battle-name.left { color: #ff8fc8; }
.battle-name.right { color: #8ff5ee; }
.battle-vs { font-family: var(--pixel-font); font-size: 26px; color: var(--gold); text-shadow: 3px 3px 0 #000, 0 0 14px rgba(246, 197, 68, 0.8); animation: vsShake 0.3s steps(2) infinite; }
@keyframes battlePulse { 50% { box-shadow: 0 0 0 3px #000, inset 0 0 0 2px var(--gold), 0 0 26px rgba(246, 197, 68, 0.5); } }
@keyframes vsShake { 50% { transform: scale(1.15) rotate(-4deg); } }

/* Spectators step up and back to the sides and cheer; the two dancers get the spotlight. */
.battle-mode .dancer { transition: left 0.6s cubic-bezier(0.3, 1.3, 0.5, 1), bottom 0.6s, transform 0.6s; }
.battle-mode .dancer.spectator { bottom: 70px; z-index: 0; transform: translateX(-50%) scale(0.78); filter: brightness(0.8); }
.battle-mode .dancer.spectator:not([data-move]) .sprite { animation: bounce 0.35s steps(2) infinite; }
.battle-mode .dancer.spectator:not([data-move]) .f-rest { animation: frameA 0.7s steps(1) infinite; }
.battle-mode .dancer.spectator:not([data-move]) .f-up { animation: frameB 0.7s steps(1) infinite; }
.battle-mode .dancer.battler { z-index: 3; transform: translateX(-50%) scale(1.18); }
.battle-mode .dancer.battler .shadow { width: 70px; height: 12px; background: radial-gradient(ellipse, rgba(246, 197, 68, 0.75), transparent 70%); }
.battle-mode::before { content: ''; position: absolute; left: 50%; top: 0; z-index: 1; width: 46%; height: 100%; transform: translateX(-50%); pointer-events: none; background: radial-gradient(ellipse at 50% 100%, rgba(255, 246, 220, 0.28), transparent 65%); clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%); }
.battle-mode .dancer.winner { transform: translateX(-50%) scale(1.35); }
.battle-mode .dancer.winner .name::before { content: '👑 '; }
.battle-mode .dancer.loser { filter: grayscale(0.6) brightness(0.8); }

/* ---------- Sign-in (PIN) ---------- */
.auth-screen { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; overflow-y: auto; background: radial-gradient(ellipse at 50% 20%, #3a1550, #0a0410 70%); }
.auth-screen.hidden { display: none; }
.auth-card { display: grid; gap: 12px; width: min(100%, 640px); padding: 28px 22px; text-align: center; background: radial-gradient(ellipse at 50% 0%, var(--felt-light), var(--felt-dark)); box-shadow: 0 0 0 var(--px) #000, 0 0 0 calc(var(--px) * 3) var(--gold), 0 0 0 calc(var(--px) * 4) #000, 0 0 60px rgba(255, 79, 163, 0.45); animation: votePop 0.4s cubic-bezier(0.2, 1.5, 0.4, 1); }
.auth-card h1 { margin: 0; }
.auth-card h2 { margin: 6px 0 0; font-family: var(--pixel-font); font-size: 14px; color: var(--gold-light); text-shadow: 2px 2px 0 #000; }
.auth-step { display: grid; gap: 12px; justify-items: center; }
.auth-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 10px; width: 100%; }
.auth-person { display: grid; justify-items: center; gap: 2px; padding: 10px 6px; font: inherit; color: var(--text); cursor: pointer; border: none; background: rgba(0, 0, 0, 0.3); box-shadow: 0 0 0 3px #000, inset 0 0 0 2px rgba(246, 197, 68, 0.35); transition: transform 0.12s; }
.auth-person:hover, .auth-person:focus-visible { transform: translateY(-3px); box-shadow: 0 0 0 3px #000, inset 0 0 0 2px var(--gold), 0 0 14px rgba(246, 197, 68, 0.45); }
.auth-person b { font-size: 21px; }
.auth-person small, .auth-who small { color: var(--muted); font-size: 16px; }
.auth-avatar { display: block; width: 44px; height: 80px; }
.auth-avatar svg { width: 100%; height: 100%; shape-rendering: crispEdges; }
.auth-avatar.big { width: 52px; height: 94px; }
.auth-person:hover .auth-avatar { animation: bounce 0.4s steps(2) infinite; }
.auth-admin { font: inherit; font-size: 18px; color: var(--muted); background: none; border: none; cursor: pointer; text-decoration: underline; }
.auth-who { display: flex; align-items: center; gap: 12px; text-align: left; }
.auth-who b { display: block; font-size: 24px; }
.pin-boxes { display: flex; justify-content: center; gap: 10px; }
.pin-box { width: 52px; height: 64px; padding: 0; font-family: var(--pixel-font); font-size: 22px; text-align: center; color: var(--gold-light); caret-color: var(--neon-cyan); background: #07040a; border: none; box-shadow: 0 0 0 3px #000, inset 0 0 0 2px var(--gold-dark); -webkit-text-security: disc; }
.pin-box:focus { outline: none; box-shadow: 0 0 0 3px #000, inset 0 0 0 3px var(--neon-cyan), 0 0 14px rgba(63, 245, 230, 0.45); }
.pin-box.filled { box-shadow: 0 0 0 3px #000, inset 0 0 0 2px var(--gold); }
.pin-boxes.shake { animation: pinShake 0.35s steps(6); }
@keyframes pinShake { 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }
.auth-error { min-height: 1.2em; margin: 0; color: #ff8a8a; font-size: 19px; }
.auth-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
@media (max-width: 420px) { .pin-box { width: 44px; height: 56px; } .pin-boxes { gap: 7px; } }
.accounts-title { margin: 18px 0 4px; font-family: var(--pixel-font); font-size: 12px; color: var(--gold-light); }
.accounts-admin { display: grid; gap: 6px; }
.account-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px; background: rgba(0, 0, 0, 0.25); }
.account-row small { color: var(--muted); }

/* ---------- Bar: more drinks, bottles for the floor, smoke break ---------- */
.bar-menu { display: block; }
.bar-menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.bar-sub { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 18px 0 8px; font-family: var(--pixel-font); font-size: 12px; color: var(--gold-light); text-shadow: 2px 2px 0 #000; }
.bar-sub small { font-family: var(--body-font); font-size: 17px; color: var(--muted); text-shadow: none; }
.drink-btn.bottle { background: linear-gradient(160deg, #3a2a08, #1f1405); box-shadow: 0 0 0 3px #000, inset 0 0 0 2px var(--gold), 0 0 12px rgba(246, 197, 68, 0.25); }
.drink-btn.bottle .drink-emoji { animation: bottleWiggle 2.4s ease-in-out infinite; }
@keyframes bottleWiggle { 0%, 80%, 100% { transform: none; } 85% { transform: rotate(-12deg); } 90% { transform: rotate(10deg); } 95% { transform: rotate(-6deg); } }
.smoke-offer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 12px; background: rgba(0, 0, 0, 0.3); box-shadow: 0 0 0 2px #000; }
.bottle-pop { position: absolute; left: 50%; bottom: 30%; z-index: 6; font-size: 54px; transform: translateX(-50%); animation: bottlePop 2.1s ease-out forwards; filter: drop-shadow(3px 3px 0 #000); }
@keyframes bottlePop { 0% { transform: translate(-50%, 40px) scale(0.4); opacity: 0; } 15% { transform: translate(-50%, 0) scale(1.15) rotate(-10deg); opacity: 1; } 25% { transform: translate(-50%, 0) scale(1) rotate(8deg); } 80% { opacity: 1; } 100% { transform: translate(-50%, -30px) scale(1); opacity: 0; } }
.bottle-spark { position: absolute; left: 50%; bottom: 45%; z-index: 6; width: 6px; height: 6px; background: #fff6b0; box-shadow: 0 0 6px #ffe68a; animation: spark 1.4s ease-out forwards; }
@keyframes spark { 0% { transform: translate(0, 0); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(0.3); opacity: 0; } }

/* ---------- Outside: smoking area (and jail) ---------- */
.outside-areas { position: fixed; right: 96px; bottom: 16px; z-index: 45; display: flex; flex-direction: column; gap: 14px; width: min(calc(100% - 112px), 340px); pointer-events: none; }
.outside-areas > * { pointer-events: auto; }
.outside-areas .jail { position: static; width: auto; }
.smoke-area {
  padding: 12px;
  background: linear-gradient(180deg, #7cc4ff 0 46%, #a8d8ff 46% 58%, #6b6b74 58% 62%, #4e4e56 62%);
  box-shadow: 0 0 0 var(--px) #000, 0 0 0 calc(var(--px) * 2) #4f8a4a, 8px 8px 0 calc(var(--px) * 2) rgba(0, 0, 0, 0.5);
}
.smoke-title { margin-bottom: 8px; font-family: var(--pixel-font); font-size: 13px; line-height: 1.5; color: #fff; text-align: center; text-shadow: 2px 2px 0 #000; }
.smoke-spots { display: grid; gap: 10px; max-height: 40vh; overflow-y: auto; }
.smoke-spot { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; align-items: end; padding: 6px; background: rgba(0, 0, 0, 0.45); }
.smoke-spot.me { box-shadow: inset 0 0 0 2px var(--gold); }
.smoke-spot .who { font-size: 18px; color: #e8e2d0; }
.smoke-spot .who strong { color: #fff; }
.smoke-spot .who small { color: #c8d8c8; }
.smoke-spot .button { margin-top: 6px; }
.smoker { position: relative; height: 96px; background: linear-gradient(180deg, transparent 70%, #3a3a42 70%); }
.smoker::before { content: ''; position: absolute; left: 4px; right: 4px; bottom: 6px; height: 8px; background: #7a4a22; box-shadow: 0 0 0 2px #000; }
.smoker svg { position: absolute; left: 50%; bottom: 2px; width: 48px; height: 87px; transform: translateX(-50%); shape-rendering: crispEdges; animation: idle 2.4s steps(2) infinite; }
.smoker .cig { position: absolute; left: calc(50% + 8px); top: 38px; z-index: 1; width: 12px; height: 3px; background: linear-gradient(90deg, #f2f2f2 0 75%, #ff6a1a 75%); box-shadow: 0 0 0 1px #222; transform: rotate(-12deg); animation: ember 1.6s steps(2) infinite; }
@keyframes ember { 50% { filter: brightness(1.6); } }
.smoker .puff { position: absolute; left: calc(50% + 18px); top: 30px; width: 8px; height: 8px; border-radius: 50%; background: rgba(240, 240, 245, 0.85); opacity: 0; animation: puff 2.4s ease-out infinite; }
.smoker .puff.p2 { animation-delay: 0.8s; }
.smoker .puff.p3 { animation-delay: 1.6s; }
@keyframes puff { 0% { transform: translate(0, 0) scale(0.6); opacity: 0.9; } 100% { transform: translate(14px, -34px) scale(2.2); opacity: 0; } }
@media (max-width: 640px) { .outside-areas { right: 16px; bottom: 90px; width: calc(100% - 32px); } }

/* During a dance battle everything else waits. */
.battle-on #dedicateBtn, .battle-on #spinBtn, .battle-on .drink-btn, .battle-on #smokeBtn, .battle-on [data-buy-move],
.battle-on [data-propose], .battle-on [data-donate], .battle-on #pushBtn, .battle-on [data-dance-move], .battle-on .dedicate-to, .battle-on [data-emote] {
  opacity: 0.35; pointer-events: none; filter: grayscale(0.6);
}

/* ---------- Boot: nothing shows until sign-in is done ---------- */
body.booting > :not(.auth-screen):not(.boot-splash) { visibility: hidden !important; }
body.booting { overflow: hidden; }
body.booted > :not(.auth-screen):not(.boot-splash):not(.modal-backdrop):not(.drawer):not(.drawer-backdrop):not(.story-overlay) { animation: appIn 0.45s ease-out; }
@keyframes appIn { from { opacity: 0; transform: translateY(6px); } }
.boot-splash { position: fixed; inset: 0; z-index: 110; display: grid; place-content: center; justify-items: center; gap: 22px; background: radial-gradient(ellipse at 50% 20%, #3a1550, #0a0410 70%); transition: opacity 0.4s; }
body.booted .boot-splash { opacity: 0; pointer-events: none; }
.boot-logo { display: grid; place-items: center; width: 74px; height: 74px; font-family: var(--pixel-font); font-size: 40px; color: #d7263d; background: #fff6dc; box-shadow: 0 0 0 4px #000, 0 0 0 8px var(--gold), 0 0 0 12px #000, 0 0 40px rgba(255, 79, 163, 0.5); animation: bootSpin 1.6s ease-in-out infinite; }
@keyframes bootSpin { 50% { transform: rotateY(180deg); } }
.boot-dots { display: flex; gap: 8px; }
.boot-dots span { width: 10px; height: 10px; background: var(--gold); box-shadow: 0 0 0 2px #000; animation: bootDot 0.9s steps(2) infinite; }
.boot-dots span:nth-child(2) { animation-delay: 0.15s; }
.boot-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bootDot { 50% { transform: translateY(-8px); opacity: 0.4; } }
.dancer .snack { position: absolute; top: -6px; left: -14px; font-size: 24px; animation: bounce 1.4s steps(2) infinite 0.3s; }
.bar-sub.first { margin-top: 12px; }


/* =====================================================================
   🎃 HALLOWEEN SKIN — switched on by the admin (body.season-halloween).
   Mostly a palette swap through the theme tokens, plus spooky extras.
   ===================================================================== */
body.season-halloween {
  --felt: #2a1240;
  --felt-dark: #12061f;
  --felt-light: #4b1f6e;
  --night: #07030c;
  --panel: #140a1f;
  --panel-2: #1e0f2e;
  --gold: #ff8a1f;
  --gold-dark: #a8410a;
  --gold-light: #ffc27a;
  --red: #c21d4b;
  --red-dark: #6e0d27;
  --neon-pink: #ff6a00;
  --neon-cyan: #9dff3a;
  --text: #ffeedd;
  --muted: #c7a6b8;
  --line: rgba(255, 138, 31, 0.3);
  background-color: var(--night);
  background-image:
    radial-gradient(circle at 86% 9%, #fff4c9 0 34px, rgba(255, 220, 140, 0.35) 36px, transparent 110px),
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 33% 7%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 58% 14%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 71% 26%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 22% 33%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 46% 29%, #fff 50%, transparent 51%),
    radial-gradient(ellipse at 50% 120%, rgba(157, 255, 58, 0.14), transparent 55%),
    radial-gradient(ellipse at 50% -10%, rgba(255, 106, 0, 0.22), transparent 55%),
    linear-gradient(180deg, #0d0418, #07030c 60%);
  background-attachment: fixed;
}

/* Header: pumpkin lights and a jack-o'-lantern logo. */
.season-halloween .marquee { background: linear-gradient(#2a0d3d, #120518); }
.season-halloween .bulbs { background-image: radial-gradient(circle, #ff8a1f 0 3px, transparent 4px), radial-gradient(circle, #9dff3a 0 3px, transparent 4px); background-size: 22px 22px, 22px 22px; background-position: 0 0, 11px 0; }
.season-halloween .brand-dice { color: transparent; background: none; box-shadow: none; position: relative; }
.season-halloween .brand-dice::after { content: '🎃'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 40px; color: initial; filter: drop-shadow(0 0 10px rgba(255, 138, 31, 0.8)); animation: pumpkinGlow 2.4s ease-in-out infinite; }
@keyframes pumpkinGlow { 50% { filter: drop-shadow(0 0 18px rgba(255, 138, 31, 1)) brightness(1.15); transform: rotate(-6deg); } }
.season-halloween .neon { text-shadow: 0 0 6px #ff8a1f, 0 0 16px #ff6a00, 3px 3px 0 #000; }

/* Panels: haunted purple felt with a cobweb in the corner. */
.season-halloween .panel { background: radial-gradient(ellipse at 50% 0%, #4b1f6e, #2a1240 45%, #12061f); }
.season-halloween .panel::before {
  content: ''; position: absolute; top: 0; right: 0; z-index: 1; width: 74px; height: 74px; pointer-events: none; opacity: 0.55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%23e8dcf0' stroke-width='1.6'%3E%3Cpath d='M100 0 L0 0 M100 0 L0 50 M100 0 L35 100 M100 0 L100 100 M100 0 L70 100'/%3E%3Cpath d='M78 0 Q80 12 100 18 M55 0 Q60 26 100 38 M30 0 Q42 42 100 62 M8 0 Q24 60 100 88'/%3E%3C/svg%3E") no-repeat top right / contain;
}
.season-halloween .section-title > span:first-child::after { content: ' 🕸️'; font-size: 0.8em; opacity: 0.7; }

/* Dance floor: a graveyard under the full moon, slime-green lights, pumpkin instead of the disco ball. */
.season-halloween .dance-floor {
  background:
    radial-gradient(circle at 18% 16%, #fff4c9 0 22px, rgba(255, 230, 160, 0.25) 24px, transparent 60px),
    linear-gradient(180deg, transparent 0 30%, rgba(0, 0, 0, 0) 30%),
    radial-gradient(ellipse 14px 22px at 8% 42%, #3d3550 98%, transparent 100%),
    radial-gradient(ellipse 12px 18px at 27% 42%, #3d3550 98%, transparent 100%),
    radial-gradient(ellipse 16px 24px at 74% 42%, #3d3550 98%, transparent 100%),
    radial-gradient(ellipse 12px 20px at 93% 42%, #3d3550 98%, transparent 100%),
    linear-gradient(180deg, #120626 0, #2a0f45 40%, transparent 42%),
    conic-gradient(from 45deg, #1d0b2e 25%, #33124a 0 50%, #1d0b2e 0 75%, #33124a 0) 0 0 / 48px 48px;
}
.season-halloween.is-playing .dance-floor::after { background: conic-gradient(from 45deg, rgba(255, 138, 31, 0.32) 25%, transparent 0 50%, rgba(157, 255, 58, 0.22) 0 75%, transparent 0) 0 0 / 96px 96px; }
.season-halloween .spot-a { background: linear-gradient(180deg, rgba(255, 138, 31, 0.45), transparent 90%); }
.season-halloween .spot-b { background: linear-gradient(180deg, rgba(157, 255, 58, 0.35), transparent 90%); }
.season-halloween .disco-ball { background: none !important; box-shadow: none !important; }
.season-halloween .disco-ball::before { background: #3a2a14; }
.season-halloween .disco-ball::after { content: '🎃'; position: absolute; inset: -8px; display: grid; place-items: center; font-size: 46px; filter: drop-shadow(0 0 14px rgba(255, 138, 31, 0.9)); animation: pumpkinSwing 2.6s ease-in-out infinite; transform-origin: 50% -10px; }
@keyframes pumpkinSwing { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(10deg); } }
.season-halloween .dancer .shadow { background: radial-gradient(ellipse, rgba(157, 255, 58, 0.45), transparent 70%); }
.season-halloween .dance-floor .dancers::after {
  content: ''; position: absolute; left: -10%; right: -10%; bottom: -10px; height: 70px; pointer-events: none; z-index: 3;
  background: radial-gradient(ellipse at 20% 80%, rgba(200, 255, 200, 0.22), transparent 60%), radial-gradient(ellipse at 70% 90%, rgba(220, 200, 255, 0.22), transparent 60%);
  filter: blur(6px); animation: graveFog 9s ease-in-out infinite alternate;
}
@keyframes graveFog { to { transform: translateX(6%); } }

/* Buttons, chips, chat: pumpkin and slime. */
.season-halloween .button.green { --b: #5a2a86; --b-dark: #2f1248; }
.season-halloween .chat-launcher { background: radial-gradient(circle at 40% 35%, #ffb35c, #ff8a1f 55%, #a8410a); }
.season-halloween .badge { background: #ff8a1f; }
.season-halloween .toast, .season-halloween .toast.rich { background: linear-gradient(135deg, #2e1146, #140720); }
.season-halloween .modal { background: radial-gradient(ellipse at 50% 0%, #4b1f6e, #12061f); box-shadow: 0 0 0 var(--px) #000, 0 0 0 calc(var(--px) * 3) #ff8a1f, 0 0 0 calc(var(--px) * 4) #000, 0 0 60px rgba(157, 255, 58, 0.35); }
.season-halloween ::selection { background: #ff8a1f; color: #000; }

/* Floating decorations: bats crossing the sky, ghosts drifting, cobwebs in the corners. */
.spooky-layer { position: fixed; inset: 0; z-index: 30; pointer-events: none; overflow: hidden; }
.spooky-layer .bat { opacity: 0.7; }
.spooky-layer .bat { position: absolute; top: var(--y); left: -60px; font-size: calc(26px * var(--s)); animation: batFly var(--d) linear infinite var(--delay); filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.8)); }
@keyframes batFly {
  0% { transform: translate(0, 0) scaleY(1); }
  10% { transform: translate(12vw, -3vh) scaleY(0.6); }
  20% { transform: translate(24vw, 2vh) scaleY(1); }
  30% { transform: translate(36vw, -2vh) scaleY(0.6); }
  40% { transform: translate(48vw, 3vh) scaleY(1); }
  50% { transform: translate(60vw, -1vh) scaleY(0.6); }
  60% { transform: translate(72vw, 2vh) scaleY(1); }
  70% { transform: translate(84vw, -3vh) scaleY(0.6); }
  100% { transform: translate(115vw, 0) scaleY(1); }
}
.spooky-layer .ghost { position: absolute; left: var(--x); bottom: -80px; font-size: 38px; opacity: 0; animation: ghostRise var(--d) ease-in-out infinite var(--delay); }
@keyframes ghostRise {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 0.4; }
  50% { transform: translate(6vw, -55vh); opacity: 0.32; }
  90% { opacity: 0.25; }
  100% { transform: translate(-4vw, -110vh); opacity: 0; }
}
.spooky-layer .web { position: absolute; top: 0; width: 140px; height: 140px; opacity: 0.45;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%23e8dcf0' stroke-width='1.2'%3E%3Cpath d='M0 0 L100 0 M0 0 L100 45 M0 0 L70 100 M0 0 L0 100 M0 0 L35 100'/%3E%3Cpath d='M22 0 Q20 14 0 20 M45 0 Q40 30 0 42 M70 0 Q58 48 0 66 M92 0 Q76 64 0 90'/%3E%3C/svg%3E") no-repeat top left / contain; }
.spooky-layer .web-tl { left: 0; }
.spooky-layer .web-tr { right: 0; transform: scaleX(-1); }
.spooky-layer .web::after { content: '🕷️'; position: absolute; left: 60px; top: 0; font-size: 18px; animation: spiderDrop 6s ease-in-out infinite; }
@keyframes spiderDrop { 0%, 100% { transform: translateY(10px); } 50% { transform: translateY(70px); } }
@media (prefers-reduced-motion: reduce) { .spooky-layer { display: none; } }
.season-toggle { color: #ffc27a; }

/* Up next: long queues scroll inside the panel (same height as History). */
.bets-panel .bet-list { max-height: 520px; overflow-y: auto; overscroll-behavior: contain; padding: 4px 6px 4px 4px; scrollbar-width: thin; scrollbar-color: var(--gold-dark) rgba(0, 0, 0, 0.3); }

/* Bar tabs: one category at a time. */
.bar-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 10px; }
.bar-tab { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 12px; font: inherit; font-size: 20px; color: var(--muted); cursor: pointer; border: none; background: rgba(0, 0, 0, 0.35); box-shadow: 0 0 0 3px #000; transition: transform 0.1s; }
.bar-tab small { padding: 0 5px; font-size: 15px; color: var(--muted); background: rgba(255, 255, 255, 0.08); }
.bar-tab:hover { color: var(--text); transform: translateY(-1px); }
.bar-tab.active { color: #2a1600; background: var(--gold); box-shadow: 0 0 0 3px #000, inset 0 -4px 0 var(--gold-dark); }
.bar-tab.active small { color: #2a1600; background: rgba(0, 0, 0, 0.12); }
.bar-tab-body { animation: tabIn 0.2s ease-out; }
@keyframes tabIn { from { opacity: 0; transform: translateY(4px); } }
.bar-note { margin: 0 0 10px; font-size: 18px; color: var(--muted); }
.bar-panel.no-recipient label[for="barTo"], .bar-panel.no-recipient #barTo { display: none; }

/* ---------- Pharmacy: toilet + dizzy until the pill kicks in ---------- */
.toilet-area {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.08) 2px, transparent 2px) 0 0 / 24px 24px,
    linear-gradient(0deg, rgba(0, 0, 0, 0.08) 2px, transparent 2px) 0 0 / 24px 24px,
    linear-gradient(180deg, #cfe9f2 0 62%, #8fb7c4 62%);
  box-shadow: 0 0 0 var(--px) #000, 0 0 0 calc(var(--px) * 2) #4a90a8, 8px 8px 0 calc(var(--px) * 2) rgba(0, 0, 0, 0.5);
}
.toilet-area .smoke-title { color: #fff; }
.patient { position: relative; height: 96px; background: linear-gradient(180deg, transparent 72%, #6f97a3 72%); }
.patient svg { position: absolute; left: 50%; bottom: 2px; width: 48px; height: 87px; transform: translateX(-50%); shape-rendering: crispEdges; animation: idle 1.2s steps(2) infinite; }
.patient .pill { position: absolute; left: calc(50% + 10px); top: 34px; font-size: 14px; animation: pillUp 2.4s ease-in-out infinite; }
.patient .water { position: absolute; left: calc(50% - 30px); top: 44px; font-size: 18px; animation: sip 2.4s ease-in-out infinite; }
@keyframes pillUp { 0%, 30% { transform: translate(0, 0); opacity: 1; } 55% { transform: translate(-12px, -6px); opacity: 1; } 60%, 100% { opacity: 0; } }
@keyframes sip { 0%, 55% { transform: none; } 70% { transform: translate(12px, -8px) rotate(-30deg); } 85% { transform: translate(12px, -8px) rotate(-60deg); } 100% { transform: none; } }
.med-btn .med-cures { font-size: 15px; color: var(--muted); line-height: 1; }

/* Back on the floor with red eyes, staggering about until the pill works. */
.dancer.sick:not([data-move]) .sprite,
.is-playing .dancer.sick:not([data-move]) .sprite { animation: dizzy 6.4s ease-in-out infinite; }
.dancer.sick:not([data-move]) .f-rest { animation: frameA 1.6s steps(1) infinite; }
.dancer.sick:not([data-move]) .f-push { animation: frameB 1.6s steps(1) infinite; }
.dancer.sick:not([data-move])::after { content: '💫'; position: absolute; top: -8px; left: 50%; z-index: 4; font-size: 20px; animation: dizzyStars 1.2s linear infinite; pointer-events: none; }
.dancer.sick .name::after { content: ' 🤒'; }
@keyframes dizzy {
  0% { transform: rotate(0) translateX(0); }
  8% { transform: rotate(-14deg) translateX(-10px); }
  16% { transform: rotate(10deg) translateX(14px); }
  22% { transform: rotate(-6deg) translateX(4px) translateY(4px); }
  30% { transform: rotate(18deg) translateX(18px); }
  34% { transform: rotate(18deg) translateX(18px) scaleY(0.9); }
  42% { transform: rotateY(180deg) rotate(-8deg); }
  50% { transform: rotate(-20deg) translateX(-16px) translateY(3px); }
  58% { transform: rotate(4deg) translateY(-12px); }
  64% { transform: rotate(-4deg); }
  72% { transform: rotate(22deg) translateX(10px) translateY(6px); }
  80% { transform: rotate(-12deg) translateX(-6px); }
  88% { transform: rotateY(360deg) rotate(6deg); }
  100% { transform: rotate(0) translateX(0); }
}
@keyframes dizzyStars { from { transform: translateX(-50%) rotate(0); } to { transform: translateX(-50%) rotate(360deg); } }
/* Tripping: colours cycle through the rainbow. */
.dancer.sick .sprite svg { animation: trip 2.6s linear infinite; }
@keyframes trip { 0% { filter: hue-rotate(0) saturate(1.4); } 50% { filter: hue-rotate(180deg) saturate(2); } 100% { filter: hue-rotate(360deg) saturate(1.4); } }
.dancer.sick .name::after { content: ' 😵'; }

/* A row with a single panel spans the full width. */
.row.single { grid-template-columns: 1fr; }

/* Admin: give coins */
.admin-coins { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.give-coins { z-index: 85; }
.give-coins-modal { width: min(100%, 440px); text-align: left; }
.give-coins-modal h2 { text-align: center; font-family: var(--pixel-font); font-size: 16px; color: var(--gold-light); }
.give-coins-modal .dialog-icon { text-align: center; }
.give-quick { display: flex; flex-wrap: wrap; gap: 8px; }

/* Bar as an offcanvas: a little wider for the menu grid. */
.bar-drawer { width: min(100%, 620px); }
.bar-drawer .bar-menu-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.bar-drawer .bar-tabs { flex-wrap: nowrap; gap: 5px; }
.bar-drawer .bar-tab { flex: 1 1 0; min-width: 0; padding: 0 4px; gap: 4px; font-size: 17px; white-space: nowrap; }
.bar-drawer .bar-tab small { font-size: 13px; padding: 0 3px; }
@media (max-width: 520px) { .bar-drawer .bar-tabs { flex-wrap: wrap; } .bar-drawer .bar-tab { flex: 1 1 30%; } }

/* Roulette: a plain button in the player; the wheel shows in a modal only while it spins. */
.player-extras { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 14px; padding-top: 12px; border-top: 3px dashed rgba(246, 197, 68, 0.25); }
.roulette-hint { font-size: 18px; color: var(--muted); }
.roulette-hint b { color: var(--gold-light); }
.wheel-backdrop { z-index: 88; }
.modal.wheel-modal { width: min(100%, 460px); padding: 20px; animation: votePop 0.35s cubic-bezier(0.2, 1.5, 0.4, 1); }
.wheel-modal .wheel-wrap { margin: 6px auto; }
.wheel-modal #wheelBy { text-align: center; }
/* Spin sits in the player's button row; the separate strip only shows when nothing is playing. */
.player-extras.empty-extras { display: none; }
.control-row.reactions .spin-btn { margin-left: 4px; }
.control-row.reactions .roulette-hint { font-size: 17px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roulette-hint:empty { display: none; }
#spinBtn.spin-btn { width: auto; min-width: 0; padding: 0 16px; }

/* Emoji buttons for playlist names (new playlist + rename dialog). */
.emoji-row { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 4px; }
.emoji-row button { width: 34px; height: 30px; padding: 0; font-size: 17px; background: var(--panel-2); border: none; cursor: pointer; box-shadow: 0 0 0 2px #000; }
.emoji-row button:hover { background: #2c1d3a; transform: translateY(-1px); }
.dialog-emojis { justify-content: center; }

/* Someone mentioned you in the chat. */
.chat-launcher.mentioned { animation: mentionWiggle 0.6s ease-in-out 3; box-shadow: 0 0 0 4px #000, 0 0 22px var(--neon-pink); }
@keyframes mentionWiggle { 25% { transform: rotate(-12deg) scale(1.08); } 75% { transform: rotate(12deg) scale(1.08); } }

/* Admin: bar sounds */
.sound-admin { display: grid; gap: 6px; max-height: 520px; overflow-y: auto; padding-right: 6px; }
.sound-library { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.sound-library small { flex-basis: 100%; color: var(--muted); }
.sound-chip { display: inline-flex; align-items: center; gap: 2px; padding: 2px 4px 2px 8px; font-size: 18px; background: rgba(0, 0, 0, 0.3); box-shadow: 0 0 0 2px #000; }
.sound-chip .icon-button { width: 30px; height: 30px; font-size: 15px; }
.sound-group { margin: 10px 0 2px; font-family: var(--pixel-font); font-size: 11px; color: var(--gold-light); }
.sound-row { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(150px, 1.3fr) auto auto; align-items: center; gap: 8px; padding: 4px 6px; background: rgba(0, 0, 0, 0.22); }
.sound-row select { margin: 0; min-height: 36px; font-size: 18px; }
.sound-item { font-size: 19px; }

/* ---------- 🔔 Notifications & app install ---------- */
.notify-backdrop { z-index: 92; }
.modal.notify-modal { width: min(100%, 560px); max-height: calc(100vh - 32px); overflow-y: auto; text-align: left; gap: 12px; }
.notify-modal h2 { text-align: center; font-family: var(--pixel-font); font-size: 16px; color: var(--gold-light); }
.notify-modal .dialog-icon { text-align: center; }
.notify-device { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; background: rgba(0, 0, 0, 0.3); box-shadow: 0 0 0 2px #000, inset 0 0 0 2px var(--gold-dark); }
.notify-device.on { box-shadow: 0 0 0 2px #000, inset 0 0 0 2px #6be08a; }
.notify-device span { flex: 1 1 auto; font-size: 20px; }
.notify-insecure { padding: 10px 14px; font-size: 19px; background: rgba(120, 20, 40, 0.35); box-shadow: 0 0 0 2px #000, inset 0 0 0 2px var(--red); }
.notify-insecure ol { margin: 6px 0 0; padding-left: 22px; display: grid; gap: 6px; }
.notify-insecure a { color: var(--gold-light); text-decoration: underline; word-break: break-all; }
.notify-install { justify-self: stretch; }
.notify-list { display: grid; gap: 4px; }
.notify-row { display: grid; grid-template-columns: 26px 30px 1fr; align-items: center; gap: 6px; padding: 6px 8px; font-size: 19px; cursor: pointer; background: rgba(0, 0, 0, 0.22); }
.notify-row:hover { background: rgba(0, 0, 0, 0.35); }
.notify-row input { width: 20px; height: 20px; margin: 0; accent-color: var(--gold); }
.notify-emoji { font-size: 20px; text-align: center; }

/* ---------- Jail: the person inside can't touch anything ---------- */
body.in-jail main :is(button, input, select, textarea, a):not(#soundBtn),
body.in-jail .marquee :is(form, #addSongForm, #meBtn, [data-open-drawer], #storyBtn),
body.in-jail .drawer .drawer-body :is(button, input, select, textarea, a),
body.in-jail [data-open-drawer],
body.in-jail #chat form,
body.in-jail .dancer,
body.in-jail .profile-panel :is(button):not(.close) {
  pointer-events: none !important;
  opacity: 0.35;
  filter: grayscale(0.8);
}
.jail-banner {
  position: fixed; left: 50%; top: 86px; z-index: 46; transform: translateX(-50%);
  max-width: calc(100% - 32px); padding: 10px 16px; font-size: 20px; text-align: center; color: #fff;
  background: repeating-linear-gradient(90deg, #1a1a22 0 14px, #2b2b36 14px 18px);
  box-shadow: 0 0 0 3px #000, inset 0 0 0 2px #ff6b6b, 6px 6px 0 rgba(0, 0, 0, 0.45);
}
.jail-banner b { color: #ff8a8a; }


/* ---------- 🚨 Emergency stop: always on screen, above everything ---------- */
.emergency-btn {
  position: fixed; left: 16px; bottom: 16px; z-index: 140;
  display: grid; justify-items: center; align-content: center; gap: 1px;
  width: 64px; height: 64px; padding: 0; border: none; border-radius: 50%; cursor: pointer;
  font-family: var(--pixel-font); color: #fff;
  background: radial-gradient(circle at 35% 30%, #ff6b6b, #d7263d 55%, #7d0f1f);
  box-shadow: 0 0 0 4px #000, 0 0 0 7px #f6c544, 0 0 0 10px #000, 0 6px 18px rgba(215, 38, 61, 0.6);
  transition: transform 0.1s;
}
.emergency-btn:hover { transform: scale(1.06); }
.emergency-btn:active { transform: scale(0.94); }
.emergency-btn .em-icon { font-size: 22px; line-height: 1; }
.emergency-btn .em-text { font-size: 7px; letter-spacing: 1px; }
.emergency-btn.stopped { background: radial-gradient(circle at 35% 30%, #8affb1, #1f8f4e 55%, #0c4a2c); box-shadow: 0 0 0 4px #000, 0 0 0 7px #fff, 0 0 0 10px #000, 0 0 24px rgba(107, 224, 138, 0.8); animation: emPulse 1.2s ease-in-out infinite; }
.emergency-btn.stopped .em-icon { font-size: 20px; }
@keyframes emPulse { 50% { transform: scale(1.08); } }
.emergency-btn:disabled { opacity: 0.6; }
/* Toasts move up to make room for the button. */
.toasts { bottom: 96px; }
/* While silenced: a red frame around the page so everyone knows why it's quiet. */
body.emergency-on::after { content: '🚨 SOUND STOPPED'; position: fixed; inset: 0; z-index: 139; pointer-events: none; padding-top: 4px; text-align: center; font-family: var(--pixel-font); font-size: 11px; color: #fff; text-shadow: 2px 2px 0 #000; box-shadow: inset 0 0 0 6px #d7263d; animation: emFrame 1.6s steps(2) infinite; }
@keyframes emFrame { 50% { box-shadow: inset 0 0 0 6px #7d0f1f; } }
.emergency-btn.stopped .em-text { font-size: 6px; letter-spacing: 0; }

/* ---------- 🏇 Racecourse ---------- */
.race-backdrop { z-index: 94; align-items: start; overflow-y: auto; padding: 12px; }
.race-window { width: fit-content; max-width: 100%; margin: 0 auto; padding: 12px; display: grid; gap: 10px; background: radial-gradient(ellipse at 50% 0%, #1d5a34, #0b2a18); box-shadow: 0 0 0 4px #000, 0 0 0 8px var(--gold), 0 0 0 12px #000, 0 0 50px rgba(246, 197, 68, 0.3); }
.race-head { display: flex; align-items: center; gap: 10px; }
.race-title { flex: 1 1 auto; font-family: var(--pixel-font); font-size: 14px; color: var(--gold-light); text-shadow: 2px 2px 0 #000; }
.race-head .icon-button { width: 40px; height: 40px; font-size: 24px; color: var(--text); }
.race-canvas { display: block; image-rendering: pixelated; image-rendering: crisp-edges; box-shadow: 0 0 0 3px #000; background: #000; max-width: 100%; }
.race-comment { min-height: 1.4em; padding: 6px 10px; font-size: 20px; color: var(--text); background: rgba(0, 0, 0, 0.45); box-shadow: 0 0 0 2px #000; }
.race-board { display: grid; gap: 8px; }
.race-stake { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 19px; }
.race-horses { display: grid; gap: 6px; }
.race-horse { display: grid; grid-template-columns: 34px minmax(140px, 1fr) 64px auto; align-items: center; gap: 10px; padding: 6px 10px; background: rgba(0, 0, 0, 0.3); box-shadow: 0 0 0 2px #000; }
.race-horse.backed { box-shadow: 0 0 0 2px #000, inset 0 0 0 2px var(--gold-dark); }
.race-horse.won { background: rgba(246, 197, 68, 0.22); box-shadow: 0 0 0 2px #000, inset 0 0 0 2px var(--gold), 0 0 16px rgba(246, 197, 68, 0.4); }
.silk { display: grid; place-items: center; width: 30px; height: 30px; font-family: var(--pixel-font); font-size: 11px; color: #fff; text-shadow: 1px 1px 0 #000; background: linear-gradient(var(--cap) 0 30%, var(--silk) 30%); box-shadow: 0 0 0 2px #000; }
.race-name { display: grid; line-height: 1.1; }
.race-name b { font-size: 20px; }
.race-name small { font-size: 15px; color: var(--muted); }
.race-name .off { opacity: 0.25; }
.race-odds { display: grid; justify-items: end; line-height: 1.1; }
.race-odds b { font-family: var(--pixel-font); font-size: 11px; color: var(--gold-light); }
.race-odds small { font-size: 15px; color: var(--muted); }
.race-act { display: grid; justify-items: end; gap: 2px; min-width: 96px; }
.race-act small { font-size: 15px; color: var(--muted); }
.race-act .mine { color: var(--gold-light); }
.place { font-family: var(--pixel-font); font-size: 10px; color: var(--text); }
.place.p1 { color: var(--gold); }
.race-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; font-size: 17px; color: var(--muted); }
.race-fair { font-family: ui-monospace, monospace; font-size: 13px; }
.race-payouts { padding: 6px 10px; font-size: 19px; background: rgba(19, 100, 60, 0.45); box-shadow: 0 0 0 2px #000; }
@media (max-width: 560px) { .race-horse { grid-template-columns: 30px 1fr 56px; } .race-act { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; } }

/* Race countdown: on the 🏇 button and big in the race window */
#raceDot[data-stage] { min-width: 34px; text-align: center; font-variant-numeric: tabular-nums; }
#raceDot[data-stage="betting"] { animation: none; background: #1f8f4e; }
#raceDot[data-stage="soon"] { background: #d7263d; animation: blink 0.5s steps(1) infinite; }
#raceDot[data-stage="live"] { background: #d7263d; animation: blink 1s steps(1) infinite; }
#raceDot[data-stage="result"] { background: var(--gold-dark); animation: none; }
.race-countdown { padding: 6px 12px; font-family: var(--pixel-font); font-size: 14px; color: #fff; text-shadow: 2px 2px 0 #000; background: #1f8f4e; box-shadow: 0 0 0 3px #000; font-variant-numeric: tabular-nums; }
.race-countdown[data-stage="soon"] { background: #d7263d; animation: raceTick 0.5s steps(2) infinite; }
.race-countdown[data-stage="live"] { background: #7d0f1f; }
.race-countdown[data-stage="result"] { background: var(--gold-dark); }
@keyframes raceTick { 50% { transform: scale(1.08); } }

/* ---------- Dance battle timeline (rhythm game) ---------- */
.rhythm { position: relative; display: grid; gap: 8px; margin: 0 0 10px; padding: 10px; background: linear-gradient(180deg, #160a24, #0c0616); box-shadow: 0 0 0 3px #000, inset 0 0 0 2px #5b2a86, 0 0 22px rgba(255, 79, 163, 0.25); }
.rhythm-row { display: grid; grid-template-columns: 132px 1fr; align-items: center; gap: 8px; }
.rhythm-who { display: grid; gap: 3px; min-width: 0; padding: 6px 8px; background: #0a0512; box-shadow: inset 0 0 0 2px #2c1844; }
.rhythm-row.challenger .rhythm-who { box-shadow: inset 0 0 0 2px #ff8fc8; }
.rhythm-row.opponent .rhythm-who { box-shadow: inset 0 0 0 2px #8ff5ee; }
.rw-name { overflow: hidden; font-size: 15px; white-space: nowrap; text-overflow: ellipsis; color: #fff; }
.rw-name em { padding: 1px 4px; font-family: var(--pixel-font); font-size: 8px; font-style: normal; color: #000; background: var(--gold); }
.rw-score { font-family: var(--pixel-font); font-size: 14px; color: var(--gold); text-shadow: 2px 2px 0 #000; }
.rw-combo { min-height: 12px; font-family: var(--pixel-font); font-size: 9px; color: #ff9a3c; }
.rhythm-track { position: relative; height: 66px; overflow: hidden; background:
  repeating-linear-gradient(90deg, transparent 0 39px, rgba(255, 255, 255, 0.05) 39px 40px),
  linear-gradient(180deg, #1d0f30, #120821 50%, #1d0f30); box-shadow: inset 0 0 0 2px #000, inset 0 0 0 4px #2c1844; }
.rhythm-row.mine .rhythm-track { height: 74px; box-shadow: inset 0 0 0 2px #000, inset 0 0 0 4px var(--gold), 0 0 14px rgba(246, 197, 68, 0.3); }
.rhythm-line { position: absolute; top: 4px; bottom: 4px; left: 62px; width: 4px; background: var(--gold); box-shadow: 0 0 10px var(--gold), 0 0 22px rgba(246, 197, 68, 0.6); }
.rhythm-line::before { content: ''; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; transform: translate(-50%, -50%); box-shadow: inset 0 0 0 3px rgba(246, 197, 68, 0.75); }
.rhythm-notes { position: absolute; inset: 0; }
.rnote { position: absolute; top: 50%; left: -21px; display: grid; place-items: center; width: 42px; height: 42px; visibility: hidden; color: #000; box-shadow: 0 0 0 3px #000, inset -4px -4px 0 rgba(0, 0, 0, 0.28), inset 4px 4px 0 rgba(255, 255, 255, 0.35); will-change: transform; }
.rnote b { font-family: var(--pixel-font); font-size: 15px; line-height: 1; text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5); }
.rnote i { position: absolute; top: -9px; right: -11px; font-size: 16px; font-style: normal; filter: drop-shadow(1px 1px 0 #000); }
.rnote.d4, .rnote.d5 { box-shadow: 0 0 0 3px #000, 0 0 12px #fff, inset -4px -4px 0 rgba(0, 0, 0, 0.28), inset 4px 4px 0 rgba(255, 255, 255, 0.35); }
.rnote.d5::after { content: '★'; position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--gold); text-shadow: 1px 1px 0 #000; }
.k1 { background: #3ddc84; } .k2 { background: #ff4f6d; } .k3 { background: #f6c544; } .k4 { background: #4fa3ff; } .k5 { background: #c77dff; }
.rnote.done { transition: opacity 0.25s, filter 0.25s; }
.rnote.j-perfect, .rnote.j-great, .rnote.j-good { opacity: 0; filter: brightness(2.2); }
.rnote.j-miss { opacity: 0.35; filter: grayscale(1); }
.rnote.j-miss b::after { content: '✗'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; color: #ff2d55; text-shadow: 2px 2px 0 #000; }
.rhythm-judge { position: absolute; top: 50%; left: 92px; z-index: 2; font-family: var(--pixel-font); font-size: 13px; opacity: 0; pointer-events: none; text-shadow: 2px 2px 0 #000; transform: translateY(-50%); }
.rhythm-judge small { font-size: 10px; color: #fff; }
.rhythm-judge u { font-size: 10px; color: #ff9a3c; text-decoration: none; }
.rhythm-judge.pop { animation: judgePop 0.7s ease-out forwards; }
.rhythm-judge.j-perfect { color: var(--gold); } .rhythm-judge.j-great { color: #3ddc84; } .rhythm-judge.j-good { color: var(--neon-cyan); } .rhythm-judge.j-miss { color: #ff4f6d; }
@keyframes judgePop { 0% { opacity: 1; transform: translateY(-50%) scale(1.5); } 25% { transform: translateY(-50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-110%); } }
.rhythm-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; }
.rhythm-next { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 17px; }
.rn-label { font-family: var(--pixel-font); font-size: 9px; color: var(--muted); }
.rn-key { display: inline-grid; place-items: center; width: 24px; height: 24px; font-family: var(--pixel-font); font-size: 11px; color: #000; box-shadow: 0 0 0 2px #000; }
.rn-stars { font-size: 12px; color: var(--gold); }
.rn-left { font-family: var(--pixel-font); font-size: 9px; color: var(--muted); }
.rhythm-watch { font-size: 15px; color: var(--muted); }
.rhythm-pads { display: flex; gap: 8px; }
.rpad { width: 54px; height: 46px; font-family: var(--pixel-font); font-size: 17px; color: #000; cursor: pointer; border: 0; touch-action: manipulation; box-shadow: 0 0 0 3px #000, inset -4px -4px 0 rgba(0, 0, 0, 0.3), inset 4px 4px 0 rgba(255, 255, 255, 0.35), 0 5px 0 #000; transition: transform 0.05s; }
.rpad.down { animation: padDown 0.16s steps(2); }
@keyframes padDown { 0% { transform: translateY(4px); filter: brightness(1.6); } 100% { transform: none; } }
.rhythm-count { position: absolute; inset: 0; z-index: 3; display: none; place-items: center; font-family: var(--pixel-font); font-size: 48px; color: var(--gold); pointer-events: none; text-shadow: 4px 4px 0 #000, 0 0 24px rgba(246, 197, 68, 0.8); background: rgba(8, 3, 14, 0.45); }
.rhythm-count.on { display: grid; animation: countBeat 1s steps(4) infinite; }
@keyframes countBeat { 0% { transform: scale(1.15); } 50% { transform: scale(1); } }
.battle-scores { font-size: 15px; color: var(--gold); }
@media (max-width: 640px) {
  .rhythm-row { grid-template-columns: 1fr; gap: 4px; }
  .rhythm-who { grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; padding: 4px 8px; }
  .rhythm-pads { width: 100%; }
  .rpad { flex: 1; width: auto; height: 56px; }
}

/* While battling, the timeline pads replace your usual move buttons. */
.battle-on #moveBar { display: none; }

/* ---------- Stash: sold out, and the police chase ---------- */
.stash-stock { display: grid; gap: 6px; margin: 0 0 10px; padding: 10px 12px; }
.stash-stock.in { grid-template-columns: auto 1fr; align-items: center; background: #0d2416; box-shadow: inset 0 0 0 2px #2f8f57; }
.stash-stock.in small { grid-column: 1 / -1; color: var(--muted); }
.stash-left { justify-self: end; font-family: var(--pixel-font); font-size: 11px; color: #3ddc84; }
.stash-stock.out { text-align: center; background: repeating-linear-gradient(45deg, #2a0a10 0 14px, #1c060b 14px 28px); box-shadow: inset 0 0 0 3px #ff4f6d, 0 0 18px rgba(255, 79, 109, 0.25); }
.stash-out-title { font-family: var(--pixel-font); font-size: 18px; color: #ff4f6d; text-shadow: 3px 3px 0 #000; }
.stash-stock.out p { margin: 0; font-size: 15px; line-height: 1.35; }
.stash-run-btn { justify-self: center; font-size: 16px; }
.bar-menu-grid.sold-out { opacity: 0.4; filter: grayscale(0.7); }

.rhythm.chase { box-shadow: 0 0 0 3px #000, inset 0 0 0 2px #1f5fd1, 0 0 22px rgba(79, 163, 255, 0.3); }
.rhythm-row.runner .rhythm-who { box-shadow: inset 0 0 0 2px #3ddc84; }
.chase-street { --gap: 45; position: relative; height: 112px; overflow: hidden; image-rendering: pixelated; box-shadow: inset 0 0 0 2px #000; }
.chase-sky { position: absolute; inset: 0; background: linear-gradient(180deg, #070a22 0 30%, #12143c 30% 55%, #24185a 55%); }
.chase-sky::before { content: ''; position: absolute; top: 10px; right: 12%; width: 18px; height: 18px; background: #fff4c2; box-shadow: 0 0 0 3px #e9d98a, 0 0 18px rgba(255, 244, 194, 0.6); }
.chase-sky::after { content: ''; position: absolute; inset: 0 0 50%; background-image: radial-gradient(#fff 0.8px, transparent 1.2px); background-size: 37px 23px; opacity: 0.6; }
.chase-city { position: absolute; left: 0; right: 0; background-repeat: repeat-x; }
.chase-city.far { bottom: 30px; height: 54px; background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='54' shape-rendering='crispEdges'><rect x='0' y='27' width='22' height='27' fill='%232f2763'/><rect x='3' y='31' width='2' height='3' fill='%237d6fd0'/><rect x='8' y='31' width='2' height='3' fill='%233a3175'/><rect x='13' y='31' width='2' height='3' fill='%237d6fd0'/><rect x='18' y='31' width='2' height='3' fill='%233a3175'/><rect x='3' y='37' width='2' height='3' fill='%233a3175'/><rect x='8' y='37' width='2' height='3' fill='%237d6fd0'/><rect x='13' y='37' width='2' height='3' fill='%237d6fd0'/><rect x='18' y='37' width='2' height='3' fill='%233a3175'/><rect x='3' y='43' width='2' height='3' fill='%237d6fd0'/><rect x='8' y='43' width='2' height='3' fill='%233a3175'/><rect x='13' y='43' width='2' height='3' fill='%237d6fd0'/><rect x='18' y='43' width='2' height='3' fill='%233a3175'/><rect x='3' y='49' width='2' height='3' fill='%233a3175'/><rect x='8' y='49' width='2' height='3' fill='%233a3175'/><rect x='13' y='49' width='2' height='3' fill='%233a3175'/><rect x='18' y='49' width='2' height='3' fill='%237d6fd0'/><rect x='26' y='33' width='26' height='21' fill='%232f2763'/><rect x='29' y='37' width='2' height='3' fill='%237d6fd0'/><rect x='34' y='37' width='2' height='3' fill='%233a3175'/><rect x='39' y='37' width='2' height='3' fill='%233a3175'/><rect x='44' y='37' width='2' height='3' fill='%237d6fd0'/><rect x='29' y='43' width='2' height='3' fill='%237d6fd0'/><rect x='34' y='43' width='2' height='3' fill='%233a3175'/><rect x='39' y='43' width='2' height='3' fill='%233a3175'/><rect x='44' y='43' width='2' height='3' fill='%237d6fd0'/><rect x='29' y='49' width='2' height='3' fill='%233a3175'/><rect x='34' y='49' width='2' height='3' fill='%233a3175'/><rect x='39' y='49' width='2' height='3' fill='%233a3175'/><rect x='44' y='49' width='2' height='3' fill='%233a3175'/><rect x='52' y='33' width='30' height='21' fill='%232f2763'/><rect x='55' y='37' width='2' height='3' fill='%233a3175'/><rect x='60' y='37' width='2' height='3' fill='%233a3175'/><rect x='65' y='37' width='2' height='3' fill='%233a3175'/><rect x='70' y='37' width='2' height='3' fill='%233a3175'/><rect x='75' y='37' width='2' height='3' fill='%233a3175'/><rect x='55' y='43' width='2' height='3' fill='%233a3175'/><rect x='60' y='43' width='2' height='3' fill='%237d6fd0'/><rect x='65' y='43' width='2' height='3' fill='%237d6fd0'/><rect x='70' y='43' width='2' height='3' fill='%233a3175'/><rect x='75' y='43' width='2' height='3' fill='%237d6fd0'/><rect x='55' y='49' width='2' height='3' fill='%233a3175'/><rect x='60' y='49' width='2' height='3' fill='%233a3175'/><rect x='65' y='49' width='2' height='3' fill='%233a3175'/><rect x='70' y='49' width='2' height='3' fill='%233a3175'/><rect x='75' y='49' width='2' height='3' fill='%233a3175'/><rect x='82' y='4' width='14' height='50' fill='%232f2763'/><rect x='85' y='8' width='2' height='3' fill='%233a3175'/><rect x='90' y='8' width='2' height='3' fill='%237d6fd0'/><rect x='85' y='14' width='2' height='3' fill='%233a3175'/><rect x='90' y='14' width='2' height='3' fill='%237d6fd0'/><rect x='85' y='20' width='2' height='3' fill='%233a3175'/><rect x='90' y='20' width='2' height='3' fill='%233a3175'/><rect x='85' y='26' width='2' height='3' fill='%233a3175'/><rect x='90' y='26' width='2' height='3' fill='%233a3175'/><rect x='85' y='32' width='2' height='3' fill='%233a3175'/><rect x='90' y='32' width='2' height='3' fill='%233a3175'/><rect x='85' y='38' width='2' height='3' fill='%233a3175'/><rect x='90' y='38' width='2' height='3' fill='%233a3175'/><rect x='85' y='44' width='2' height='3' fill='%233a3175'/><rect x='90' y='44' width='2' height='3' fill='%233a3175'/><rect x='85' y='50' width='2' height='3' fill='%233a3175'/><rect x='90' y='50' width='2' height='3' fill='%233a3175'/><rect x='100' y='33' width='14' height='21' fill='%232f2763'/><rect x='103' y='37' width='2' height='3' fill='%233a3175'/><rect x='108' y='37' width='2' height='3' fill='%233a3175'/><rect x='103' y='43' width='2' height='3' fill='%233a3175'/><rect x='108' y='43' width='2' height='3' fill='%233a3175'/><rect x='103' y='49' width='2' height='3' fill='%233a3175'/><rect x='108' y='49' width='2' height='3' fill='%233a3175'/><rect x='116' y='7' width='14' height='47' fill='%232f2763'/><rect x='119' y='11' width='2' height='3' fill='%233a3175'/><rect x='124' y='11' width='2' height='3' fill='%233a3175'/><rect x='119' y='17' width='2' height='3' fill='%237d6fd0'/><rect x='124' y='17' width='2' height='3' fill='%233a3175'/><rect x='119' y='23' width='2' height='3' fill='%233a3175'/><rect x='124' y='23' width='2' height='3' fill='%233a3175'/><rect x='119' y='29' width='2' height='3' fill='%233a3175'/><rect x='124' y='29' width='2' height='3' fill='%233a3175'/><rect x='119' y='35' width='2' height='3' fill='%237d6fd0'/><rect x='124' y='35' width='2' height='3' fill='%233a3175'/><rect x='119' y='41' width='2' height='3' fill='%233a3175'/><rect x='124' y='41' width='2' height='3' fill='%237d6fd0'/><rect x='119' y='47' width='2' height='3' fill='%233a3175'/><rect x='124' y='47' width='2' height='3' fill='%233a3175'/><rect x='134' y='14' width='26' height='40' fill='%232f2763'/><rect x='137' y='18' width='2' height='3' fill='%233a3175'/><rect x='142' y='18' width='2' height='3' fill='%237d6fd0'/><rect x='147' y='18' width='2' height='3' fill='%237d6fd0'/><rect x='152' y='18' width='2' height='3' fill='%237d6fd0'/><rect x='137' y='24' width='2' height='3' fill='%233a3175'/><rect x='142' y='24' width='2' height='3' fill='%237d6fd0'/><rect x='147' y='24' width='2' height='3' fill='%233a3175'/><rect x='152' y='24' width='2' height='3' fill='%237d6fd0'/><rect x='137' y='30' width='2' height='3' fill='%233a3175'/><rect x='142' y='30' width='2' height='3' fill='%237d6fd0'/><rect x='147' y='30' width='2' height='3' fill='%233a3175'/><rect x='152' y='30' width='2' height='3' fill='%233a3175'/><rect x='137' y='36' width='2' height='3' fill='%233a3175'/><rect x='142' y='36' width='2' height='3' fill='%237d6fd0'/><rect x='147' y='36' width='2' height='3' fill='%233a3175'/><rect x='152' y='36' width='2' height='3' fill='%233a3175'/><rect x='137' y='42' width='2' height='3' fill='%233a3175'/><rect x='142' y='42' width='2' height='3' fill='%233a3175'/><rect x='147' y='42' width='2' height='3' fill='%233a3175'/><rect x='152' y='42' width='2' height='3' fill='%233a3175'/><rect x='137' y='48' width='2' height='3' fill='%233a3175'/><rect x='142' y='48' width='2' height='3' fill='%233a3175'/><rect x='147' y='48' width='2' height='3' fill='%233a3175'/><rect x='152' y='48' width='2' height='3' fill='%233a3175'/></svg>"); background-size: 160px 54px; animation: farScroll 9s linear infinite; }
.chase-city.near { bottom: 30px; height: 48px; background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='48' shape-rendering='crispEdges'><rect x='0' y='17' width='14' height='31' fill='%23170f33'/><rect x='3' y='21' width='2' height='3' fill='%23ffd86b'/><rect x='8' y='21' width='2' height='3' fill='%23ffd86b'/><rect x='3' y='27' width='2' height='3' fill='%23ffd86b'/><rect x='8' y='27' width='2' height='3' fill='%23ffd86b'/><rect x='3' y='33' width='2' height='3' fill='%23ffd86b'/><rect x='8' y='33' width='2' height='3' fill='%23ffd86b'/><rect x='3' y='39' width='2' height='3' fill='%23ffd86b'/><rect x='8' y='39' width='2' height='3' fill='%23ffd86b'/><rect x='14' y='13' width='22' height='35' fill='%23170f33'/><rect x='24' y='8' width='2' height='5' fill='%23170f33'/><rect x='17' y='17' width='2' height='3' fill='%232a1f52'/><rect x='22' y='17' width='2' height='3' fill='%232a1f52'/><rect x='27' y='17' width='2' height='3' fill='%23ffd86b'/><rect x='32' y='17' width='2' height='3' fill='%23ffd86b'/><rect x='17' y='23' width='2' height='3' fill='%23ffd86b'/><rect x='22' y='23' width='2' height='3' fill='%232a1f52'/><rect x='27' y='23' width='2' height='3' fill='%23ffd86b'/><rect x='32' y='23' width='2' height='3' fill='%232a1f52'/><rect x='17' y='29' width='2' height='3' fill='%232a1f52'/><rect x='22' y='29' width='2' height='3' fill='%232a1f52'/><rect x='27' y='29' width='2' height='3' fill='%232a1f52'/><rect x='32' y='29' width='2' height='3' fill='%23ffd86b'/><rect x='17' y='35' width='2' height='3' fill='%23ffd86b'/><rect x='22' y='35' width='2' height='3' fill='%23ffd86b'/><rect x='27' y='35' width='2' height='3' fill='%23ffd86b'/><rect x='32' y='35' width='2' height='3' fill='%232a1f52'/><rect x='17' y='41' width='2' height='3' fill='%23ffd86b'/><rect x='22' y='41' width='2' height='3' fill='%23ffd86b'/><rect x='27' y='41' width='2' height='3' fill='%232a1f52'/><rect x='32' y='41' width='2' height='3' fill='%232a1f52'/><rect x='36' y='3' width='30' height='45' fill='%23170f33'/><rect x='50' y='-2' width='2' height='5' fill='%23170f33'/><rect x='39' y='7' width='2' height='3' fill='%232a1f52'/><rect x='44' y='7' width='2' height='3' fill='%232a1f52'/><rect x='49' y='7' width='2' height='3' fill='%232a1f52'/><rect x='54' y='7' width='2' height='3' fill='%232a1f52'/><rect x='59' y='7' width='2' height='3' fill='%23ffd86b'/><rect x='39' y='13' width='2' height='3' fill='%232a1f52'/><rect x='44' y='13' width='2' height='3' fill='%23ffd86b'/><rect x='49' y='13' width='2' height='3' fill='%232a1f52'/><rect x='54' y='13' width='2' height='3' fill='%232a1f52'/><rect x='59' y='13' width='2' height='3' fill='%232a1f52'/><rect x='39' y='19' width='2' height='3' fill='%23ffd86b'/><rect x='44' y='19' width='2' height='3' fill='%23ffd86b'/><rect x='49' y='19' width='2' height='3' fill='%232a1f52'/><rect x='54' y='19' width='2' height='3' fill='%232a1f52'/><rect x='59' y='19' width='2' height='3' fill='%232a1f52'/><rect x='39' y='25' width='2' height='3' fill='%232a1f52'/><rect x='44' y='25' width='2' height='3' fill='%232a1f52'/><rect x='49' y='25' width='2' height='3' fill='%232a1f52'/><rect x='54' y='25' width='2' height='3' fill='%23ffd86b'/><rect x='59' y='25' width='2' height='3' fill='%232a1f52'/><rect x='39' y='31' width='2' height='3' fill='%232a1f52'/><rect x='44' y='31' width='2' height='3' fill='%23ffd86b'/><rect x='49' y='31' width='2' height='3' fill='%23ffd86b'/><rect x='54' y='31' width='2' height='3' fill='%23ffd86b'/><rect x='59' y='31' width='2' height='3' fill='%23ffd86b'/><rect x='39' y='37' width='2' height='3' fill='%232a1f52'/><rect x='44' y='37' width='2' height='3' fill='%232a1f52'/><rect x='49' y='37' width='2' height='3' fill='%232a1f52'/><rect x='54' y='37' width='2' height='3' fill='%232a1f52'/><rect x='59' y='37' width='2' height='3' fill='%232a1f52'/><rect x='39' y='43' width='2' height='3' fill='%232a1f52'/><rect x='44' y='43' width='2' height='3' fill='%232a1f52'/><rect x='49' y='43' width='2' height='3' fill='%23ffd86b'/><rect x='54' y='43' width='2' height='3' fill='%23ffd86b'/><rect x='59' y='43' width='2' height='3' fill='%23ffd86b'/><rect x='66' y='13' width='26' height='35' fill='%23170f33'/><rect x='69' y='17' width='2' height='3' fill='%232a1f52'/><rect x='74' y='17' width='2' height='3' fill='%23ffd86b'/><rect x='79' y='17' width='2' height='3' fill='%232a1f52'/><rect x='84' y='17' width='2' height='3' fill='%23ffd86b'/><rect x='69' y='23' width='2' height='3' fill='%232a1f52'/><rect x='74' y='23' width='2' height='3' fill='%232a1f52'/><rect x='79' y='23' width='2' height='3' fill='%23ffd86b'/><rect x='84' y='23' width='2' height='3' fill='%232a1f52'/><rect x='69' y='29' width='2' height='3' fill='%232a1f52'/><rect x='74' y='29' width='2' height='3' fill='%23ffd86b'/><rect x='79' y='29' width='2' height='3' fill='%232a1f52'/><rect x='84' y='29' width='2' height='3' fill='%232a1f52'/><rect x='69' y='35' width='2' height='3' fill='%232a1f52'/><rect x='74' y='35' width='2' height='3' fill='%23ffd86b'/><rect x='79' y='35' width='2' height='3' fill='%232a1f52'/><rect x='84' y='35' width='2' height='3' fill='%232a1f52'/><rect x='69' y='41' width='2' height='3' fill='%232a1f52'/><rect x='74' y='41' width='2' height='3' fill='%232a1f52'/><rect x='79' y='41' width='2' height='3' fill='%23ffd86b'/><rect x='84' y='41' width='2' height='3' fill='%23ffd86b'/><rect x='92' y='28' width='14' height='20' fill='%23170f33'/><rect x='95' y='32' width='2' height='3' fill='%232a1f52'/><rect x='100' y='32' width='2' height='3' fill='%232a1f52'/><rect x='95' y='38' width='2' height='3' fill='%232a1f52'/><rect x='100' y='38' width='2' height='3' fill='%232a1f52'/><rect x='95' y='44' width='2' height='3' fill='%232a1f52'/><rect x='100' y='44' width='2' height='3' fill='%232a1f52'/><rect x='106' y='15' width='30' height='33' fill='%23170f33'/><rect x='120' y='10' width='2' height='5' fill='%23170f33'/><rect x='109' y='19' width='2' height='3' fill='%23ffd86b'/><rect x='114' y='19' width='2' height='3' fill='%232a1f52'/><rect x='119' y='19' width='2' height='3' fill='%232a1f52'/><rect x='124' y='19' width='2' height='3' fill='%232a1f52'/><rect x='129' y='19' width='2' height='3' fill='%232a1f52'/><rect x='109' y='25' width='2' height='3' fill='%232a1f52'/><rect x='114' y='25' width='2' height='3' fill='%232a1f52'/><rect x='119' y='25' width='2' height='3' fill='%232a1f52'/><rect x='124' y='25' width='2' height='3' fill='%23ffd86b'/><rect x='129' y='25' width='2' height='3' fill='%23ffd86b'/><rect x='109' y='31' width='2' height='3' fill='%23ffd86b'/><rect x='114' y='31' width='2' height='3' fill='%23ffd86b'/><rect x='119' y='31' width='2' height='3' fill='%232a1f52'/><rect x='124' y='31' width='2' height='3' fill='%23ffd86b'/><rect x='129' y='31' width='2' height='3' fill='%232a1f52'/><rect x='109' y='37' width='2' height='3' fill='%23ffd86b'/><rect x='114' y='37' width='2' height='3' fill='%232a1f52'/><rect x='119' y='37' width='2' height='3' fill='%232a1f52'/><rect x='124' y='37' width='2' height='3' fill='%232a1f52'/><rect x='129' y='37' width='2' height='3' fill='%232a1f52'/><rect x='109' y='43' width='2' height='3' fill='%232a1f52'/><rect x='114' y='43' width='2' height='3' fill='%232a1f52'/><rect x='119' y='43' width='2' height='3' fill='%232a1f52'/><rect x='124' y='43' width='2' height='3' fill='%232a1f52'/><rect x='129' y='43' width='2' height='3' fill='%232a1f52'/><rect x='140' y='32' width='30' height='16' fill='%23170f33'/><rect x='143' y='36' width='2' height='3' fill='%232a1f52'/><rect x='148' y='36' width='2' height='3' fill='%232a1f52'/><rect x='153' y='36' width='2' height='3' fill='%232a1f52'/><rect x='158' y='36' width='2' height='3' fill='%23ffd86b'/><rect x='163' y='36' width='2' height='3' fill='%23ffd86b'/><rect x='143' y='42' width='2' height='3' fill='%232a1f52'/><rect x='148' y='42' width='2' height='3' fill='%23ffd86b'/><rect x='153' y='42' width='2' height='3' fill='%23ffd86b'/><rect x='158' y='42' width='2' height='3' fill='%232a1f52'/><rect x='163' y='42' width='2' height='3' fill='%232a1f52'/><rect x='172' y='4' width='14' height='44' fill='%23170f33'/><rect x='175' y='8' width='2' height='3' fill='%23ffd86b'/><rect x='180' y='8' width='2' height='3' fill='%23ffd86b'/><rect x='175' y='14' width='2' height='3' fill='%232a1f52'/><rect x='180' y='14' width='2' height='3' fill='%232a1f52'/><rect x='175' y='20' width='2' height='3' fill='%232a1f52'/><rect x='180' y='20' width='2' height='3' fill='%232a1f52'/><rect x='175' y='26' width='2' height='3' fill='%232a1f52'/><rect x='180' y='26' width='2' height='3' fill='%232a1f52'/><rect x='175' y='32' width='2' height='3' fill='%232a1f52'/><rect x='180' y='32' width='2' height='3' fill='%232a1f52'/><rect x='175' y='38' width='2' height='3' fill='%232a1f52'/><rect x='180' y='38' width='2' height='3' fill='%232a1f52'/><rect x='175' y='44' width='2' height='3' fill='%232a1f52'/><rect x='180' y='44' width='2' height='3' fill='%232a1f52'/><rect x='188' y='2' width='12' height='46' fill='%23170f33'/><rect x='193' y='-3' width='2' height='5' fill='%23170f33'/><rect x='191' y='6' width='2' height='3' fill='%232a1f52'/><rect x='196' y='6' width='2' height='3' fill='%232a1f52'/><rect x='191' y='12' width='2' height='3' fill='%232a1f52'/><rect x='196' y='12' width='2' height='3' fill='%232a1f52'/><rect x='191' y='18' width='2' height='3' fill='%232a1f52'/><rect x='196' y='18' width='2' height='3' fill='%23ffd86b'/><rect x='191' y='24' width='2' height='3' fill='%232a1f52'/><rect x='196' y='24' width='2' height='3' fill='%232a1f52'/><rect x='191' y='30' width='2' height='3' fill='%232a1f52'/><rect x='196' y='30' width='2' height='3' fill='%23ffd86b'/><rect x='191' y='36' width='2' height='3' fill='%232a1f52'/><rect x='196' y='36' width='2' height='3' fill='%232a1f52'/><rect x='191' y='42' width='2' height='3' fill='%23ffd86b'/><rect x='196' y='42' width='2' height='3' fill='%23ffd86b'/></svg>"); background-size: 200px 48px; animation: nearScroll 3.2s linear infinite; }
@keyframes farScroll { to { background-position-x: -160px; } }
@keyframes nearScroll { to { background-position-x: -200px; } }
.chase-road { position: absolute; left: 0; right: 0; bottom: 0; height: 32px; background:
  linear-gradient(180deg, #555 0 3px, #2a2a33 3px), repeating-linear-gradient(90deg, #f6c544 0 24px, transparent 24px 56px); background-size: 100% 100%, 56px 3px; background-position: 0 0, 0 18px; background-repeat: no-repeat, repeat-x; animation: roadScroll 0.5s linear infinite; }
@keyframes roadScroll { to { background-position: 0 0, -56px 18px; } }
.chase-runner { position: absolute; bottom: 14px; left: 66%; width: 40px; height: 72px; transform: translateX(-50%); animation: runBob 0.24s steps(2) infinite; }
.chase-runner svg { position: absolute; inset: 0; width: 100%; height: 100%; shape-rendering: crispEdges; }
.chase-runner .run-b { animation: frameB 0.24s steps(1) infinite; }
.chase-runner .run-a { animation: frameA 0.24s steps(1) infinite; }
.chase-runner .run-a, .chase-runner .run-b { position: absolute; inset: 0; }
.chase-bag { position: absolute; top: 22px; left: -10px; font-size: 16px; }
@keyframes runBob { 50% { transform: translateX(-50%) translateY(-4px); } }
.chase-cop { position: absolute; bottom: 8px; left: calc(66% - 6% - var(--gap) * 0.55%); transform: translateX(-50%); transition: left 0.45s cubic-bezier(0.3, 1.2, 0.5, 1); }
.cop-car { display: block; font-size: 46px; line-height: 1; transform: scaleX(-1); filter: drop-shadow(3px 3px 0 #000); animation: copBump 0.3s steps(2) infinite; }
@keyframes copBump { 50% { transform: scaleX(-1) translateY(-2px); } }
.cop-light { position: absolute; top: -10px; left: 50%; width: 70px; height: 40px; transform: translateX(-50%); border-radius: 50%; animation: copFlash 0.5s steps(1) infinite; filter: blur(8px); }
@keyframes copFlash { 0% { background: rgba(255, 45, 85, 0.55); } 50% { background: rgba(60, 120, 255, 0.55); } }
.chase-street.close .chase-runner { animation-duration: 0.16s; }
.chase-street.close::after { content: ''; position: absolute; inset: 0; pointer-events: none; animation: dangerFlash 0.5s steps(1) infinite; }
@keyframes dangerFlash { 0% { box-shadow: inset 0 0 0 4px #ff2d55; } 50% { box-shadow: inset 0 0 0 4px #3c78ff; } }
.chase-alert { position: absolute; top: 8px; left: 50%; font-size: 30px; opacity: 0; transform: translateX(-50%); }
.chase-alert.on { animation: alertPop 0.6s ease-out; }
@keyframes alertPop { 0% { opacity: 1; transform: translateX(-50%) scale(1.6); } 100% { opacity: 0; transform: translateX(-50%) scale(1); } }
.chase-meters { display: grid; grid-template-columns: auto 1fr auto auto 1fr auto; align-items: center; gap: 6px; font-size: 13px; }
.chase-label { white-space: nowrap; }
.chase-gap, .chase-progress { height: 12px; background: #0a0512; box-shadow: 0 0 0 2px #000, inset 0 0 0 1px #2c1844; }
.chase-gap span, .chase-progress span { display: block; height: 100%; transition: width 0.3s; }
.chase-gap span { background: linear-gradient(90deg, #3ddc84, #f6c544); }
.chase-gap.danger span { background: #ff2d55; animation: dangerBlink 0.3s steps(2) infinite; }
@keyframes dangerBlink { 50% { opacity: 0.4; } }
.chase-progress span { background: repeating-linear-gradient(90deg, #4fa3ff 0 8px, #2f6fd1 8px 16px); }
.dancer.away-run { opacity: 0; pointer-events: none; transition: opacity 0.4s; }
.behind-bars { position: relative; }
.behind-bars::after { content: ''; position: absolute; inset: -4px; background: repeating-linear-gradient(90deg, transparent 0 9px, #8a8fa0 9px 13px); box-shadow: inset 0 0 0 3px #8a8fa0; }
.chase-result.caught .vote-modal-icon { animation: copFlash 0.5s steps(1) infinite; border-radius: 50%; }
@media (max-width: 640px) {
  .chase-street { height: 96px; }
  .chase-meters { grid-template-columns: auto 1fr auto; }
}

/* The chase, for everyone, in a modal (the 🚨 STOP button stays above it). */
.chase-backdrop { z-index: 96; background: radial-gradient(ellipse at 50% 40%, rgba(10, 20, 70, 0.8), rgba(3, 2, 10, 0.92)); }
.chase-modal { width: min(980px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 16px; text-align: center; animation: chaseIn 0.3s ease-out; }
.chase-modal h2 { margin: 0 0 4px; font-size: 20px; }
.chase-modal.phase-run h2 { animation: chaseTitle 0.5s steps(1) infinite; }
@keyframes chaseTitle { 0% { color: #ff4f6d; } 50% { color: #6fa8ff; } }
@keyframes chaseIn { from { transform: scale(0.94); opacity: 0; } }
.chase-sub { margin: 0 0 10px; color: var(--muted); }
.chase-slot .rhythm { margin: 0; text-align: left; }
.chase-modal.phase-result .chase-slot { display: none; }
.chase-outcome { display: grid; justify-items: center; gap: 10px; }
.chase-scene { position: relative; display: flex; align-items: end; justify-content: center; gap: 18px; width: min(420px, 100%); height: 150px; padding-bottom: 8px; background: linear-gradient(180deg, #0b1030 0 70%, #2a2a33 70%); box-shadow: 0 0 0 3px #000, inset 0 0 0 2px #2c1844; }
.chase-scene .battle-portrait { width: 64px; height: 116px; }
.chase-scene.escaped .battle-portrait { animation: jump 0.8s ease-in-out infinite; }
.chase-scene.escaped { background: linear-gradient(180deg, #2a1050 0 70%, #2a2a33 70%); }
.scene-car { font-size: 64px; line-height: 1; transform: scaleX(-1); filter: drop-shadow(3px 3px 0 #000); }
.chase-scene.caught::before { content: ''; position: absolute; inset: 0; animation: copFlash 0.5s steps(1) infinite; opacity: 0.35; }
.scene-bag { font-size: 36px; }
.chase-verdict { font-family: var(--pixel-font); font-size: 16px; color: var(--gold); text-shadow: 3px 3px 0 #000; }
.chase-modal.caught .chase-verdict { color: #ff4f6d; }
.chase-text { margin: 0; max-width: 520px; font-size: 17px; line-height: 1.4; }
.stash-left { animation: stockBlink 1.2s steps(2) infinite; }
.stash-left.low { color: #ff4f6d; animation-duration: 0.5s; }
@keyframes stockBlink { 50% { opacity: 0.25; } }

/* ---------- 🍒 Fruit machine ---------- */
.slots-btn { background: linear-gradient(180deg, #ff4f6d, #b3123a); color: #fff; }
.slots-backdrop { z-index: 94; overflow-y: auto; background: radial-gradient(ellipse at 50% 30%, rgba(90, 10, 40, 0.8), rgba(5, 2, 8, 0.93)); }
.slots-window { position: relative; display: grid; grid-template-columns: auto minmax(220px, 300px); gap: 18px; align-items: start; max-width: 100%; padding: 18px; background: #160a1c; box-shadow: 0 0 0 4px #000, 0 0 0 7px var(--gold), 0 0 0 10px #000, 0 20px 60px rgba(0, 0, 0, 0.6); }
.slots-close { position: absolute; top: 6px; right: 6px; z-index: 2; }
.slots-cabinet { position: relative; display: grid; gap: 12px; padding: 14px 52px 16px 14px; background: linear-gradient(180deg, #b3123a, #6d0a24 60%, #3c0614); box-shadow: inset 0 0 0 4px #000, inset 0 0 0 8px #f6c544, inset 0 0 0 11px #000; }
.slots-marquee { position: relative; padding: 10px; text-align: center; font-family: var(--pixel-font); font-size: 18px; color: #fff3b0; text-shadow: 3px 3px 0 #000, 0 0 12px #ffd86b; background: #2a0612; box-shadow: inset 0 0 0 3px #000; }
.slots-marquee::before, .slots-marquee::after { content: ''; position: absolute; left: 6px; right: 6px; height: 6px; background: radial-gradient(circle, #fff3b0 0 2px, transparent 2.5px) 0 0 / 14px 6px repeat-x; animation: bulbs 0.6s steps(2) infinite; }
.slots-marquee::before { top: 2px; } .slots-marquee::after { bottom: 2px; animation-delay: 0.3s; }
@keyframes bulbs { 50% { background-image: radial-gradient(circle, #ff4f6d 0 2px, transparent 2.5px); } }
.slots-window-frame { position: relative; padding: 8px; background: #000; box-shadow: inset 0 0 0 3px #555, 0 0 0 3px #000; }
.slots-reels { display: grid; grid-template-columns: repeat(3, 92px); gap: 8px; }
.slot-reel { height: 228px; overflow: hidden; background: linear-gradient(180deg, #8a8a8a, #f4f1e8 22%, #fff 50%, #f4f1e8 78%, #8a8a8a); box-shadow: inset 0 0 0 3px #000, inset 0 10px 14px rgba(0, 0, 0, 0.45), inset 0 -10px 14px rgba(0, 0, 0, 0.45); }
.slot-strip { will-change: transform; }
.slot-cell { display: grid; place-items: center; height: 76px; font-size: 48px; line-height: 1; filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.35)); }
.slot-reel.blur .slot-cell { filter: blur(1.2px); }
.slots-payline { position: absolute; left: 4px; right: 4px; top: 50%; height: 80px; transform: translateY(-50%); pointer-events: none; box-shadow: 0 0 0 3px rgba(255, 79, 109, 0.85); }
.slots-payline::before, .slots-payline::after { content: '▶'; position: absolute; top: 50%; left: -14px; transform: translateY(-50%); color: #ff4f6d; font-size: 16px; text-shadow: 1px 1px 0 #000; }
.slots-payline::after { content: '◀'; left: auto; right: -14px; }
.slots-window-frame.win .slots-payline { animation: paylineWin 0.25s steps(2) 8; }
.slots-window-frame.jackpot .slots-payline { animation: paylineWin 0.15s steps(2) infinite; }
@keyframes paylineWin { 50% { box-shadow: 0 0 0 4px var(--gold), 0 0 24px var(--gold); } }
.slots-display { display: grid; place-items: center; min-height: 44px; padding: 6px 10px; font-family: var(--pixel-font); font-size: 13px; color: #7dff9a; text-align: center; background: #031207; box-shadow: inset 0 0 0 3px #000, inset 0 0 0 5px #1c3a22; text-shadow: 0 0 8px rgba(125, 255, 154, 0.6); }
.slots-display.lose { color: #9aa0b3; text-shadow: none; }
.slots-display.win { color: var(--gold); }
.slots-display.big { color: #ff4f6d; animation: bigWin 0.3s steps(2) infinite; }
@keyframes bigWin { 50% { color: var(--gold); } }
.slots-display small { font-size: 10px; }
.slots-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.slots-bets { display: flex; gap: 6px; }
.slots-chip { width: 42px; height: 42px; font-family: var(--pixel-font); font-size: 12px; color: #000; cursor: pointer; border: 0; border-radius: 50%; background: radial-gradient(circle, #fff 0 38%, #f6c544 40% 62%, #fff 64% 70%, #f6c544 72%); box-shadow: 0 0 0 3px #000, 0 4px 0 #000; }
.slots-chip.active { transform: translateY(-4px); box-shadow: 0 0 0 3px #000, 0 0 0 6px #7dff9a, 0 8px 0 #000; }
.slots-spin { min-width: 120px; padding: 12px 18px; font-family: var(--pixel-font); font-size: 18px; color: #fff; cursor: pointer; border: 0; background: linear-gradient(180deg, #3ddc84, #1a8a4a); box-shadow: 0 0 0 3px #000, inset -4px -4px 0 rgba(0, 0, 0, 0.3), inset 4px 4px 0 rgba(255, 255, 255, 0.35), 0 6px 0 #000; text-shadow: 2px 2px 0 #000; }
.slots-spin:active, .spinning .slots-spin { transform: translateY(4px); box-shadow: 0 0 0 3px #000, 0 2px 0 #000; filter: brightness(0.8); }
.slots-lever { position: absolute; top: 90px; right: 10px; width: 30px; height: 170px; cursor: pointer; }
.lever-stick { position: absolute; left: 11px; bottom: 0; width: 8px; height: 130px; background: linear-gradient(90deg, #ddd, #888); box-shadow: 0 0 0 2px #000; transform-origin: bottom; }
.lever-ball { position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff8fa3, #d7263d 60%, #6d0a24); box-shadow: 0 0 0 3px #000; }
.slots-lever.pulled .lever-stick { animation: leverStick 0.5s ease-in-out; }
.slots-lever.pulled .lever-ball { animation: leverBall 0.5s ease-in-out; }
@keyframes leverStick { 40% { transform: scaleY(0.25); } }
@keyframes leverBall { 40% { transform: translateY(98px); } }
.slots-side h3 { margin: 0 0 8px; font-size: 13px; }
.slots-paytable { display: grid; gap: 4px; margin-bottom: 8px; }
.pay-row { display: flex; justify-content: space-between; align-items: center; padding: 3px 8px; font-size: 20px; background: #0a0512; box-shadow: inset 0 0 0 2px #2c1844; }
.pay-row b { font-family: var(--pixel-font); font-size: 11px; color: var(--gold); }
.pay-row i { display: inline-grid; place-items: center; width: 22px; font-style: normal; font-size: 14px; color: var(--muted); }
.slots-log { display: grid; gap: 4px; margin-top: 10px; }
.slots-win-row { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; font-size: 14px; }
@media (max-width: 760px) {
  .slots-window { grid-template-columns: 1fr; padding: 12px; }
  .slots-reels { grid-template-columns: repeat(3, minmax(64px, 1fr)); }
  .slot-cell { font-size: 38px; }
  .slots-cabinet { padding-right: 14px; }
  .slots-lever { display: none; }
}

/* ---------- 🏆 Best drug dealer ---------- */
.dealer-scene { display: grid; justify-items: center; gap: 8px; width: min(460px, 100%); }
.dealer-title { font-family: var(--pixel-font); font-size: 26px; line-height: 1.3; text-align: center; text-shadow: 4px 4px 0 #000; }
.dealer-title span { display: inline-block; animation: dealerHue 0.8s steps(4) infinite, dealerBounce 0.6s ease-in-out infinite; }
.dealer-title span:nth-child(2) { animation-delay: 0.2s, 0.1s; }
.dealer-title span:nth-child(3) { animation-delay: 0.4s, 0.2s; }
@keyframes dealerHue { 0% { color: #ff4f6d; } 25% { color: var(--gold); } 50% { color: #3ddc84; } 75% { color: #6fa8ff; } }
@keyframes dealerBounce { 50% { transform: translateY(-6px) rotate(-3deg); } }
.dealer-stage { position: relative; display: grid; place-items: end center; width: 100%; height: 170px; overflow: hidden; background:
  radial-gradient(ellipse at 50% 100%, rgba(246, 197, 68, 0.45), transparent 60%),
  repeating-conic-gradient(from 0deg at 50% 100%, rgba(255, 79, 163, 0.18) 0 10deg, transparent 10deg 20deg), #12061e; box-shadow: 0 0 0 3px #000, inset 0 0 0 2px #5b2a86; }
.dealer-dancer { transform: scale(1.6); transform-origin: bottom center; margin-bottom: 8px; }
.dealer-shades { position: absolute; bottom: 102px; left: 50%; font-size: 26px; transform: translateX(-50%); animation: dealerBounce 0.4s steps(2) infinite; }
.dealer-bag { position: absolute; bottom: 20px; left: calc(50% + 40px); font-size: 30px; animation: dealerBounce 0.5s steps(2) infinite; }
.dealer-bubble { position: absolute; top: 10px; left: calc(50% + 20px); max-width: 46%; padding: 6px 8px; font-size: 14px; color: #000; background: #fff; box-shadow: 0 0 0 3px #000; }
.dealer-bubble::after { content: ''; position: absolute; left: 10px; bottom: -9px; border: 6px solid transparent; border-top-color: #fff; }
.dealer-cash { position: absolute; top: -30px; font-size: 22px; animation: cashFall 2.2s linear infinite; }
.dealer-cash.c1 { left: 12%; } .dealer-cash.c2 { left: 30%; animation-delay: 0.6s; } .dealer-cash.c3 { left: 72%; animation-delay: 1.1s; } .dealer-cash.c4 { left: 88%; animation-delay: 1.6s; }
@keyframes cashFall { to { transform: translateY(220px) rotate(360deg); } }
.dealer-count { font-family: var(--pixel-font); font-size: 12px; color: var(--gold); }
.dealers { margin: 0 0 10px; padding: 8px 10px; background: #0a0512; box-shadow: inset 0 0 0 2px #2c1844; }
.dealers h3 { margin: 0 0 6px; font-size: 13px; }
.dealer-row { display: grid; grid-template-columns: 28px 1fr auto auto; gap: 10px; align-items: center; padding: 3px 0; font-size: 15px; }
.dealer-row.me b { color: var(--gold); }
.slots-reels { grid-template-columns: repeat(3, minmax(92px, 1fr)); }
.slots-close { top: -18px; right: -18px; box-shadow: 0 0 0 3px #000; }
@media (max-width: 760px) {
  .slots-reels { grid-template-columns: repeat(3, minmax(64px, 1fr)); }
  .slots-marquee { font-size: 13px; padding: 10px 6px; }
  .slots-close { top: -10px; right: -10px; }
  .slots-backdrop { padding-top: 22px; }
}
.dancer.preview.dealer-dancer { transform: scale(1.7); transform-origin: bottom center; margin-bottom: 10px; }
.dealer-bag { left: calc(50% + 52px); }

/* ---------- 🌀 The Maze ---------- */
.maze-btn { background: linear-gradient(180deg, #6f4fff, #3a1fa8); color: #fff; }
.maze-backdrop { z-index: 94; align-items: start; overflow-y: auto; padding: 12px; background: radial-gradient(ellipse at 50% 30%, rgba(30, 10, 80, 0.85), rgba(3, 2, 10, 0.95)); }
.maze-window { width: min(1640px, 100%); margin: 0 auto; padding: 12px; background: #0b0716; box-shadow: 0 0 0 4px #000, 0 0 0 7px #6f4fff, 0 0 0 10px #000; }
.maze-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.maze-title { font-family: var(--pixel-font); font-size: 18px; color: #b9a6ff; text-shadow: 3px 3px 0 #000, 0 0 12px rgba(111, 79, 255, 0.7); }
.maze-intro, .maze-wait { display: grid; gap: 12px; max-width: 760px; margin: 0 auto; padding: 8px 4px 16px; }
.maze-intro h3, .maze-wait h3 { margin: 6px 0 0; font-size: 14px; }
.mz-rules p { margin: 0 0 8px; font-size: 17px; line-height: 1.4; }
.mz-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mz-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; background: #140d26; box-shadow: inset 0 0 0 2px #2c1844; }
.mz-row small { color: var(--muted); }
.mz-players { display: flex; flex-wrap: wrap; gap: 6px; }
.mz-chip { padding: 4px 8px; background: #1d1036; box-shadow: inset 0 0 0 2px #5b2a86; }
.mz-chip.me { box-shadow: inset 0 0 0 2px var(--gold); }
.maze-game { display: grid; gap: 8px; justify-items: center; }
.maze-hud { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; width: 100%; padding: 6px 10px; font-size: 16px; background: #05030b; box-shadow: inset 0 0 0 2px #2c1844; }
.mz-theme { font-family: var(--pixel-font); font-size: 10px; color: #b9a6ff; }
.mz-stat b { font-family: var(--pixel-font); font-size: 12px; }
.mz-stat.low b { color: #ff4f6d; animation: dangerBlink 0.5s steps(2) infinite; }
.mz-mode { padding: 3px 8px; font-family: var(--pixel-font); font-size: 10px; box-shadow: 0 0 0 2px #000; }
.mz-mode.mode-scatter { background: #1d4f8a; }
.mz-mode.mode-chase { background: #a8122e; animation: dangerBlink 0.6s steps(2) infinite; }
.mz-mode.mode-fright { background: #2a3fdb; color: #fff; }
.mz-mode.mode-ready { background: #555; }
.mz-exit { font-family: var(--pixel-font); font-size: 10px; color: #3ddc84; animation: dangerBlink 0.4s steps(2) infinite; }
.maze-stage { position: relative; display: grid; place-items: center; width: 100%; }
.maze-canvas { display: block; image-rendering: pixelated; image-rendering: crisp-edges; box-shadow: 0 0 0 3px #000, 0 0 0 5px #2c1844; background: #000; touch-action: none; }
.maze-banner { position: absolute; top: 40%; left: 50%; padding: 8px 14px; font-family: var(--pixel-font); font-size: 18px; color: var(--gold); white-space: nowrap; pointer-events: none; opacity: 0; transform: translate(-50%, -50%); background: rgba(0, 0, 0, 0.7); box-shadow: 0 0 0 3px #000; text-shadow: 3px 3px 0 #000; }
.maze-banner.on { opacity: 1; animation: judgePop 0.4s ease-out; }
.maze-banner.good { color: #3ddc84; }
.maze-banner.bad { color: #ff4f6d; }
.maze-banner.ready { color: var(--gold); font-size: 24px; }
.maze-result-box:empty { display: none; }
.maze-result-box { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(5, 2, 12, 0.72); }
.maze-result { display: grid; gap: 10px; justify-items: center; width: min(520px, 92%); padding: 16px; text-align: center; background: #120a22; box-shadow: 0 0 0 3px #000, 0 0 0 6px var(--gold); }
.maze-result.lost { box-shadow: 0 0 0 3px #000, 0 0 0 6px #ff4f6d; }
.maze-result h3 { margin: 0; font-size: 16px; }
.mz-results { display: grid; gap: 4px; width: 100%; }
.maze-pad { display: none; grid-template-columns: repeat(3, 58px); grid-template-rows: repeat(2, 52px); gap: 6px; }
.maze-pad button { font-size: 20px; color: #fff; cursor: pointer; border: 0; background: #2c1844; box-shadow: 0 0 0 3px #000, inset 0 -4px 0 rgba(0, 0, 0, 0.4); touch-action: manipulation; }
.maze-pad button:active { transform: translateY(2px); background: #5b2a86; }
.maze-pad [data-pad="0"] { grid-column: 2; grid-row: 1; }
.maze-pad [data-pad="1"] { grid-column: 1; grid-row: 2; }
.maze-pad [data-pad="2"] { grid-column: 2; grid-row: 2; }
.maze-pad [data-pad="3"] { grid-column: 3; grid-row: 2; }
@media (pointer: coarse), (max-width: 700px) { .maze-pad { display: grid; } }
@media (max-width: 700px) {
  .maze-window { padding: 8px; }
  .maze-hud { gap: 6px 10px; font-size: 14px; }
  .maze-banner { font-size: 12px; }
}
.maze-game[hidden], .maze-lobby[hidden] { display: none; }
/* Confirm/prompt boxes open on top of everything (games, chases), below the STOP button. */
.dialog-backdrop { z-index: 120; }
/* The game buttons next to "Who's here" wrap on narrow screens instead of widening the page. */
.dance-panel .section-title { flex-wrap: wrap; row-gap: 8px; }
.title-actions { flex-wrap: wrap; justify-content: flex-end; row-gap: 6px; min-width: 0; }
@media (max-width: 640px) { .dance-panel .title-actions { justify-content: flex-start; } }

/* Five pay lines over the reels; winning ones light up. */
.slots-window-frame .slots-reels { position: relative; }
.slots-lines { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); pointer-events: none; overflow: visible; }
.slots-lines polyline { fill: none; stroke-width: 0.035; opacity: 0.18; vector-effect: none; stroke-linecap: square; }
.slots-lines polyline.on { opacity: 1; stroke-width: 0.06; filter: drop-shadow(0 0 0.06px #fff); animation: lineBlink 0.3s steps(2) 6; }
@keyframes lineBlink { 50% { opacity: 0.35; } }
.line-tag { position: absolute; z-index: 1; display: grid; place-items: center; width: 16px; height: 16px; font-family: var(--pixel-font); font-size: 8px; color: #000; transform: translateY(-50%); box-shadow: 0 0 0 2px #000; opacity: 0.55; }
.line-tag.left { left: -10px; }
.line-tag.right { right: -10px; }
.line-tag.on { opacity: 1; animation: lineBlink 0.3s steps(2) 6; }
.slots-display.small { color: #9fe8b5; }

/* ---------- A bigger dance floor ---------- */
.dance-floor { height: 400px; }
@media (max-width: 700px) { .dance-floor { height: 330px; } }

/* ---------- ☔ Dodge ---------- */
.dodge-btn { background: linear-gradient(180deg, #3fa9f5, #1a5fa8); color: #fff; }
.dodge-layer { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.dodge-hud { position: absolute; top: 8px; left: 50%; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; max-width: 94%; padding: 4px 10px; font-size: 15px; color: #fff; white-space: nowrap; transform: translateX(-50%); background: rgba(5, 2, 12, 0.72); box-shadow: 0 0 0 2px #000, inset 0 0 0 2px #3fa9f5; }
.dodge-hud:empty { display: none; }
.dodge-title { font-family: var(--pixel-font); font-size: 11px; color: #8fd3ff; }
.dodge-hud b { font-family: var(--pixel-font); font-size: 11px; }
.dodge-objs { position: absolute; inset: 0; overflow: hidden; }
.dodge-item { position: absolute; inset: 0; }
.dodge-obj { position: absolute; top: 0; left: 0; line-height: 1; filter: drop-shadow(2px 3px 0 rgba(0, 0, 0, 0.6)); will-change: transform; }
.dodge-shadow { position: absolute; top: 0; left: 0; height: 8px; border-radius: 50%; background: radial-gradient(ellipse, rgba(0, 0, 0, 0.75), transparent 70%); transform-origin: center; will-change: transform, opacity; }
.dodge-shadow.soon { background: radial-gradient(ellipse, rgba(255, 45, 85, 0.85), transparent 70%); }
.dodge-puff { position: absolute; bottom: 10px; width: 46px; height: 18px; border-radius: 50%; background: radial-gradient(ellipse, rgba(240, 230, 255, 0.85), transparent 70%); transform: translateX(-50%); animation: dodgePuff 0.5s ease-out forwards; }
@keyframes dodgePuff { from { transform: translateX(-50%) scale(0.4); opacity: 1; } to { transform: translateX(-50%) scale(1.8, 1.2); opacity: 0; } }
.dance-floor.dodge-shake { animation: dodgeShake 0.25s steps(3); }
@keyframes dodgeShake { 33% { transform: translate(-3px, 2px); } 66% { transform: translate(3px, -1px); } }
.dodge-count { position: absolute; top: 38%; left: 50%; display: none; padding: 10px 16px; text-align: center; font-family: var(--pixel-font); font-size: 20px; color: #8fd3ff; transform: translate(-50%, -50%); background: rgba(5, 2, 12, 0.8); box-shadow: 0 0 0 3px #000, inset 0 0 0 2px #3fa9f5; text-shadow: 3px 3px 0 #000; }
.dodge-count.on { display: grid; gap: 8px; }
.dodge-count b { color: var(--gold); font-size: 26px; }
.dodge-count small { font-family: inherit; font-size: 15px; color: #fff; text-shadow: none; font-family: var(--body-font, inherit); }
.dodge-pads { position: absolute; right: 0; bottom: 0; left: 0; display: none; justify-content: space-between; padding: 8px; pointer-events: none; }
.dodge-pads button { width: 74px; height: 64px; font-size: 26px; color: #fff; pointer-events: auto; cursor: pointer; border: 0; background: rgba(42, 111, 219, 0.55); box-shadow: 0 0 0 3px #000; touch-action: none; }
.dodge-pads button:active { background: rgba(63, 169, 245, 0.85); }
@media (pointer: coarse), (max-width: 700px) { .dodge-playing .dodge-pads { display: flex; } }
.dodge-playing .dancer { transition: none !important; }
.dodge-on .dancer.dodge-in::after { content: attr(data-lives); position: absolute; top: -18px; left: 50%; font-size: 11px; white-space: nowrap; transform: translateX(-50%); }
.dancer.dodge-out { filter: grayscale(1) brightness(0.6); opacity: 0.6; }
.dancer.dodge-out .sprite { animation: none !important; transform: rotate(90deg) translateX(30%); }
.dancer.dodge-shield { animation: dodgeBlink 0.15s steps(2) infinite; }
@keyframes dodgeBlink { 50% { opacity: 0.35; } }
.dodge-ouch { color: #ff4f6d; }
.dodge-ko svg { filter: grayscale(1); transform: rotate(90deg); }
.dodge-lost { opacity: 0.6; }
/* Dodge: the usual floor buttons step aside while it's on; a compact HUD on phones. */
.dodge-playing .dance-controls { display: none; }
.dodge-hud { z-index: 2; }
@media (max-width: 700px) {
  .dodge-hud { top: 4px; gap: 2px 10px; padding: 3px 8px; font-size: 12px; white-space: normal; }
  .dodge-hud b, .dodge-title { font-size: 9px; }
  .dodge-count { font-size: 14px; width: 86%; }
  .dodge-count b { font-size: 20px; }
  .dodge-count small { font-size: 13px; }
}
/* 🔁 Auto spin */
.slots-auto { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.slots-auto-btn { padding: 8px 12px; font-family: var(--pixel-font); font-size: 11px; color: #fff; cursor: pointer; border: 0; background: #2c1844; box-shadow: 0 0 0 3px #000, 0 4px 0 #000; }
.slots-auto-btn.running { background: #a8122e; animation: dangerBlink 0.8s steps(2) infinite; }
.slots-auto-pick { display: flex; gap: 6px; }
.slots-auto-pick[hidden] { display: none; }
.slots-chip.auto { background: radial-gradient(circle, #fff 0 38%, #3fa9f5 40% 62%, #fff 64% 70%, #3fa9f5 72%); }
.auto-on .slots-spin { filter: brightness(0.7); }

/* =================================================================== 🎲 Casino */
.casino-btn { background: linear-gradient(180deg, #1f8f4e, #0b4f2a); color: #fff; }
.casino-backdrop { z-index: 94; align-items: start; overflow-y: auto; padding: 12px; background: radial-gradient(ellipse at 50% 20%, rgba(10, 60, 30, 0.85), rgba(2, 6, 4, 0.95)); }
.casino-window { width: min(1280px, 100%); margin: 0 auto; padding: 12px; background: #0c0a08; box-shadow: 0 0 0 4px #000, 0 0 0 7px #c9a24a, 0 0 0 10px #000, 0 30px 80px rgba(0, 0, 0, 0.7); }
.casino-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 12px; }
.casino-title { font-family: var(--pixel-font); font-size: 16px; color: #e8c35a; text-shadow: 3px 3px 0 #000; }
.casino-tabs { display: flex; gap: 6px; margin-right: auto; }
.casino-tabs button { padding: 8px 14px; font-size: 17px; color: #e9e2cf; cursor: pointer; border: 0; background: #1d1a14; box-shadow: inset 0 0 0 2px #3a3326; }
.casino-tabs button.active { color: #000; background: #e8c35a; box-shadow: inset 0 0 0 2px #000; }

/* Casino chips (shared by both tables) */
.chip-rack { display: flex; flex-wrap: wrap; gap: 8px; }
.cchip { --chip: #d7263d; width: 46px; height: 46px; font: 700 13px Arial, sans-serif; color: #fff; cursor: pointer; border: 0; border-radius: 50%;
  background: radial-gradient(circle, var(--chip) 0 44%, #fff 45% 50%, var(--chip) 51% 62%, transparent 63%),
    repeating-conic-gradient(var(--chip) 0 22.5deg, #fff 22.5deg 45deg);
  box-shadow: 0 0 0 2px #000, 0 4px 0 #000; text-shadow: 1px 1px 0 #000; transition: transform 0.08s; }
.cchip.active { transform: translateY(-5px); box-shadow: 0 0 0 2px #000, 0 0 0 5px #e8c35a, 0 9px 0 #000; }
.cchip.v0_5 { --chip: #8a8f9a; } .cchip.v1 { --chip: #e9e2cf; color: #000; text-shadow: none; } .cchip.v2 { --chip: #2a6fdb; } .cchip.v5 { --chip: #d7263d; } .cchip.v10 { --chip: #1f8f4e; } .cchip.v25 { --chip: #111; }
.table-chip { position: absolute; z-index: 3; display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 3px; font: 700 11px Arial, sans-serif; color: #fff; pointer-events: none; border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--c) 0 50%, #fff 52% 58%, var(--c) 60%); box-shadow: 0 0 0 2px #000, 0 3px 0 #000, 0 5px 6px rgba(0, 0, 0, 0.5); text-shadow: 1px 1px 0 #000; }
.table-chip.mine { box-shadow: 0 0 0 2px #000, 0 0 0 4px #e8c35a, 0 3px 0 #000; }
.table-chip.many::after { content: ''; position: absolute; inset: -5px -5px auto auto; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #000; }
.table-chip.won { animation: chipWin 0.5s steps(2) infinite; }
.table-chip.lost { opacity: 0; transition: opacity 1.2s 1.5s; }
@keyframes chipWin { 50% { box-shadow: 0 0 0 2px #000, 0 0 0 6px #3ddc84, 0 0 20px #3ddc84; } }

/* ---- Roulette */
.rl-top { display: grid; grid-template-columns: minmax(240px, 360px) 1fr; gap: 16px; margin-bottom: 14px; }
.rl-wheel-wrap { position: relative; aspect-ratio: 1; }
.rl-wheel { width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 0 4px #000; }
.rl-badge { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 22%; aspect-ratio: 1; font: 700 clamp(18px, 3vw, 34px) Arial, sans-serif; color: #fff; border-radius: 50%; opacity: 0; transform: translate(-50%, -50%) scale(0.6); transition: opacity 0.3s, transform 0.3s; box-shadow: 0 0 0 3px #e8c35a, 0 0 24px rgba(232, 195, 90, 0.8); }
.rl-badge.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.rl-badge.red { background: #b3122a; } .rl-badge.black { background: #141414; } .rl-badge.green { background: #0e7a3a; }
.rl-side { display: grid; align-content: start; gap: 10px; }
.rl-status { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 10px 14px; background: #08140d; box-shadow: inset 0 0 0 2px #1f5c38; }
.rl-status b { font-family: var(--pixel-font); font-size: 16px; color: #e8c35a; }
.rl-status.phase-spinning b { color: #ff8fa3; animation: dangerBlink 0.6s steps(2) infinite; }
.rl-status .num.red { color: #ff5a6e; } .rl-status .num.black { color: #fff; } .rl-status .num.green { color: #3ddc84; }
.rl-count { font-family: var(--pixel-font); font-size: 16px; color: #fff; }
.rl-history { display: flex; flex-wrap: wrap; gap: 4px; }
.hnum { display: grid; place-items: center; width: 30px; height: 30px; font: 700 13px Arial, sans-serif; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.hnum.red { background: #b3122a; } .hnum.black { background: #1a1a1a; } .hnum.green { background: #0e7a3a; }
.hnum.last { box-shadow: 0 0 0 2px #e8c35a; }
.rl-stats { display: flex; height: 20px; font: 700 11px Arial, sans-serif; color: #fff; box-shadow: 0 0 0 2px #000; }
.rl-stats .bar { display: grid; place-items: center; overflow: hidden; }
.rl-stats .red { background: #b3122a; } .rl-stats .black { background: #1a1a1a; } .rl-stats .green { background: #0e7a3a; }
.rl-players { display: grid; gap: 4px; max-height: 150px; overflow-y: auto; }
.rl-player { display: grid; grid-template-columns: 12px 1fr auto auto; align-items: center; gap: 8px; font-size: 15px; }
.rl-player i { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 2px #000; }
.rl-player.me b { color: #e8c35a; }
.rl-player .up { color: #3ddc84; } .rl-player .down { color: #ff5a6e; }
.rl-fair { font-size: 13px; color: #8a8f9a; word-break: break-all; }
.rl-board-wrap { overflow-x: auto; padding: 6px 4px 14px; }
.rl-board { position: relative; min-width: 640px; aspect-ratio: 14 / 5; background: radial-gradient(ellipse at 50% 40%, #1d7a45, #0d4a29); box-shadow: 0 0 0 4px #5a3a1a, 0 0 0 7px #000, inset 0 0 40px rgba(0, 0, 0, 0.4); }
.rl-cell { position: absolute; display: grid; place-items: center; padding: 0; font: 700 clamp(12px, 1.6vw, 19px) Georgia, 'Times New Roman', serif; color: #fff; cursor: pointer; border: 0; background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75); }
.rl-cell span { display: grid; place-items: center; min-width: 60%; height: 64%; border-radius: 40%; }
.rl-cell.red span { background: #b3122a; } .rl-cell.black span { background: #141414; }
.rl-cell.zero { border-radius: 40% 0 0 40% / 50% 0 0 50%; }
.rl-cell.zero span { background: #0e7a3a; height: 30%; }
.rl-cell.outside span { min-width: 0; height: auto; background: none; letter-spacing: 1px; font-size: clamp(11px, 1.3vw, 16px); }
.rl-cell .diamond { display: block; width: 26px; height: 26px; transform: rotate(45deg) scaleY(0.7); box-shadow: 0 0 0 2px #fff; }
.rl-cell .diamond.red { background: #b3122a; } .rl-cell .diamond.black { background: #141414; }
.rl-cell:hover, .rl-cell.cover { background: rgba(255, 255, 255, 0.18); }
.rl-cell.winner { background: rgba(232, 195, 90, 0.45); box-shadow: inset 0 0 0 3px #e8c35a; animation: chipWin 0.5s steps(2) infinite; }
.rl-spot { position: absolute; z-index: 2; width: 18px; height: 18px; padding: 0; cursor: pointer; border: 0; border-radius: 50%; background: transparent; transform: translate(-50%, -50%); }
.rl-spot:hover { background: rgba(232, 195, 90, 0.55); box-shadow: 0 0 0 2px #e8c35a; }
.rl-chips { position: absolute; inset: 0; pointer-events: none; }
.rl.closed .rl-board { filter: saturate(0.85); }
.rl.closed .rl-cell, .rl.closed .rl-spot { cursor: default; }
.rl-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.rl-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rl-mine { font-size: 16px; }

/* ---- Blackjack */
.bj-table { position: relative; min-height: 520px; overflow: hidden; border-radius: 0 0 50% 50% / 0 0 34% 34%; background: radial-gradient(ellipse at 50% 0%, #1d7a45 0%, #0f5a33 55%, #0a3f23 100%); box-shadow: 0 0 0 10px #4a2a12, 0 0 0 13px #000, inset 0 0 60px rgba(0, 0, 0, 0.45); margin: 0 12px 26px; }
.bj-shoe { position: absolute; top: 14px; right: 18px; display: grid; justify-items: center; gap: 4px; }
.shoe-box { width: 54px; height: 70px; background: linear-gradient(135deg, #2a2a2a, #111); box-shadow: 0 0 0 2px #000, inset -10px 0 0 #b3122a; transform: skewX(-10deg); }
.shoe-left { font-size: 12px; color: #cfe9d8; }
.bj-dealer { display: grid; justify-items: center; gap: 6px; padding-top: 22px; min-height: 150px; }
.bj-rules { margin: 6px auto 0; width: min(560px, 90%); text-align: center; font: 700 clamp(13px, 1.6vw, 18px) Georgia, serif; letter-spacing: 3px; color: #e8c35a; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5); border-top: 2px solid rgba(232, 195, 90, 0.6); border-bottom: 2px solid rgba(232, 195, 90, 0.6); padding: 6px 0; }
.bj-rules small { display: block; font-size: 12px; letter-spacing: 1px; color: #cfe9d8; }
.bj-status { margin-top: 8px; text-align: center; font-size: 18px; color: #fff; }
.bj-seats { position: relative; height: 300px; }
.bj-seat { position: absolute; display: grid; justify-items: center; gap: 4px; width: 19%; transform: translateX(-50%); }
.bj-seat.seat-0 { left: 10%; top: 20px; } .bj-seat.seat-1 { left: 30%; top: 70px; } .bj-seat.seat-2 { left: 50%; top: 90px; } .bj-seat.seat-3 { left: 70%; top: 70px; } .bj-seat.seat-4 { left: 90%; top: 20px; }
.bj-seat.empty { padding-top: 40px; }
.seat-label { font-size: 13px; color: rgba(255, 255, 255, 0.45); }
.bj-seat.empty::before { content: ''; width: 64px; height: 64px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(232, 195, 90, 0.5); margin-bottom: 6px; }
.bj-name { padding: 2px 8px; font-size: 15px; color: #fff; background: rgba(0, 0, 0, 0.55); white-space: nowrap; }
.bj-name em { padding: 0 4px; font-family: var(--pixel-font); font-size: 8px; font-style: normal; color: #000; background: #e8c35a; }
.bj-seat.turn .bj-name { background: #e8c35a; color: #000; }
.bj-bet { position: relative; height: 36px; width: 40px; }
.bj-bet .table-chip { left: 50%; top: 50%; }
.bj-hands { display: flex; gap: 10px; justify-content: center; min-height: 96px; }
.bj-hand { position: relative; display: grid; justify-items: center; gap: 4px; padding: 4px; border-radius: 6px; }
.bj-hand.active { box-shadow: 0 0 0 2px #e8c35a, 0 0 16px rgba(232, 195, 90, 0.6); }
.bj-cards { display: flex; }
.bj-cards .pcard + .pcard { margin-left: -30px; }
.bj-total { padding: 1px 8px; font: 700 13px Arial, sans-serif; color: #000; background: #fff; border-radius: 10px; box-shadow: 0 0 0 2px #000; }
.dealer-total:empty { display: none; }
.bj-result { position: absolute; top: 38%; left: 50%; padding: 3px 8px; font-family: var(--pixel-font); font-size: 10px; white-space: nowrap; color: #fff; transform: translate(-50%, -50%) rotate(-8deg); box-shadow: 0 0 0 2px #000; animation: judgePop 0.4s ease-out both; }
.r-win .bj-result { background: #1f8f4e; } .r-blackjack .bj-result { background: #e8c35a; color: #000; } .r-push .bj-result { background: #555; } .r-lose .bj-result, .r-bust .bj-result { background: #b3122a; }
.r-lose .pcard, .r-bust .pcard { filter: brightness(0.6); }
.bj-tag { position: absolute; top: -6px; right: -6px; padding: 1px 4px; font: 700 10px Arial, sans-serif; color: #000; background: #e8c35a; box-shadow: 0 0 0 2px #000; }
.bj-timer { width: 80%; height: 5px; background: rgba(0, 0, 0, 0.5); }
.bj-timer span { display: block; height: 100%; background: #e8c35a; transition: width 0.2s linear; }
.pcard { position: relative; display: block; width: 58px; height: 82px; font: 700 15px Georgia, serif; line-height: 1; border-radius: 6px; background: linear-gradient(160deg, #fff, #ecebe6); box-shadow: 0 0 0 1px #000, 2px 3px 6px rgba(0, 0, 0, 0.5); }
.pcard.red { color: #c0182f; } .pcard.black { color: #111; }
.pc-tl, .pc-br { position: absolute; display: grid; justify-items: center; }
.pc-tl { top: 5px; left: 5px; } .pc-br { right: 5px; bottom: 5px; transform: rotate(180deg); }
.pc-tl i, .pc-br i { font-style: normal; font-size: 13px; }
.pc-mid { position: absolute; top: 50%; left: 50%; font-size: 30px; transform: translate(-50%, -50%); }
.pcard.back { background: repeating-linear-gradient(45deg, #b3122a 0 6px, #8a0d20 6px 12px); box-shadow: 0 0 0 1px #000, inset 0 0 0 4px #fff, 2px 3px 6px rgba(0, 0, 0, 0.5); }
.pcard.deal { animation: dealCard 0.42s cubic-bezier(0.2, 0.8, 0.3, 1) both; }
@keyframes dealCard { from { opacity: 0; transform: translate(260px, -220px) rotate(-30deg) scale(0.7); } to { opacity: 1; transform: none; } }
.bj-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; min-height: 60px; }
.bj-pending { font-size: 17px; }
.bj-act { min-width: 110px; padding: 12px 16px; font-family: var(--pixel-font); font-size: 13px; color: #fff; cursor: pointer; border: 0; box-shadow: 0 0 0 3px #000, 0 5px 0 #000; }
.bj-act small { display: block; margin-top: 3px; font-size: 8px; opacity: 0.7; }
.bj-act.hit { background: #1f8f4e; } .bj-act.stand { background: #b3122a; } .bj-act.double { background: #2a6fdb; } .bj-act.split { background: #8e44ad; }
.bj-act:disabled { opacity: 0.35; cursor: default; }
.bj-act:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 0 0 3px #000, 0 2px 0 #000; }
@media (max-width: 760px) {
  .rl-top { grid-template-columns: 1fr; }
  .rl-wheel-wrap { width: min(320px, 90%); margin: 0 auto; }
  .bj-table { min-height: 600px; margin: 0 0 20px; border-radius: 0 0 40% 40% / 0 0 18% 18%; }
  .bj-seats { height: 380px; }
  .bj-seat { width: 46%; }
  .bj-seat.seat-0 { left: 26%; top: 0; } .bj-seat.seat-1 { left: 74%; top: 0; } .bj-seat.seat-2 { left: 50%; top: 120px; } .bj-seat.seat-3 { left: 26%; top: 240px; } .bj-seat.seat-4 { left: 74%; top: 240px; }
  .pcard { width: 46px; height: 66px; font-size: 13px; }
  .pc-mid { font-size: 24px; }
  .bj-cards .pcard + .pcard { margin-left: -26px; }
  .bj-act { min-width: 74px; padding: 10px; font-size: 11px; }
}
/* Casino on phones: the window keeps the screen width (the roulette layout scrolls inside it). */
.casino-backdrop { grid-template-columns: minmax(0, 1fr); }
.casino-window { min-width: 0; }
.rl-top > *, .rl-side, .rl-status { min-width: 0; }
.bj-seat.empty { border: 0; background: none; box-shadow: none; padding: 40px 0 0; }
@media (max-width: 760px) {
  .casino-head { gap: 8px; }
  .casino-title { font-size: 13px; }
  .bj-seats { height: 560px; }
  .bj-seat.seat-0, .bj-seat.seat-1 { top: 0; }
  .bj-seat.seat-2 { top: 180px; }
  .bj-seat.seat-3, .bj-seat.seat-4 { top: 360px; }
  .bj-table { min-height: 820px; }
  .bj-seat.empty { padding-top: 10px; }
}
.view-link { text-decoration: none; }

/* ---------- 💸 IRIS transfers ---------- */
.iris-backdrop { z-index: 96; }
.iris-modal { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; text-align: left; gap: 8px; }
.iris-head { display: flex; align-items: center; gap: 12px; }
.iris-head h2 { margin: 0 auto 0 0; font-size: 16px; }
.iris-logo { padding: 6px 10px; font: 900 20px/1 Arial, sans-serif; letter-spacing: 2px; color: #fff; background: linear-gradient(135deg, #00a3e0, #6b2fd6); box-shadow: 0 0 0 3px #000; font-style: italic; }
.iris-wallet { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 12px; background: rgba(0, 0, 0, 0.35); box-shadow: inset 0 0 0 2px var(--gold-dark); }
.iris-wallet small { color: var(--muted); }
.iris-wallet strong { font-family: var(--pixel-font); font-size: 14px; color: var(--gold-light); }
.iris-modal label { margin-top: 4px; color: var(--muted); }
.iris-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.iris-person { display: grid; justify-items: center; gap: 2px; padding: 6px 4px; font-size: 16px; color: var(--text); cursor: pointer; border: 0; background: rgba(0, 0, 0, 0.3); box-shadow: inset 0 0 0 2px rgba(246, 197, 68, 0.25); }
.iris-person:hover { background: rgba(0, 0, 0, 0.45); }
.iris-person.picked { background: rgba(0, 163, 224, 0.25); box-shadow: inset 0 0 0 3px #00a3e0, 0 0 12px rgba(0, 163, 224, 0.5); }
.iris-face { display: block; width: 40px; height: 40px; }
.iris-face svg { width: 100%; height: 100%; }
.iris-amount-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.iris-amount-row input { flex: 1 1 120px; }
.iris-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.iris-send { margin-top: 8px; font-size: 20px; }
.iris-modal h3 { margin: 10px 0 2px; font-size: 13px; color: var(--gold-light); }
.iris-history { display: grid; gap: 4px; }
.iris-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 4px 8px; background: rgba(0, 0, 0, 0.3); }
.iris-row small { display: block; color: var(--muted); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iris-row.in .iris-amt, .iris-row.in .iris-dir { color: #3ddc84; }
.iris-row.out .iris-amt, .iris-row.out .iris-dir { color: #ff8fa3; }
.iris-time { color: var(--muted); }

/* ---------- 🎟️ Daily scratch card ---------- */
.scratch-pill {
  position: fixed;
  right: 16px;
  bottom: 88px;
  z-index: 64;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 32px);
  padding: 8px 14px 8px 10px;
  font-family: var(--body-font);
  font-size: 20px;
  line-height: 1.1;
  color: #2a1600;
  cursor: pointer;
  background: linear-gradient(110deg, var(--gold-dark) 0%, var(--gold) 30%, var(--gold-light) 45%, var(--gold) 60%, var(--gold-dark) 100%);
  background-size: 250% 100%;
  border: none;
  border-radius: 999px;
  box-shadow: 0 0 0 3px #000, 0 6px 18px rgba(246, 197, 68, 0.45);
  animation: scr-shine 2.4s linear infinite, scr-nudge 3.2s ease-in-out infinite;
}
.scratch-pill b { color: #8f1424; }
.scratch-pill:hover { transform: translateY(-2px) scale(1.04); }
.scratch-pill-ticket { font-size: 26px; display: inline-block; animation: scr-ticket 1.6s ease-in-out infinite; }
@keyframes scr-shine { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@keyframes scr-nudge { 0%, 80%, 100% { transform: none; } 85% { transform: rotate(-3deg) scale(1.05); } 90% { transform: rotate(3deg) scale(1.05); } 95% { transform: rotate(-2deg); } }
@keyframes scr-ticket { 50% { transform: rotate(-12deg) translateY(-2px); } }

.scratch-backdrop { z-index: 110; }
.scr-bits { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.scratch-modal {
  position: relative;
  width: min(100%, 430px);
  padding: 18px 16px 14px;
  gap: 8px;
  background: radial-gradient(ellipse at 50% 0%, #3a1450, #12081c 70%);
  animation: scr-in 0.45s cubic-bezier(0.2, 1.4, 0.4, 1);
}
@keyframes scr-in { from { transform: translateY(30px) rotate(-4deg) scale(0.9); opacity: 0; } }
.scr-close { position: absolute; top: 6px; right: 6px; z-index: 3; }
.scr-ticket {
  position: relative;
  padding: 14px 14px 12px;
  color: #2a1600;
  text-align: center;
  background:
    radial-gradient(circle at 0 50%, transparent 9px, transparent 9px),
    linear-gradient(160deg, #fff3c4 0%, #ffd86b 45%, #ffb347 100%);
  border-radius: 10px;
  box-shadow: inset 0 0 0 3px #2a1600, inset 0 0 0 6px #fff3c4, inset 0 0 0 8px #c0392b;
  /* the perforated edge of a real ticket */
  -webkit-mask: radial-gradient(circle 6px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 6px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 6px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 6px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
}
.scr-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 6px; }
.scr-brand { display: grid; text-align: left; line-height: 1; }
.scr-brand small { font-family: var(--body-font); font-size: 16px; color: #8f1424; letter-spacing: 1px; text-transform: uppercase; }
.scr-brand strong { font-family: var(--pixel-font); font-size: 20px; color: #c0392b; text-shadow: 2px 2px 0 #2a1600; }
.scr-brand em { font-style: normal; color: #6b2fb3; }
.scr-serial { font-family: var(--body-font); font-size: 14px; text-align: right; line-height: 1; opacity: 0.75; }
.scr-rules { margin: 8px 6px; font-family: var(--body-font); font-size: 17px; line-height: 1.1; }
.scr-play { display: grid; place-items: center; }
.scr-area {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 78px;
  gap: 8px;
  width: 100%;
  padding: 8px;
  background: #2a1600;
  border-radius: 8px;
  touch-action: none;
  user-select: none;
}
.scr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.scr-cell, .scr-bonus {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  font-size: clamp(28px, 9vw, 40px);
  background: radial-gradient(circle at 50% 40%, #fffdf2, #f3e3b0);
  border-radius: 6px;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.scr-cell span, .scr-bonus span { filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.2)); }
.scr-bonus { aspect-ratio: auto; align-content: center; gap: 2px; font-size: 34px; background: radial-gradient(circle at 50% 40%, #fff, #d9c6ff); }
.scr-bonus small { font-family: var(--pixel-font); font-size: 9px; color: #6b2fb3; }
.scr-bonus em { font-family: var(--pixel-font); font-size: 12px; font-style: normal; color: #c0392b; min-height: 12px; }
.scr-cell.win, .scr-bonus.win {
  background: radial-gradient(circle at 50% 40%, #fffbe0, var(--gold));
  box-shadow: 0 0 0 3px #fff, 0 0 18px 6px rgba(255, 216, 74, 0.9);
  animation: scr-pop 0.5s cubic-bezier(0.2, 1.8, 0.4, 1), scr-glow 1.2s 0.5s ease-in-out infinite alternate;
  position: relative;
  z-index: 1;
}
@keyframes scr-pop { from { transform: scale(0.6) rotate(-10deg); } }
@keyframes scr-glow { to { box-shadow: 0 0 0 3px #fff, 0 0 28px 10px rgba(255, 79, 163, 0.75); } }
.scr-foil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36'%3E%3Ctext y='28' font-size='28'%3E%F0%9F%AA%99%3C/text%3E%3C/svg%3E") 18 18, crosshair;
  touch-action: none;
  z-index: 2;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.scr-foil.gone { opacity: 0; transform: scale(1.04); pointer-events: none; }
.scr-table { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; margin-top: 10px; font-family: var(--body-font); font-size: 16px; }
.scr-table span { padding: 0 4px; border-radius: 4px; }
.scr-table span.hit { background: #c0392b; color: #fff6dc; animation: scr-pop 0.4s; }
.scr-result:empty { display: none; }
.scr-win { display: grid; gap: 2px; margin-top: 10px; padding: 8px; background: #2a1600; color: var(--gold-light); border-radius: 8px; animation: scr-pop 0.5s cubic-bezier(0.2, 1.8, 0.4, 1); }
.scr-win small { font-family: var(--body-font); font-size: 18px; }
.scr-win strong { font-family: var(--pixel-font); font-size: 26px; color: var(--gold); text-shadow: 3px 3px 0 #8f1424; }
.scr-win em { font-family: var(--body-font); font-size: 16px; font-style: normal; color: var(--muted); }
.scr-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.scr-actions .button { margin-top: 0; }
.scr-actions .hint { margin: 0; }
.scr-best { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; font-family: var(--body-font); font-size: 17px; color: var(--muted); }
.scr-best small { width: 100%; text-transform: uppercase; letter-spacing: 1px; }
.scr-best b { color: var(--gold); }
@media (max-width: 480px) {
  .scratch-pill { font-size: 18px; bottom: 84px; }
  .scr-area { grid-template-columns: 1fr 62px; }
  .scr-brand strong { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .scratch-pill, .scratch-pill-ticket, .scr-cell.win, .scr-bonus.win { animation: none; }
}

/* ---------- 🎙️ Push-to-talk ---------- */
.talk-btn, .tw-btn {
  --left: 0;
  --level: 0;
  position: fixed;
  right: 88px;
  bottom: 16px;
  z-index: 65;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  padding: 0;
  font-size: 26px;
  color: var(--text);
  cursor: pointer;
  background: radial-gradient(circle at 50% 35%, #3a2a4a, #1b1224 70%);
  border: none;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #000, 0 0 0 5px var(--neon-cyan), 0 6px 16px rgba(0, 0, 0, 0.5);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.talk-btn:hover { transform: translateY(-2px) scale(1.05); }
.talk-btn:focus-visible, .tw-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.talk-icon, .tw-icon { position: relative; z-index: 1; pointer-events: none; transition: transform 0.08s linear; }
/* the time-left ring (only while someone talks) */
.talk-ring {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: conic-gradient(var(--ring, #ff3b5c) calc(var(--left) * 360deg), rgba(255, 255, 255, 0.08) 0);
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%);
  mask: radial-gradient(circle, transparent 62%, #000 63%);
  transition: opacity 0.2s;
}
.talk-tip {
  position: absolute;
  right: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(50%);
  padding: 4px 8px;
  font-family: var(--body-font);
  font-size: 17px;
  line-height: 1;
  white-space: nowrap;
  color: var(--text);
  pointer-events: none;
  background: rgba(11, 7, 16, 0.92);
  box-shadow: 0 0 0 2px #000, 0 0 0 3px var(--line);
  opacity: 0;
  transition: opacity 0.15s;
}
.talk-btn:hover .talk-tip, .talk-btn:focus-visible .talk-tip, .talk-btn[data-phase='opening'] .talk-tip, .talk-btn[data-phase='live'] .talk-tip, .talk-btn[data-phase='ending'] .talk-tip { opacity: 1; }
.talk-btn[data-phase='opening'], .tw-btn[data-phase='opening'] { animation: talk-wait 0.7s ease-in-out infinite; }
@keyframes talk-wait { 50% { box-shadow: 0 0 0 3px #000, 0 0 0 5px var(--gold), 0 0 22px var(--gold); } }
.talk-btn[data-phase='live'], .talk-btn[data-phase='ending'], .tw-btn[data-phase='live'], .tw-btn[data-phase='ending'] {
  background: radial-gradient(circle at 50% 35%, #ff5a6e, #b3122b 70%);
  box-shadow: 0 0 0 3px #000, 0 0 0 5px #ff3b5c, 0 0 calc(14px + var(--level) * 40px) rgba(255, 59, 92, 0.85);
  transform: scale(calc(1.06 + var(--level) * 0.12));
}
.talk-btn[data-phase='live'] .talk-icon, .tw-btn[data-phase='live'] .tw-icon { transform: scale(calc(1 + var(--level) * 0.35)); }
.talk-btn[data-phase='live'] .talk-ring, .talk-btn[data-phase='ending'] .talk-ring,
.tw-btn[data-phase='live'] .talk-ring, .tw-btn[data-phase='ending'] .talk-ring { opacity: 1; }
.talk-btn.latched, .tw-btn.latched { --ring: var(--gold); }
.talk-btn[data-phase='busy'], .tw-btn[data-phase='busy'] {
  cursor: not-allowed;
  filter: grayscale(0.8);
  background: radial-gradient(circle at 50% 35%, #2a2a33, #15151a 70%);
  box-shadow: 0 0 0 3px #000, 0 0 0 5px #555;
}
.talk-btn[data-phase='busy'] .talk-ring { opacity: 0.6; --ring: #888; }

/* who is talking: a pill at the top, for everyone */
.talk-banner {
  --level: 0;
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 115;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 6px 14px 6px 6px;
  font-family: var(--body-font);
  color: var(--text);
  pointer-events: none;
  background: linear-gradient(90deg, #3a0a14, #1b1224);
  border-radius: 999px;
  box-shadow: 0 0 0 3px #000, 0 0 0 5px #ff3b5c, 0 8px 24px rgba(0, 0, 0, 0.55), 0 0 calc(10px + var(--level) * 30px) rgba(255, 59, 92, 0.6);
  transform: translate(-50%, -140%);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.2, 1.3, 0.4, 1), opacity 0.2s;
}
.talk-banner.on { transform: translate(-50%, 0); opacity: 1; }
.talk-face { display: block; width: 40px; height: 40px; overflow: hidden; border-radius: 50%; background: #2a1830; box-shadow: 0 0 0 2px #ff3b5c; flex: none; }
.talk-face svg { width: 100%; height: 100%; }
.talk-who { display: grid; line-height: 1; min-width: 0; }
.talk-who b { font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.talk-who small { font-size: 16px; color: var(--muted); }
.talk-bars { display: flex; align-items: center; gap: 3px; height: 26px; }
.talk-bars i { display: block; width: 4px; height: 6px; background: #ff3b5c; border-radius: 2px; animation: talk-bar 0.5s ease-in-out infinite alternate; }
.talk-bars i:nth-child(2) { animation-delay: -0.1s; }
.talk-bars i:nth-child(3) { animation-delay: -0.25s; }
.talk-bars i:nth-child(4) { animation-delay: -0.4s; }
.talk-bars i:nth-child(5) { animation-delay: -0.15s; }
@keyframes talk-bar { to { height: calc(6px + var(--level) * 20px + 4px); } }
.talk-left { font-family: var(--pixel-font); font-size: 10px; color: var(--gold); min-width: 28px; text-align: right; }
.talk-banner.mine { box-shadow: 0 0 0 3px #000, 0 0 0 5px var(--gold), 0 8px 24px rgba(0, 0, 0, 0.55), 0 0 calc(10px + var(--level) * 30px) rgba(246, 197, 68, 0.6); }

@media (max-width: 600px) {
  .talk-btn { right: 84px; width: 56px; height: 56px; }
  .talk-tip { right: 0; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .talk-bars i, .talk-btn[data-phase='opening'] { animation: none; }
}

/* the small https talk window */
body.talk-window { min-height: 100vh; margin: 0; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 0%, #3a1450, #0b0710 70%); color: var(--text); }
.tw { display: grid; justify-items: center; gap: 10px; padding: 24px 16px; text-align: center; }
.tw h1 { margin: 0; font-size: 22px; }
.tw-eyebrow { margin: 0; font-family: var(--body-font); font-size: 18px; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; }
.tw-who { min-height: 1.2em; margin: 6px 0 10px; font-family: var(--body-font); font-size: 24px; }
.tw-btn { position: relative; right: auto; bottom: auto; width: 150px; height: 150px; font-size: 64px; margin: 10px 0; }
.tw-btn:disabled { opacity: 0.5; cursor: wait; }
.tw-btn .talk-ring { inset: -12px; }
.tw-hint, .tw-foot { margin: 0; font-family: var(--body-font); font-size: 18px; color: var(--muted); line-height: 1.2; }
.tw-hint kbd { padding: 0 4px; color: var(--text); background: #2a1830; box-shadow: 0 0 0 1px var(--line); }
.tw-error { margin: 0; max-width: 340px; font-family: var(--body-font); font-size: 18px; color: #ff8a9a; }
.tw-foot { margin-top: 12px; font-size: 16px; opacity: 0.8; }
.modal.talk-setup { width: min(100%, 480px); text-align: left; }
.talk-setup h2, .talk-setup .dialog-icon { text-align: center; }
.talk-setup p, .talk-setup ol { margin: 0; font-family: var(--body-font); font-size: 19px; line-height: 1.2; text-align: left; }
.talk-setup ol { padding-left: 22px; display: grid; gap: 4px; }
.talk-setup-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.talk-setup-actions .button { margin-top: 0; }
.talk-setup-backdrop { z-index: 118; }

/* 🧾 daily songs towards the 5 (next to the coins) */
.duty-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-family: var(--body-font);
  font-size: 18px;
  white-space: nowrap;
  color: #ffd2d8;
  background: #4a0f1c;
  box-shadow: 0 0 0 2px #000, 0 0 0 3px #d7263d;
  cursor: help;
}
.duty-pill.done { color: #c9ffd6; background: #0f3a22; box-shadow: 0 0 0 2px #000, 0 0 0 3px #2fbf6a; }

/* ---------- 🎻 Vivaldi (the boss is coming) ---------- */
.emergency-btn.vivaldi-btn {
  bottom: 98px;
  left: 22px;
  width: 52px;
  height: 52px;
  background: radial-gradient(circle at 35% 30%, #c9a27a, #7a4a22 55%, #3a1f0c);
  box-shadow: 0 0 0 3px #000, 0 0 0 6px #f6c544, 0 0 0 9px #000, 0 6px 14px rgba(0, 0, 0, 0.5);
}
.emergency-btn.vivaldi-btn .em-icon { font-size: 20px; }
.emergency-btn.vivaldi-btn .em-text { font-size: 6px; }
.emergency-btn.vivaldi-btn.playing { background: radial-gradient(circle at 35% 30%, #ffe58a, #b8860b 55%, #5a3c06); animation: emPulse 1.2s ease-in-out infinite; }
.toasts { bottom: 172px; }
body.vivaldi-on::after { content: '🎻 VIVALDI · press ▶ to bring the radio back'; position: fixed; left: 0; right: 0; top: 0; z-index: 139; pointer-events: none; padding: 4px; text-align: center; font-family: var(--pixel-font); font-size: 10px; color: #2a1600; background: linear-gradient(90deg, #c9a27a, #ffe58a, #c9a27a); box-shadow: 0 2px 0 #000; }

/* ---------- 🦖 Runner ---------- */
.runner-btn.live { animation: emPulse 1.2s ease-in-out infinite; box-shadow: 0 0 0 2px #000, 0 0 14px rgba(123, 255, 107, 0.8); }
.runner-backdrop { z-index: 96; }
.modal.runner-modal { width: min(100%, 900px); padding: 14px; gap: 10px; text-align: left; background: radial-gradient(ellipse at 50% 0%, #2a1240, #0b0710 75%); }
.rn-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.rn-head h2 { margin: 0; font-family: var(--pixel-font); font-size: 16px; color: #7bff6b; text-shadow: 2px 2px 0 #000; }
.rn-head small { flex: 1; font-family: var(--body-font); font-size: 18px; color: var(--muted); }
.rn-head .icon-button { margin-left: auto; }
.rn-stage { width: 100%; box-shadow: 0 0 0 3px #000, 0 0 0 5px #7bff6b; background: #0b0710; line-height: 0; }
.rn-stage canvas { display: block; width: 100%; image-rendering: pixelated; touch-action: none; cursor: pointer; }
.rn-pads { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rn-pad { min-height: 64px; font-family: var(--pixel-font); font-size: 14px; color: var(--text); background: #2a1830; border: none; box-shadow: 0 0 0 3px #000, 0 0 0 5px var(--line); touch-action: none; user-select: none; -webkit-user-select: none; cursor: pointer; }
.rn-pad.gold { color: #2a1600; background: var(--gold); }
.rn-pad:active { transform: translateY(2px); filter: brightness(1.2); }
.rn-keys { margin: 0; font-size: 17px; }
.rn-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rn-chip { padding: 2px 8px; font-family: var(--body-font); font-size: 18px; color: #0b0710; background: var(--c); box-shadow: 0 0 0 2px #000; }
.rn-actions { display: flex; gap: 8px; justify-content: flex-end; }
.rn-actions .button { margin-top: 0; }
.rn-results { display: grid; gap: 4px; }
.rn-row { display: grid; grid-template-columns: 28px 1fr auto auto; gap: 10px; align-items: center; padding: 4px 10px; font-family: var(--body-font); font-size: 20px; background: rgba(0, 0, 0, 0.35); box-shadow: 0 0 0 2px #000; }
.rn-row.ok { box-shadow: 0 0 0 2px #000, inset 3px 0 0 #7bff6b; }
.rn-row.out { opacity: 0.8; }
.rn-paid { color: var(--gold); min-width: 70px; text-align: right; }
@media (hover: hover) and (pointer: fine) { .rn-pads { display: none !important; } }
@media (hover: none) { .rn-keys { display: none; } }

/* 👃 Despoina M.'s Otrivin */
.dancer .otrivin {
  position: absolute;
  right: -6px;
  top: 4%;
  z-index: 3;
  display: block;
  width: 14px;
  height: 30px;
  scale: 1.35;
  pointer-events: none;
  transform-origin: 50% 100%;
  animation: otrivin-in 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) both, otrivin-up 0.6s 0.4s ease-out forwards;
}
.dancer .otrivin svg { display: block; image-rendering: pixelated; }
.dancer .otrivin.spray svg { animation: otrivin-press 0.35s ease-in-out; }
.dancer .otrivin.away { animation: otrivin-out 0.5s ease-in forwards; }
@keyframes otrivin-in { from { opacity: 0; transform: translateY(10px) scale(0.4); } }
@keyframes otrivin-up { to { transform: translate(-14px, -4px) rotate(-38deg); } }
@keyframes otrivin-press { 40% { transform: translateY(3px) scaleY(0.92); } }
@keyframes otrivin-out { to { opacity: 0; transform: translate(-8px, 6px) rotate(10deg) scale(0.5); } }
.otrivin-mist { position: absolute; left: 3px; top: -6px; width: 10px; height: 10px; }
.otrivin-mist i { position: absolute; left: 0; top: 0; width: 4px; height: 4px; border-radius: 50%; background: rgba(220, 240, 255, 0.9); opacity: 0; }
.otrivin.spray .otrivin-mist i { animation: otrivin-mist 0.7s ease-out forwards; }
.otrivin.spray .otrivin-mist i:nth-child(2) { --mx: -10px; --my: -8px; animation-delay: 0.03s; }
.otrivin.spray .otrivin-mist i:nth-child(3) { --mx: -4px; --my: -14px; animation-delay: 0.06s; }
.otrivin.spray .otrivin-mist i:nth-child(4) { --mx: -14px; --my: -2px; animation-delay: 0.09s; }
.otrivin.spray .otrivin-mist i:nth-child(5) { --mx: -8px; --my: -16px; animation-delay: 0.12s; }
@keyframes otrivin-mist { 0% { opacity: 0.95; transform: translate(0, 0) scale(0.6); } 100% { opacity: 0; transform: translate(var(--mx, -12px), var(--my, -10px)) scale(2.2); } }

/* 👃 Despoina M.'s Otrivin button, next to the mic */
.otrivin-btn {
  position: fixed;
  right: 160px;
  bottom: 18px;
  z-index: 65;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  cursor: pointer;
  background: radial-gradient(circle at 50% 35%, #e8f1ff, #9fc3f5 70%);
  border: none;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #000, 0 0 0 5px #1f6fd6, 0 6px 16px rgba(0, 0, 0, 0.5);
  transition: transform 0.12s ease;
}
.otrivin-btn svg { width: 18px; height: 38px; image-rendering: pixelated; position: relative; z-index: 1; }
.otrivin-btn:hover { transform: translateY(-2px) scale(1.05) rotate(-6deg); }
.otrivin-btn:active { transform: scale(0.94); }
.otrivin-btn:disabled { cursor: wait; filter: grayscale(0.6); }
.otrivin-ring { position: absolute; inset: -7px; border-radius: 50%; opacity: 0; pointer-events: none; -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%); mask: radial-gradient(circle, transparent 62%, #000 63%); }
.otrivin-btn.cooling .otrivin-ring { opacity: 1; animation: otrivin-cd var(--cd, 10s) linear forwards; }
@property --otr { syntax: '<number>'; inherits: false; initial-value: 1; }
@keyframes otrivin-cd { from { --otr: 1; } to { --otr: 0; } }
.otrivin-ring { background: conic-gradient(#1f6fd6 calc(var(--otr) * 360deg), rgba(255, 255, 255, 0.1) 0); }
@media (max-width: 600px) { .otrivin-btn { right: 150px; width: 52px; height: 52px; } }

/* ---------- 🔫 Duel ---------- */
.duel-pick-backdrop { z-index: 100; }
.modal.duel-pick { width: min(100%, 520px); }
.duel-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.duel-person { display: grid; justify-items: center; gap: 4px; padding: 8px; font-family: var(--body-font); font-size: 18px; color: var(--text); background: rgba(0, 0, 0, 0.35); border: none; box-shadow: 0 0 0 2px #000, 0 0 0 3px var(--line); cursor: pointer; }
.duel-person:hover { box-shadow: 0 0 0 2px #000, 0 0 0 3px #ff3b5c; transform: translateY(-2px); }
.duel-face { display: block; width: 52px; height: 52px; overflow: hidden; }
.duel-face svg { width: 100%; height: 100%; }

.duel-backdrop { z-index: 97; }
.modal.duel-modal { width: min(100%, 860px); padding: 12px; gap: 8px; background: #2a1408; box-shadow: 0 0 0 4px #000, 0 0 0 8px #c9a27a, 0 0 0 12px #000, 0 0 60px rgba(255, 140, 60, 0.35); }
.duel-head { display: flex; align-items: center; gap: 10px; font-family: var(--pixel-font); font-size: 13px; color: #ffe58a; text-shadow: 2px 2px 0 #000; }
.duel-title { flex: 1; text-align: center; }
.duel-title span { color: #ff8a3c; margin: 0 8px; }
.duel-live { padding: 3px 6px; font-size: 9px; color: #fff; background: #d7263d; animation: boss-blink 1s steps(1) infinite; }
@keyframes boss-blink { 50% { opacity: 0.35; } }
.duel-scene { position: relative; height: 300px; overflow: hidden; background: linear-gradient(#ff9a3c 0%, #ff6f3c 38%, #c2410c 62%, #7c2d12 100%); box-shadow: 0 0 0 3px #000; image-rendering: pixelated; }
.duel-sun { position: absolute; left: 50%; top: 40px; width: 110px; height: 110px; margin-left: -55px; border-radius: 50%; background: radial-gradient(circle, #fff3c4, #ffd23c 60%, rgba(255, 210, 60, 0) 72%); }
.duel-mesa { position: absolute; bottom: 90px; background: #7c2d12; box-shadow: inset 0 6px 0 #9a3a14; }
.duel-mesa.m1 { left: 4%; width: 180px; height: 70px; clip-path: polygon(10% 0, 90% 0, 100% 100%, 0 100%); }
.duel-mesa.m2 { right: 6%; width: 230px; height: 52px; clip-path: polygon(14% 0, 82% 0, 100% 100%, 0 100%); }
.duel-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 92px; background: repeating-linear-gradient(90deg, #d9a05b 0 6px, #cf9550 6px 12px); box-shadow: inset 0 4px 0 #b97a3c; }
.duel-cactus { position: absolute; bottom: 70px; font-size: 54px; filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.3)); }
.duel-cactus.c1 { left: 42%; font-size: 40px; bottom: 82px; }
.duel-cactus.c2 { right: 3%; }
.duel-tumble { position: absolute; bottom: 30px; left: -40px; width: 30px; height: 30px; border-radius: 50%; border: 3px dotted #7a4a22; box-shadow: inset 0 0 0 4px rgba(122, 74, 34, 0.5); animation: duel-tumble 9s linear infinite; }
@keyframes duel-tumble { 0% { transform: translateX(0) rotate(0); } 50% { transform: translateX(55vw) translateY(-6px) rotate(540deg); } 100% { transform: translateX(110vw) rotate(1080deg); } }
.duel-man { position: absolute; bottom: 40px; left: 14%; width: 96px; height: 120px; transform-origin: 50% 100%; transition: transform 0.5s cubic-bezier(0.3, 1.5, 0.5, 1); }
.duel-man.right { left: auto; right: 14%; transform: scaleX(-1); }
.duel-sprite { position: absolute; inset: 0; display: block; }
.duel-sprite svg { width: 100%; height: 100%; }
.duel-gun { position: absolute; right: -18px; top: 52px; font-size: 26px; opacity: 0; transform: scaleX(-1); transition: opacity 0.15s; }
.duel-backdrop.drawn .duel-gun, .duel-man.shot .duel-gun, .duel-man.won .duel-gun, .duel-man.foot .duel-gun { opacity: 1; }
.duel-man.foot .duel-gun { top: 96px; transform: scaleX(-1) rotate(70deg); }
.duel-flash { position: absolute; right: -40px; top: 50px; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle, #fff, #ffe58a 40%, #ff8a3c 70%, transparent 72%); opacity: 0; }
.duel-man.shot .duel-flash { animation: duel-flash 0.25s ease-out; }
.duel-man.foot .duel-flash { top: 100px; right: -10px; animation: duel-flash 0.25s ease-out; }
@keyframes duel-flash { 0% { opacity: 1; transform: scale(1.6); } 100% { opacity: 0; transform: scale(0.4); } }
.duel-name, .duel-ms { position: absolute; left: 50%; white-space: nowrap; font-family: var(--body-font); font-size: 18px; color: #fff6dc; text-shadow: 2px 2px 0 #000; transform: translateX(-50%); }
.duel-name { bottom: -26px; }
.duel-ms { top: -26px; color: #ffe58a; }
.duel-man.right .duel-name, .duel-man.right .duel-ms { transform: translateX(-50%) scaleX(-1); }
.duel-man.dead { transform: rotate(-88deg) translateY(10px); filter: grayscale(0.7); }
.duel-man.right.dead { transform: scaleX(-1) rotate(-88deg) translateY(10px); }
.duel-man.dead .duel-name, .duel-man.dead .duel-ms { display: none; }
.duel-man.dead::after { content: '💀'; position: absolute; top: -30px; left: 30px; font-size: 26px; transform: rotate(88deg); }
.duel-man.won { animation: duel-won 0.6s 0.4s ease-out 2; }
@keyframes duel-won { 50% { translate: 0 -12px; } }
.duel-big { position: absolute; left: 50%; top: 34%; transform: translate(-50%, -50%); font-family: var(--pixel-font); font-size: 46px; color: #fff6dc; text-shadow: 4px 4px 0 #000; white-space: nowrap; pointer-events: none; }
.duel-big.fire { color: #ff2d2d; font-size: 64px; animation: duel-firetext 0.3s ease-out; }
@keyframes duel-firetext { from { transform: translate(-50%, -50%) scale(2); } }
.duel-backdrop.drawn .duel-scene { animation: duel-shake 0.15s 3; }
@keyframes duel-shake { 50% { transform: translateX(3px); } }
.duel-line { min-height: 1.3em; margin: 0; font-family: 'Segoe UI', system-ui, sans-serif; font-size: 18px; font-weight: 700; color: #ffe58a; text-align: center; }
.duel-fire { min-height: 64px; font-family: var(--pixel-font); font-size: 18px; color: #fff; background: #7a1020; border: none; box-shadow: 0 0 0 3px #000, 0 0 0 5px #ff3b5c; cursor: pointer; touch-action: none; user-select: none; }
.duel-fire small { font-size: 9px; opacity: 0.7; }
.duel-fire.hot { background: #ff2d2d; box-shadow: 0 0 0 3px #000, 0 0 0 5px #fff, 0 0 30px #ff2d2d; }
@media (max-width: 600px) {
  .duel-scene { height: 240px; }
  .duel-man { width: 72px; height: 90px; left: 8%; }
  .duel-man.right { right: 8%; }
  .duel-big { font-size: 34px; }
  .duel-big.fire { font-size: 46px; }
  .duel-mesa.m2 { display: none; }
}

/* the loser lies on the dance floor for a while */
.dancer.duel-dead .sprite { animation: none !important; transform: rotate(-90deg) translate(-30%, 0); filter: grayscale(0.8); }
.dancer.duel-dead .body::after { content: '💀'; position: absolute; left: 50%; top: 10%; font-size: 18px; transform: translateX(-50%); }


/* ---------- 📜 Activity log page ---------- */
body.activity-page { min-height: 100vh; margin: 0; background: radial-gradient(ellipse at 50% 0%, #3a0a14, #0b0710 70%) fixed; color: var(--text); }
.act { max-width: 1100px; margin: 0 auto; padding: 16px; display: grid; gap: 12px; }
.act-head { display: flex; align-items: center; gap: 14px; }
.act-head h1 { margin: 0; font-size: 22px; flex: 1; }
.act-live { font-family: var(--pixel-font); font-size: 10px; color: #7bff6b; animation: boss-blink 1.4s steps(1) infinite; }
.act-filters { display: grid; grid-template-columns: 200px 170px 1fr; gap: 8px; }
.act-filters select, .act-filters input { min-width: 0; padding: 8px 10px; font-family: var(--body-font); font-size: 19px; color: var(--text); background: #120c18; border: none; box-shadow: 0 0 0 2px #000, 0 0 0 3px var(--line); }
.act-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.act-kinds button { padding: 4px 10px; font-family: var(--body-font); font-size: 18px; color: var(--text); background: #1b1224; border: none; box-shadow: 0 0 0 2px #000; cursor: pointer; }
.act-kinds button.on { color: #2a1600; background: var(--gold); }
.act-count { margin: 0; }
.act-table { display: grid; gap: 2px; }
.act-row { display: grid; grid-template-columns: 110px 130px 1fr; gap: 10px; align-items: baseline; padding: 6px 10px; font-family: 'Segoe UI', system-ui, sans-serif; font-size: 14px; background: rgba(0, 0, 0, 0.35); cursor: pointer; }
.act-row:nth-child(odd) { background: rgba(0, 0, 0, 0.22); }
.act-row.system { color: var(--muted); font-style: italic; }
.act-row.refused { box-shadow: inset 3px 0 0 #d7263d; }
.act-time { font-family: var(--body-font); font-size: 17px; color: var(--muted); }
.act-who { font-weight: 700; color: var(--gold-light); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-what small { display: none; margin-top: 4px; font-size: 12px; color: var(--muted); word-break: break-all; }
.act-row.open .act-what small { display: block; }
@media (max-width: 700px) {
  .act-filters { grid-template-columns: 1fr 1fr; }
  .act-filters input[type="search"] { grid-column: 1 / -1; }
  .act-row { grid-template-columns: 70px 1fr; }
  .act-what { grid-column: 1 / -1; }
}


/* 🥴 Iliana, always tipsy */
.dancer.drunk .body { animation: drunk-sway 2.6s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes drunk-sway { 0%, 100% { rotate: -6deg; translate: -2px 0; } 50% { rotate: 7deg; translate: 3px 0; } }
.dancer.drunk .name::after { content: ' 🥴'; }
.dancer.drunk-stumble .body { animation: drunk-stumble 1.6s ease-in-out; }
@keyframes drunk-stumble { 0% { rotate: 0deg; translate: 0 0; } 20% { rotate: 22deg; translate: 14px 0; } 40% { rotate: -14deg; translate: 22px 2px; } 60% { rotate: 18deg; translate: 8px 0; } 80% { rotate: -8deg; translate: 2px 0; } 100% { rotate: 0deg; translate: 0 0; } }
.dancer.drunk-hiccup .body { animation: drunk-hiccup 1.4s ease-out; }
@keyframes drunk-hiccup { 0%, 30%, 60%, 100% { translate: 0 0; } 15% { translate: 0 -14px; } 45% { translate: 0 -10px; } }
.dancer.drunk-spin .body { animation: drunk-spin 1.5s ease-in-out; }
@keyframes drunk-spin { 0% { rotate: 0deg; } 70% { rotate: 380deg; } 85% { rotate: 350deg; } 100% { rotate: 360deg; } }
.dancer.drunk-fall .body { animation: drunk-fall 4.2s ease-in-out; }
@keyframes drunk-fall { 0% { rotate: 0deg; translate: 0 0; } 12% { rotate: 25deg; } 22% { rotate: 92deg; translate: 18px 6px; } 75% { rotate: 92deg; translate: 18px 6px; } 85% { rotate: 40deg; translate: 8px 0; } 100% { rotate: 0deg; translate: 0 0; } }
.dancer.drunk-sway .body { animation: drunk-sway 0.9s ease-in-out 3; }
.drunk-hic { position: absolute; left: 70%; top: 0; z-index: 5; font-family: 'Segoe UI', system-ui, sans-serif; font-size: 13px; font-weight: 700; color: #fff6dc; text-shadow: 1px 1px 0 #000; pointer-events: none; animation: drunk-hic 1.3s ease-out forwards; }
@keyframes drunk-hic { 0% { opacity: 0; transform: translateY(6px) scale(0.6); } 20% { opacity: 1; transform: translateY(0) scale(1.1); } 100% { opacity: 0; transform: translate(10px, -22px) scale(1); } }
@media (prefers-reduced-motion: reduce) { .dancer.drunk .body { animation: none; rotate: 5deg; } }

/* 🤢 the vomit */
.dancer.drunk-vomit .sprite { animation: drunk-vomit 2.6s ease-in-out !important; transform-origin: 50% 100%; }
@keyframes drunk-vomit { 0% { rotate: 0deg; } 15% { rotate: -6deg; translate: -2px 0; } 25%, 70% { rotate: 24deg; translate: 4px 2px; } 100% { rotate: 0deg; translate: 0 0; } }
.vomit-spray { position: absolute; left: calc(50% + var(--dir, 1) * 14px); top: 30%; width: 0; height: 0; z-index: 3; pointer-events: none; }
.vomit-spray i { position: absolute; left: 0; top: 0; width: 5px; height: 5px; background: #7cc43a; box-shadow: 0 0 0 1px #4d8a1c; opacity: 0; animation: vomit-drop 0.75s cubic-bezier(0.3, 0, 0.7, 1) forwards; animation-delay: calc(var(--i) * 45ms); }
.vomit-spray i:nth-child(3n) { background: #c9d94a; }
@keyframes vomit-drop { 0% { opacity: 1; transform: translate(0, 0); } 100% { opacity: 1; transform: translate(calc(var(--dir, 1) * (18px + var(--r) * 2px)), calc(48px + var(--r) * 1px)); } }
.vomit-puddle { position: absolute; left: calc(50% - 17px + var(--dir, 1) * 26px); bottom: 26px; width: 34px; height: 9px; border-radius: 50%; background: radial-gradient(ellipse at 40% 40%, #a6d64a, #6aa82e 60%, #4d8a1c); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4); transform-origin: 30% 50%; animation: vomit-puddle 0.5s ease-out; transition: opacity 1s; pointer-events: none; }
.vomit-puddle.gone { opacity: 0; }
@keyframes vomit-puddle { from { transform: scaleX(0.2); } }

/* ⚡ Zeus slot, opened over the radio */
.zeus-btn { background: linear-gradient(#1d4bb0, #0b2160) !important; color: #ffe58a !important; }
.football-btn { background: linear-gradient(#1f7a35, #0d3d1a) !important; color: #fff !important; }
.zeus-frame { position: fixed; inset: 0; z-index: 150; background: #050b20; animation: zeus-in 0.35s ease-out; }
.zeus-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
@keyframes zeus-in { from { opacity: 0; transform: scale(1.03); } }
body.zeus-open { overflow: hidden; }

/* ⚽ "play and win" banner on the radio: a pitch that scrolls, a ball that runs into a net,
   a light sweeping across, a jumping gold title and coins popping out by the button */
.promo-banner { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; margin: 0 0 14px; padding: 12px 12px 14px 16px; color: #fff; background: repeating-linear-gradient(90deg, #2b8a36 0 40px, #37a043 40px 80px); border-radius: 16px; box-shadow: 0 0 0 3px #000, 0 0 0 6px #ffd43b, 0 8px 26px rgba(63, 191, 74, 0.5); animation: promo-in 0.7s cubic-bezier(0.2, 1.5, 0.4, 1), promo-pitch 3s linear infinite, promo-glow 2.4s ease-in-out infinite; }
.promo-banner.hidden { display: none; }
.promo-banner > * { position: relative; z-index: 1; }
/* the white lines of a pitch */
.promo-banner::before { content: ''; position: absolute; inset: 6px; z-index: 0; border: 2px solid rgba(255, 255, 255, 0.35); border-radius: 10px; pointer-events: none; }
.promo-banner::after { content: ''; position: absolute; left: 50%; top: 50%; z-index: 0; width: 70px; height: 70px; translate: -50% -50%; border: 2px solid rgba(255, 255, 255, 0.3); border-radius: 50%; pointer-events: none; }
.promo-banner > .promo-shine { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%); transform: translateX(-100%); animation: promo-shine 3.2s ease-in-out infinite; }
/* a ball that runs along the bottom into the net on the right */
.promo-banner > .promo-runner { position: absolute; left: 0; bottom: 2px; z-index: 1; width: 100%; height: 20px; pointer-events: none; }
.promo-runner i { position: absolute; left: -30px; bottom: 0; font-size: 16px; font-style: normal; animation: promo-run 5s cubic-bezier(0.45, 0, 0.6, 1) infinite; }
.promo-banner > .promo-net { position: absolute; right: 0; bottom: 0; z-index: 0; width: 18px; height: 30px; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.55) 0 1px, transparent 1px 5px), repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.55) 0 1px, transparent 1px 5px); border: 2px solid #fff; border-right: 0; border-radius: 4px 0 0 4px; animation: promo-net 5s ease-out infinite; }
.promo-ball { font-size: 36px; display: inline-block; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.35)); animation: promo-bounce 1.1s cubic-bezier(0.3, 0, 0.6, 1) infinite; }
.promo-text { flex: 1; min-width: 0; display: grid; gap: 3px; }
.promo-title { display: block; font-size: 30px; letter-spacing: 1px; line-height: 1.15; }
.promo-title span { display: inline-block; color: #ffe58a; text-shadow: 0 3px 0 #8a5a00, 0 5px 0 rgba(0, 0, 0, 0.45), 0 0 14px rgba(255, 214, 80, 0.7); animation: promo-wave 2.2s ease-in-out infinite; animation-delay: calc(var(--i) * 0.06s); }
.promo-text small { font-size: 14px; line-height: 1.3; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5); }
.promo-text strong { color: #ffe58a; }
.promo-coins { flex: none; width: 34px; height: 46px; }
.promo-coins i { position: absolute; left: 6px; bottom: 0; font-size: 18px; font-style: normal; opacity: 0; animation: promo-coin 2.4s ease-out infinite; }
.promo-coins i:nth-child(2) { animation-delay: 0.6s; left: 14px; }
.promo-coins i:nth-child(3) { animation-delay: 1.2s; left: 0; }
.promo-coins i:nth-child(4) { animation-delay: 1.8s; left: 12px; }
.promo-play { flex: none; padding: 11px 18px; font: inherit; font-size: 17px; font-weight: 900; color: #1a1a1a; cursor: pointer; background: linear-gradient(#fff3b0, #ffd43b 55%, #e0a72a); border: none; border-radius: 12px; box-shadow: 0 0 0 3px #000, 0 4px 0 #000; animation: promo-pulse 1.4s ease-in-out infinite; }
.promo-play:hover { animation-play-state: paused; transform: translateY(-2px) scale(1.06); box-shadow: 0 0 0 3px #000, 0 6px 0 #000, 0 0 22px rgba(255, 220, 90, 0.9); }
.promo-play:active { transform: translateY(2px); box-shadow: 0 0 0 3px #000, 0 1px 0 #000; }
.promo-close { flex: none; width: 32px; height: 32px; font-size: 22px; line-height: 1; color: #fff; cursor: pointer; background: rgba(0, 0, 0, 0.4); border: none; border-radius: 50%; transition: transform 0.2s, background 0.2s; }
.promo-close:hover { background: rgba(0, 0, 0, 0.7); transform: rotate(90deg); }
@keyframes promo-in { from { opacity: 0; transform: translateY(-16px) scale(0.96); } }
@keyframes promo-pitch { to { background-position: 80px 0; } }
@keyframes promo-glow { 50% { box-shadow: 0 0 0 3px #000, 0 0 0 6px #fff1a8, 0 8px 34px rgba(255, 214, 80, 0.75); } }
@keyframes promo-shine { 0%, 55% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }
@keyframes promo-run { 0% { left: -30px; transform: rotate(0); opacity: 1; } 70% { left: calc(100% - 30px); transform: rotate(900deg); } 76% { left: calc(100% - 16px); transform: rotate(960deg) scale(0.9); opacity: 1; } 100% { left: calc(100% - 16px); transform: rotate(960deg) scale(0.9); opacity: 0; } }
@keyframes promo-net { 0%, 69% { transform: none; } 73% { transform: translateX(3px) scaleY(1.1); } 80%, 100% { transform: none; } }
@keyframes promo-bounce { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(180deg); } }
@keyframes promo-wave { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-6px) scale(1.12); } }
@keyframes promo-coin { 0% { opacity: 0; transform: translateY(0) scale(0.6); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-44px) scale(1.1) rotate(25deg); } }
@keyframes promo-pulse { 50% { transform: scale(1.07); box-shadow: 0 0 0 3px #000, 0 4px 0 #000, 0 0 20px rgba(255, 220, 90, 0.85); } }
@media (max-width: 640px) {
  .promo-banner { flex-wrap: wrap; gap: 10px; }
  .promo-text { flex-basis: calc(100% - 100px); }
  .promo-title { font-size: 20px; }
  .promo-text small { font-size: 12px; }
  .promo-coins { display: none; }
  .promo-play { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .promo-banner, .promo-banner * { animation: none !important; }
}

/* 🏦 Δάνειο ΠΑΣΟΚ: a thin green banner with the offer; red with the debt */
.loan-banner { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 7px 10px 7px 12px; color: #fff; background: linear-gradient(90deg, #0b6b3a, #129150 60%, #0b6b3a); border-radius: 12px; box-shadow: 0 0 0 3px #000, 0 4px 14px rgba(18, 145, 80, 0.4); animation: loan-in 0.5s ease-out; }
.loan-banner.hidden { display: none; }
.loan-banner::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, 0.28) 50%, transparent 60%); transform: translateX(-100%); animation: loan-shine 4s ease-in-out infinite; }
.loan-banner.debt { background: linear-gradient(90deg, #7a0d14, #b3161f 60%, #7a0d14); box-shadow: 0 0 0 3px #000, 0 4px 14px rgba(200, 30, 40, 0.45); }
.loan-banner.late { animation: loan-in 0.5s ease-out, loan-alarm 1s steps(2) infinite; }
.loan-banner.debt .loan-x { display: none; }
.loan-logo { flex: none; display: grid; place-items: center; width: 38px; height: 38px; font-size: 22px; background: #fff; border-radius: 50%; box-shadow: 0 0 0 3px #000; }
.loan-logo i { font-style: normal; display: inline-block; animation: loan-coin 2.6s ease-in-out infinite; }
.loan-logo.big { width: 54px; height: 54px; font-size: 32px; }
.loan-name { flex: none; font-size: 11px; line-height: 1.05; letter-spacing: 1px; text-align: center; color: #d6ffe6; }
.loan-name b { font-size: 18px; color: #fff; letter-spacing: 2px; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.4); }
.loan-banner.debt .loan-name { color: #ffd6d9; }
.loan-text { flex: 1; min-width: 0; font-size: 14px; line-height: 1.3; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4); }
.loan-text b { color: #ffe58a; }
.loan-text em { font-style: normal; font-weight: 800; color: #fff; }
.loan-text sup { color: #ffe58a; }
.loan-go { position: relative; z-index: 1; flex: none; padding: 7px 12px; font: inherit; font-weight: 800; color: #1a1a1a; cursor: pointer; background: #ffd43b; border: none; border-radius: 9px; box-shadow: 0 0 0 2px #000, 0 3px 0 #000; }
.loan-go:hover { background: #ffe58a; transform: translateY(-1px); }
.loan-x { position: relative; z-index: 1; flex: none; width: 28px; height: 28px; font-size: 20px; line-height: 1; color: #fff; cursor: pointer; background: rgba(0, 0, 0, 0.35); border: none; border-radius: 50%; }
.debt-pill { margin-left: 6px; padding: 4px 9px; font: inherit; font-weight: 800; color: #fff; cursor: pointer; background: #b3161f; border: none; border-radius: 999px; box-shadow: 0 0 0 2px #000; }
.debt-pill.late { animation: loan-alarm 1s steps(2) infinite; }
@keyframes loan-in { from { opacity: 0; transform: translateY(-8px); } }
@keyframes loan-shine { 0%, 60% { transform: translateX(-100%); } 90%, 100% { transform: translateX(100%); } }
@keyframes loan-coin { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-12deg) scale(1.1); } }
@keyframes loan-alarm { 50% { filter: brightness(1.35); } }

.loan-modal { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, 0.6); }
.loan-modal.hidden { display: none; }
.loan-card { position: relative; width: min(100%, 460px); max-height: 100%; overflow: auto; padding: 18px; color: #1b1b1b; background: #f7f4ea; border-radius: 16px; box-shadow: 0 0 0 4px #000, 0 12px 40px rgba(0, 0, 0, 0.5); animation: loan-in 0.3s ease-out; }
.loan-card .loan-x { position: absolute; right: 10px; top: 10px; background: rgba(0, 0, 0, 0.6); }
.loan-head { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 3px dashed #0b6b3a; }
.loan-head b { display: block; font-size: 24px; letter-spacing: 2px; color: #0b6b3a; }
.loan-head small { font-size: 14px; color: #555; }
.loan-lead { margin: 0 0 10px; font-size: 15px; }
.loan-options, .loan-pay { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.loan-opt { flex: 1; min-width: 64px; padding: 8px 6px; font: inherit; font-weight: 800; cursor: pointer; background: #fff; border: 2px solid #000; border-radius: 9px; }
.loan-opt.on { background: #ffd43b; }
.loan-opt:disabled { opacity: 0.35; cursor: not-allowed; }
.loan-deal { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.loan-deal span { display: grid; gap: 2px; padding: 8px; font-size: 12px; color: #555; background: #fff; border: 2px solid #000; border-radius: 9px; }
.loan-deal b { font-size: 20px; color: #1b1b1b; }
.loan-deal .plus { color: #0b7a3a; }
.loan-deal .minus, .loan-lead .minus { color: #b3161f; }
.loan-terms { margin: 0 0 12px; padding-left: 18px; font-size: 13px; line-height: 1.45; }
.loan-sign { flex: 1; width: 100%; padding: 11px; font: inherit; font-size: 17px; font-weight: 900; color: #fff; cursor: pointer; background: #0b6b3a; border: none; border-radius: 10px; box-shadow: 0 0 0 2px #000, 0 4px 0 #000; }
.loan-pay .loan-sign { width: auto; }
.loan-sign:hover { filter: brightness(1.15); }
.loan-fine { display: block; margin-top: 8px; font-size: 11px; color: #777; }
.loan-bar { position: relative; height: 26px; margin-bottom: 8px; overflow: hidden; background: #fff; border: 2px solid #000; border-radius: 9px; }
.loan-bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #12a35a, #6ee49a); }
.loan-bar span { position: relative; display: grid; place-items: center; height: 100%; font-size: 12px; font-weight: 800; }
.loan-note { margin: 0 0 10px; font-size: 13px; }
@media (max-width: 640px) {
  .loan-banner { flex-wrap: wrap; }
  .loan-text { flex-basis: calc(100% - 130px); font-size: 13px; }
  .loan-go { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .loan-banner, .loan-banner *, .loan-banner::after, .debt-pill { animation: none !important; }
}

/* 💐 Flowers & 🍽️ plates (public/florist.js) */
.florist-btn { background: linear-gradient(#c2185b, #6a0f35) !important; color: #fff !important; }
.florist-layer { position: absolute; inset: 0; z-index: 6; pointer-events: none; overflow: visible; }
.florist-layer > * { position: absolute; left: 0; top: 0; will-change: transform; }
.florist-petal { font-size: 20px; line-height: 1; margin: -10px 0 0 -10px; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.35)); }
.florist-petal.small { font-size: 13px; }
.florist-petal.down, .florist-shard.down { transition: opacity 1.2s; }
.florist-petal.gone, .florist-shard.gone { opacity: 0; }
.florist-plate { margin: -7px 0 0 -17px; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.4)); }
.florist-shard { width: 7px; height: 5px; margin: -2px 0 0 -3px; background: #ffffff; box-shadow: 0 0 0 1px #9aa6bd; clip-path: polygon(0 0, 100% 30%, 60% 100%); }
.florist-shard.s1 { width: 9px; height: 4px; background: #e9eef7; clip-path: polygon(0 50%, 100% 0, 80% 100%); }
.florist-shard.s2 { width: 5px; height: 5px; background: #2a6fdb; box-shadow: none; clip-path: polygon(50% 0, 100% 100%, 0 80%); }
.florist-puff { width: 46px; height: 22px; margin: -14px 0 0 -23px; border-radius: 50%; background: radial-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0)); animation: florist-puff 0.6s ease-out forwards; }
@keyframes florist-puff { from { opacity: 1; scale: 0.4; } to { opacity: 0; scale: 1.8; } }
.florist-girl { z-index: 5; transition: none; }
.florist-girl .name { color: #ff9ec8 !important; }
.florist-girl .florist-basket { position: absolute; top: 44%; right: -12px; font-size: 22px; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.4)); }
.florist-girl.walking .body { animation: florist-bob 0.32s steps(2) infinite; }
@keyframes florist-bob { 50% { translate: 0 -3px; } }
.dancer.florist-showered .body { filter: drop-shadow(0 0 10px #ff6fae) drop-shadow(0 0 4px #ffd1e6); }
.dancer.florist-honoured .body { filter: drop-shadow(0 0 10px #f6c544); }

.florist-modal { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, 0.6); }
.florist-modal.hidden { display: none; }
.florist-card { position: relative; width: min(100%, 480px); max-height: 100%; overflow: auto; padding: 18px; color: #1b1b1b; background: #fff4f8; border-radius: 16px; box-shadow: 0 0 0 4px #000, 0 12px 40px rgba(0, 0, 0, 0.5); animation: loan-in 0.3s ease-out; }
.florist-card .loan-x { position: absolute; right: 10px; top: 10px; background: rgba(0, 0, 0, 0.6); }
.florist-head { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 3px dashed #c2185b; font-size: 30px; }
.florist-head b { display: block; font-size: 22px; letter-spacing: 2px; color: #a3134e; }
.florist-head small { font-size: 14px; color: #555; }
.florist-tabs { display: flex; gap: 6px; margin-bottom: 8px; }
.florist-tab { flex: 1; padding: 8px; font: inherit; font-weight: 800; cursor: pointer; background: #fff; border: 2px solid #000; border-radius: 9px; }
.florist-tab.on { background: #c2185b; color: #fff; }
.florist-lead { margin: 0 0 10px; font-size: 14px; }
.florist-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.florist-item { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; font: inherit; cursor: pointer; background: #fff; border: 2px solid #000; border-radius: 10px; }
.florist-item .e { font-size: 28px; }
.florist-item b { font-size: 13px; text-align: center; }
.florist-item small { font-size: 13px; font-weight: 800; color: #a3134e; }
.florist-item.on { background: #ffd1e6; box-shadow: 0 0 0 3px #c2185b; }
.florist-item:disabled { opacity: 0.4; cursor: not-allowed; }
.florist-row { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 14px; }
.florist-row select, .florist-row input { padding: 7px 8px; font: inherit; border: 2px solid #000; border-radius: 8px; background: #fff; }
.florist-wait { margin: 0 0 8px; font-size: 13px; color: #a3134e; }
.florist-send { width: 100%; padding: 11px; font: inherit; font-size: 17px; font-weight: 900; color: #fff; cursor: pointer; background: #c2185b; border: none; border-radius: 10px; box-shadow: 0 0 0 2px #000, 0 4px 0 #000; }
.florist-send:disabled { opacity: 0.5; cursor: not-allowed; }
@media (max-width: 520px) { .florist-items { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) { .florist-girl.walking .body { animation: none; } }
.florist-row > span { color: #1b1b1b; font-weight: 700; }
.florist-row select, .florist-row input { color: #1b1b1b; }
.florist-row input::placeholder { color: #8a7b82; }

/* 🎶 bouzoukia mode while flowers / plates are on: red and gold lights, neon sign, spotlight */
.dance-floor.bouzoukia::before { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: radial-gradient(ellipse at 50% 0%, rgba(255, 190, 60, 0.28), transparent 60%), linear-gradient(180deg, rgba(170, 10, 40, 0.35), rgba(60, 0, 20, 0.15)); animation: bzk-glow 1.6s ease-in-out infinite alternate; }
@keyframes bzk-glow { from { opacity: 0.75; } to { opacity: 1; } }
.bzk-sign { position: absolute; left: 50%; top: 10px; z-index: 7; display: grid; justify-items: center; gap: 2px; padding: 6px 16px 8px; max-width: calc(100% - 24px); translate: -50% 0; text-align: center; pointer-events: none; background: rgba(20, 0, 10, 0.75); border: 2px solid #ff3d7f; border-radius: 10px; box-shadow: 0 0 12px #ff3d7f, inset 0 0 12px rgba(255, 61, 127, 0.5); animation: bzk-in 0.5s ease-out; }
.bzk-sign.out { opacity: 0; transition: opacity 0.8s; }
.bzk-sign b { font-size: 26px; letter-spacing: 6px; color: #fff; text-shadow: 0 0 6px #ff3d7f, 0 0 14px #ff3d7f, 0 0 28px #ff007f; animation: bzk-flicker 3.2s infinite; }
.bzk-sign span { font-size: 15px; color: #ffe58a; text-shadow: 0 0 8px #f6a524; }
.bzk-sign em { font-style: normal; font-weight: 800; color: #fff; }
.bzk-sign small { font-size: 13px; color: #ffd1e6; }
@keyframes bzk-in { from { opacity: 0; transform: translateY(-12px) scale(0.9); } }
@keyframes bzk-flicker { 0%, 18%, 22%, 62%, 64%, 100% { opacity: 1; } 20%, 63% { opacity: 0.35; } }
.bzk-spot { position: absolute; top: 0; bottom: 0; left: 50%; z-index: 4; width: 220px; translate: -50% 0; pointer-events: none; background: linear-gradient(180deg, rgba(255, 236, 170, 0.5), rgba(255, 220, 120, 0.12) 85%, rgba(255, 220, 120, 0.3)); clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%); mix-blend-mode: screen; transition: left 0.25s linear, opacity 0.8s; animation: bzk-in 0.6s ease-out; }
.bzk-spot.wide { width: 100%; left: 50% !important; clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }
.bzk-spot.out { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .dance-floor.bouzoukia::before, .bzk-sign b { animation: none; } }
/* the flower girl, running like mad */
.florist-girl.crazy.walking .body { animation: florist-bob 0.16s steps(2) infinite; }
.florist-girl.crazy .sprite { --tempo: 0.18s; }
.florist-girl .body.florist-spin { animation: florist-spin 0.55s ease-in-out !important; }
@keyframes florist-spin { 0% { rotate: 0deg; } 60% { rotate: 380deg; translate: 0 -10px; } 100% { rotate: 360deg; } }
.florist-dust { width: 14px; height: 7px; margin: -4px 0 0 -7px; border-radius: 50%; background: rgba(230, 220, 200, 0.6); animation: florist-puff 0.5s ease-out forwards; }

/* =====================================================================
   🌴 LEONIDA NIGHTS — the GTA theme (body.season-gta), switched on by the admin.
   A Vice City sunset: hot pink, cyan, orange; palm trees and towers on the floor; a game HUD.
   ===================================================================== */
body.season-gta {
  --felt: #3a1450;
  --felt-dark: #1c0830;
  --felt-light: #5a1f78;
  --night: #0c0517;
  --panel: #150a24;
  --panel-2: #1f0f33;
  --gold: #ffb347;
  --gold-dark: #c2601a;
  --gold-light: #ffd9a0;
  --red: #ff2e88;
  --red-dark: #8a0f4a;
  --neon-pink: #ff3e9a;
  --neon-cyan: #3ae6ff;
  --text: #fff1fa;
  --muted: #c9a9d6;
  --line: rgba(255, 62, 154, 0.32);
  background-color: var(--night);
  background-image:
    radial-gradient(ellipse at 50% 108%, rgba(255, 120, 60, 0.35), transparent 50%),
    radial-gradient(ellipse at 15% -10%, rgba(58, 230, 255, 0.18), transparent 50%),
    radial-gradient(ellipse at 85% -10%, rgba(255, 62, 154, 0.22), transparent 50%),
    linear-gradient(180deg, #120624, #0c0517 55%, #1a0820);
  background-attachment: fixed;
}
.season-gta .marquee { background: linear-gradient(90deg, #2a0b3f, #57135f 40%, #b8325a 75%, #ff7a3d); }
.season-gta .bulbs { background-image: radial-gradient(circle, #3ae6ff 0 3px, transparent 4px), radial-gradient(circle, #ff3e9a 0 3px, transparent 4px); background-size: 22px 22px, 22px 22px; background-position: 0 0, 11px 0; }
.season-gta .neon { text-shadow: 0 0 6px #ff3e9a, 0 0 16px #ff3e9a, 3px 3px 0 #000; }
.season-gta .brand-dice { color: transparent; background: none; box-shadow: none; position: relative; }
.season-gta .brand-dice::after { content: '🌴'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 40px; color: initial; filter: drop-shadow(0 0 10px rgba(58, 230, 255, 0.9)); animation: gtaPalm 3s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes gtaPalm { 50% { transform: rotate(-7deg); } }
.season-gta .panel { background: linear-gradient(180deg, #24103a, #170a28 55%, #120720); }
.season-gta .section-title > span:first-child { text-shadow: 0 0 8px rgba(255, 62, 154, 0.6), 2px 2px 0 #000; }
.season-gta .button.green { --b: #ff3e9a; --b-dark: #8a0f4a; }
.season-gta .badge { background: #3ae6ff; color: #0c0517; }
.season-gta .toast, .season-gta .toast.rich { background: linear-gradient(135deg, #3a1450, #170a28); box-shadow: 0 0 0 2px #000, 0 0 0 4px #ff3e9a; }
.season-gta .modal { background: linear-gradient(180deg, #2a0f45, #120720); box-shadow: 0 0 0 var(--px) #000, 0 0 0 calc(var(--px) * 3) #ff3e9a, 0 0 0 calc(var(--px) * 4) #000, 0 0 60px rgba(58, 230, 255, 0.35); }

/* The floor: a Vice City sunset over the sea, palm trees and towers, a pink-and-teal tiled floor. */
.season-gta .dance-floor {
  background:
    radial-gradient(circle at 50% 39%, #ffe08a 0 30px, #ff9a4d 31px 34px, transparent 35px),
    repeating-linear-gradient(180deg, transparent 0 4px, rgba(18, 6, 36, 0.55) 4px 6px) 50% 32% / 70px 22px no-repeat,
    linear-gradient(180deg, #2b0d4a 0, #7a1f6b 15%, #ff4f7b 29%, #ff9a4d 37%, #ffd27a 41%, #3ae6ff 42%, #1b6d8f 44%, transparent 44%),
    conic-gradient(from 45deg, #2a0f45 25%, #3b1460 0 50%, #2a0f45 0 75%, #3b1460 0) 0 0 / 48px 48px;
}
.season-gta .dance-floor::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 44%; z-index: 0; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100' preserveAspectRatio='none'%3E%3Cg fill='%23140726'%3E%3Crect x='20' y='52' width='18' height='48'/%3E%3Crect x='42' y='30' width='22' height='70'/%3E%3Crect x='68' y='60' width='16' height='40'/%3E%3Crect x='250' y='40' width='20' height='60'/%3E%3Crect x='274' y='18' width='26' height='82'/%3E%3Crect x='304' y='48' width='18' height='52'/%3E%3Crect x='326' y='36' width='14' height='64'/%3E%3C/g%3E%3Cg fill='%23ff3e9a' opacity='.7'%3E%3Crect x='46' y='36' width='3' height='3'/%3E%3Crect x='56' y='46' width='3' height='3'/%3E%3Crect x='280' y='26' width='3' height='3'/%3E%3Crect x='290' y='40' width='3' height='3'/%3E%3Crect x='278' y='56' width='3' height='3'/%3E%3C/g%3E%3Cg fill='%233ae6ff' opacity='.7'%3E%3Crect x='254' y='50' width='3' height='3'/%3E%3Crect x='308' y='60' width='3' height='3'/%3E%3C/g%3E%3C/svg%3E") 0 100% / 100% 70% no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 100'%3E%3Cpath d='M31 100 C29 70 33 50 30 28' stroke='%23140726' stroke-width='4' fill='none'/%3E%3Cg fill='%23140726'%3E%3Cpath d='M30 28 C20 18 8 20 2 30 C12 24 22 25 30 30Z'/%3E%3Cpath d='M30 28 C40 18 52 20 58 30 C48 24 38 25 30 30Z'/%3E%3Cpath d='M30 28 C24 14 14 8 6 10 C16 14 24 20 30 30Z'/%3E%3Cpath d='M30 28 C36 14 46 8 54 10 C44 14 36 20 30 30Z'/%3E%3C/g%3E%3C/svg%3E") 3% 100% / 70px 92% no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 100'%3E%3Cpath d='M29 100 C31 70 27 50 30 28' stroke='%23140726' stroke-width='4' fill='none'/%3E%3Cg fill='%23140726'%3E%3Cpath d='M30 28 C20 18 8 20 2 30 C12 24 22 25 30 30Z'/%3E%3Cpath d='M30 28 C40 18 52 20 58 30 C48 24 38 25 30 30Z'/%3E%3Cpath d='M30 28 C24 14 14 8 6 10 C16 14 24 20 30 30Z'/%3E%3Cpath d='M30 28 C36 14 46 8 54 10 C44 14 36 20 30 30Z'/%3E%3C/g%3E%3C/svg%3E") 96% 100% / 80px 100% no-repeat;
}
.season-gta.is-playing .dance-floor::after { background: conic-gradient(from 45deg, rgba(255, 62, 154, 0.28) 25%, transparent 0 50%, rgba(58, 230, 255, 0.24) 0 75%, transparent 0) 0 0 / 96px 96px; }
.season-gta .spot-a { background: linear-gradient(180deg, rgba(255, 62, 154, 0.45), transparent 90%); }
.season-gta .spot-b { background: linear-gradient(180deg, rgba(58, 230, 255, 0.4), transparent 90%); }
.season-gta .disco-ball { opacity: 0; }
.season-gta .dancer .shadow { background: radial-gradient(ellipse, rgba(58, 230, 255, 0.45), transparent 70%); }

/* GTA VI countdown strip */
.gta-countdown { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 8px 12px; color: #fff; border-radius: 12px; background: linear-gradient(90deg, #ff3e9a, #ff7a3d 45%, #ffb347 70%, #3ae6ff); box-shadow: 0 0 0 3px #000, 0 6px 22px rgba(255, 62, 154, 0.45); }
.gta-cd-logo { flex: none; display: grid; place-items: center; width: 46px; height: 46px; font: 900 30px/1 Georgia, 'Times New Roman', serif; font-style: italic; color: #fff; background: linear-gradient(180deg, #ff3e9a, #8a0f4a); border-radius: 10px; box-shadow: 0 0 0 2px #000, inset 0 0 0 2px rgba(255, 255, 255, 0.4); text-shadow: 0 0 8px #ffd27a; }
.gta-cd-text { flex: 1; min-width: 0; display: grid; gap: 2px; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45); }
.gta-cd-text b { font-size: 18px; letter-spacing: 1px; }
.gta-cd-text small { font-size: 12.5px; opacity: 0.95; }
.gta-cd-btn { flex: none; padding: 8px 12px; font: inherit; font-weight: 800; color: #fff; cursor: pointer; background: #140726; border: none; border-radius: 10px; box-shadow: 0 0 0 2px #000, 0 3px 0 #000; }
.gta-cd-btn:hover { background: #2a0f45; }

/* HUD: weapon, cash, wanted stars (top right); radar (bottom left) */
.gta-hud { position: absolute; right: 10px; top: 10px; z-index: 8; display: grid; justify-items: end; gap: 2px; pointer-events: none; font-family: Georgia, 'Times New Roman', serif; }
.gta-weapon { pointer-events: auto; display: grid; place-items: center; width: 54px; height: 54px; padding: 0; font-size: 28px; cursor: pointer; background: rgba(10, 4, 20, 0.6); border: 2px solid rgba(255, 255, 255, 0.7); border-radius: 10px; position: relative; }
.gta-weapon small { position: absolute; right: 3px; bottom: 1px; font: 800 12px/1 system-ui, sans-serif; color: #fff; text-shadow: 1px 1px 0 #000; }
.gta-cash { font-size: 26px; font-weight: 900; color: #6bff8f; letter-spacing: 1px; text-shadow: 2px 2px 0 #000, -1px -1px 0 #000, 0 0 10px rgba(80, 255, 120, 0.4); }
.gta-stars { display: flex; gap: 2px; font-size: 18px; }
.gta-stars i { font-style: normal; color: rgba(255, 255, 255, 0.25); text-shadow: 1px 1px 0 #000; }
.gta-stars i.on { color: #fff; text-shadow: 0 0 8px #fff, 1px 1px 0 #000; animation: gtaStar 0.6s steps(2) infinite; }
@keyframes gtaStar { 50% { color: #ffd27a; } }
.gta-radar { position: absolute; left: 10px; bottom: 10px; z-index: 8; width: 86px; height: 86px; overflow: hidden; pointer-events: none; border-radius: 50%; background: radial-gradient(circle, rgba(58, 230, 255, 0.15), rgba(10, 4, 20, 0.75) 70%); box-shadow: 0 0 0 2px #000, 0 0 0 4px rgba(255, 255, 255, 0.6); }
.gta-radar::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, 0.15); }
.gta-radar .sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(58, 230, 255, 0.35), transparent 25%); animation: gtaSweep 3s linear infinite; }
@keyframes gtaSweep { to { transform: rotate(360deg); } }
.gta-radar i { position: absolute; top: 58%; width: 7px; height: 7px; margin-left: -3px; border-radius: 50%; background: #3ae6ff; box-shadow: 0 0 0 1px #000; }
.gta-radar i.me { background: #fff; width: 9px; height: 9px; top: 56%; }
.gta-radar i.foe { background: #ff2e2e; top: 46%; animation: gtaStar 0.5s steps(2) infinite; }
.gta-radar i.loot { background: #6bff8f; top: 40%; }

/* the event layer */
.gta-layer { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.gta-layer > * { pointer-events: auto; }
.gta-thug { z-index: 5; transition: left 1.1s linear; }
.gta-thug .name { color: #fff !important; background: var(--gang, #000) !important; }
.gta-thug.hurt .body { animation: gtaHurt 0.25s; }
@keyframes gtaHurt { 30% { transform: translateX(-4px) rotate(-6deg); filter: brightness(2) saturate(0); } 60% { transform: translateX(4px); } }
.gta-thug.dead { cursor: default; }
.gta-thug.dead .body { transform: rotate(-90deg) translateX(-40px); transition: transform 0.5s ease-in; filter: grayscale(0.6); }
.gta-thug.dead .gta-hp { opacity: 0; }
.gta-thing.leaving { opacity: 0; transition: opacity 0.8s; }
.gta-hp { position: absolute; top: -12px; left: 50%; width: 52px; height: 6px; transform: translateX(-50%); background: rgba(0, 0, 0, 0.7); box-shadow: 0 0 0 1px #000; }
.gta-hp i { display: block; height: 100%; background: linear-gradient(90deg, #ff2e2e, #ffb347); transition: width 0.15s; }
.gta-pop { position: absolute; z-index: 9; transform: translate(-50%, -50%); font: 900 18px/1 system-ui, sans-serif; color: #fff; text-shadow: 2px 2px 0 #000; pointer-events: none; animation: gtaPop 1.1s ease-out forwards; }
.gta-pop.comic { font-size: 22px; color: #ffe14a; -webkit-text-stroke: 1px #000; font-style: italic; }
.gta-pop.wasted { font: 900 26px/1 Georgia, serif; color: #ff2e2e; letter-spacing: 3px; }
.gta-pop.cash { color: #6bff8f; font-size: 20px; }
@keyframes gtaPop { from { opacity: 1; scale: 0.6; } 20% { scale: 1.2; } to { opacity: 0; translate: 0 -40px; } }
.gta-tracer { position: absolute; z-index: 9; height: 2px; margin-top: -1px; transform-origin: 0 50%; pointer-events: none; background: linear-gradient(90deg, rgba(255, 240, 160, 0), #fff6c8 60%, #fff); box-shadow: 0 0 6px #ffd27a; animation: gtaFade 0.16s linear forwards; }
.gta-tracer.rpg { height: 4px; background: linear-gradient(90deg, rgba(255, 140, 0, 0), #ff7a3d); }
.gta-flash { position: absolute; z-index: 9; width: 18px; height: 18px; margin: -9px 0 0 -9px; pointer-events: none; border-radius: 50%; background: radial-gradient(#fff, #ffd27a 40%, rgba(255, 120, 0, 0) 70%); animation: gtaFade 0.12s linear forwards; }
@keyframes gtaFade { to { opacity: 0; } }
.gta-boom { position: absolute; z-index: 9; width: 160px; height: 160px; margin: -80px 0 0 -80px; pointer-events: none; border-radius: 50%; background: radial-gradient(#fff 0 10%, #ffd27a 25%, #ff7a3d 45%, rgba(120, 20, 0, 0.6) 60%, transparent 70%); animation: gtaBoom 0.9s ease-out forwards; }
@keyframes gtaBoom { from { scale: 0.2; } 40% { scale: 1.1; opacity: 1; } to { scale: 1.4; opacity: 0; } }
.dance-floor.gta-shake { animation: gtaShake 0.4s; }
@keyframes gtaShake { 20% { translate: -6px 3px; } 40% { translate: 5px -4px; } 60% { translate: -4px 2px; } 80% { translate: 3px -1px; } }
.gta-case { position: absolute; bottom: 8px; z-index: 6; display: grid; justify-items: center; padding: 0; cursor: pointer; background: none; border: none; transform: translateX(-50%); animation: gtaDrop 1.6s ease-out; }
.gta-case .chute { font-size: 30px; animation: gtaChute 1.6s ease-out forwards; }
.gta-case .bag { font-size: 34px; filter: drop-shadow(0 0 10px #6bff8f); animation: gtaPulse 0.8s ease-in-out infinite alternate; }
.gta-case small { font: 900 12px/1 system-ui; color: #6bff8f; text-shadow: 1px 1px 0 #000; }
@keyframes gtaDrop { from { transform: translate(-50%, -260px); } }
@keyframes gtaChute { 80% { opacity: 1; } to { opacity: 0; } }
@keyframes gtaPulse { to { transform: scale(1.12); } }
.gta-gator { position: absolute; bottom: 4px; z-index: 6; display: grid; justify-items: center; padding: 0; cursor: pointer; background: none; border: none; transform: translateX(-50%); transition-property: left; transition-timing-function: linear; }
.gta-gator .g { font-size: 52px; display: inline-block; transform: scaleX(-1); animation: gtaCrawl 0.5s steps(2) infinite; }
.gta-gator.flip .g { transform: scaleX(1); }
.gta-gator small { font: 800 11px/1 system-ui; color: #fff; text-shadow: 1px 1px 0 #000; white-space: nowrap; }
.gta-gator .gta-hp { top: -6px; }
@keyframes gtaCrawl { 50% { translate: 0 -2px; } }
.gta-chase { position: absolute; top: 34%; left: 0; z-index: 4; display: flex; gap: 26px; font-size: 40px; pointer-events: none; animation: gtaChase 6s linear forwards; }
.gta-chase.left { animation-name: gtaChaseLeft; flex-direction: row-reverse; }
.gta-chase .car, .gta-chase .cop { display: inline-block; transform: scaleX(-1); }
.gta-chase.left .car, .gta-chase.left .cop { transform: none; }
.gta-chase .cop { filter: drop-shadow(0 -6px 6px rgba(255, 46, 46, 0.9)); animation: gtaLights 0.3s steps(2) infinite; }
@keyframes gtaLights { 50% { filter: drop-shadow(0 -6px 8px rgba(58, 120, 255, 1)); } }
@keyframes gtaChase { from { transform: translateX(-60%); } to { transform: translateX(160vw); } }
@keyframes gtaChaseLeft { from { transform: translateX(110vw); } to { transform: translateX(-120%); } }

/* MISSION PASSED / FAILED / BUSTED */
.gta-banner { position: absolute; left: 50%; top: 40%; z-index: 10; display: grid; justify-items: center; gap: 4px; padding: 10px 26px; translate: -50% -50%; pointer-events: none; text-align: center; background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.75) 15%, rgba(0, 0, 0, 0.75) 85%, transparent); animation: gtaBanner 0.5s ease-out; }
.gta-banner.out { opacity: 0; transition: opacity 0.6s; }
.gta-banner b { font: 900 38px/1.05 Georgia, 'Times New Roman', serif; letter-spacing: 2px; text-transform: uppercase; color: #ffd27a; -webkit-text-stroke: 1.5px #000; text-shadow: 3px 3px 0 #000; }
.gta-banner span { font: 700 15px/1.3 system-ui, sans-serif; color: #fff; text-shadow: 1px 1px 0 #000; }
.gta-banner.failed b { color: #ff2e2e; }
.gta-banner.busted b { color: #dfe6ff; font-size: 52px; }
.gta-banner.raid b { font-size: 26px; color: #ff3e9a; }
@keyframes gtaBanner { from { opacity: 0; scale: 1.4; } }

/* Babis's gun shop */
.gta-shop { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, 0.65); }
.gta-shop.hidden { display: none; }
.gta-shop-card { position: relative; width: min(100%, 560px); max-height: 100%; overflow: auto; padding: 16px; color: #fff; background: linear-gradient(180deg, #2a0f45, #120720); border-radius: 16px; box-shadow: 0 0 0 3px #000, 0 0 0 6px #ff3e9a, 0 12px 40px rgba(0, 0, 0, 0.6); }
.gta-x { position: absolute; right: 10px; top: 10px; width: 30px; height: 30px; font-size: 20px; color: #fff; cursor: pointer; background: rgba(0, 0, 0, 0.5); border: none; border-radius: 50%; }
.gta-shop-head b { display: block; font: 900 24px/1.1 Georgia, serif; color: #ffd27a; text-shadow: 2px 2px 0 #000; }
.gta-shop-head small { color: #c9a9d6; }
.gta-shop-me { display: flex; gap: 14px; margin: 10px 0; font: 900 18px/1 Georgia, serif; }
.gta-shop-me span:first-child { color: #6bff8f; }
.gta-guns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.gta-gun { display: grid; gap: 4px; padding: 10px; background: rgba(0, 0, 0, 0.35); border-radius: 10px; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12); }
.gta-gun.owned { box-shadow: 0 0 0 2px rgba(58, 230, 255, 0.5); }
.gta-gun.eq { box-shadow: 0 0 0 3px #ffd27a, 0 0 14px rgba(255, 210, 122, 0.5); }
.gta-gun .e { font-size: 28px; }
.gta-gun b { font-size: 15px; }
.gta-gun small { color: #c9a9d6; font-size: 12px; }
.gta-gun em { font-style: normal; font-weight: 900; color: #ffd27a; font-size: 13px; }
.gta-gun button { padding: 6px 8px; font: inherit; font-size: 13px; font-weight: 800; color: #fff; cursor: pointer; background: #3a1450; border: none; border-radius: 8px; box-shadow: 0 0 0 2px #000; }
.gta-gun button.buy { background: #ff3e9a; }
.gta-gun button:disabled { opacity: 0.4; cursor: not-allowed; }
.gta-shop-tip { margin: 10px 0 6px; font-size: 13px; color: #e6d6f0; }
.gta-top { display: grid; gap: 2px; font-size: 13px; }
.gta-top b { color: #3ae6ff; }
.gta-triggers { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
@media (max-width: 640px) {
  .gta-countdown { flex-wrap: wrap; }
  .gta-cd-btn { flex: 1; }
  .gta-guns { grid-template-columns: 1fr; }
  .gta-banner b { font-size: 28px; }
  .gta-radar { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .season-gta *, .gta-layer * { animation: none !important; }
}

/* the gang hits back: a swing, the victim jolts, red flash on my screen, my health bar, WASTED */
.gta-thug.gta-swing .body { animation: gtaSwing 0.35s ease-out; }
@keyframes gtaSwing { 40% { transform: translateX(10px) rotate(8deg); } }
.dancer.gta-hit .body { animation: gtaHurt 0.3s; }
.dancer.gta-down .body { transform: rotate(-90deg) translateX(-40px); filter: grayscale(1); transition: transform 0.4s ease-in; }
.dance-floor.gta-ouch::after { content: ''; position: absolute; inset: 0; z-index: 11; pointer-events: none; box-shadow: inset 0 0 90px rgba(255, 0, 0, 0.75); animation: gtaFade 0.6s ease-out forwards; background: none !important; }
.dance-floor.gta-wasted { filter: grayscale(1) contrast(1.1); }
.dance-floor.gta-wasted .gta-banner { filter: none; }
.gta-tracer.enemy { background: linear-gradient(90deg, rgba(255, 60, 60, 0), #ff5a5a 60%, #fff); box-shadow: 0 0 6px #ff2e2e; }
.gta-pop.dmg { color: #ff4d4d; font-size: 18px; }
.gta-health { display: flex; align-items: center; gap: 5px; margin-top: 3px; pointer-events: auto; font: 800 13px/1 system-ui, sans-serif; color: #fff; text-shadow: 1px 1px 0 #000; }
.gta-health b { color: #ff4d6d; font-size: 16px; text-shadow: 0 0 6px rgba(255, 60, 90, 0.7), 1px 1px 0 #000; }
.gta-health .bar { display: block; width: 92px; height: 10px; background: rgba(0, 0, 0, 0.7); box-shadow: 0 0 0 2px #000, 0 0 0 3px rgba(255, 255, 255, 0.35); }
.gta-health .bar i { display: block; height: 100%; background: linear-gradient(#7dff9a, #2fbf4f); transition: width 0.25s; }
.gta-health em { font-style: normal; min-width: 26px; text-align: right; }
.gta-health.mid .bar i { background: linear-gradient(#ffe27a, #e0a800); }
.gta-health.low .bar i { background: linear-gradient(#ff7a7a, #d11); animation: gtaStar 0.5s steps(2) infinite; }
.gta-health.low b { animation: gtaBeat 0.6s ease-in-out infinite; }
@keyframes gtaBeat { 50% { transform: scale(1.35); } }
@media (max-width: 640px) { .gta-health .bar { width: 64px; } }

/* in hospital (2 minutes after WASTED): pale, bandaged, a countdown tag */
.dancer.gta-hospital .body { filter: grayscale(0.85) brightness(0.8); opacity: 0.7; }
.gta-hosp-tag { position: absolute; left: 50%; top: -14px; transform: translateX(-50%); z-index: 6; padding: 2px 6px; white-space: nowrap; pointer-events: none; font: 800 11px/1.2 system-ui, sans-serif; color: #fff; background: #d11; border: 2px solid #fff; border-radius: 6px; box-shadow: 0 2px 0 #000; }
.gta-health.hosp em { color: #ff6b6b; min-width: 54px; }

/* =====================================================================
   🎄 NAUGHTY XMAS — DEFEND THE GIFTS (body.season-xmas), switched on by the admin.
   A snowy village at night: deep purple sky, a pink moon with Santa's sleigh, string lights,
   a big tree with the day's gifts, towers around it, goblins that come for the gifts.
   Sprites: public/xmas/ (cut from the "Xmas Base Defense" asset sheet).
   ===================================================================== */
body.season-xmas {
  --felt: #3a1450;
  --felt-dark: #1c0830;
  --felt-light: #5a1f78;
  --night: #0d0618;
  --panel: #160a26;
  --panel-2: #22103a;
  --gold: #ffcf5a;
  --gold-dark: #b8741a;
  --gold-light: #ffe9a8;
  --red: #e8304a;
  --red-dark: #8a1426;
  --text: #fff4f8;
  --muted: #d3b8de;
  --line: rgba(255, 92, 140, 0.32);
  background-color: var(--night);
  background-image:
    radial-gradient(2px 2px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 72% 9%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 88% 32%, #ffe7f2 50%, transparent 51%),
    radial-gradient(ellipse at 50% 110%, rgba(255, 80, 140, 0.25), transparent 50%),
    linear-gradient(180deg, #160828, #0d0618 60%, #1a0a22);
  background-attachment: fixed;
}
.season-xmas .marquee { background: linear-gradient(90deg, #5a0f22, #a01c34 40%, #1f6b3a 75%, #134a2a); }
.season-xmas .bulbs { background-image: radial-gradient(circle, #ff4a5e 0 3px, transparent 4px), radial-gradient(circle, #ffd25a 0 3px, transparent 4px), radial-gradient(circle, #4ad46e 0 3px, transparent 4px); background-size: 33px 22px, 33px 22px, 33px 22px; background-position: 0 0, 11px 0, 22px 0; animation: xmasBulbs 1.2s steps(2) infinite; }
@keyframes xmasBulbs { 50% { filter: hue-rotate(120deg) brightness(1.2); } }
.season-xmas .neon { text-shadow: 0 0 6px #ff5c8c, 0 0 16px #ff2e5e, 3px 3px 0 #000; }
.season-xmas .brand-dice { color: transparent; background: none; box-shadow: none; position: relative; }
.season-xmas .brand-dice::after { content: '🎄'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 40px; color: initial; filter: drop-shadow(0 0 10px rgba(255, 210, 90, 0.9)); animation: xmasSway 3s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes xmasSway { 50% { transform: rotate(-6deg); } }
.season-xmas .panel { background: linear-gradient(180deg, #24103a, #170a28 55%, #120720); }
.season-xmas .button.green { --b: #e8304a; --b-dark: #8a1426; }
.season-xmas .badge { background: #4ad46e; color: #0d0618; }
.season-xmas .toast, .season-xmas .toast.rich { background: linear-gradient(135deg, #3a1230, #170a28); box-shadow: 0 0 0 2px #000, 0 0 0 4px #e8304a; }
.season-xmas .modal { background: linear-gradient(180deg, #2a0f3a, #120720); box-shadow: 0 0 0 var(--px) #000, 0 0 0 calc(var(--px) * 3) #e8304a, 0 0 0 calc(var(--px) * 4) #000, 0 0 60px rgba(255, 210, 90, 0.3); }

/* the floor: night sky over a snowy ground */
.season-xmas .dance-floor {
  height: 330px;
  background:
    linear-gradient(180deg, #120626 0, #24103f 22%, #3d1653 36%, #6a2463 42%, transparent 42%),
    radial-gradient(ellipse at 50% 42%, rgba(255, 220, 160, 0.35), transparent 40%),
    linear-gradient(180deg, #d9d4f2 42%, #b9b2e2 60%, #9d94cf 100%);
}
.season-xmas .dance-floor::after { display: none; }
.season-xmas .disco-ball { opacity: 0; }
.season-xmas .spot-a { background: linear-gradient(180deg, rgba(255, 92, 140, 0.32), transparent 85%); }
.season-xmas .spot-b { background: linear-gradient(180deg, rgba(255, 210, 90, 0.28), transparent 85%); }
.season-xmas .dancer .shadow { background: radial-gradient(ellipse, rgba(40, 20, 80, 0.5), transparent 70%); }

.xmas-scene { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.xmas-scene img, .xmas-towers img, .xmas-layer img, .xmas-hud img, .xmas-shop img { image-rendering: pixelated; -webkit-user-drag: none; user-select: none; }
.xmas-sky {
  position: absolute; left: 0; right: 0; top: 0; height: 42%;
  background:
    radial-gradient(1.5px 1.5px at 8% 20%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 18% 52%, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 31% 14%, #ffe6f6 50%, transparent 52%), radial-gradient(1px 1px at 44% 40%, #fff 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 58% 12%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 84% 48%, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 93% 18%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 26% 30%, #fff 50%, transparent 52%);
  animation: xmasTwinkle 3s steps(2) infinite;
}
@keyframes xmasTwinkle { 50% { opacity: 0.6; } }
.xmas-moon { position: absolute; right: 16%; top: 2px; height: 37%; opacity: 0.95; filter: drop-shadow(0 0 18px rgba(255, 190, 230, 0.55)); }
.xmas-village {
  position: absolute; left: 0; right: 0; top: 24%; height: 18.5%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 40' preserveAspectRatio='none'%3E%3Cg fill='%23170a2c'%3E%3Cpath d='M0 40V24l12-10 12 10v16z'/%3E%3Cpath d='M30 40V20l16-12 16 12v20z'/%3E%3Cpath d='M70 40V26l10-8 10 8v14z'/%3E%3Cpath d='M96 40V18l18-12 18 12v22z'/%3E%3Cpath d='M240 40V22l14-11 14 11v18z'/%3E%3Cpath d='M274 40V16l18-12 18 12v24z'/%3E%3Cpath d='M318 40V24l12-9 12 9v16z'/%3E%3Cpath d='M350 40V19l16-12 16 12v21z'/%3E%3Cpath d='M386 40V25l7-6 7 6v15z'/%3E%3C/g%3E%3Cg fill='%23f4f0ff'%3E%3Cpath d='M0 24l12-10 12 10-3 0-9-7-9 7z'/%3E%3Cpath d='M30 20l16-12 16 12-3 0-13-9-13 9z'/%3E%3Cpath d='M96 18l18-12 18 12-3 0-15-9-15 9z'/%3E%3Cpath d='M240 22l14-11 14 11-3 0-11-8-11 8z'/%3E%3Cpath d='M274 16l18-12 18 12-3 0-15-9-15 9z'/%3E%3Cpath d='M350 19l16-12 16 12-3 0-13-9-13 9z'/%3E%3C/g%3E%3Cg fill='%23ffc95a'%3E%3Crect x='8' y='28' width='4' height='4'/%3E%3Crect x='40' y='25' width='4' height='4'/%3E%3Crect x='50' y='31' width='4' height='4'/%3E%3Crect x='106' y='24' width='4' height='4'/%3E%3Crect x='118' y='30' width='4' height='4'/%3E%3Crect x='250' y='27' width='4' height='4'/%3E%3Crect x='286' y='22' width='4' height='4'/%3E%3Crect x='296' y='30' width='4' height='4'/%3E%3Crect x='326' y='29' width='4' height='4'/%3E%3Crect x='360' y='26' width='4' height='4'/%3E%3Crect x='370' y='32' width='4' height='4'/%3E%3C/g%3E%3C/svg%3E") 0 100% / 100% 100% no-repeat;
}
.xmas-lights { position: absolute; left: -2%; right: -2%; top: 4px; height: 26px; }
.xmas-lights::before { content: ''; position: absolute; inset: 0; border-bottom: 2px solid #0a3a1c; border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.xmas-lights::after {
  content: ''; position: absolute; left: 0; right: 0; top: 10px; height: 18px;
  background:
    radial-gradient(circle at 50% 60%, #ff3d5a 0 4px, transparent 5px) 0 0 / 48px 18px,
    radial-gradient(circle at 50% 60%, #ffd25a 0 4px, transparent 5px) 16px 4px / 48px 18px,
    radial-gradient(circle at 50% 60%, #4ad4ff 0 4px, transparent 5px) 32px 2px / 48px 18px;
  filter: drop-shadow(0 0 4px rgba(255, 220, 140, 0.9));
  animation: xmasBlink 1.4s steps(2) infinite;
}
@keyframes xmasBlink { 50% { filter: drop-shadow(0 0 2px rgba(255, 220, 140, 0.4)) hue-rotate(140deg); } }
.xmas-deco { position: absolute; }
.xmas-deco.pine { bottom: 36%; height: 64px; opacity: 0.9; }
.xmas-deco.pine.l { left: 1%; }
.xmas-deco.pine.r { right: 1%; }
.xmas-deco.lamp { bottom: 30%; height: 80px; filter: drop-shadow(0 0 12px rgba(255, 200, 90, 0.8)); }
.xmas-deco.lamp.l { left: 6%; }
.xmas-deco.lamp.r { right: 11%; }
.xmas-tree { position: absolute; left: 50%; bottom: 8px; width: 250px; height: 200px; transform: translateX(-50%); }
.xmas-tree > img { position: absolute; left: 50%; bottom: 10px; height: 186px; transform: translateX(-50%); filter: drop-shadow(0 0 14px rgba(255, 210, 120, 0.55)); }
.xmas-tree .glow { position: absolute; left: 50%; bottom: 0; width: 280px; height: 230px; transform: translateX(-50%); background: radial-gradient(ellipse at 50% 70%, rgba(255, 210, 120, 0.45), transparent 62%); animation: xmasGlow 2.4s ease-in-out infinite; }
@keyframes xmasGlow { 50% { opacity: 0.6; } }
.xmas-gifts { position: absolute; left: 50%; bottom: 0; width: 244px; height: 60px; transform: translateX(-50%); }
.xmas-gifts .g { position: absolute; width: 30px; filter: drop-shadow(1px 2px 0 rgba(0, 0, 0, 0.35)); animation: xmasGiftIn 0.4s ease-out; }
@keyframes xmasGiftIn { from { transform: translateY(-20px) scale(0.6); opacity: 0; } }
.xmas-gifts .g0 { left: 8px; bottom: 0; } .xmas-gifts .g1 { left: 206px; bottom: 0; }
.xmas-gifts .g2 { left: 42px; bottom: 2px; } .xmas-gifts .g3 { left: 172px; bottom: 2px; }
.xmas-gifts .g4 { left: 74px; bottom: 0; } .xmas-gifts .g5 { left: 140px; bottom: 0; }
.xmas-gifts .g6 { left: 24px; bottom: 22px; } .xmas-gifts .g7 { left: 190px; bottom: 22px; }
.xmas-gifts .g8 { left: 58px; bottom: 24px; } .xmas-gifts .g9 { left: 156px; bottom: 24px; }
.xmas-gifts .g10 { left: -8px; bottom: 18px; } .xmas-gifts .g11 { left: 222px; bottom: 18px; }
.xmas-snow { position: absolute; inset: 0; background: radial-gradient(2px 2px at 20px 30px, #fff 50%, transparent 51%), radial-gradient(2.5px 2.5px at 80px 90px, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 130px 50px, #fff 50%, transparent 51%), radial-gradient(2px 2px at 170px 140px, #fff 50%, transparent 51%); background-size: 200px 180px; animation: xmasSnow 7s linear infinite; opacity: 0.9; }
.xmas-snow.far { background-size: 120px 110px; animation-duration: 12s; opacity: 0.55; filter: blur(0.4px); }
@keyframes xmasSnow { to { background-position: 30px 180px, -20px 180px, 20px 180px, -30px 180px; } }

/* the towers on their six spots (behind the dancers) */
.xmas-towers { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.xmas-pad, .xmas-tower { position: absolute; bottom: 4px; padding: 0; background: none; border: 0; cursor: pointer; pointer-events: auto; transform: translateX(-50%); }
.xmas-pad { width: 50px; height: 26px; border-radius: 50%; background: radial-gradient(ellipse at 50% 40%, #fff, #cfc8f0 70%); box-shadow: 0 0 0 2px rgba(255, 92, 140, 0.6), 0 0 12px rgba(255, 92, 140, 0.5); opacity: 0.75; }
.xmas-pad span { display: block; font: 900 18px/26px 'Press Start 2P', monospace; color: #e8304a; }
.xmas-pad:hover { opacity: 1; box-shadow: 0 0 0 2px #ff5c8c, 0 0 18px #ff5c8c; }
.xmas-tower img { display: block; height: 70px; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.25)); transition: filter 0.2s; }
.xmas-tower.lv2 img { height: 78px; filter: drop-shadow(0 0 6px rgba(255, 210, 90, 0.6)); }
.xmas-tower.lv3 img { height: 86px; filter: drop-shadow(0 0 10px rgba(255, 92, 140, 0.85)); }
.xmas-tower:hover img { filter: drop-shadow(0 0 10px #fff); }
.xmas-tower .stars { position: absolute; left: 50%; top: -12px; transform: translateX(-50%); font-size: 12px; letter-spacing: -1px; color: #ffd25a; text-shadow: 1px 1px 0 #000; white-space: nowrap; }
.xmas-tower.fire img { animation: xmasRecoil 0.25s ease-out; }
@keyframes xmasRecoil { 40% { transform: scale(1.08, 0.94) translateY(2px); } }

/* goblins, shots and effects (in front of the dancers) */
.xmas-layer { position: absolute; inset: 0; z-index: 9; pointer-events: none; }
.xmas-gob { position: absolute; bottom: 6px; padding: 0; background: none; border: 0; cursor: crosshair; pointer-events: auto; transform: translateX(-50%); transition: left 0.26s linear; display: flex; flex-direction: column; align-items: center; }
.xmas-gob .spr { position: relative; display: block; height: var(--h); width: calc(var(--h) * 1.05); }
.xmas-gob .spr img { position: absolute; left: 50%; bottom: 0; height: var(--h); transform: translateX(-50%); visibility: hidden; }
.xmas-gob .spr .f1 { visibility: visible; animation: xmasStepA 0.36s steps(1) infinite; }
.xmas-gob .spr .f2 { animation: xmasStepB 0.36s steps(1) infinite; }
@keyframes xmasStepA { 50% { visibility: hidden; } }
@keyframes xmasStepB { 50% { visibility: visible; } }
.xmas-gob.carry .spr .f1, .xmas-gob.carry .spr .f2 { visibility: hidden; animation: none; }
.xmas-gob.carry .spr .fc { visibility: visible; animation: xmasHop 0.3s steps(2) infinite; }
@keyframes xmasHop { 50% { transform: translateX(-50%) translateY(-4px); } }
.xmas-gob.flip .spr { transform: scaleX(-1); }
.xmas-gob.hurt .spr img { filter: brightness(2.2) saturate(0.2); }
.xmas-gob.hurt .spr { animation: xmasJolt 0.25s; }
@keyframes xmasJolt { 30% { translate: 4px 0; } 60% { translate: -3px 0; } }
.xmas-gob.slow .spr img { filter: hue-rotate(160deg) saturate(0.6) brightness(1.15); }
.xmas-gob .fx-slow { position: absolute; top: 4px; right: -6px; width: 20px; display: none; }
.xmas-gob.slow .fx-slow { display: block; animation: xmasSpin 2s linear infinite; }
@keyframes xmasSpin { to { transform: rotate(360deg); } }
.xmas-gob .fx-stun { position: absolute; top: -8px; left: 50%; display: none; gap: 6px; transform: translateX(-50%); }
.xmas-gob .fx-stun img { width: 16px; animation: xmasFloat 0.8s ease-in-out infinite alternate; }
.xmas-gob .fx-stun img + img { animation-delay: -0.4s; }
.xmas-gob.stun .fx-stun { display: flex; }
.xmas-gob.stun .spr .f1, .xmas-gob.stun .spr .f2 { animation-play-state: paused; }
@keyframes xmasFloat { to { transform: translateY(-8px); } }
.xmas-gob .loot { position: absolute; top: -4px; left: 50%; width: 28px; transform: translateX(-50%); display: none; filter: drop-shadow(0 0 6px #ffd25a); }
.xmas-gob.carry .loot { display: block; animation: xmasHop 0.3s steps(2) infinite; }
.xmas-gob .hp { position: absolute; top: -12px; left: 50%; width: 46px; height: 5px; transform: translateX(-50%); background: rgba(0, 0, 0, 0.6); box-shadow: 0 0 0 1px #000; }
.xmas-gob .hp i { display: block; height: 100%; background: linear-gradient(#7dff9a, #2fbf4f); transition: width 0.2s; }
.xmas-gob .crown { position: absolute; top: -34px; left: 50%; transform: translateX(-50%); font-size: 22px; filter: drop-shadow(0 0 6px #ffd25a); }
.xmas-gob.k-boss .hp, .xmas-gob.k-king .hp { width: 90px; height: 7px; top: -16px; }
.xmas-gob .xname { margin-top: -2px; padding: 1px 4px; font: 700 10px/1.2 system-ui, sans-serif; color: #fff; white-space: nowrap; background: rgba(20, 60, 30, 0.85); box-shadow: 0 0 0 1px #000; }
.xmas-gob.k-boss .xname, .xmas-gob.k-king .xname { background: #8a1426; font-size: 12px; }
.xmas-gob .say { position: absolute; bottom: calc(100% + 14px); left: 50%; z-index: 5; width: max-content; max-width: 170px; padding: 5px 9px; font: 13px/1.3 'Segoe UI', system-ui, sans-serif; color: #111; background: #fff6dc; box-shadow: 0 0 0 2px #000; opacity: 0; pointer-events: none; transform: translate(-50%, 6px) scale(0.9); transition: opacity 0.25s, transform 0.25s; }
.xmas-gob .say.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.xmas-gob.dead { pointer-events: none; transition: none; animation: xmasFade 0.9s ease-in forwards; }
.xmas-gob.dead .spr img { visibility: hidden !important; animation: none !important; }
.xmas-gob.dead .spr .fd { visibility: visible !important; }
.xmas-gob.dead .hp, .xmas-gob.dead .loot, .xmas-gob.dead .say, .xmas-gob.dead .crown { display: none; }
.xmas-gob.gone { opacity: 0; transition: left 0.26s linear, opacity 0.8s; }
@keyframes xmasFade { 60% { opacity: 1; } to { opacity: 0; } }
.xmas-shot { position: absolute; left: 0; top: 0; z-index: 7; pointer-events: none; filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8)); }
.xmas-fx { position: absolute; z-index: 7; pointer-events: none; transform: translate(-50%, -50%); animation: xmasBurst 0.6s ease-out forwards; }
.xmas-fx.poof { animation: xmasPoof 0.7s ease-out forwards; }
@keyframes xmasBurst { from { transform: translate(-50%, -50%) scale(0.3); opacity: 1; } to { transform: translate(-50%, -50%) scale(1.3); opacity: 0; } }
@keyframes xmasPoof { from { transform: translate(-50%, -50%) scale(0.5); opacity: 0.95; } to { transform: translate(-50%, -70%) scale(1.4); opacity: 0; } }
.xmas-pop { position: absolute; z-index: 8; pointer-events: none; transform: translateX(-50%); font: 900 16px/1 'Press Start 2P', monospace; color: #ffd25a; text-shadow: 2px 2px 0 #000; white-space: nowrap; animation: xmasUp 1.1s ease-out forwards; }
.xmas-pop.saved { color: #7dff9a; font-size: 13px; }
.xmas-pop.bad { color: #ff5a6e; font-size: 18px; }
@keyframes xmasUp { to { transform: translate(-50%, -40px); opacity: 0; } }
.dance-floor.xmas-shake { animation: xmasShake 0.35s; }
@keyframes xmasShake { 25% { translate: 3px -2px; } 50% { translate: -3px 2px; } 75% { translate: 2px 1px; } }

/* the HUD (top right) */
.xmas-hud { position: absolute; top: 34px; right: 10px; z-index: 8; display: grid; justify-items: end; gap: 4px; pointer-events: none; }
.xmas-hud .logo { width: 104px; filter: drop-shadow(0 0 8px rgba(255, 92, 140, 0.6)); }
.xmas-hud .row { display: flex; align-items: center; gap: 6px; padding: 3px 8px; font: 900 13px/1 'Press Start 2P', monospace; color: #fff; background: rgba(20, 8, 36, 0.78); box-shadow: 0 0 0 2px #000, 0 0 0 3px rgba(255, 92, 140, 0.55); }
.xmas-hud .row img { height: 20px; }
.xmas-hud .row span { font-size: 9px; color: #ff9cc0; }
.xmas-hud .gifts.low { box-shadow: 0 0 0 2px #000, 0 0 0 3px #ff2e4e; animation: xmasAlarm 0.7s steps(2) infinite; }
@keyframes xmasAlarm { 50% { background: rgba(140, 10, 30, 0.85); } }
.xmas-hud:not(.fighting) .foes { opacity: 0.45; }
.xmas-shop-btn { pointer-events: auto; padding: 5px 10px; font: 900 11px/1 'Press Start 2P', monospace; color: #fff; cursor: pointer; background: linear-gradient(180deg, #e8304a, #8a1426); border: 0; box-shadow: 0 0 0 2px #000, 0 3px 0 #000; }
.xmas-shop-btn:hover { filter: brightness(1.15); }

/* banners */
.xmas-banner { position: absolute; left: 50%; top: 38%; z-index: 10; display: grid; justify-items: center; gap: 6px; padding: 12px 30px; translate: -50% -50%; pointer-events: none; text-align: center; background: linear-gradient(90deg, transparent, rgba(30, 6, 30, 0.82) 14%, rgba(30, 6, 30, 0.82) 86%, transparent); animation: xmasBannerIn 0.5s cubic-bezier(.2, 1.6, .4, 1); }
.xmas-banner.out { opacity: 0; transition: opacity 0.6s; }
.xmas-banner b { font: 900 30px/1.1 'Press Start 2P', monospace; color: #ffd25a; text-shadow: 3px 3px 0 #000, 0 0 16px rgba(255, 92, 140, 0.8); }
.xmas-banner span { font: 700 15px/1.3 system-ui, sans-serif; color: #fff; text-shadow: 1px 1px 0 #000; }
.xmas-banner.boss b { color: #ff5a6e; font-size: 34px; }
.xmas-banner.win b { color: #7dff9a; }
.xmas-banner.lose b { color: #ff5a6e; font-size: 24px; }
@keyframes xmasBannerIn { from { transform: scale(0.4); opacity: 0; } }

/* the tower shop */
.xmas-shop-modal { position: relative; width: min(860px, 94vw); max-height: 90vh; overflow: auto; padding: 18px; color: var(--text); }
.xmas-shop-modal .close { position: absolute; top: 10px; right: 12px; background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; }
.xmas-shop-modal .logo { display: block; width: 180px; margin: 0 auto 6px; }
.xmas-shop-modal .hint { margin: 0 0 12px; font-size: 14px; line-height: 1.4; color: var(--muted); text-align: center; }
.xmas-shop-modal h3 { margin: 14px 0 8px; font: 900 13px/1.2 'Press Start 2P', monospace; color: #ffd25a; }
.xmas-slots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.xmas-slot { display: grid; justify-items: center; align-content: start; gap: 4px; padding: 8px 6px; font-size: 12px; text-align: center; background: rgba(255, 255, 255, 0.05); box-shadow: 0 0 0 2px rgba(255, 92, 140, 0.3); }
.xmas-slot.on { box-shadow: 0 0 0 2px #ffd25a, 0 0 14px rgba(255, 210, 90, 0.5); }
.xmas-slot .pos { font-size: 11px; color: var(--muted); }
.xmas-slot img { height: 54px; }
.xmas-slot small { color: var(--muted); }
.xmas-slot em { color: #ffd25a; font-style: normal; font-weight: 800; }
.xmas-slot button, .xmas-card .buy { padding: 6px 8px; font: 800 12px/1.1 system-ui, sans-serif; color: #fff; cursor: pointer; background: linear-gradient(180deg, #2fbf4f, #187a30); border: 0; box-shadow: 0 0 0 2px #000; }
.xmas-slot button.pick { background: linear-gradient(180deg, #e8304a, #8a1426); }
.xmas-slot button:disabled, .xmas-card .buy:disabled { filter: grayscale(1); opacity: 0.6; cursor: not-allowed; }
.xmas-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.xmas-card { display: grid; justify-items: center; align-content: start; gap: 5px; padding: 10px 8px; text-align: center; background: linear-gradient(180deg, rgba(255, 92, 140, 0.12), rgba(255, 255, 255, 0.03)); box-shadow: 0 0 0 2px rgba(255, 92, 140, 0.35); }
.xmas-card img { height: 74px; }
.xmas-card b { font-size: 14px; }
.xmas-card small { min-height: 3.6em; font-size: 12px; line-height: 1.3; color: var(--muted); }
.xmas-card .stats { font-size: 11px; color: #bfe8ff; }
.xmas-card .price { font-weight: 800; color: #ffd25a; }
.xmas-board { display: grid; gap: 3px; margin-top: 14px; padding: 10px; font-size: 13px; background: rgba(0, 0, 0, 0.25); }
.xmas-board .me { margin-top: 4px; color: #ffd25a; }
@media (max-width: 760px) {
  .xmas-slots { grid-template-columns: repeat(3, 1fr); }
  .xmas-cards { grid-template-columns: repeat(2, 1fr); }
  .season-xmas .dance-floor { height: 290px; }
  .xmas-tree { transform: translateX(-50%) scale(0.8); transform-origin: 50% 100%; }
  .xmas-tower img { height: 54px; }
  .xmas-hud .logo { width: 72px; }
  .xmas-banner b { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .xmas-snow, .xmas-lights::after, .xmas-sky, .season-xmas .bulbs { animation: none !important; }
}

/* snow on the whole page, Christmas things raining down, Santa's sleigh, the alarm lights */
.xmas-page-snow { position: fixed; inset: 0; z-index: 45; width: 100vw; height: 100vh; pointer-events: none; }
.xmas-burst { position: fixed; inset: 0; z-index: 46; overflow: hidden; pointer-events: none; }
.xmas-burst img { position: absolute; top: -60px; image-rendering: pixelated; filter: drop-shadow(0 0 6px rgba(255, 230, 160, 0.7)); animation: xmasRain linear forwards; opacity: 0; }
.xmas-burst.lose img { filter: grayscale(0.6) drop-shadow(0 0 4px rgba(200, 220, 255, 0.6)); }
@keyframes xmasRain { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 85% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--drift), 110vh) rotate(var(--spin)); } }
.xmas-sleigh { position: fixed; top: 70px; left: 0; z-index: 47; pointer-events: none; display: flex; align-items: center; transform: translate(-480px, 40px); }
.xmas-hud .soon { animation: xmasAlarm 1.4s steps(2) infinite; }
.xmas-hud .soon[hidden] { display: none; }
.xmas-sleigh .team { font-size: 40px; white-space: nowrap; transform: scaleX(-1); filter: drop-shadow(0 0 10px rgba(255, 220, 140, 0.9)); animation: xmasBob 0.6s ease-in-out infinite alternate; }
.xmas-sleigh .trail { width: 220px; height: 6px; margin-right: -6px; background: linear-gradient(90deg, transparent, rgba(255, 230, 150, 0.9)); border-radius: 3px; box-shadow: 0 0 12px rgba(255, 220, 120, 0.9); }
@keyframes xmasFly { from { transform: translate(-480px, 40px); } to { transform: translate(calc(100vw + 40px), -30px); } }
@keyframes xmasBob { to { translate: 0 -8px; } }
.dance-floor.xmas-alert { box-shadow: inset 0 0 0 var(--px) #000, 0 0 0 4px #e8304a, 0 0 26px rgba(232, 48, 74, 0.8); animation: xmasAlertLights 0.8s steps(2) infinite; }
@keyframes xmasAlertLights { 50% { box-shadow: inset 0 0 0 var(--px) #000, 0 0 0 4px #2fbf4f, 0 0 26px rgba(47, 191, 79, 0.8); } }
.xmas-tower.stomped img { filter: grayscale(1) brightness(0.7); animation: xmasJolt 0.3s 3; }
.xmas-tower.stomped::after { content: '💫'; position: absolute; left: 50%; top: -26px; transform: translateX(-50%); font-size: 20px; animation: xmasSpin 1s linear infinite; }
@media (prefers-reduced-motion: reduce) { .xmas-page-snow, .xmas-burst, .xmas-sleigh { display: none; } }

/* while the goblins are on the floor, the people can't be clicked (no profiles opening by mistake) */
body.xmas-raid #dancers .dancer, body.xmas-raid #npcs > * { pointer-events: none; }
body.xmas-raid .dance-floor { cursor: crosshair; }

/* the towers get kicked, break, and get fixed with a hammer */
.xmas-tower .thp { position: absolute; left: 50%; bottom: -3px; width: 46px; height: 5px; transform: translateX(-50%); background: rgba(0, 0, 0, 0.6); box-shadow: 0 0 0 1px #000; opacity: 0; transition: opacity 0.3s; }
.xmas-tower .thp i { display: block; height: 100%; background: linear-gradient(#ffe27a, #e0a800); transition: width 0.25s; }
.xmas-tower.damaged .thp { opacity: 1; }
.xmas-tower.low .thp i { background: linear-gradient(#ff7a7a, #d11); }
.xmas-tower .fixme { position: absolute; right: -10px; top: 6px; font-size: 18px; display: none; filter: drop-shadow(0 0 4px #fff); }
.xmas-tower.damaged .fixme { display: block; animation: xmasHammer 0.8s ease-in-out infinite; transform-origin: 70% 80%; }
@keyframes xmasHammer { 50% { transform: rotate(-35deg); } }
.xmas-tower.damaged { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Ctext y='22' font-size='22'%3E🔨%3C/text%3E%3C/svg%3E") 4 4, pointer; }
.xmas-tower.low img { filter: saturate(0.6) brightness(0.85) drop-shadow(0 0 6px rgba(255, 60, 60, 0.7)); }
.xmas-tower.broken img { filter: grayscale(1) brightness(0.55); transform: rotate(-8deg) translateY(10px) scaleY(0.7); transform-origin: 50% 100%; transition: transform 0.4s; }
.xmas-tower.broken .stars { opacity: 0.3; }
.xmas-tower.broken::before { content: '💥'; position: absolute; left: 50%; top: 0; transform: translateX(-50%); font-size: 20px; animation: xmasFloat 0.9s ease-in-out infinite alternate; }
.xmas-tower.hit img { animation: xmasJolt 0.25s; }
.xmas-gob .spr .fa { visibility: hidden; }
.xmas-gob.smash .spr img { visibility: hidden !important; animation: none !important; }
.xmas-gob.smash .spr .fa { visibility: visible !important; }
.xmas-slot img.broken { filter: grayscale(1) brightness(0.6); }
.xmas-slot .hpline { font-size: 12px; font-weight: 800; color: #7dff9a; }
.xmas-slot .hpline.hurt { color: #ffd25a; }
.xmas-slot .hpline.broken { color: #ff5a6e; }
.xmas-slot button.fix { background: linear-gradient(180deg, #ffb347, #c2601a); }

/* during a fight the towers can't be clicked either (a click there is a snowball at the nearest goblin) */
body.xmas-raid .xmas-tower, body.xmas-raid .xmas-pad { pointer-events: none; }
body.xmas-raid .xmas-tower .fixme { display: none; }

/* 🎄 the festive presets in the character editor */
.opt-grid.presets { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.opt-card.preset small { min-height: 2.6em; line-height: 1.25; }
.opt-card.preset:hover { box-shadow: 0 0 0 2px #e8304a, 0 0 12px rgba(232, 48, 74, 0.6); }

/* Toasts: small and compact, never in the way. Clicks go through them (except their own buttons),
   the same message is counted (×3) instead of stacked, and at most three show at once. */
.toasts { width: min(calc(100% - 32px), 300px); gap: 6px; pointer-events: none; }
.toast { grid-template-columns: 26px 1fr auto auto; gap: 8px; padding: 6px 6px 6px 8px; pointer-events: none; opacity: 0.94; }
.toast .toast-icon { width: 26px; height: 26px; font-size: 15px; }
.toast .toast-body { font-size: 14px; gap: 1px; }
.toast .toast-title { font-size: 9px; }
.toast-close, .toast-actions, .toast-actions * { pointer-events: auto; }
.toast-close { width: 20px; height: 20px; font-size: 15px; }
.toast-count { align-self: center; font: 900 11px/1 'Press Start 2P', monospace; color: var(--gold-light, #ffe9a8); }
.toast-count:empty { display: none; }
body.xmas-raid .toast { opacity: 0.8; }

/* 🏆 who helps the most */
.xmas-hud .xmas-mvp { pointer-events: auto; cursor: pointer; border: 0; color: #ffd25a; max-width: 190px; }
.xmas-hud .xmas-mvp b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 120px; font-size: 11px; }
.xmas-hud .xmas-mvp[hidden] { display: none; }
.xmas-hud .xmas-mvp:hover { filter: brightness(1.2); }
.xmas-board h3 { margin: 0 0 8px; }
.xmas-board table { width: 100%; border-collapse: collapse; font-size: 13px; }
.xmas-board th { padding: 4px 6px; font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
.xmas-board td { padding: 4px 6px; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.xmas-board td.n { text-align: left; font-weight: 700; }
.xmas-board td.pts { font-weight: 900; color: #ffd25a; }
.xmas-board tr.top td { background: rgba(255, 210, 90, 0.07); }
.xmas-board tr.me td { box-shadow: inset 0 0 0 1px rgba(125, 255, 154, 0.5); }
.xmas-board .me { margin: 8px 0 0; color: #7dff9a; font-weight: 700; }
.xmas-finale { display: grid; gap: 3px; margin-top: 10px; padding: 10px; font-size: 13px; line-height: 1.35; background: linear-gradient(135deg, rgba(232, 48, 74, 0.18), rgba(47, 191, 79, 0.14)); box-shadow: 0 0 0 1px rgba(255, 210, 90, 0.35); }
.xmas-finale small { color: var(--muted); }
.xmas-board .season { margin: 8px 0 0; font-size: 12px; color: var(--muted); }

.xmas-lists { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; }
.xmas-lists section { min-width: 0; }
.xmas-hud .xmas-donor { color: #7dff9a; }
@media (max-width: 760px) { .xmas-lists { grid-template-columns: 1fr; } }

/* PIN resets */
.link-button { padding: 0; font: inherit; color: var(--gold-light, #ffe9a8); text-decoration: underline; background: none; border: 0; cursor: pointer; }
.account-row.asked { box-shadow: inset 3px 0 0 #ffd25a; background: rgba(255, 210, 90, 0.08); }
.asked-tag { margin-left: 6px; font-size: 12px; color: #ffd25a; }
.temp-pin { text-align: center; }
.temp-pin-code { margin: 10px 0; font: 900 34px/1 'Press Start 2P', monospace; letter-spacing: 6px; color: #7dff9a; user-select: all; }
