:root {
  --bg: #050716;
  --panel: rgba(8, 18, 50, 0.82);
  --panel-strong: rgba(13, 25, 70, 0.94);
  --glass: rgba(255, 255, 255, 0.09);
  --line: rgba(103, 224, 255, 0.34);
  --line-hot: rgba(255, 210, 82, 0.46);
  --text: #f8fbff;
  --muted: #b6c6db;
  --blue: #29a8ff;
  --cyan: #39f5ff;
  --gold: #ffd45a;
  --amber: #ff9d2e;
  --pink: #ff4cae;
  --green: #3cff9b;
  --violet: #8d5bff;
  --red: #ff405e;
  --deep: #080d2d;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
  --radius: 8px;
  --ball-b-1: #e9fcff;
  --ball-b-2: #29c9ff;
  --ball-b-3: #0756dc;
  --ball-i-1: #fff1ec;
  --ball-i-2: #ff6f64;
  --ball-i-3: #bb183e;
  --ball-n-1: #effff6;
  --ball-n-2: #40f58e;
  --ball-n-3: #078d4f;
  --ball-g-1: #f7efff;
  --ball-g-2: #9b6cff;
  --ball-g-3: #5020c8;
  --ball-o-1: #fff8d2;
  --ball-o-2: #ffc642;
  --ball-o-3: #c56b00;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -16%, rgba(255, 212, 90, 0.22), transparent 34rem),
    radial-gradient(circle at 8% 16%, rgba(57, 245, 255, 0.2), transparent 28rem),
    radial-gradient(circle at 90% 20%, rgba(255, 76, 174, 0.16), transparent 26rem),
    linear-gradient(145deg, #030615 0%, #09113f 38%, #1b0c50 68%, #040816 100%);
}

html[data-crash-stage="building"] {
  background:
    radial-gradient(circle at 50% -16%, rgba(255, 212, 90, 0.28), transparent 34rem),
    radial-gradient(circle at 8% 16%, rgba(57, 245, 255, 0.26), transparent 28rem),
    radial-gradient(circle at 90% 20%, rgba(255, 155, 46, 0.17), transparent 26rem),
    linear-gradient(145deg, #030615 0%, #09194c 38%, #271065 68%, #040816 100%);
}

html[data-crash-stage="hot"],
html[data-crash-stage="critical"],
html[data-crash-stage="crash-zone"] {
  background:
    radial-gradient(circle at 50% -16%, rgba(255, 174, 46, 0.34), transparent 34rem),
    radial-gradient(circle at 8% 16%, rgba(57, 245, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 92% 26%, rgba(255, 64, 94, 0.24), transparent 28rem),
    linear-gradient(145deg, #050613 0%, #131141 36%, #3a0e48 70%, #080812 100%);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background-image:
    linear-gradient(rgba(77, 221, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 221, 255, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.08) 0 1px, transparent 2px);
  background-size: 54px 54px, 54px 54px, 96px 96px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.82), transparent 86%);
}

body::after {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.52), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.58)),
    radial-gradient(circle at 50% 50%, transparent 50%, rgba(0, 0, 0, 0.42));
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.bc-shell {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 10px 12px 14px;
}

.bc-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  margin-bottom: 10px;
  border: 1px solid rgba(128, 232, 255, 0.42);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 46%),
    linear-gradient(90deg, rgba(23, 43, 112, 0.88), rgba(6, 13, 42, 0.9) 50%, rgba(28, 21, 81, 0.86));
  backdrop-filter: blur(18px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(57, 245, 255, 0.18),
    0 16px 50px rgba(0, 0, 0, 0.32),
    0 0 28px rgba(57, 245, 255, 0.12);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 0 18px rgba(57, 245, 255, 0.34);
}

.brand-name,
.brand-arcade,
.brand-separator {
  display: inline-block;
}

.brand-arcade {
  color: var(--cyan);
}

.brand-separator {
  color: rgba(255, 212, 90, 0.9);
  text-shadow: 0 0 14px rgba(255, 212, 90, 0.34);
}

.header-game-title {
  position: relative;
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  padding: 0 26px;
  border: 1px solid rgba(103, 224, 255, 0.58);
  border-radius: var(--radius);
  color: transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 42%),
    radial-gradient(circle at 50% 0%, rgba(255, 212, 90, 0.2), transparent 60%),
    linear-gradient(180deg, #ffffff, #8df8ff 34%, #ffd45a 72%, #ff9d2e);
  background-clip: text;
  -webkit-background-clip: text;
  font-family: Outfit, Inter, sans-serif;
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(255, 212, 90, 0.28),
    inset 0 0 22px rgba(57, 245, 255, 0.12),
    0 0 0 1px rgba(255, 212, 90, 0.18),
    0 0 24px rgba(57, 245, 255, 0.18),
    0 0 22px rgba(255, 212, 90, 0.1);
  text-shadow: 0 0 22px rgba(57, 245, 255, 0.55), 0 3px 10px rgba(0, 0, 0, 0.58);
}

.header-game-title::after {
  content: "";
  position: absolute;
  inset: -40% -30%;
  background: linear-gradient(105deg, transparent 36%, rgba(255, 255, 255, 0.52) 50%, transparent 64%);
  transform: translateX(-120%);
  animation: title-flare 6s ease-in-out infinite;
  pointer-events: none;
}

.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(57, 245, 255, 0.38));
}

.mode-pill,
.wallet-control {
  min-height: 38px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  color: var(--text);
  font-weight: 900;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(255, 212, 90, 0.34), rgba(255, 157, 46, 0.2));
  box-shadow:
    inset 0 -3px 0 rgba(0, 0, 0, 0.22),
    0 0 18px rgba(255, 212, 90, 0.16);
}

.audio-control {
  min-height: 38px;
  display: grid;
  grid-template-columns: auto minmax(104px, 138px);
  gap: 8px;
  align-items: center;
  padding: 5px 8px;
  border: 1px solid rgba(103, 224, 255, 0.3);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), transparent 42%),
    rgba(5, 16, 46, 0.72);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18), 0 0 18px rgba(57, 245, 255, 0.1);
}

.audio-toggle {
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 0 9px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 900;
}

.audio-toggle.on {
  color: #061322;
  background: linear-gradient(180deg, var(--green), var(--cyan));
  box-shadow: 0 0 18px rgba(60, 255, 155, 0.25);
}

.audio-control label {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.audio-control input {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: var(--gold);
}

.audio-control strong {
  color: var(--gold);
}

.wallet-control {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 40%),
    linear-gradient(180deg, rgba(57, 245, 255, 0.22), rgba(41, 168, 255, 0.17));
  box-shadow:
    inset 0 -3px 0 rgba(0, 0, 0, 0.24),
    0 0 20px rgba(57, 245, 255, 0.14);
}

.wallet-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #8793ad;
}

html[data-wallet-connected="true"] .wallet-dot {
  background: var(--green);
  box-shadow: 0 0 16px var(--green);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.entrance-view {
  position: relative;
  min-height: min(720px, calc(100vh - 78px));
  display: none;
  align-items: center;
  justify-items: center;
  overflow: hidden;
  padding: clamp(10px, 2vw, 24px);
  border: 1px solid rgba(103, 224, 255, 0.28);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 48%, rgba(57, 245, 255, 0.22), transparent 30rem),
    linear-gradient(140deg, rgba(5, 9, 31, 0.96), rgba(10, 17, 58, 0.8));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 -70px 120px rgba(0, 0, 0, 0.48),
    var(--shadow);
}

.entrance-view.active {
  display: grid;
}

.entrance-view::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(3, 6, 22, 0.08), rgba(3, 6, 22, 0.52) 72%, rgba(3, 6, 22, 0.92)),
    linear-gradient(0deg, rgba(3, 6, 22, 0.88), transparent 20%, transparent 78%, rgba(3, 6, 22, 0.62)),
    url("/bingo_crash/images/george_gaming_logo.png") center 46% / min(1180px, 92vw) auto no-repeat;
  filter: saturate(1.14) contrast(1.04);
  transform: scale(1.015);
  animation: hero-breathe 9s ease-in-out infinite;
}

.entrance-view::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 46%, rgba(57, 245, 255, 0.2), transparent 26rem),
    linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.12) 46%, transparent 52%);
  mix-blend-mode: screen;
  opacity: 0.65;
  animation: light-sweep 6.5s ease-in-out infinite;
}

.entrance-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-visual {
  position: absolute;
  inset: auto 8% 4% 8%;
  height: 28%;
  background: radial-gradient(ellipse at center, rgba(57, 245, 255, 0.24), transparent 62%);
  filter: blur(3px);
}

.entrance-copy {
  position: relative;
  z-index: 2;
  justify-self: start;
  align-self: center;
  width: min(430px, 100%);
  margin-left: clamp(72px, 16vw, 230px);
  margin-top: clamp(44px, 8vh, 86px);
  text-align: center;
  padding: clamp(14px, 2.2vw, 20px);
  border: 1px solid rgba(139, 237, 255, 0.34);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 42%),
    radial-gradient(circle at 50% 0%, rgba(255, 212, 90, 0.14), transparent 17rem),
    rgba(4, 10, 31, 0.58);
  backdrop-filter: blur(12px) saturate(1.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(57, 245, 255, 0.12),
    0 18px 56px rgba(0, 0, 0, 0.42),
    0 0 30px rgba(57, 245, 255, 0.14);
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.78);
}

.profile-card h2,
.lobby-panel h2 {
  font-family: Outfit, Inter, sans-serif;
  margin: 0;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
}

.tagline {
  max-width: 360px;
  margin: 0 auto 14px;
  color: #eff7ff;
  font-size: clamp(1.08rem, 2.2vw, 1.72rem);
  font-weight: 900;
}

.muted {
  color: var(--muted);
}

.entrance-actions,
.lobby-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  position: relative;
  min-height: 50px;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.46),
    inset 0 -5px 0 rgba(0, 0, 0, 0.3),
    0 18px 38px rgba(0, 0, 0, 0.32);
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}

.btn::before,
.bingo-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.42) 46%, transparent 64%);
  transform: translateX(-130%);
  animation: button-sheen 4.2s ease-in-out infinite;
}

.btn:hover,
.bingo-btn:hover,
.wallet-control:hover,
.segmented button:hover,
.icon-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.btn:active,
.bingo-btn:active,
.segmented button:active,
.icon-btn:active {
  transform: translateY(1px);
}

.btn.primary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent 34%),
    linear-gradient(180deg, #fff36e, #ffad2f 50%, #ff3e8c);
  color: #17091b;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.66),
    inset 0 -6px 0 rgba(85, 22, 51, 0.42),
    0 0 0 1px rgba(255, 241, 140, 0.3),
    0 18px 38px rgba(255, 76, 174, 0.24),
    0 0 34px rgba(255, 212, 90, 0.24);
}

.btn.secondary,
.icon-btn {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 44%),
    rgba(7, 20, 58, 0.78);
}

.btn.wide {
  width: 100%;
}

.profile-view,
.lobby-view {
  min-height: calc(100vh - 104px);
  display: none;
  place-items: center;
  padding: 24px;
}

.profile-view.active,
.lobby-view.active {
  display: grid;
}

.profile-card,
.lobby-panel,
.lobby-stat,
.profile-strip > div,
.round-status > div,
.player-score-panel,
.history-panel,
.current-ball-wrap,
.crash-panel,
.feed-panel,
.settings-panel,
.chat-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 42%),
    radial-gradient(circle at 50% 0%, rgba(57, 245, 255, 0.12), transparent 72%),
    var(--panel);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    inset 0 -1px 0 rgba(0, 0, 0, 0.34),
    0 18px 50px rgba(0, 0, 0, 0.28);
}

.profile-card,
.lobby-panel {
  width: min(760px, 100%);
  padding: clamp(22px, 4vw, 38px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.15), transparent 34%),
    radial-gradient(circle at 12% 8%, rgba(255, 212, 90, 0.18), transparent 22rem),
    linear-gradient(145deg, rgba(17, 34, 98, 0.96), rgba(8, 14, 46, 0.94));
  box-shadow: var(--shadow);
}

.profile-card h2,
.lobby-panel h2 {
  font-size: clamp(2.2rem, 7vw, 4.6rem);
}

.profile-card label,
.lobby-controls legend {
  display: block;
  margin: 18px 0 8px;
  color: var(--cyan);
  font-weight: 900;
  text-transform: uppercase;
}

.profile-card input {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(103, 224, 255, 0.34);
  border-radius: var(--radius);
  padding: 0 14px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.24);
  font-weight: 800;
  box-shadow: inset 0 0 18px rgba(57, 245, 255, 0.08);
}

.form-error,
.chat-error {
  min-height: 22px;
  color: #ffb4b4;
  font-weight: 800;
}

.lobby-grid,
.profile-strip,
.round-status {
  display: grid;
  gap: 8px;
}

.lobby-grid {
  grid-template-columns: repeat(3, 1fr);
  margin: 22px 0;
}

.lobby-stat,
.profile-strip > div,
.round-status > div {
  position: relative;
  overflow: hidden;
  padding: 8px 10px;
}

.lobby-stat::after,
.profile-strip > div::after,
.round-status > div::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(255, 212, 90, 0.14), transparent 54%);
  pointer-events: none;
}

.lobby-stat span,
.profile-strip span,
.round-status span,
.panel-label {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lobby-stat strong,
.profile-strip strong,
.round-status strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 2px;
  font-family: Outfit, Inter, sans-serif;
  font-size: 1.04rem;
  overflow-wrap: anywhere;
  text-shadow: 0 0 14px rgba(57, 245, 255, 0.2);
}

fieldset {
  min-width: min(100%, 410px);
  padding: 0;
  border: 0;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.segmented button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), transparent 38%),
    rgba(9, 22, 62, 0.78);
  font-weight: 900;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18);
}

.segmented button.active {
  color: #111735;
  background:
    linear-gradient(180deg, #ffffff, rgba(255, 255, 255, 0) 35%),
    linear-gradient(180deg, var(--cyan), var(--gold));
  box-shadow: 0 0 20px rgba(57, 245, 255, 0.22), inset 0 -3px 0 rgba(0, 0, 0, 0.2);
}

.pattern-preview {
  display: grid;
  grid-template-columns: repeat(5, 16px);
  grid-auto-rows: 16px;
  gap: 4px;
  align-self: end;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.22);
}

.pattern-preview span {
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.16);
}

.pattern-preview span.active {
  background: var(--gold);
  box-shadow: 0 0 12px rgba(255, 211, 74, 0.7);
}

.play-free {
  margin-top: 24px;
}

.game-view.active {
  display: block;
}

.game-view {
  position: relative;
  padding: 10px;
  border: 1px solid rgba(103, 224, 255, 0.72);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 16%),
    radial-gradient(circle at 50% 0%, rgba(57, 245, 255, 0.14), transparent 24rem),
    radial-gradient(circle at 9% 46%, rgba(255, 212, 90, 0.08), transparent 18rem),
    rgba(3, 8, 29, 0.38);
  box-shadow:
    0 0 0 1px rgba(255, 212, 90, 0.18),
    0 0 0 4px rgba(9, 29, 66, 0.82),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 0 1px rgba(103, 224, 255, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 0 54px rgba(57, 245, 255, 0.08),
    0 20px 58px rgba(0, 0, 0, 0.38),
    0 0 46px rgba(57, 245, 255, 0.18);
}

.game-view::before {
  content: "";
  position: absolute;
  inset: -8px;
  z-index: -1;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 10%, rgba(57, 245, 255, 0.12), transparent 28rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.05));
  box-shadow: inset 0 0 90px rgba(57, 245, 255, 0.05);
}

html[data-crash-stage="critical"] .game-view::before,
html[data-crash-stage="crash-zone"] .game-view::before {
  box-shadow: inset 0 0 110px rgba(255, 64, 94, 0.14), 0 0 34px rgba(255, 64, 94, 0.12);
}

.profile-strip {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-bottom: 8px;
}

.caller-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.62fr) minmax(250px, 1.1fr) minmax(160px, 0.56fr) minmax(230px, 1fr);
  gap: 9px;
  align-items: stretch;
  margin-bottom: 8px;
}

.player-score-panel {
  padding: 8px 10px;
}

.player-id-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(72px, auto);
  gap: 8px;
  align-items: start;
}

.player-score-panel strong,
.player-score-panel span:not(.panel-label) {
  display: block;
}

.player-score-panel strong {
  font-family: Outfit, Inter, sans-serif;
  font-size: 1rem;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.player-score-panel span:not(.panel-label) {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

#gameScoreValue {
  color: var(--gold);
  text-shadow: 0 0 15px rgba(255, 212, 90, 0.24);
}

.eth-rewards-v2 {
  min-width: 76px;
  padding: 5px 7px;
  border: 1px solid rgba(143, 255, 255, 0.22);
  border-radius: 7px;
  color: rgba(214, 226, 240, 0.76);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 40%),
    rgba(4, 10, 32, 0.5);
  box-shadow: inset 0 0 14px rgba(57, 245, 255, 0.04);
  opacity: 0.72;
}

.eth-rewards-v2 span {
  margin-top: 0 !important;
  color: rgba(182, 198, 219, 0.76) !important;
  font-size: 0.54rem !important;
  line-height: 1.05;
}

.eth-rewards-v2 strong {
  margin-top: 2px;
  color: rgba(143, 255, 255, 0.82);
  font-size: 0.62rem;
  line-height: 1.04;
  text-shadow: none;
}

.player-score-panel,
.history-panel,
.current-ball-wrap,
.crash-panel {
  padding: 8px;
  border-color: rgba(103, 224, 255, 0.58);
  box-shadow:
    0 0 0 1px rgba(255, 212, 90, 0.1),
    0 0 0 3px rgba(5, 18, 50, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 0 0 1px rgba(103, 224, 255, 0.12),
    inset 0 -18px 34px rgba(0, 0, 0, 0.22),
    0 14px 38px rgba(0, 0, 0, 0.32),
    0 0 24px rgba(57, 245, 255, 0.12);
}

.recent-calls {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 8px;
  align-items: center;
}

.call-ball,
.current-ball {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #061022;
  font-family: Outfit, Inter, sans-serif;
  font-weight: 900;
  border: 4px solid rgba(255, 255, 255, 0.76);
  box-shadow:
    inset 0 10px 14px rgba(255, 255, 255, 0.62),
    inset 0 -18px 22px rgba(0, 0, 0, 0.24),
    0 15px 30px rgba(0, 0, 0, 0.36);
}

.call-ball::before,
.current-ball::before {
  content: "";
  position: absolute;
  inset: 9% 16% auto;
  height: 30%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.1) 64%, transparent);
  transform: rotate(-14deg);
}

.call-ball::after,
.current-ball::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: 0 0 20px currentColor;
  opacity: 0.18;
}

.call-ball {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  animation: call-enter 0.28s ease both;
}

.call-ball.newest {
  transform: scale(1.07);
  box-shadow:
    inset 0 10px 14px rgba(255, 255, 255, 0.68),
    inset 0 -18px 22px rgba(0, 0, 0, 0.24),
    0 0 26px rgba(57, 245, 255, 0.38),
    0 15px 30px rgba(0, 0, 0, 0.36);
}

.call-ball .ball-letter,
.current-ball .ball-letter {
  position: relative;
  z-index: 1;
  font-size: 0.86rem;
  line-height: 1;
}

.call-ball .ball-number,
.current-ball .ball-number {
  position: relative;
  z-index: 1;
  font-size: 1.48rem;
  line-height: 0.92;
}

.ball-b { background: radial-gradient(circle at 31% 23%, var(--ball-b-1), var(--ball-b-2) 42%, var(--ball-b-3)); }
.ball-i { background: radial-gradient(circle at 31% 23%, var(--ball-i-1), var(--ball-i-2) 42%, var(--ball-i-3)); }
.ball-n { background: radial-gradient(circle at 31% 23%, var(--ball-n-1), var(--ball-n-2) 42%, var(--ball-n-3)); }
.ball-g { background: radial-gradient(circle at 31% 23%, var(--ball-g-1), var(--ball-g-2) 42%, var(--ball-g-3)); }
.ball-o { background: radial-gradient(circle at 31% 23%, var(--ball-o-1), var(--ball-o-2) 42%, var(--ball-o-3)); }

.current-ball-wrap {
  display: grid;
  place-items: center;
  text-align: center;
}

.current-ball {
  width: 76px;
  height: 76px;
  margin: 4px auto;
  color: #061022;
  animation: ball-pop 0.42s cubic-bezier(0.2, 1.4, 0.3, 1);
  box-shadow:
    inset 0 16px 18px rgba(255, 255, 255, 0.68),
    inset 0 -30px 34px rgba(0, 0, 0, 0.25),
    0 28px 48px rgba(0, 0, 0, 0.42),
    0 0 42px rgba(57, 245, 255, 0.32);
}

.current-ball .ball-letter {
  font-size: 1.05rem;
}

.current-ball .ball-number {
  font-size: 2.05rem;
}

.current-ball.ball-empty {
  background: radial-gradient(circle at 32% 22%, #ffffff, #9bb7d3 46%, #405575);
  font-size: 3rem;
}

.balls-left {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(103, 224, 255, 0.24);
  border-radius: 999px;
  color: #e1efff;
  background: rgba(0, 0, 0, 0.22);
  font-weight: 900;
  text-transform: uppercase;
}

.crash-panel {
  position: relative;
  overflow: hidden;
}

.crash-panel::after {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: conic-gradient(from 180deg, transparent, rgba(57, 245, 255, 0.1), transparent, rgba(255, 212, 90, 0.12), transparent);
  opacity: 0.42;
  animation: rotate-energy 9s linear infinite;
}

.crash-panel > * {
  position: relative;
  z-index: 1;
}

.crash-track {
  position: relative;
  height: 18px;
  margin: 10px 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px) 0 0 / 20% 100%,
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(0, 0, 0, 0.35)),
    rgba(0, 0, 0, 0.32);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.42), 0 0 22px rgba(57, 245, 255, 0.12);
}

.crash-fill {
  position: relative;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38f5ff, #39f5ff 22%, #ffd45a 45%, #ff9d2e 66%, #ff405e 84%, #ff4cae);
  transition: width 0.35s ease;
  box-shadow: 0 0 22px rgba(255, 212, 90, 0.34);
}

.crash-panel.recovering {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 0 34px rgba(57, 245, 255, 0.16),
    0 0 0 1px rgba(57, 245, 255, 0.36),
    0 0 32px rgba(57, 245, 255, 0.22);
}

.crash-fill.recovering {
  animation: recovery-flash 0.72s ease both;
}

.crash-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.48), transparent);
  animation: meter-sheen 1.8s linear infinite;
}

#crashStage {
  display: inline-block;
  margin-right: 12px;
  font-family: Outfit, Inter, sans-serif;
  font-size: 1.25rem;
  text-transform: uppercase;
}

#crashPercent {
  color: var(--muted);
  font-weight: 900;
}

#crashStage[data-stage="calm"] { color: var(--cyan); }
#crashStage[data-stage="building"] { color: var(--gold); }
#crashStage[data-stage="hot"] { color: var(--amber); animation: pressure-pulse 1s ease-in-out infinite; }
#crashStage[data-stage="critical"] { color: #ff735a; animation: pressure-pulse 0.75s ease-in-out infinite; }
#crashStage[data-stage="crash-zone"] { color: #ff4cae; animation: pressure-pulse 0.55s ease-in-out infinite; }

.round-status {
  grid-template-columns: repeat(4, 1fr);
  margin: 8px 0;
}

.board-frame {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  width: 100%;
  padding: clamp(10px, 1vw, 12px);
  border: 1px solid rgba(143, 255, 255, 0.9);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), transparent 26%),
    radial-gradient(circle at 50% 0%, rgba(57, 245, 255, 0.16), transparent 26rem),
    linear-gradient(180deg, rgba(5, 14, 42, 0.68), rgba(1, 5, 19, 0.78));
  box-shadow:
    0 0 0 1px rgba(255, 212, 90, 0.34),
    0 0 0 4px rgba(1, 10, 32, 0.9),
    0 0 0 5px rgba(57, 245, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 0 0 1px rgba(57, 245, 255, 0.34),
    inset 0 0 0 4px rgba(255, 212, 90, 0.1),
    inset 0 -28px 50px rgba(0, 0, 0, 0.28),
    inset 0 0 56px rgba(57, 245, 255, 0.11),
    0 18px 56px rgba(0, 0, 0, 0.34),
    0 0 44px rgba(57, 245, 255, 0.2);
  transition: grid-template-columns 0.2s ease;
}

.game-view.chat-open .board-frame {
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
}

.board-stage {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(103, 224, 255, 0.58);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 22% 18%, rgba(57, 245, 255, 0.16), transparent 18rem),
    radial-gradient(circle at 78% 24%, rgba(141, 91, 255, 0.14), transparent 16rem),
    linear-gradient(180deg, rgba(3, 15, 42, 0.78), rgba(1, 6, 23, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 0 1px rgba(255, 212, 90, 0.22),
    inset 0 0 0 3px rgba(57, 245, 255, 0.13),
    inset 0 0 44px rgba(0, 0, 0, 0.34),
    0 0 20px rgba(57, 245, 255, 0.12);
}

.board-stage::before,
.board-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.board-stage::before {
  background-image:
    linear-gradient(rgba(57, 245, 255, 0.24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 245, 255, 0.2) 1px, transparent 1px),
    linear-gradient(115deg, transparent 46%, rgba(255, 255, 255, 0.14) 50%, transparent 54%),
    radial-gradient(circle at 24% 36%, rgba(57, 245, 255, 0.36) 0 2px, transparent 4px),
    radial-gradient(circle at 72% 62%, rgba(255, 212, 90, 0.24) 0 2px, transparent 4px);
  background-size: 44px 44px, 44px 44px, 260px 260px, 160px 150px, 210px 175px;
  opacity: 0.78;
  inset: -12px;
  transform-origin: center top;
  animation: grid-drift 9s linear infinite, grid-glimmer 4.8s ease-in-out infinite;
}

.board-stage::after {
  background:
    linear-gradient(105deg, transparent 28%, rgba(255, 255, 255, 0.08) 50%, transparent 72%),
    radial-gradient(circle at 50% 100%, rgba(57, 245, 255, 0.2), transparent 42%),
    radial-gradient(circle at 18% 52%, rgba(57, 245, 255, 0.1), transparent 10rem);
  opacity: 0.66;
  animation: stage-sweep 5.5s ease-in-out infinite;
}

html[data-crash-stage="building"] .board-stage::before {
  opacity: 0.66;
}

html[data-crash-stage="hot"] .board-stage::before {
  background-image:
    linear-gradient(rgba(57, 245, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 212, 90, 0.12) 1px, transparent 1px),
    radial-gradient(circle at 24% 36%, rgba(255, 212, 90, 0.26) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 62%, rgba(255, 157, 46, 0.2) 0 2px, transparent 3px);
  opacity: 0.72;
}

html[data-crash-stage="critical"] .board-stage::before,
html[data-crash-stage="crash-zone"] .board-stage::before {
  background-image:
    linear-gradient(rgba(255, 96, 96, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 76, 174, 0.12) 1px, transparent 1px),
    radial-gradient(circle at 24% 36%, rgba(255, 96, 96, 0.28) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 62%, rgba(57, 245, 255, 0.18) 0 2px, transparent 3px);
  opacity: 0.78;
}

html[data-crash-stage="crash-zone"] .board-stage::before {
  animation-duration: 5.5s;
}

.board-stage > * {
  position: relative;
  z-index: 1;
}

.playfield {
  display: grid;
  grid-template-columns: minmax(0, 800px) minmax(126px, 150px);
  gap: 10px;
  align-items: stretch;
  justify-content: center;
}

.game-view.four-card-mode .playfield {
  grid-template-columns: minmax(0, 800px) minmax(126px, 150px);
}

.game-view.replay-open .playfield {
  grid-template-columns: minmax(0, 720px) minmax(126px, 150px) minmax(240px, 300px);
}

.game-view.wild-ready.replay-open .playfield {
  grid-template-columns: minmax(0, 720px) minmax(126px, 150px) minmax(240px, 300px);
}

.utility-rail {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: stretch;
}

.wild-power-dock,
.power-up-meter,
.card-bank-nav,
.replay-panel {
  border: 1px solid rgba(103, 224, 255, 0.64);
  border-radius: var(--radius);
  padding: 9px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 42%),
    radial-gradient(circle at 50% 0%, rgba(255, 212, 90, 0.14), transparent 10rem),
    rgba(4, 15, 44, 0.76);
  box-shadow:
    0 0 0 1px rgba(255, 212, 90, 0.1),
    0 0 0 3px rgba(3, 12, 38, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 0 24px rgba(57, 245, 255, 0.08),
    0 16px 38px rgba(0, 0, 0, 0.28);
}

.card-bank-nav[hidden] {
  display: none;
}

.power-up-meter {
  --power-progress: 0%;
  --power-color: #3cff9b;
  --power-angle: 0deg;
  display: grid;
  justify-items: center;
  gap: 8px;
  overflow: hidden;
  text-align: center;
}

.power-up-meter strong {
  color: var(--power-color);
  font-family: Outfit, Inter, sans-serif;
  font-size: 0.86rem;
  line-height: 1.05;
  text-transform: uppercase;
  text-shadow: 0 0 14px color-mix(in srgb, var(--power-color) 56%, transparent);
  transition: color 0.28s ease, text-shadow 0.28s ease;
}

.power-meter-track {
  position: relative;
  overflow: hidden;
  width: 88px;
  height: 88px;
  border: 1px solid rgba(143, 255, 255, 0.56);
  border-radius: 50%;
  background:
    conic-gradient(from -90deg, var(--power-color) 0 var(--power-progress), rgba(255, 255, 255, 0.08) var(--power-progress) 100%),
    radial-gradient(circle at 50% 50%, rgba(5, 14, 42, 0.98) 0 54%, rgba(57, 245, 255, 0.16) 55% 62%, rgba(0, 0, 0, 0.46) 63%);
  box-shadow:
    inset 0 0 18px rgba(57, 245, 255, 0.2),
    inset 0 0 0 8px rgba(0, 0, 0, 0.22),
    0 0 20px color-mix(in srgb, var(--power-color) 28%, transparent),
    0 12px 28px rgba(0, 0, 0, 0.28);
  transition: background 0.34s ease, box-shadow 0.34s ease, filter 0.34s ease;
}

.power-meter-fill {
  position: absolute;
  inset: 11px;
  width: auto !important;
  height: auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.18), transparent 26%),
    linear-gradient(180deg, rgba(10, 26, 72, 0.96), rgba(4, 10, 32, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 0 22px color-mix(in srgb, var(--power-color) 18%, transparent),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.34s ease;
}

.power-meter-fill::before {
  content: "";
  position: absolute;
  inset: -11px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 255, 255, 0.74), transparent 6%),
    repeating-conic-gradient(from -90deg, rgba(255, 255, 255, 0.34) 0deg 2deg, transparent 2deg 30deg);
  opacity: 0.72;
  pointer-events: none;
}

.power-meter-core {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.72), transparent 18%),
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--power-color) 46%, #071129) 0 42%, #071129 72%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -8px 14px rgba(0, 0, 0, 0.34),
    0 0 18px color-mix(in srgb, var(--power-color) 42%, transparent);
}

.power-meter-core::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 3px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, var(--power-color));
  box-shadow: 0 0 10px color-mix(in srgb, var(--power-color) 62%, transparent);
  transform: translateX(-50%) rotate(var(--power-angle));
  transform-origin: 50% 100%;
}

.power-up-meter > span:last-child {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-align: right;
  text-transform: uppercase;
}

.power-up-meter.near {
  animation: power-near 1.1s ease-in-out infinite;
}

.power-up-meter.ready {
  border-color: rgba(255, 212, 90, 0.84);
  box-shadow:
    0 0 0 1px rgba(255, 212, 90, 0.26),
    0 0 26px rgba(255, 212, 90, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: power-ready-pulse 0.76s ease-in-out infinite;
}

.power-up-meter.ready .power-meter-track,
.power-up-meter.active .power-meter-track {
  filter: brightness(1.15) saturate(1.18);
  box-shadow:
    inset 0 0 20px rgba(255, 255, 255, 0.12),
    inset 0 0 0 8px rgba(0, 0, 0, 0.2),
    0 0 28px color-mix(in srgb, var(--power-color) 54%, transparent),
    0 0 18px rgba(255, 212, 90, 0.22),
    0 12px 30px rgba(0, 0, 0, 0.32);
}

.power-up-meter.active {
  border-color: rgba(255, 64, 94, 0.78);
  animation: power-active-flare 0.52s ease-in-out 2;
}

.power-up-meter.cooldown {
  opacity: 0.92;
  border-color: rgba(143, 255, 255, 0.66);
}

.power-up-meter.cooldown .power-meter-track {
  background:
    conic-gradient(from -90deg, var(--power-color) 0 var(--power-progress), rgba(255, 255, 255, 0.06) var(--power-progress) 100%),
    radial-gradient(circle at 50% 50%, rgba(4, 13, 42, 0.98) 0 54%, rgba(57, 245, 255, 0.12) 55% 62%, rgba(0, 0, 0, 0.54) 63%);
  box-shadow:
    inset 0 0 18px rgba(57, 245, 255, 0.18),
    inset 0 0 0 8px rgba(0, 0, 0, 0.28),
    0 0 18px rgba(57, 245, 255, 0.18),
    0 12px 28px rgba(0, 0, 0, 0.28);
}

.power-up-meter.cooldown .power-meter-fill {
  animation: meter-discharge 1.08s ease both;
}

.card-bank-nav {
  margin-top: auto;
  align-self: stretch;
  display: grid;
  gap: 6px;
  text-align: center;
}

.card-bank-nav strong {
  color: var(--gold);
  font-family: Outfit, Inter, sans-serif;
  font-size: 0.96rem;
  text-transform: uppercase;
}

.card-bank-toggle {
  min-height: 82px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(103, 224, 255, 0.58);
  border-radius: var(--radius);
  color: #08152e;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), transparent 36%),
    linear-gradient(180deg, #8fffff, #ffd45a 68%, #ff9d2e);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -8px 18px rgba(0, 0, 0, 0.22),
    0 0 26px rgba(57, 245, 255, 0.22),
    0 14px 30px rgba(0, 0, 0, 0.26);
  font-weight: 900;
  text-transform: uppercase;
}

.card-bank-toggle span:last-child {
  font-size: 0.74rem;
  line-height: 1.05;
}

.card-bank-toggle:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.card-bank-toggle:active {
  transform: translateY(1px);
}

.bank-arrow {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #08152e;
  background: rgba(255, 255, 255, 0.62);
  font-family: Outfit, Inter, sans-serif;
  font-size: 1.86rem;
  line-height: 1;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.76), inset 0 -6px 10px rgba(0, 0, 0, 0.14);
}

.card-bank-nav.attention {
  animation: bank-attention 0.72s ease-in-out 2;
}

.arcade-tag.bank-alert {
  color: #071129;
  border-color: rgba(255, 244, 164, 0.74);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), transparent 34%),
    linear-gradient(180deg, #fff36e, #39f5ff 58%, #55ffb4);
}

.wild-power-dock.empty {
  display: none;
}

.wild-power-dock[hidden] {
  display: none;
}

.wild-card-token {
  width: 100%;
  min-height: 112px;
  display: grid;
  place-items: center;
  gap: 5px;
  margin-top: 8px;
  border: 1px solid rgba(255, 244, 164, 0.58);
  border-radius: var(--radius);
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 36%),
    radial-gradient(circle at 50% 18%, rgba(255, 212, 90, 0.38), transparent 54%),
    radial-gradient(circle at 16% 72%, rgba(57, 245, 255, 0.2), transparent 46%),
    linear-gradient(145deg, rgba(9, 20, 70, 0.96), rgba(75, 20, 118, 0.94) 58%, rgba(8, 12, 42, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -10px 22px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(141, 91, 255, 0.16),
    0 0 24px rgba(57, 245, 255, 0.16),
    0 0 28px rgba(255, 212, 90, 0.12);
  font-weight: 900;
  text-transform: uppercase;
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}

.wild-card-token:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.wild-card-token:not(:disabled) {
  animation: wild-glow 1.5s ease-in-out infinite;
}

.wild-card-token.armed {
  color: #17091b;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), transparent 34%),
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.5), transparent 42%),
    linear-gradient(180deg, #8fffff, #ffd45a 58%, #ff9d2e);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -10px 22px rgba(95, 39, 0, 0.22),
    0 0 0 1px rgba(255, 244, 164, 0.36),
    0 0 34px rgba(255, 212, 90, 0.34),
    0 0 34px rgba(57, 245, 255, 0.22);
}

.wild-card-token:disabled {
  cursor: not-allowed;
}

.wild-icon {
  position: relative;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  color: transparent;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.9), transparent 20%),
    radial-gradient(circle at 50% 50%, #ffd45a 0 42%, #8d5bff 74%, #1b103f 100%);
  font-size: 0;
  line-height: 1;
  box-shadow:
    inset 0 8px 12px rgba(255, 255, 255, 0.48),
    inset 0 -10px 14px rgba(0, 0, 0, 0.24),
    0 0 24px rgba(255, 212, 90, 0.34),
    0 0 18px rgba(141, 91, 255, 0.22);
}

.wild-icon::before {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 13px;
  height: 31px;
  background:
    radial-gradient(circle at 12% 6%, #fff8cc 0 8%, transparent 9%),
    radial-gradient(circle at 50% 0%, #fff8cc 0 8%, transparent 9%),
    radial-gradient(circle at 88% 6%, #fff8cc 0 8%, transparent 9%),
    linear-gradient(135deg, #39f5ff 0 28%, #8d5bff 29% 48%, #ffd45a 49% 68%, #ff4cae 69% 100%);
  clip-path: polygon(0 100%, 7% 28%, 29% 62%, 50% 7%, 71% 62%, 93% 28%, 100% 100%);
  filter: drop-shadow(0 0 8px rgba(57, 245, 255, 0.48));
}

.wild-icon::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 11px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fff8cc, #ffd45a, #fff8cc);
  box-shadow: 0 0 9px rgba(255, 212, 90, 0.6);
}

.wild-card-token span:last-child {
  color: var(--gold);
  font-family: Outfit, Inter, sans-serif;
  font-size: 1.08rem;
}

@media (min-width: 901px) {
  .game-view.four-card-mode .utility-rail {
    display: grid;
    grid-template-rows: minmax(136px, auto) auto minmax(0, 1fr) auto;
    align-items: stretch;
  }

  .game-view.four-card-mode .wild-power-dock {
    grid-row: 1;
    align-self: start;
  }

  .game-view.four-card-mode .power-up-meter {
    grid-row: 2;
    align-self: start;
  }

  .game-view.four-card-mode .card-bank-nav {
    grid-row: 4;
    margin-top: 0;
  }

  .game-view.four-card-mode .wild-power-dock.empty,
  .game-view.four-card-mode .wild-power-dock[hidden] {
    display: grid;
    visibility: hidden;
    pointer-events: none;
  }
}

.replay-panel {
  min-height: 100%;
}

.replay-panel[hidden] {
  display: none;
}

.replay-caption {
  margin: -2px 0 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.board-toolbar {
  width: min(800px, 100%);
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.pattern-pill,
.auto-daub-pill,
.chat-drawer-toggle {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(103, 224, 255, 0.34);
  border-radius: 999px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 42%),
    rgba(5, 16, 46, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    inset 0 -3px 0 rgba(0, 0, 0, 0.18),
    0 0 18px rgba(57, 245, 255, 0.1);
  font-weight: 900;
  text-transform: uppercase;
}

.pattern-pill span {
  color: var(--muted);
  font-size: 0.68rem;
}

.pattern-pill strong {
  color: var(--gold);
  font-family: Outfit, Inter, sans-serif;
  font-size: 0.98rem;
}

.auto-daub-pill {
  cursor: pointer;
  user-select: none;
}

.chat-drawer-toggle {
  color: var(--cyan);
  cursor: pointer;
}

.auto-daub-pill input {
  accent-color: var(--cyan);
}

.cards-area {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 10px;
  align-items: start;
  width: 100%;
  margin-inline: auto;
}

.cards-area:has(.bingo-card:only-child) {
  grid-template-columns: minmax(280px, 400px);
  justify-content: center;
}

.cards-area.bank-transition .bingo-card {
  animation: card-bank-slide 0.42s ease both;
}

.bingo-card.completing {
  animation: card-complete-out 0.86s ease both;
  border-color: rgba(255, 212, 90, 0.96);
  box-shadow:
    0 0 0 1px rgba(255, 212, 90, 0.38),
    0 0 42px rgba(255, 212, 90, 0.42),
    0 0 58px rgba(57, 245, 255, 0.28);
}

.bingo-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(139, 237, 255, 0.82);
  border-radius: var(--radius);
  padding: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), transparent 16%, transparent 70%, rgba(57, 245, 255, 0.22)),
    radial-gradient(circle at 10% 0%, rgba(255, 212, 90, 0.25), transparent 15rem),
    radial-gradient(circle at 88% 18%, rgba(255, 76, 174, 0.18), transparent 13rem),
    linear-gradient(145deg, rgba(10, 43, 130, 0.99), rgba(50, 20, 104, 0.98) 58%, rgba(9, 14, 47, 0.99));
  box-shadow:
    0 0 0 1px rgba(255, 212, 90, 0.18),
    0 0 0 4px rgba(5, 18, 50, 0.86),
    inset 0 2px 0 rgba(255, 255, 255, 0.22),
    inset 0 0 0 1px rgba(103, 224, 255, 0.16),
    inset 0 -8px 20px rgba(0, 0, 0, 0.3),
    inset 0 0 38px rgba(57, 245, 255, 0.16),
    0 8px 0 rgba(2, 6, 24, 0.48),
    0 22px 58px rgba(0, 0, 0, 0.54),
    0 0 28px rgba(57, 245, 255, 0.13);
}

.bingo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.22), transparent 23%, transparent 70%, rgba(57, 245, 255, 0.14)),
    linear-gradient(90deg, rgba(57, 245, 255, 0.32), transparent 20%, transparent 80%, rgba(255, 212, 90, 0.26));
  opacity: 0.72;
}

.bingo-card::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  pointer-events: none;
  box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.26), 0 0 18px rgba(57, 245, 255, 0.1);
}

.bingo-card h3,
.bingo-card > .bingo-header,
.bingo-card > .bingo-grid {
  position: relative;
  z-index: 1;
}

.bingo-card h3 {
  margin: 0 0 7px;
  font-family: Outfit, Inter, sans-serif;
  font-size: 1.2rem;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(57, 245, 255, 0.28);
}

.bingo-header,
.bingo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}

.bingo-header {
  margin-bottom: 5px;
}

.bingo-header span {
  display: grid;
  place-items: center;
  min-height: 34px;
  border-radius: var(--radius);
  color: #071129;
  font-family: Outfit, Inter, sans-serif;
  font-size: 1.38rem;
  font-weight: 900;
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow:
    inset 0 10px 12px rgba(255, 255, 255, 0.46),
    inset 0 -8px 0 rgba(0, 0, 0, 0.18),
    0 0 18px rgba(255, 255, 255, 0.12);
}

.bingo-cell {
  position: relative;
  aspect-ratio: 1;
  min-height: 54px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--radius);
  color: #0b1430;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), transparent 36%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.96), transparent 42%),
    linear-gradient(180deg, #fffdf3, #e5f3ff 56%, #b7cfe7);
  font-family: Outfit, Inter, sans-serif;
  font-size: clamp(1.05rem, 2.7vw, 1.74rem);
  font-weight: 900;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.86),
    inset 0 -7px 0 rgba(0, 0, 0, 0.18),
    inset 0 0 18px rgba(255, 255, 255, 0.38),
    0 8px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.12s ease, filter 0.16s ease, box-shadow 0.16s ease;
  touch-action: manipulation;
}

.bingo-cell .cell-value {
  position: relative;
  z-index: 2;
}

.bingo-cell::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 2px solid transparent;
  opacity: 0;
  transform: scale(0.65);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.bingo-cell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.44), transparent);
  transform: translateX(-130%);
  opacity: 0.7;
}

.bingo-cell:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.bingo-cell.called {
  border-color: var(--cyan);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.86),
    inset 0 -7px 0 rgba(0, 0, 0, 0.11),
    0 0 0 3px rgba(57, 245, 255, 0.28),
    0 0 24px rgba(57, 245, 255, 0.32);
}

.bingo-cell.called::before {
  border-color: rgba(57, 245, 255, 0.74);
  opacity: 1;
  transform: scale(1);
}

.bingo-cell.daubed {
  color: #fff;
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.68), transparent 18%),
    radial-gradient(circle at 50% 48%, rgba(255, 246, 166, 0.24), transparent 34%),
    linear-gradient(180deg, #ff7cca, #8645ff 56%, #24105f);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.62),
    inset 0 -7px 0 rgba(0, 0, 0, 0.31),
    inset 0 0 24px rgba(255, 255, 255, 0.16),
    0 0 0 3px rgba(255, 76, 174, 0.3),
    0 0 30px rgba(255, 76, 174, 0.5),
    0 9px 16px rgba(0, 0, 0, 0.25);
  animation: daub-pop 0.25s ease;
}

.bingo-cell.wild {
  color: #161026;
  background:
    radial-gradient(circle at 32% 18%, rgba(255, 255, 255, 0.92), transparent 22%),
    linear-gradient(180deg, #8fffff, #fff36e 48%, #ff4cae);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.72),
    inset 0 -7px 0 rgba(0, 0, 0, 0.25),
    0 0 0 3px rgba(255, 212, 90, 0.44),
    0 0 34px rgba(255, 212, 90, 0.58),
    0 9px 16px rgba(0, 0, 0, 0.25);
}

.bingo-cell.wild::after {
  content: "WILD";
  z-index: 2;
  display: grid;
  place-items: end center;
  padding-bottom: 8px;
  transform: none;
  background: none;
  color: #2b1058;
  font-size: 0.58rem;
  line-height: 1;
  font-weight: 900;
  opacity: 1;
}

.bingo-cell.daubed::before {
  opacity: 1;
  transform: scale(1);
  border-color: rgba(255, 244, 164, 0.86);
  box-shadow: inset 0 0 16px rgba(255, 255, 255, 0.2), 0 0 18px rgba(255, 212, 90, 0.36);
}

.bingo-cell.daubed::after {
  content: "DAUB";
  z-index: 2;
  display: grid;
  place-items: end center;
  padding-bottom: 8px;
  transform: none;
  background: none;
  color: #fff6a6;
  font-size: 0.58rem;
  line-height: 1;
  font-weight: 900;
  opacity: 1;
}

.bingo-cell.free {
  color: #180b24;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.78), transparent 36%),
    linear-gradient(180deg, #fff7a8, #ffc44d 64%, #d88409);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.72),
    inset 0 -7px 0 rgba(0, 0, 0, 0.18),
    0 0 26px rgba(255, 212, 90, 0.34);
}

.bingo-cell.free::before {
  opacity: 1;
  transform: scale(1);
  border-color: rgba(120, 78, 0, 0.18);
}

.bingo-cell.winning {
  animation: win-cell 0.58s ease-in-out 2;
  color: #151028;
  background:
    radial-gradient(circle at 34% 18%, rgba(255, 255, 255, 0.9), transparent 22%),
    linear-gradient(180deg, #fff7a8, #ffd45a 58%, #ff9d2e);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.7),
    inset 0 -8px 0 rgba(0, 0, 0, 0.2),
    0 0 0 4px rgba(255, 212, 90, 0.92),
    0 0 36px rgba(255, 211, 74, 0.98),
    0 0 58px rgba(57, 245, 255, 0.48);
}

.bingo-cell.column-hit {
  animation: column-cell 0.76s ease-in-out 2;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.7),
    inset 0 -8px 0 rgba(0, 0, 0, 0.2),
    0 0 0 4px rgba(141, 91, 255, 0.84),
    0 0 36px rgba(57, 245, 255, 0.76),
    0 0 58px rgba(141, 91, 255, 0.44);
}

.bingo-cell.bingo-hit {
  animation: win-cell 0.56s ease-in-out 3;
}

.bingo-cell.full-hit {
  animation: full-card-cell 0.78s ease-in-out 3;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.78),
    inset 0 -8px 0 rgba(0, 0, 0, 0.2),
    0 0 0 4px rgba(255, 212, 90, 0.94),
    0 0 46px rgba(255, 76, 174, 0.84),
    0 0 64px rgba(57, 245, 255, 0.48);
}

.bingo-cell.power-up-hit {
  animation: power-daub-cell 0.68s ease-in-out 2;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.76),
    inset 0 -8px 0 rgba(0, 0, 0, 0.18),
    0 0 0 4px rgba(57, 245, 255, 0.82),
    0 0 34px rgba(57, 245, 255, 0.72),
    0 0 48px rgba(85, 255, 180, 0.42);
}

.bingo-cell.invalid {
  animation: invalid-shake 0.24s ease;
}

.bingo-action-row {
  position: sticky;
  bottom: 8px;
  z-index: 10;
  display: grid;
  justify-items: center;
  gap: 6px;
  margin: 6px 0;
  pointer-events: none;
}

.bingo-btn {
  position: relative;
  pointer-events: auto;
  min-width: min(390px, 100%);
  min-height: 48px;
  overflow: hidden;
  border: 1px solid rgba(255, 240, 128, 0.48);
  border-radius: var(--radius);
  color: #17091b;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 30%),
    linear-gradient(180deg, #fff36d, #ff9d2e 47%, #ff3b89);
  font-family: Outfit, Inter, sans-serif;
  font-size: clamp(1.8rem, 5.8vw, 3rem);
  font-weight: 900;
  text-transform: uppercase;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.74),
    inset 0 -8px 0 rgba(78, 20, 50, 0.36),
    0 20px 48px rgba(0, 0, 0, 0.42),
    0 0 34px rgba(255, 76, 174, 0.28),
    0 0 30px rgba(255, 212, 90, 0.22);
  transition: transform 0.16s ease, filter 0.16s ease;
}

html[data-crash-stage="hot"] .bingo-btn,
html[data-crash-stage="critical"] .bingo-btn,
html[data-crash-stage="crash-zone"] .bingo-btn {
  animation: bingo-urgent 1.25s ease-in-out infinite;
}

.bingo-feedback {
  min-height: 0;
  margin: 0;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 0 16px currentColor;
}

.bingo-feedback.good { color: var(--green); }
.bingo-feedback.bad { color: #ffb4b4; }

.lower-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
  width: min(800px, 100%);
  margin: 0 auto;
}

.feed-panel,
.settings-panel,
.chat-panel {
  min-height: 142px;
  padding: 10px;
  border-color: rgba(103, 224, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 0 28px rgba(57, 245, 255, 0.06),
    0 14px 34px rgba(0, 0, 0, 0.28);
}

.chat-panel {
  min-height: 148px;
  border-color: rgba(103, 224, 255, 0.66);
  box-shadow:
    0 0 0 1px rgba(255, 212, 90, 0.1),
    0 0 0 4px rgba(4, 15, 42, 0.78),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 0 0 1px rgba(103, 224, 255, 0.12),
    inset 0 -18px 34px rgba(0, 0, 0, 0.22),
    0 16px 42px rgba(0, 0, 0, 0.34),
    0 0 26px rgba(57, 245, 255, 0.14);
}

.chat-drawer {
  display: none;
  min-height: 0;
  align-self: stretch;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.game-view.chat-open .chat-drawer {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.panel-head h3 {
  margin: 0;
  font-family: Outfit, Inter, sans-serif;
  text-transform: uppercase;
  font-size: 0.96rem;
}

.icon-btn {
  min-height: 30px;
  border-radius: var(--radius);
  color: var(--text);
  padding: 0 10px;
}

.game-feed,
.chat-body {
  max-height: 96px;
  overflow: auto;
  padding-right: 4px;
}

.game-feed p {
  margin: 0 0 6px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: #e8f4ff;
}

.toggle-row {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 900;
}

.volume-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 10px;
  align-items: center;
  margin: 5px 0 2px;
  color: var(--text);
  font-weight: 900;
}

.volume-row input {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: var(--gold);
}

.volume-row strong {
  color: var(--gold);
}

.sound-state {
  min-height: 24px;
  margin: 4px 0 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sound-state.on {
  color: var(--green);
  text-shadow: 0 0 14px rgba(60, 255, 155, 0.42);
}

.toggle-row input {
  width: 22px;
  height: 22px;
  accent-color: var(--gold);
}

.chat-state {
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.chat-state.offline {
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted);
}

.chat-status-stack {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.v2-badge {
  padding: 5px 8px;
  border: 1px solid rgba(143, 255, 255, 0.22);
  border-radius: 999px;
  color: rgba(143, 255, 255, 0.82);
  background: rgba(57, 245, 255, 0.08);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.chat-cold {
  margin: 0;
  padding: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  color: var(--muted);
}

.chat-cold strong {
  display: block;
  margin-bottom: 5px;
  color: rgba(143, 255, 255, 0.82);
  text-transform: uppercase;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 10px;
}

.chat-form input,
.chat-form button {
  min-height: 42px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.chat-form input {
  min-width: 0;
  padding: 0 10px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.22);
}

.chat-form button {
  padding: 0 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.chat-form :disabled {
  opacity: 0.64;
  cursor: not-allowed;
}

.countdown {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: rgba(7, 11, 46, 0.62);
  backdrop-filter: blur(4px);
  font-family: Outfit, Inter, sans-serif;
  font-size: clamp(6rem, 22vw, 14rem);
  font-weight: 900;
  text-shadow: 0 0 40px rgba(47, 246, 255, 0.7), 0 12px 0 rgba(0, 0, 0, 0.28);
}

.hidden {
  display: none !important;
}

.game-view.bonus-open .caller-row,
.game-view.bonus-open .board-toolbar,
.game-view.bonus-open .chat-panel,
.game-view.bonus-open .playfield,
.game-view.bonus-open .bingo-action-row,
.game-view.bonus-open #cardsArea,
.game-view.bonus-open #utilityRail,
.game-view.bonus-open #powerUpMeter,
.game-view.bonus-open #cardBankNav,
.game-view.bonus-open #wildPowerDock {
  display: none;
}

.game-view.bonus-open {
  padding: clamp(6px, 1vw, 10px);
}

.game-view.bonus-open .board-stage {
  display: grid;
  align-items: start;
  justify-items: center;
  min-height: min(640px, calc(100dvh - 116px));
  padding: clamp(8px, 1.2vw, 12px);
}

.game-view.bonus-open .board-stage::before {
  opacity: 0.74;
  filter: saturate(1.25);
}

.bonus-level-panel {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  display: grid;
  justify-items: center;
  width: min(760px, 94%);
  height: auto;
  max-height: min(540px, calc(100dvh - 132px));
  min-height: 0;
  overflow: hidden;
  padding: clamp(2px, 0.7vw, 6px);
}

.bonus-stage-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto auto auto auto auto;
  align-items: center;
  justify-items: stretch;
  gap: clamp(5px, 0.85vw, 8px);
  box-sizing: border-box;
  width: min(700px, 100%);
  height: auto;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  padding: clamp(8px, 1.1vw, 12px) clamp(10px, 1.4vw, 14px) clamp(10px, 1.2vw, 12px);
  border: 1px solid rgba(143, 255, 255, 0.82);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 26%),
    radial-gradient(circle at 18% 0%, rgba(57, 245, 255, 0.2), transparent 15rem),
    radial-gradient(circle at 82% 70%, rgba(255, 212, 90, 0.18), transparent 14rem),
    rgba(5, 14, 42, 0.9);
  box-shadow:
    0 0 0 1px rgba(255, 212, 90, 0.34),
    0 0 0 4px rgba(3, 8, 26, 0.64),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -20px 44px rgba(0, 0, 0, 0.24),
    0 18px 50px rgba(0, 0, 0, 0.4),
    0 0 46px rgba(57, 245, 255, 0.2);
}

.bonus-stage-shell::before {
  content: "";
  position: absolute;
  inset: 7px;
  pointer-events: none;
  border: 1px solid rgba(255, 212, 90, 0.48);
  border-radius: calc(var(--radius) - 1px);
  box-shadow: inset 0 0 26px rgba(57, 245, 255, 0.08);
}

.bonus-stage-shell::after {
  content: "";
  position: absolute;
  inset: 13px;
  pointer-events: none;
  border: 1px solid rgba(143, 255, 255, 0.22);
  border-radius: calc(var(--radius) - 3px);
  box-shadow:
    inset 0 0 28px rgba(57, 245, 255, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.bonus-stage-shell > * {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.bonus-stage-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: clamp(10px, 1.4vw, 14px);
  padding: clamp(7px, 1vw, 10px) clamp(9px, 1.3vw, 13px);
  border: 1px solid rgba(143, 255, 255, 0.3);
  border-bottom-color: rgba(255, 212, 90, 0.58);
  border-radius: calc(var(--radius) - 2px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 48%),
    linear-gradient(90deg, rgba(57, 245, 255, 0.12), rgba(255, 212, 90, 0.1), rgba(57, 245, 255, 0.08)),
    rgba(1, 7, 26, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(255, 212, 90, 0.32),
    0 8px 18px rgba(0, 0, 0, 0.2),
    0 0 28px rgba(57, 245, 255, 0.12);
  text-transform: uppercase;
  filter:
    drop-shadow(0 3px 0 rgba(3, 7, 24, 0.78))
    drop-shadow(0 0 24px rgba(57, 245, 255, 0.36));
}

.bonus-stage-head .eyebrow {
  margin: 0 0 2px;
  color: rgba(255, 212, 90, 0.96);
  font-size: clamp(0.68rem, 1.4vw, 0.88rem);
  text-shadow: 0 0 14px rgba(255, 212, 90, 0.38);
}

.bonus-stage-head h2 {
  margin: 0;
  color: transparent;
  background:
    linear-gradient(180deg, #ffffff 0%, #8fffff 24%, #18e9ff 43%, #fff190 60%, #ffd45a 78%, #ff9d2e 100%),
    linear-gradient(110deg, transparent 0 40%, rgba(255, 255, 255, 0.9) 48%, transparent 57% 100%);
  background-size: 100% 100%, 220% 100%;
  background-position: 0 0, -70% 0;
  background-clip: text;
  -webkit-background-clip: text;
  font-family: Outfit, Inter, sans-serif;
  font-size: clamp(1.5rem, 3.9vw, 2.9rem);
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.34),
    0 3px 0 rgba(1, 5, 22, 0.9),
    0 7px 14px rgba(0, 0, 0, 0.46),
    0 0 22px rgba(57, 245, 255, 0.72),
    0 0 30px rgba(255, 212, 90, 0.4);
  animation: bonus-title-sheen 3.2s ease-in-out infinite;
}

.bonus-subtitle {
  margin: 3px 0 0;
  color: var(--gold);
  font-size: clamp(0.72rem, 1.5vw, 0.92rem);
  font-weight: 900;
  text-transform: uppercase;
  text-shadow:
    0 0 12px rgba(255, 212, 90, 0.46),
    0 2px 0 rgba(0, 0, 0, 0.4);
}

.bonus-timer-clock {
  --bonus-timer-percent: 100%;
  --bonus-timer-color: #55ffb4;
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(72px, 7.4vw, 94px);
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--bonus-timer-color), white 34%);
  border-radius: 50%;
  color: #eaffff;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.42), transparent 0.38rem),
    radial-gradient(circle at center, rgba(7, 17, 43, 0.98) 0 46%, transparent 47%),
    conic-gradient(var(--bonus-timer-color) var(--bonus-timer-percent), rgba(255, 255, 255, 0.1) 0),
    radial-gradient(circle at center, rgba(2, 8, 27, 0.95) 0 62%, rgba(255, 255, 255, 0.2) 63% 68%, transparent 69%);
  box-shadow:
    inset 0 0 0 5px rgba(0, 0, 0, 0.38),
    inset 0 5px 13px rgba(255, 255, 255, 0.18),
    inset 0 -12px 18px rgba(0, 0, 0, 0.48),
    0 0 0 3px rgba(0, 0, 0, 0.34),
    0 0 0 5px color-mix(in srgb, var(--bonus-timer-color), transparent 76%),
    0 10px 24px rgba(0, 0, 0, 0.32),
    0 0 26px color-mix(in srgb, var(--bonus-timer-color), transparent 42%),
    0 0 46px color-mix(in srgb, var(--bonus-timer-color), transparent 66%);
}

.bonus-timer-clock::before,
.bonus-timer-clock::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.bonus-timer-clock::before {
  inset: -6px;
  background:
    repeating-conic-gradient(
      from -2deg,
      color-mix(in srgb, var(--bonus-timer-color), white 18%) 0 7deg,
      transparent 7deg 12deg
    );
  opacity: 0.58;
  -webkit-mask: radial-gradient(circle, transparent 0 61%, #000 62% 100%);
  mask: radial-gradient(circle, transparent 0 61%, #000 62% 100%);
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--bonus-timer-color), transparent 54%));
}

.bonus-timer-clock::after {
  inset: 12%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.16), transparent 40%),
    radial-gradient(circle at center, rgba(3, 10, 32, 0.48), rgba(0, 0, 0, 0.18));
  box-shadow:
    inset 0 0 18px rgba(57, 245, 255, 0.12),
    inset 0 -8px 16px rgba(0, 0, 0, 0.34);
}

.bonus-timer-clock.warning {
  --bonus-timer-color: #ffd45a;
  box-shadow:
    inset 0 0 0 6px rgba(0, 0, 0, 0.34),
    0 0 0 4px rgba(0, 0, 0, 0.32),
    0 0 30px rgba(255, 212, 90, 0.46),
    0 0 48px rgba(255, 212, 90, 0.22);
}

.bonus-timer-clock.urgent {
  --bonus-timer-color: #ff405e;
  animation: bonus-timer-pulse 0.55s ease-in-out infinite alternate;
}

.bonus-timer-clock.hot {
  --bonus-timer-color: #ff8d3d;
  box-shadow:
    inset 0 0 0 6px rgba(0, 0, 0, 0.34),
    0 0 0 4px rgba(0, 0, 0, 0.32),
    0 0 30px rgba(255, 141, 61, 0.52),
    0 0 50px rgba(255, 141, 61, 0.24);
}

.bonus-timer-clock span {
  position: relative;
  z-index: 1;
  font-family: Outfit, Inter, sans-serif;
  font-size: clamp(1.7rem, 3.6vw, 2.48rem);
  font-weight: 900;
  line-height: 1;
  text-shadow:
    0 0 14px currentColor,
    0 2px 0 rgba(0, 0, 0, 0.55);
}

.bonus-meta {
  display: flex;
  justify-content: center;
  padding: clamp(5px, 0.85vw, 8px) clamp(12px, 1.8vw, 16px) 0;
  color: var(--gold);
  font-size: clamp(0.78rem, 1.6vw, 0.96rem);
  font-weight: 900;
  text-transform: uppercase;
}

.bonus-clue-tag {
  justify-self: center;
  max-width: min(600px, calc(100% - 24px));
  padding: clamp(7px, 1.25vw, 10px) clamp(12px, 1.8vw, 18px);
  border: 1px solid rgba(255, 212, 90, 0.72);
  border-radius: 999px;
  color: #071129;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), transparent 36%),
    linear-gradient(180deg, #8fffff, #ffd45a);
  font-family: Outfit, Inter, sans-serif;
  font-size: clamp(0.9rem, 2.25vw, 1.26rem);
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  box-shadow:
    inset 0 -5px 0 rgba(0, 0, 0, 0.18),
    0 16px 36px rgba(0, 0, 0, 0.28),
    0 0 26px rgba(57, 245, 255, 0.24);
  animation: bonus-tag-in 0.32s ease both;
}

.bonus-jumble {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(5px, 0.9vw, 8px);
  padding-inline: clamp(12px, 1.8vw, 18px);
  color: #071129;
  font-family: Outfit, Inter, sans-serif;
  font-size: clamp(1.04rem, 3.45vw, 2rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.bonus-jumble button {
  min-width: clamp(28px, 4.8vw, 44px);
  min-height: clamp(32px, 5.4vw, 48px);
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: var(--radius);
  color: #071129;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), transparent 36%),
    linear-gradient(180deg, #8fffff, #ffd45a);
  box-shadow:
    inset 0 -6px 0 rgba(0, 0, 0, 0.2),
    0 12px 26px rgba(0, 0, 0, 0.28),
    0 0 18px rgba(57, 245, 255, 0.2);
}

.bonus-jumble button:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.12);
}

.bonus-jumble button.selected,
.bonus-jumble button:disabled {
  opacity: 0.42;
  transform: translateY(3px);
}

.bonus-answer-slots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(5px, 0.95vw, 8px);
  min-height: clamp(34px, 5.2vw, 48px);
  padding-inline: clamp(12px, 1.8vw, 18px);
}

.bonus-answer-slot {
  display: grid;
  place-items: center;
  width: clamp(27px, 4.9vw, 42px);
  aspect-ratio: 1;
  border: 2px solid rgba(143, 255, 255, 0.62);
  border-radius: 50%;
  color: #fff;
  background:
    radial-gradient(circle at center, rgba(57, 245, 255, 0.18), rgba(0, 0, 0, 0.18));
  font-family: Outfit, Inter, sans-serif;
  font-size: clamp(1.1rem, 3.45vw, 1.96rem);
  font-weight: 900;
  text-transform: uppercase;
  box-shadow:
    inset 0 0 18px rgba(57, 245, 255, 0.1),
    0 0 18px rgba(57, 245, 255, 0.22);
}

.bonus-form {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.bonus-typing-capture {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.bonus-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  padding-bottom: clamp(10px, 1.4vw, 13px);
}

.bonus-controls .btn {
  min-height: 38px;
  padding: 0 10px;
  font-size: clamp(0.78rem, 1.45vw, 0.94rem);
}

.bonus-feedback {
  min-height: 18px;
  margin: 0;
  color: var(--gold);
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 0 16px currentColor;
}

.bonus-feedback.good { color: var(--green); }
.bonus-feedback.bad { color: #ffb4b4; }

.bonus-level-panel.bonus-shake .bonus-stage-shell {
  animation: bonus-shake 0.28s ease;
}

.bonus-result {
  display: grid;
  justify-items: end;
  gap: 7px;
  margin-top: 0;
  padding: 0 clamp(14px, 2vw, 18px) clamp(12px, 1.6vw, 16px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: right;
  text-transform: uppercase;
}

.bonus-form[hidden],
.bonus-result[hidden],
.bonus-level-panel[hidden] {
  display: none !important;
}

.bonus-result strong {
  color: var(--gold);
  font-family: Outfit, Inter, sans-serif;
  font-size: clamp(1.24rem, 3.7vw, 2rem);
}

.bonus-result span {
  color: #e8f4ff;
  font-weight: 900;
}

.bonus-level-panel.result-mode .bonus-meta,
.bonus-level-panel.result-mode .bonus-clue-tag,
.bonus-level-panel.result-mode .bonus-jumble,
.bonus-level-panel.result-mode .bonus-answer-slots {
  display: none;
}

.bonus-level-panel.result-mode .bonus-result .btn {
  width: auto;
  min-height: 38px;
  padding: 0 14px;
}

.result-modal {
  width: min(600px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  color: var(--text);
  background: transparent;
}

.result-modal::backdrop {
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 64, 94, 0.18), transparent 28rem),
    rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(7px);
}

.result-card {
  position: relative;
  overflow: hidden;
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
  padding: clamp(24px, 5vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 32%),
    radial-gradient(circle at 50% 0%, rgba(57, 245, 255, 0.16), transparent 18rem),
    linear-gradient(145deg, rgba(15, 27, 82, 0.98), rgba(42, 18, 74, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 28px 90px rgba(0, 0, 0, 0.6),
    0 0 50px rgba(57, 245, 255, 0.16);
  animation: modal-in 0.24s ease both;
}

.result-modal.crashed .result-card {
  border-color: rgba(255, 84, 84, 0.58);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 32%),
    radial-gradient(circle at 50% 0%, rgba(255, 64, 94, 0.24), transparent 18rem),
    linear-gradient(145deg, rgba(42, 16, 42, 0.98), rgba(74, 18, 35, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 30px 95px rgba(0, 0, 0, 0.62),
    0 0 56px rgba(255, 64, 94, 0.2);
}

.result-modal.won .result-card {
  border-color: rgba(255, 212, 90, 0.62);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 32%),
    radial-gradient(circle at 50% 0%, rgba(255, 212, 90, 0.25), transparent 18rem),
    linear-gradient(145deg, rgba(16, 45, 88, 0.98), rgba(68, 47, 13, 0.98));
}

.result-card::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: conic-gradient(from 180deg, transparent, rgba(255, 255, 255, 0.13), transparent, rgba(57, 245, 255, 0.12), transparent);
  animation: rotate-energy 10s linear infinite;
}

.result-card > * {
  position: relative;
  z-index: 1;
}

.result-card h2 {
  margin: 0;
  color: transparent;
  background: linear-gradient(180deg, #fff, #7cf8ff 35%, #ffd45a 82%);
  background-clip: text;
  -webkit-background-clip: text;
  font-family: Outfit, Inter, sans-serif;
  font-size: clamp(3rem, 10vw, 5.6rem);
  text-transform: uppercase;
  filter: drop-shadow(0 0 24px rgba(57, 245, 255, 0.45));
}

.result-modal.crashed .result-card h2 {
  background: linear-gradient(180deg, #fff, #ff9d73 35%, #ff405e 82%);
  background-clip: text;
  -webkit-background-clip: text;
  filter: drop-shadow(0 0 24px rgba(255, 64, 94, 0.48));
}

.result-subtitle {
  margin: 10px 0 18px;
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
}

.result-stats {
  display: grid;
  gap: 8px;
  margin: 18px 0 22px;
}

.result-stats div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.result-stats span {
  color: var(--muted);
  font-weight: 800;
}

.result-stats strong {
  text-align: right;
}

.result-actions {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 10px;
}

.arcade-tag {
  position: fixed;
  z-index: 75;
  top: min(34vh, 320px);
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  padding: 9px 16px;
  border: 1px solid rgba(255, 244, 164, 0.54);
  border-radius: 999px;
  color: #071129;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), transparent 34%),
    linear-gradient(180deg, #8fffff, #ffd45a);
  font-family: Outfit, Inter, sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 900;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    inset 0 -5px 0 rgba(0, 0, 0, 0.2),
    0 20px 44px rgba(0, 0, 0, 0.34),
    0 0 30px rgba(57, 245, 255, 0.32);
  animation: arcade-tag 1.08s ease both;
}

.arcade-tag.hot {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), transparent 34%),
    linear-gradient(180deg, #fff36e, #ff9d2e 58%, #ff4cae);
}

.arcade-tag.recovery {
  color: #03142c;
  border-color: rgba(143, 255, 255, 0.82);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), transparent 36%),
    linear-gradient(180deg, #c7fff8, #39f5ff 56%, #55ffb4);
}

.arcade-tag.power {
  color: #071129;
  border-color: rgba(255, 212, 90, 0.78);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), transparent 34%),
    linear-gradient(180deg, #ffffff, #39f5ff 42%, #ffd45a 78%, #ff4cae);
}

.replay-overlay {
  position: fixed;
  z-index: 95;
  left: 50%;
  top: 50%;
  width: min(520px, calc(100vw - 28px));
  transform: translate(-50%, -50%);
  padding: 18px;
  border: 1px solid rgba(103, 224, 255, 0.72);
  border-radius: var(--radius);
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 36%),
    radial-gradient(circle at 50% 0%, rgba(255, 212, 90, 0.18), transparent 16rem),
    rgba(4, 13, 42, 0.94);
  box-shadow:
    0 0 0 1px rgba(255, 212, 90, 0.18),
    0 0 0 5px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 0 32px rgba(57, 245, 255, 0.1),
    0 30px 100px rgba(0, 0, 0, 0.62),
    0 0 50px rgba(57, 245, 255, 0.22);
  animation: modal-in 0.22s ease both;
}

.replay-overlay strong {
  display: block;
  font-family: Outfit, Inter, sans-serif;
  font-size: 2rem;
  text-transform: uppercase;
  color: var(--gold);
}

.replay-overlay > span {
  display: block;
  margin: 2px 0 12px;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.replay-log {
  display: grid;
  gap: 7px;
}

.replay-log p {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
  animation: call-enter 0.2s ease both;
}

.bingo-celebration {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  pointer-events: none;
  color: transparent;
  background: radial-gradient(circle at 50% 50%, rgba(255, 212, 90, 0.16), transparent 20rem);
  background-clip: padding-box;
  font-family: Outfit, Inter, sans-serif;
  font-size: clamp(4rem, 13vw, 10rem);
  font-weight: 900;
  text-transform: uppercase;
  -webkit-text-stroke: 2px rgba(8, 14, 39, 0.75);
  text-shadow:
    0 0 24px rgba(57, 245, 255, 0.88),
    0 0 56px rgba(255, 212, 90, 0.78),
    0 12px 0 rgba(0, 0, 0, 0.28);
  animation: bingo-banner 1.15s ease both;
}

.bingo-celebration::before {
  content: attr(data-text);
  display: block;
  padding: 0.08em 0.22em 0.12em;
  border: 1px solid rgba(255, 244, 164, 0.46);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #7cf8ff 30%, #ffd45a 60%, #ff9d2e 100%);
  background-clip: text;
  -webkit-background-clip: text;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -10px 26px rgba(0, 0, 0, 0.26),
    0 0 36px rgba(57, 245, 255, 0.32),
    0 20px 60px rgba(0, 0, 0, 0.42);
}

@keyframes hero-breathe {
  50% { transform: scale(1.01); filter: saturate(1.16) contrast(1.05); }
}

@keyframes light-sweep {
  0%, 58%, 100% { opacity: 0.35; transform: translateX(-16%); }
  72% { opacity: 0.72; transform: translateX(18%); }
}

@keyframes title-flare {
  0%, 54%, 100% { transform: translateX(-130%); opacity: 0; }
  66% { opacity: 0.58; }
  78% { transform: translateX(130%); opacity: 0; }
}

@keyframes title-sweep {
  0%, 48%, 100% { transform: translateX(-130%); }
  64% { transform: translateX(130%); }
}

@keyframes button-sheen {
  0%, 50%, 100% { transform: translateX(-130%); }
  68% { transform: translateX(130%); }
}

@keyframes ball-pop {
  from { transform: scale(0.82); filter: brightness(1.25); }
  to { transform: scale(1); filter: brightness(1); }
}

@keyframes call-enter {
  from { opacity: 0; transform: translateY(7px) scale(0.86); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes grid-drift {
  from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; }
  to { background-position: 0 44px, 44px 0, 44px 44px, 28px 20px, -24px 18px; }
}

@keyframes grid-glimmer {
  50% { opacity: 0.92; filter: brightness(1.08); }
}

@keyframes stage-sweep {
  0%, 48%, 100% { transform: translateX(-12%); opacity: 0.28; }
  68% { transform: translateX(12%); opacity: 0.62; }
}

@keyframes arcade-tag {
  0% { opacity: 0; transform: translate(-50%, 18px) scale(0.78); }
  22% { opacity: 1; transform: translate(-50%, 0) scale(1.06); }
  72% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -12px) scale(0.96); }
}

@keyframes bonus-tag-in {
  0% { opacity: 0; transform: translateY(14px) scale(0.92); }
  72% { opacity: 1; transform: translateY(-2px) scale(1.03); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes bonus-title-sheen {
  0%, 62%, 100% { background-position: 0 0, -70% 0; }
  78% { background-position: 0 0, 122% 0; }
}

@keyframes bonus-timer-pulse {
  50% {
    transform: scale(1.035);
    filter: brightness(1.18) saturate(1.18);
    box-shadow:
      inset 0 0 0 8px rgba(0, 0, 0, 0.28),
      0 0 34px rgba(255, 64, 94, 0.44);
  }
}

@keyframes bonus-shake {
  0%, 100% { transform: translateX(0); }
  22% { transform: translateX(-8px); }
  46% { transform: translateX(7px); }
  70% { transform: translateX(-4px); }
}

@keyframes wild-glow {
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.32),
      inset 0 -8px 20px rgba(0, 0, 0, 0.24),
      0 0 30px rgba(255, 212, 90, 0.34),
      0 0 26px rgba(57, 245, 255, 0.24);
  }
}

@keyframes meter-sheen {
  from { transform: translateX(-110%); }
  to { transform: translateX(120%); }
}

@keyframes power-near {
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 212, 90, 0.2),
      0 0 24px rgba(57, 245, 255, 0.32),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
}

@keyframes power-ready-pulse {
  50% {
    transform: translateY(-1px) scale(1.015);
    filter: brightness(1.12) saturate(1.12);
  }
}

@keyframes power-active-flare {
  40% {
    filter: brightness(1.24) saturate(1.24);
    box-shadow:
      0 0 0 1px rgba(255, 212, 90, 0.32),
      0 0 34px rgba(255, 64, 94, 0.34),
      0 0 24px rgba(57, 245, 255, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.22);
  }
}

@keyframes meter-discharge {
  0% { filter: brightness(1.36); opacity: 1; }
  100% { filter: brightness(1); opacity: 0.62; }
}

@keyframes recovery-flash {
  0% { filter: brightness(1); box-shadow: 0 0 22px rgba(255, 212, 90, 0.34); }
  35% { filter: brightness(1.42) saturate(1.18); box-shadow: 0 0 34px rgba(57, 245, 255, 0.72), 0 0 24px rgba(85, 255, 180, 0.44); }
  100% { filter: brightness(1); box-shadow: 0 0 22px rgba(255, 212, 90, 0.34); }
}

@keyframes card-bank-slide {
  0% { opacity: 0; transform: translateY(18px) scale(0.985); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes card-complete-out {
  0% { opacity: 1; transform: scale(1); filter: brightness(1); }
  32% { opacity: 1; transform: scale(1.04); filter: brightness(1.25); }
  100% { opacity: 0; transform: translateY(-16px) scale(0.94); filter: brightness(1.12); }
}

@keyframes bank-attention {
  35% {
    transform: translateY(-2px) scale(1.03);
    box-shadow:
      0 0 0 1px rgba(255, 212, 90, 0.5),
      0 0 0 5px rgba(57, 245, 255, 0.2),
      0 0 36px rgba(57, 245, 255, 0.36),
      inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }
}

@keyframes rotate-energy {
  to { transform: rotate(360deg); }
}

@keyframes pressure-pulse {
  50% { filter: drop-shadow(0 0 14px currentColor); }
}

@keyframes daub-pop {
  45% { transform: scale(1.06); }
}

@keyframes win-cell {
  35% { transform: scale(1.1); }
  70% { transform: scale(1.04); }
}

@keyframes column-cell {
  35% { transform: translateY(-3px) scale(1.08); filter: brightness(1.2); }
  70% { transform: translateY(0) scale(1.03); }
}

@keyframes full-card-cell {
  35% { transform: scale(1.12); filter: brightness(1.24); }
  70% { transform: scale(1.05); }
}

@keyframes power-daub-cell {
  0% { transform: scale(0.96); filter: brightness(1); }
  34% { transform: scale(1.1); filter: brightness(1.32); }
  72% { transform: scale(1.03); filter: brightness(1.1); }
}

@keyframes invalid-shake {
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

@keyframes bingo-urgent {
  50% { box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.74), inset 0 -8px 0 rgba(78, 20, 50, 0.36), 0 20px 48px rgba(0, 0, 0, 0.42), 0 0 48px rgba(255, 64, 94, 0.38), 0 0 36px rgba(255, 212, 90, 0.34); }
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes bingo-banner {
  0% { opacity: 0; transform: scale(0.62) rotate(-2deg); filter: brightness(1.5); }
  22% { opacity: 1; transform: scale(1.08) rotate(1deg); }
  72% { opacity: 1; transform: scale(1) rotate(0); }
  100% { opacity: 0; transform: scale(1.18); }
}

.reduced-motion *,
.reduced-motion *::before,
.reduced-motion *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
