:root {
  --bg: #070708;
  --panel: rgba(12, 12, 14, 0.88);
  --panel-2: #161618;
  --line: rgba(225, 6, 0, 0.22);
  --text: #f6f3ef;
  --muted: #9a9590;
  --red: #e10600;
  --red-2: #ff3b30;
  --green: #3dd68c;
  --gold: #f0c14b;
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; color: var(--text); font-family: Manrope, system-ui, sans-serif; background: #050505; }
body { display: flex; flex-direction: column; overflow: hidden; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; }

.world-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5,5,7,.55), rgba(5,5,7,.82)),
    url("/assets/mc-bg.png") center / cover no-repeat;
  filter: saturate(1.05);
}

.toast-root, .topbar, .shell { position: relative; z-index: 2; }
.toast-root { position: fixed; right: 16px; top: 72px; z-index: 80; display: grid; gap: 8px; }
.toast { background: #1a1a1c; border: 1px solid var(--line); padding: 10px 14px; border-radius: 10px; }

.mc-item { image-rendering: pixelated; width: 28px; height: 28px; }
.mc-item.sm { width: 18px; height: 18px; }
.mc-item.xl { width: 72px; height: 72px; }

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18,8,8,.92), rgba(8,8,10,.88));
  backdrop-filter: blur(16px);
  position: sticky; top: 0; z-index: 20;
}
.top-left {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-self: start;
  min-width: 0;
}
.top-center {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  background: none; border: 0; color: inherit; text-align: left; padding: 0;
  cursor: pointer;
}
.brand-logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: min(220px, 42vw);
  object-fit: contain;
  border-radius: 6px;
}
.brand-text { display: grid; line-height: 1.05; font-weight: 800; letter-spacing: .04em; }
.brand-text small { color: var(--red-2); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; }
.top-nav {
  display: flex; justify-content: flex-start; align-items: center; gap: 6px;
  background: rgba(0,0,0,.35);
  border: 1px solid #2a1a1a;
  border-radius: 999px;
  padding: 4px;
  overflow: visible;
}
.nav-link {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent; border: 0; color: var(--muted);
  font-weight: 700; padding: 8px 14px; border-radius: 999px;
}
.nav-link.active, .nav-link:hover { color: #fff; background: linear-gradient(180deg, #e10600, #8f0500); }
.nav-games { position: relative; }
.games-menu-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #2a2a2e;
  border: 1px solid rgba(255,255,255,.72);
  color: #fff;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 10px;
}
.games-menu-btn:hover, .games-menu-btn.active, .nav-games.open .games-menu-btn {
  background: #323236;
  color: #fff;
}
.games-pad { width: 18px; height: 18px; flex-shrink: 0; }
.games-menu-btn .chevron { width: 10px; height: 7px; transition: transform .15s ease; }
.nav-games.open .games-menu-btn .chevron { transform: rotate(180deg); }
.games-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 188px;
  padding: 10px 0;
  background: #141416;
  border: 1px solid #2a2a2e;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0,0,0,.55);
  z-index: 60;
}
.nav-games.open .games-dropdown { display: grid; }
.games-drop-item {
  display: block;
  width: 100%;
  background: none;
  border: 0;
  color: #fff;
  text-align: left;
  font-weight: 600;
  padding: 13px 18px;
  border-radius: 0;
}
.games-drop-item:hover { background: rgba(255,255,255,.06); }
.games-list {
  display: grid;
  max-width: 280px;
  background: #141416;
  border: 1px solid #2a2a2e;
  border-radius: 10px;
  padding: 8px 0;
  overflow: hidden;
}
.nav-toggle { display: none; }
.fair-box {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #2a2a2e;
  display: grid;
  gap: 6px;
}
.fair-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 8px;
  align-items: start;
  font-size: 11px;
  color: var(--muted);
}
.fair-row code {
  font-size: 10px;
  word-break: break-all;
  color: var(--text);
}
.modal.cash { width: min(460px, 94vw); }
.modal.wallet-shell {
  width: min(560px, 94vw);
  padding: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #1a1212, #121214);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 40px rgba(225,6,0,.12);
}
.wallet-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 0;
}
.wallet-tabs {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  overflow-x: auto;
  padding: 4px;
  border: 1px solid #2a2a2e;
  border-radius: 10px;
  background: rgba(12, 12, 14, .72);
  scrollbar-width: none;
}
.wallet-tabs::-webkit-scrollbar { display: none; }
.wallet-tab {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 8px;
  white-space: nowrap;
}
.wallet-tab:hover { color: var(--text); }
.wallet-tab.active {
  background: linear-gradient(180deg, #ff2d24, #b10500);
  color: #fff;
  font-weight: 700;
}
.wallet-close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #2a2a2e;
  background: #1b1b1e;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0;
}
.wallet-close:hover { background: #2a2a2e; color: #fff; }
.wallet-panels { padding: 16px 18px 18px; max-height: min(72vh, 640px); overflow: auto; }
.wallet-panel { display: none; }
.wallet-panel.active { display: block; }
.wallet-soon {
  text-align: center;
  padding: 28px 12px 18px;
}
.wallet-soon h3 { margin: 0 0 8px; }
.tip-sheet {
  display: grid;
  gap: 16px;
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
}
.tip-sheet h2 { margin: 4px 0 6px; }
.tip-sheet .stack {
  text-align: left;
}
.tip-sheet .stack > label {
  display: block;
  text-align: center;
}
.tip-sheet .amount-input {
  justify-content: center;
}
.tip-sheet .btn.full {
  width: 100%;
}
.tip-recent {
  text-align: center;
}
.tip-recent h3 {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.tip-recent-list { display: grid; gap: 8px; text-align: left; }
.tip-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: center;
  padding: 10px 12px;
  background: #101012;
  border: 1px solid #2a2a2e;
  border-radius: 10px;
}
.tip-row .tip-peer { font-weight: 700; }
.tip-row .tip-meta { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.wallet-fx { display: grid; gap: 12px; }
.wallet-fx .fx-pair { margin-bottom: 0; }
.wallet-fx .fx-leg { padding: 12px; }
.wallet-fx .fx-input input { font-size: 28px; }
.wallet-fx .fx-symbol { font-size: 26px; }
.wallet-fx .fx-rate-pill {
  min-width: 0;
  padding: 8px 12px;
}
.wallet-fx .fx-kv div { padding: 8px 0; font-size: 13px; }
.wallet-fx #custom-pay { margin-top: 4px; }
.btn.gold {
  background: linear-gradient(180deg, #f0c14b, #b8860b);
  border-color: #f0c14b;
  color: #1a1204;
}
.amount-input {
  display: flex; align-items: center; gap: 8px;
  background: #101012; border: 1px solid #2a2a2e; border-radius: 10px; padding: 8px 10px;
}
.amount-input input { border: 0; background: transparent; padding: 4px 0; }

.deposit-sheet { display: grid; gap: 14px; }
.deposit-sheet h2 { margin: 0; }
.deposit-kicker { margin: 0; color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.deposit-lead { margin: 0; color: var(--muted); line-height: 1.45; }
.deposit-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.deposit-chip {
  background: #101012; border: 1px solid #2a2a2e; border-radius: 12px; padding: 10px 12px;
}
.deposit-chip span { display: block; font-size: 10px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; margin-bottom: 4px; }
.deposit-chip strong { font-size: 15px; word-break: break-word; }
.pay-card {
  display: grid; gap: 10px;
  background: linear-gradient(180deg, #1c1410, #121214);
  border: 1px solid rgba(240,193,75,.28);
  border-radius: 14px;
  padding: 14px;
  box-shadow: inset 0 1px 0 rgba(240,193,75,.08);
}
.pay-card .label { margin: 0; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pay-cmd {
  display: flex; align-items: center; gap: 10px;
  background: #0c0c0e; border: 1px solid #2a2a2e; border-radius: 10px; padding: 12px;
}
.pay-cmd code {
  flex: 1; font-size: 15px; font-weight: 700; letter-spacing: .02em; color: #f6f3ef;
}
.deposit-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
}
.deposit-step {
  display: grid; justify-items: center; gap: 6px; text-align: center;
  color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.deposit-step i {
  width: 100%; height: 4px; border-radius: 999px; background: #2a2a2e; display: block;
}
.deposit-step.on { color: #fff; }
.deposit-step.on i { background: var(--gold); box-shadow: 0 0 10px rgba(240,193,75,.45); }
.deposit-step.done { color: var(--green); }
.deposit-step.done i { background: var(--green); }
.deposit-wait {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 0; color: var(--muted); font-size: 13px;
}
.deposit-wait b {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 10px var(--gold); animation: wait-pulse 1.2s ease infinite;
}
.deposit-done {
  text-align: center; padding: 8px 0 0;
}
.deposit-done h3 { margin: 0 0 6px; color: var(--green); }
@keyframes wait-pulse { 50% { opacity: .35; transform: scale(.8); } }
.verify-extras {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.verify-out {
  margin-top: 12px;
  max-height: 240px;
  overflow: auto;
  background: #101012;
  border: 1px solid #2a2a2e;
  border-radius: 10px;
  padding: 10px;
  font-size: 11px;
  white-space: pre-wrap;
}
label.inline { display: flex; align-items: center; gap: 8px; font-size: 12px; }
#authed-tools { display: flex; align-items: center; gap: 8px; }
#authed-tools.hidden, #authed-wallet.hidden, .guest-only.hidden, .user-only.hidden { display: none !important; }
.top-right, #guest-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}
.header-wallet-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
}
.balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #2a2a2e;
  border-radius: 8px;
  background: rgba(12, 12, 14, .88);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  backdrop-filter: blur(10px);
  transition: box-shadow .3s, border-color .3s;
}
.balance-pill:hover { border-color: var(--line); }
.balance-pill strong { font-weight: 700; letter-spacing: .01em; }
.balance-chevron { color: var(--muted); flex-shrink: 0; }
.wallet-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #ff4d45;
  border-radius: 8px;
  background: linear-gradient(180deg, #ff2d24, #b10500);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .01em;
}
.wallet-btn:hover { filter: brightness(1.06); }
.wallet-btn-icon { flex-shrink: 0; }
.wallet-meta { display: grid; line-height: 1.05; }
.btn.xl { padding: 12px 18px; font-size: 15px; }

.btn {
  border: 1px solid #2a2a2e; background: #1b1b1e; color: var(--text);
  border-radius: 10px; padding: 10px 14px; font-weight: 700;
}
.btn.sm { padding: 7px 10px; font-size: 13px; }
.btn.red { background: linear-gradient(180deg, #ff2d24, #b10500); border-color: #ff4d45; color: #fff; }
.btn.full { width: 100%; }
.link { background: none; border: 0; color: var(--red-2); padding: 0; }

.profile-pill {
  display: flex; align-items: center; gap: 8px; background: #141416; border: 1px solid #2a2a2e;
  border-radius: 999px; padding: 6px 10px;
}
#header-avatar, .avatar { width: 28px; height: 28px; border-radius: 6px; image-rendering: pixelated; }
.avatar.lg { width: 72px; height: 72px; border-radius: 12px; }

.topbar { flex-shrink: 0; }
.shell { display: grid; grid-template-columns: 1fr; flex: 1; min-height: 0; overflow: hidden; }
.shell.chat-open { grid-template-columns: 280px 1fr; }
.chat-rail {
  background: rgba(10,10,12,.92); border-right: 1px solid var(--line); display: none; flex-direction: column;
  min-height: 0; height: 100%; overflow: hidden;
}
.shell.chat-open .chat-rail { display: flex; }
.chat-head, .rain-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px; border-bottom: 1px solid #222; flex-shrink: 0; }
.rain-bar { justify-content: flex-start; gap: 8px; background: rgba(225,6,0,.08); }
.chat-log {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 12px 10px;
  display: grid;
  align-content: start;
  gap: 14px;
}
.chat-line { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; }
.chat-ava {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  object-fit: cover; image-rendering: pixelated; background: #1a1c1e;
}
.chat-copy { min-width: 0; }
.chat-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.chat-line strong { color: #fff; font-weight: 800; font-size: 13px; }
.chat-lv {
  display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 999px;
  font-size: 10px; font-weight: 800; color: #fff; line-height: 1.4;
}
.chat-lv.green { background: #22c55e; }
.chat-lv.purple { background: #8b5cf6; }
.chat-lv.gold { background: #eab308; color: #1a1400; }
.chat-line p { margin: 3px 0 0; color: #c5cad3; font-size: 13px; word-break: break-word; }
.chat-form { display: flex; gap: 6px; padding: 10px; border-top: 1px solid #222; flex-shrink: 0; }
.chat-form input, input, select {
  width: 100%; background: #101012; border: 1px solid #2a2a2e; border-radius: 8px; padding: 10px;
}

.stage {
  padding: 22px;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}
.home-hero, .hero-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(20px, 4vw, 36px);
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 28px;
  margin-bottom: 22px;
}
.kicker { color: var(--red-2); font-weight: 800; letter-spacing: .14em; font-size: 12px; }
.home-hero h1, .games-head h1 { margin: 6px 0; font-size: clamp(32px, 6vw, 56px); letter-spacing: -.03em; }
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
}
.lede { color: var(--muted); max-width: 520px; font-size: 16px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.hero-steve {
  image-rendering: pixelated;
  height: clamp(160px, 28vw, 220px);
  width: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .45));
}
.hero-logo {
  height: clamp(140px, 28vw, 220px);
  width: auto;
  max-width: min(320px, 46vw);
  object-fit: contain;
  border-radius: 12px;
  flex-shrink: 0;
}
.hero-roulette {
  display: block;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex: 0 0 min(44vw, 520px);
  max-width: min(520px, 50vw);
  align-self: stretch;
  border-radius: 14px;
  overflow: hidden;
  line-height: 0;
  transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s;
}
.hero-roulette img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: clamp(220px, 32vw, 360px);
  object-fit: cover;
  object-position: center top;
  border-radius: 14px;
}
.hero-roulette:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(225, 6, 0, .22);
}
.home-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 28px; }
.home-steps article { background: var(--panel); border: 1px solid #26262a; border-radius: 16px; padding: 16px; }

/* DonutLuck-style games showcase (added below hero/steps) */
.games-showcase {
  --showcase-red: var(--red);
  position: relative;
  isolation: isolate;
  margin: 0 0 28px;
  padding: 22px 20px 26px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .06);
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(225, 6, 0, .06), transparent 55%),
    #0c0c0e;
  overflow: hidden;
}
.games-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .28;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='320' viewBox='0 0 420 320' fill='none'%3E%3Cpath d='M-20 40c40 12 80-18 120-8s70 40 120 28 90-36 140-20 80 48 120 36' stroke='%23888' stroke-width='1'/%3E%3Cpath d='M-10 90c36 10 76-14 118-6s78 34 122 22 86-30 132-16 78 40 116 30' stroke='%23777' stroke-width='1'/%3E%3Cpath d='M-30 150c44 14 88-20 132-8s82 42 128 26 92-34 138-18 76 46 118 34' stroke='%23666' stroke-width='1'/%3E%3Cpath d='M-15 210c38 12 74-16 116-6s80 36 124 22 88-28 130-14 74 42 112 32' stroke='%23555' stroke-width='1'/%3E%3Cpath d='M-25 270c42 10 82-22 126-10s84 38 130 24 90-32 136-16 72 44 110 30' stroke='%23444' stroke-width='1'/%3E%3Cpath d='M40-10c8 48-18 90-6 130s40 78 26 118-34 86-18 128 44 74 32 110' stroke='%23555' stroke-width='1'/%3E%3Cpath d='M140-20c10 44-14 86-4 124s36 74 22 112-30 82-16 122 40 70 28 104' stroke='%23444' stroke-width='1'/%3E%3Cpath d='M260-15c12 46-12 88-2 128s34 76 20 114-28 84-14 124 38 72 26 106' stroke='%23666' stroke-width='1'/%3E%3Cpath d='M380-5c8 42-16 84-6 122s32 72 18 110-26 80-12 118 36 68 24 100' stroke='%23555' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 420px 320px;
  background-repeat: repeat;
}
.games-showcase > * { position: relative; z-index: 1; }

.showcase-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
  margin: 0 0 18px;
}
.showcase-bar {
  display: inline-block;
  width: 4px;
  height: 1.05em;
  border-radius: 2px;
  background: var(--showcase-red);
  flex-shrink: 0;
  align-self: center;
  box-shadow: 0 0 10px rgba(225, 6, 0, .45);
}
.showcase-title {
  margin: 0;
  font-size: clamp(15px, 2.2vw, 18px);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
}
.showcase-sub {
  margin: 0;
  font-size: clamp(11px, 1.6vw, 13px);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}

/* Live bets feed (below games showcase) */
.live-bets {
  --live-green: #3dd68c;
  position: relative;
  margin: 0 0 28px;
  padding: 0 2px 4px;
}
.live-bets-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}
.live-bets-bar {
  display: inline-block;
  width: 4px;
  height: 1.05em;
  border-radius: 2px;
  background: var(--red);
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(225, 6, 0, .45);
}
.live-bets-title {
  margin: 0;
  font-size: clamp(15px, 2.2vw, 18px);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
}
.live-bets-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(255, 59, 48, .55);
  animation: live-bets-pulse 1.8s ease-in-out infinite;
}
@keyframes live-bets-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, .55); opacity: 1; }
  50% { box-shadow: 0 0 0 6px rgba(255, 59, 48, 0); opacity: .75; }
}
.live-bets-card {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .06);
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(61, 214, 140, .04), transparent 55%),
    rgba(12, 12, 14, .92);
  backdrop-filter: blur(12px);
  overflow: hidden;
}
.live-bets-table {
  --lb-cols: minmax(140px, 1.4fr) minmax(140px, 1.4fr) minmax(72px, .8fr) minmax(88px, .9fr) minmax(96px, 1fr);
  min-width: 0;
}
.live-bets-body {
  max-height: calc(48px * 10 + 2px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .12) transparent;
}
.live-bets-body::-webkit-scrollbar { width: 6px; }
.live-bets-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .12);
  border-radius: 999px;
}
.live-bets-row {
  display: grid;
  grid-template-columns: var(--lb-cols);
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  transition: background .15s ease;
}
.live-bets-row:last-child { border-bottom: 0; }
.live-bets-row:not(.live-bets-row--head):hover {
  background: rgba(225, 6, 0, .04);
}
.live-bets-row--head {
  min-height: 36px;
  padding-top: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  background: rgba(0, 0, 0, .18);
}
.live-bets-row--head .live-bets-cell {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .38);
}
.live-bets-cell {
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, .92);
}
.live-bets-stake,
.live-bets-mult-cell,
.live-bets-payout-cell {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.live-bets-game,
.live-bets-player {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.live-bets-game span,
.live-bets-player span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.live-bets-pad {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, .55);
}
.live-bets-ava {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  image-rendering: pixelated;
  background: #1a1c1e;
  object-fit: cover;
}
.live-bets-mult {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.live-bets-mult.loss {
  color: rgba(255, 255, 255, .28);
  background: transparent;
}
.live-bets-mult.win {
  color: #6ee7a8;
  background: rgba(34, 120, 72, .45);
  border: 1px solid rgba(61, 214, 140, .25);
}
.live-bets-pay {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.live-bets-pay.loss { color: rgba(255, 255, 255, .32); }
.live-bets-pay.win { color: var(--live-green); }
.live-bets-empty {
  padding: 28px 16px;
  text-align: center;
  color: rgba(255, 255, 255, .35);
  font-size: 13px;
  letter-spacing: 0.02em;
}

@media (max-width: 720px) {
  .live-bets-card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .live-bets-table { min-width: 560px; }
}

/* Two-row DonutLuck-style grid: hero row (5-col) + square row (8-col) */
#home-showcase {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.showcase-row {
  display: grid;
  gap: 12px;
  align-items: stretch;
}
.showcase-row--hero {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.showcase-row--squares {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.showcase-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 0;
  min-width: 0;
  aspect-ratio: 1;
  padding: 12px 10px 14px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .04) 0%, transparent 38%),
    linear-gradient(180deg, transparent 55%, rgba(225, 6, 0, .07) 100%),
    #0e0e10;
  color: inherit;
  cursor: pointer;
  overflow: hidden;
  text-align: center;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), border-color .25s, box-shadow .3s;
  animation: card-in .5s cubic-bezier(.16, 1, .3, 1) backwards;
  animation-delay: calc(var(--i, 0) * 45ms);
}
.showcase-tile.featured {
  grid-column: span 1;
  aspect-ratio: 1;
  min-height: 0;
}
.showcase-tile.square {
  grid-column: span 1;
  aspect-ratio: 1;
  min-height: 0;
}
.showcase-tile::after {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: -8px;
  height: 48%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center bottom, rgba(225, 6, 0, .62), rgba(225, 6, 0, .18) 45%, transparent 72%);
  filter: blur(16px);
  pointer-events: none;
  z-index: 0;
}
.showcase-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(225, 6, 0, .35);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .35), 0 0 24px rgba(225, 6, 0, .12);
}
.showcase-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.2;
}
.showcase-badge.hot {
  background: linear-gradient(135deg, #ea580c, #dc2626);
  color: #fff;
  box-shadow: 0 2px 8px rgba(220, 38, 38, .35);
}
.showcase-badge.new {
  background: linear-gradient(135deg, #4ade80, #22c55e);
  color: #fff;
  box-shadow: 0 2px 8px rgba(34, 197, 94, .35);
}
.showcase-art {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 0;
  padding: 8px 8px 4px;
}
.showcase-art img {
  display: block;
  max-width: 78%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .5));
  transition: transform .35s cubic-bezier(.16, 1, .3, 1);
}
.showcase-art img.mc-pixel {
  image-rendering: pixelated;
  border-radius: 4px;
}
.showcase-art img.art-thumb {
  image-rendering: auto;
  border-radius: 8px;
}
.showcase-tile.featured .showcase-art img {
  max-width: 72%;
  max-height: 78%;
}
.showcase-tile.featured .showcase-art img.art-thumb {
  max-width: 88%;
  max-height: 92%;
}
.showcase-art--cases {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}
.showcase-art--cases .case-prop {
  position: absolute;
  max-width: none;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .55));
}
.showcase-art--cases .case-prop--c {
  width: 46%;
  z-index: 2;
}
.showcase-art--cases .case-prop--l {
  width: 34%;
  left: 8%;
  bottom: 18%;
  transform: rotate(-28deg);
  z-index: 1;
}
.showcase-art--cases .case-prop--r {
  width: 34%;
  right: 8%;
  bottom: 18%;
  transform: rotate(28deg) scaleX(-1);
  z-index: 1;
}
.showcase-tile:hover .showcase-art img {
  transform: translateY(-6px) scale(1.04);
}
.showcase-meta {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3px;
  width: 100%;
  padding-top: 4px;
}
.showcase-meta strong {
  font-size: clamp(12px, 1.5vw, 15px);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
}
.showcase-meta span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 59, 48, .85);
}

.section-row { display: flex; justify-content: space-between; align-items: center; margin: 8px 0 12px; }
.home-featured, .featured-games { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.game-card.featured { min-height: 260px; }
.game-card.featured .game-art { height: 188px; }
.games-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin: 14px 0 18px; flex-wrap: wrap; }
.game-filters { display: flex; gap: 6px; }

#games-view {
  position: relative;
  padding-bottom: 36px;
}
#games-view::before {
  content: "";
  position: absolute;
  inset: -12px -22px auto;
  height: 280px;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 100% at 50% 0%, rgba(225, 6, 0, .08), transparent 72%);
}
#games-view > * { position: relative; z-index: 1; }
.games-page-head {
  display: block;
  margin: 8px 0 16px;
}
.games-page-head .kicker { margin: 0 0 4px; }
.games-page-head h1 { margin: 0 0 8px; }
.games-page-head .lede {
  margin: 0;
  max-width: 48ch;
  line-height: 1.5;
}
.games-page-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}
.games-filter-btn {
  background: rgba(16, 16, 18, .92);
  border: 1px solid #3a1a1a;
  color: var(--muted);
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: border-color .2s, color .2s, background .2s, box-shadow .2s, transform .2s;
}
.games-filter-btn:hover,
.games-filter-btn.on {
  border-color: var(--red);
  color: #fff;
  background: #1c0a0a;
  box-shadow: 0 0 18px rgba(225, 6, 0, .14);
}
.games-filter-btn.on { transform: translateY(-1px); }
.games-catalog-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.games-empty {
  grid-column: 1 / -1;
  margin: 24px 0;
  text-align: center;
  font-size: 14px;
}
.games-page-card {
  --glow: 225, 6, 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 0;
  aspect-ratio: 1 / 1.06;
  padding: 12px 10px 14px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .04) 0%, transparent 38%),
    linear-gradient(180deg, transparent 55%, rgba(var(--glow), .12) 100%),
    #0e0e10;
  color: inherit;
  cursor: pointer;
  overflow: hidden;
  text-align: center;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), border-color .25s, box-shadow .3s;
  animation: card-in .5s cubic-bezier(.16, 1, .3, 1) backwards;
  animation-delay: calc(var(--i, 0) * 45ms);
}
.games-page-card.accent-gold { --glow: 240, 193, 75; }
.games-page-card.accent-green { --glow: 61, 214, 140; }
.games-page-card.accent-purple { --glow: 164, 92, 255; }
.games-page-card.accent-red { --glow: 225, 6, 0; }
.games-page-card::after {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: -8px;
  height: 48%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center bottom, rgba(var(--glow), .62), rgba(var(--glow), .18) 45%, transparent 72%);
  filter: blur(16px);
  pointer-events: none;
  z-index: 0;
}
.games-page-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--glow), .42);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .35), 0 0 24px rgba(var(--glow), .16);
}
.games-page-card.coming-soon {
  opacity: .68;
  cursor: not-allowed;
}
.games-page-card.coming-soon:hover {
  transform: none;
  border-color: rgba(255, 255, 255, .07);
  box-shadow: none;
}
.games-page-card.coming-soon .games-page-art img {
  filter: grayscale(.35) brightness(.82) drop-shadow(0 10px 16px rgba(0, 0, 0, .5));
}
.showcase-badge.soon {
  background: linear-gradient(135deg, #64748b, #475569);
  color: #fff;
  box-shadow: 0 2px 8px rgba(71, 85, 105, .35);
}
.games-page-art {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 0;
  padding: 8px 8px 4px;
}
.games-page-art img {
  display: block;
  max-width: 78%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .5));
  transition: transform .35s cubic-bezier(.16, 1, .3, 1);
}
.games-page-art img.mc-pixel { image-rendering: pixelated; border-radius: 4px; }
.games-page-art img.art-thumb { image-rendering: auto; border-radius: 8px; max-width: 88%; max-height: 92%; }
.games-page-card:hover .games-page-art img { transform: translateY(-4px) scale(1.05); }
.games-page-card.coming-soon:hover .games-page-art img { transform: none; }
.games-page-meta {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 0 4px;
}
.games-page-meta strong {
  display: block;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.2;
}
.games-page-meta span {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 59, 48, .85);
  line-height: 1.3;
}
.games-page-card.coming-soon .games-page-meta span { color: rgba(255, 255, 255, .45); }

@media (max-width: 1200px) {
  .games-catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .games-catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .games-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .games-page-card { aspect-ratio: 1; padding: 10px 8px 12px; }
  .games-page-meta strong { font-size: 12px; }
  .games-filter-btn { padding: 8px 14px; font-size: 11px; }
}

#games-view .ticker-wrap {
  margin-left: -22px;
  margin-right: -22px;
  width: calc(100% + 44px);
}
.ticker-wrap {
  overflow: hidden;
  white-space: nowrap;
  border: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(225,6,0,.12), rgba(0,0,0,.7) 18%, rgba(0,0,0,.7) 82%, rgba(225,6,0,.12));
  border-radius: 0;
  margin: 0 0 8px;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker-wrap.ticker-alt {
  background: linear-gradient(90deg, rgba(0,0,0,.7), rgba(225,6,0,.1), rgba(0,0,0,.7));
}
.ticker {
  display: flex;
  width: max-content;
  gap: 10px;
  padding: 10px 0;
  animation: marquee 28s linear infinite;
}
.ticker-b { animation-duration: 42s; animation-direction: reverse; }
.ticker-wrap:hover .ticker { animation-play-state: paused; }
.ticker button {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16,16,18,.9);
  border: 1px solid #3a1a1a;
  color: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 800;
  letter-spacing: .12em;
  font-size: 12px;
  text-transform: uppercase;
}
.ticker-b button { letter-spacing: .04em; font-size: 13px; }
.ticker button:hover, .ticker button.on { border-color: var(--red); color: #fff; background: #1c0a0a; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.section-title { margin: 8px 0 14px; }
.games-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.game-card {
  --glow: 225, 6, 0;
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  text-align: center;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  padding: 0;
  color: inherit;
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), transparent 28%),
    radial-gradient(120% 70% at 50% 118%, rgba(var(--glow), .42), transparent 58%),
    repeating-radial-gradient(circle at 12% 8%, rgba(255,255,255,.045) 0 1px, transparent 1px 18px),
    rgba(8, 8, 10, .38);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 -28px 48px rgba(var(--glow), .16);
  transition: transform .35s cubic-bezier(.16,1,.3,1), border-color .25s, box-shadow .35s;
}
.game-card.accent-gold { --glow: 240, 193, 75; }
.game-card.accent-green { --glow: 61, 214, 140; }
.game-card.accent-purple { --glow: 164, 92, 255; }
.game-card.accent-red { --glow: 225, 6, 0; }
.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--glow), .55);
  box-shadow: 0 18px 40px rgba(var(--glow), .18), inset 0 -40px 70px rgba(var(--glow), .28);
}
.game-art {
  position: relative;
  height: 124px;
  display: grid;
  place-items: center;
  background: transparent;
}
.game-haze {
  position: absolute; inset: auto 0 0; height: 70%;
  background: linear-gradient(180deg, transparent, rgba(var(--glow), .22) 70%, rgba(var(--glow), .4));
  pointer-events: none;
}
.game-floor {
  position: absolute; left: 50%; bottom: 18px; width: 72px; height: 10px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(var(--glow), .55), transparent 70%);
  filter: blur(4px);
  pointer-events: none;
}
.game-art img {
  position: relative; z-index: 1;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,.55)) drop-shadow(0 0 18px rgba(var(--glow), .35));
  transition: transform .4s cubic-bezier(.16,1,.3,1);
}
.game-card:hover .game-art img { transform: translateY(-8px) scale(1.08); }
.mc-item.hero { width: 92px; height: 92px; image-rendering: pixelated; }
.mc-item.art-thumb {
  image-rendering: auto;
  object-fit: cover;
  border-radius: 10px;
}
.mc-item.art-thumb.sm { width: 22px; height: 22px; border-radius: 4px; }
.mc-item.art-thumb.xl { width: 88px; height: 88px; }
.mc-item.art-thumb.hero { width: 120px; height: 120px; image-rendering: auto; }
.game-meta { position: relative; z-index: 1; padding: 0 12px 14px; }
.game-card h3 { margin: 0; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.game-card p {
  margin: 4px 0 0; color: rgba(255,255,255,.62); font-size: 10px;
  letter-spacing: .12em; text-transform: uppercase; padding: 0;
}
.game-card.featured h3 { font-size: 20px; }
.badge { position: absolute; z-index: 2; margin: 10px; background: var(--red); color: #fff; font-size: 10px; font-weight: 800; padding: 4px 8px; border-radius: 999px; }

.game-layout { display: grid; grid-template-columns: 280px 1fr; gap: 14px; }
.bet-panel, .board-panel, .panel {
  background: var(--panel); border: 1px solid #26262a; border-radius: 16px; padding: 16px;
}
.back-link { background: none; border: 0; color: var(--muted); margin-bottom: 10px; }
.chip-row, .quick-bets, .admin-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.chip, .quick-bets button {
  background: #1b1b1e; border: 1px solid #2a2a2e; border-radius: 999px; padding: 7px 10px; color: var(--text);
}
.chip.active { background: var(--red); border-color: var(--red); }
.amount-row { display: flex; align-items: center; gap: 8px; background: #101012; border: 1px solid #2a2a2e; border-radius: 10px; padding: 8px; }
.amount-row input { border: 0; background: transparent; }

#game-view.mines-fit { min-height: 0; max-height: calc(100vh - 108px); overflow: hidden; }
#game-view.mines-fit .game-layout {
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 10px;
  height: calc(100vh - 92px);
  min-height: 0;
  align-items: stretch;
}
#game-view.mines-fit .bet-panel { padding: 12px; overflow: auto; }
#game-view.mines-fit .board-panel {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
#game-view.mines-fit .mines-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
#game-view.mines-fit .mines-head h2 { margin: 0; font-size: 22px; }

/* Stake-style game layout (Towers, Mines, Plinko, Dice, Limbo, Keno)
   Fit the real stage height — do NOT use mismatched 100vh calcs
   (layout was taller than #game-view max-height → overflow:hidden ate the bucket tray). */
.stage:has(#game-view.stake-fit:not(.hidden)) {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
#game-view.stake-fit {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  height: auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
#game-view.stake-fit > .back-link { flex: 0 0 auto; margin-bottom: 8px; }
#game-view.stake-fit .game-layout {
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  max-height: 100%;
  align-items: stretch;
}
#game-view.stake-fit .bet-panel { padding: 12px; overflow: auto; min-height: 0; }
#game-view.stake-fit .board-panel {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.stake-panel { display: flex; flex-direction: column; gap: 10px; }
.stake-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.stake-amount {
  display: flex; align-items: center; gap: 8px;
  background: #101012; border: 1px solid #2a2a2e; border-radius: 10px; padding: 10px 12px;
}
.stake-amount span { color: #6b7280; font-weight: 700; }
.stake-amount input { border: 0; background: transparent; width: 100%; font-size: 15px; font-weight: 700; color: #fff; }
.stake-quicks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.stake-quicks button {
  border: 1px solid #2a2a2e; background: #161618; color: #d1d5db;
  border-radius: 8px; padding: 8px 4px; font-size: 12px; font-weight: 700; cursor: pointer;
}
.stake-quicks button:hover { background: #1f1f23; }
.stake-seg { display: flex; gap: 6px; flex-wrap: wrap; }
.stake-chip {
  flex: 1; min-width: 0; border: 1px solid #2a2a2e; background: #161618; color: #d1d5db;
  border-radius: 8px; padding: 10px 8px; font-size: 12px; font-weight: 800; cursor: pointer; text-transform: uppercase;
}
.stake-chip.on { background: #2d2d33; border-color: #6b7280; color: #fff; }
.stake-chip.full-width { width: 100%; flex: none; }
.btn.stake-go {
  background: linear-gradient(180deg, #ff2d24, #b10500); border-color: #ff4d45; color: #fff;
}
.btn.stake-go:hover { filter: brightness(1.08); }
.stake-board { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.stake-mult-head { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 12px; }
.stake-mult-head.center { text-align: center; }
.stake-mult-head strong { font-size: 28px; line-height: 1; }
.stake-mult-head .muted { font-size: 11px; font-weight: 700; letter-spacing: .08em; }

.tower-stake { display: flex; flex-direction: column-reverse; gap: 6px; max-width: 420px; margin: 0 auto; width: 100%; }
.tower-stake-row {
  display: grid; grid-template-columns: 56px 1fr; gap: 8px; align-items: center;
  padding: 4px; border-radius: 10px; transition: background .2s;
}
.tower-stake-row.active { background: rgba(225, 6, 0, .12); outline: 1px solid rgba(225, 6, 0, .35); }
.tower-stake-row.cleared { opacity: .55; }
.tower-mult-label { font-size: 11px; font-weight: 800; color: var(--muted); text-align: right; }
.tower-stake-row.active .tower-mult-label { color: var(--green); }
.tower-cell.pickable { cursor: pointer; box-shadow: inset 0 0 0 2px rgba(225, 6, 0, .5); }
.tower-cell:disabled:not(.safe):not(.boom) { opacity: .35; cursor: default; }

.dice-board {
  flex: 1; display: flex; flex-direction: column; min-height: 0;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(225, 6, 0, .06), transparent 55%),
    #0a0a0b;
}
.dice-stage {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 28px; padding: 28px 20px 12px; min-height: 260px;
}
.dice-display {
  font-size: clamp(40px, 8vw, 56px); font-weight: 900; line-height: 1;
  color: #fff; letter-spacing: -.02em; min-height: 1.1em;
  transition: color .2s;
}
.dice-display.win { color: #00e701; }
.dice-display.lose { color: #ed4163; }
.dice-slider-wrap { width: min(100%, 720px); padding: 8px 8px 0; }
.dice-track {
  --dice-pct: 50%;
  position: relative; height: 28px; display: flex; align-items: center;
  border-radius: 999px; padding: 0 2px;
}
.dice-track::before {
  content: ""; position: absolute; left: 0; right: 0; height: 8px; border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--dice-lose, #ed4163) 0%,
    var(--dice-lose, #ed4163) var(--dice-pct),
    var(--dice-win, #00e701) var(--dice-pct),
    var(--dice-win, #00e701) 100%
  );
}
.dice-track.over {
  --dice-lose: #ed4163;
  --dice-win: #00e701;
}
.dice-track.under {
  --dice-lose: #00e701;
  --dice-win: #ed4163;
}
.dice-range {
  position: relative; z-index: 2; width: 100%; margin: 0;
  appearance: none; background: transparent; height: 28px; cursor: pointer;
}
.dice-range:focus { outline: none; }
.dice-range::-webkit-slider-runnable-track { height: 8px; background: transparent; border: 0; }
.dice-range::-moz-range-track { height: 8px; background: transparent; border: 0; }
.dice-range::-webkit-slider-thumb {
  appearance: none; width: 26px; height: 26px; margin-top: -9px;
  border-radius: 50%; background: var(--red); border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.35); cursor: grab;
}
.dice-range::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--red); border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.35); cursor: grab;
}
.dice-marks {
  display: flex; justify-content: space-between;
  margin-top: 10px; padding: 0 2px;
  font-size: 12px; font-weight: 700; color: var(--muted);
}
.dice-foot {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin: 0 16px 16px; padding: 14px; border-radius: 12px;
  background: rgba(10, 10, 12, .72); border: 1px solid #2a2a2e;
}
.dice-target-box { position: relative; }
.dice-swap {
  background: #1b1b1e; color: #fff; border-radius: 6px;
  width: 32px; height: 28px; flex: 0 0 auto; font-size: 14px; font-weight: 800; cursor: pointer;
  border: 1px solid #2a2a2e;
}
.dice-swap:hover { filter: brightness(1.12); }

/* Limbo / Dice / Keno — layout chrome (site black glass) */
#game-view.stake-fit.limbo-fit .game-layout { grid-template-columns: 280px minmax(0, 1fr); }
#game-view.stake-fit.limbo-fit .bet-panel {
  background: var(--panel);
  border: 1px solid #26262a;
  border-radius: 16px;
}
#game-view.stake-fit.limbo-fit .board-panel {
  background: var(--panel);
  border: 1px solid #26262a;
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
}
.limbo-panel { gap: 12px; }
.limbo-panel .stake-label {
  text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--muted); font-size: 13px;
}
.limbo-mode {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  background: #0a0a0b; border-radius: 10px; padding: 4px; border: 1px solid #2a2a2e;
}
.limbo-mode-btn {
  border: 0; background: transparent; color: var(--muted);
  border-radius: 8px; padding: 10px 8px; font-size: 13px; font-weight: 700; cursor: pointer;
}
.limbo-mode-btn.on { background: #1b1b1e; color: #fff; }
.limbo-mode-btn:disabled { opacity: .45; cursor: not-allowed; }
.limbo-amount-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: stretch; }
.limbo-amount { margin: 0; }
.limbo-amount input { text-align: left; }
.limbo-half-double { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.limbo-half-double button {
  border: 1px solid #2a2a2e; background: #161618; color: #fff; border-radius: 8px;
  min-width: 44px; padding: 0 12px; font-size: 13px; font-weight: 800; cursor: pointer;
}
.limbo-half-double button:hover { filter: brightness(1.1); }
.btn.limbo-play {
  background: linear-gradient(180deg, #ff2d24, #b10500); border-color: #ff4d45; color: #fff;
  font-size: 15px; font-weight: 800; padding: 14px 12px; border-radius: 10px;
}
.btn.limbo-play:hover { filter: brightness(1.08); }
.limbo-readonly { opacity: .95; pointer-events: none; }
.limbo-board {
  flex: 1; display: flex; flex-direction: column; min-height: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(225, 6, 0, .07), transparent 55%),
    #0a0a0b;
}
.limbo-stage {
  flex: 1; display: grid; place-items: center; min-height: 280px; padding: 24px;
}
.limbo-result {
  font-size: clamp(64px, 12vw, 96px); font-weight: 900; line-height: 1;
  color: #fff; letter-spacing: -.02em; transition: color .2s;
}
.limbo-result.win { color: #00e701; }
.limbo-result.lose { color: #ed4163; }
.limbo-result.pop { animation: limbo-pop .35s cubic-bezier(.16,1,.3,1); }
@keyframes limbo-pop {
  0% { transform: scale(.92); opacity: .7; }
  100% { transform: scale(1); opacity: 1; }
}
.limbo-foot {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin: 0 16px 16px; padding: 14px; border-radius: 12px;
  background: rgba(10, 10, 12, .72); border: 1px solid #2a2a2e;
}
.limbo-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.limbo-field > span {
  font-size: 12px; font-weight: 700; color: var(--muted);
}
.limbo-field-box {
  display: flex; align-items: center; gap: 8px;
  background: #101012; border: 1px solid #2a2a2e; border-radius: 8px; padding: 10px 12px;
}
.limbo-field-box input {
  border: 0; background: transparent; width: 100%; min-width: 0;
  color: #fff; font-size: 14px; font-weight: 700;
}
.limbo-field-box em { color: var(--muted); font-style: normal; font-weight: 700; font-size: 13px; }
.limbo-msg {
  text-align: center; font-size: 13px; font-weight: 700; min-height: 1.2em;
  margin: 0 16px 14px; color: var(--muted);
}
.limbo-msg.pos { color: #00e701; }
.limbo-msg.neg { color: #ed4163; }

.keno-board {
  flex: 1; display: flex; flex-direction: column; min-height: 0; gap: 14px;
  padding: 16px; background: #0a0a0b;
}
.keno-status {
  text-align: center; font-size: 14px; font-weight: 700; color: var(--muted);
  padding: 10px 12px; border-radius: 10px; background: rgba(10, 10, 12, .55);
  border: 1px solid #2a2a2e;
}
.keno-grid {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px;
  max-width: 640px; margin: 0 auto; width: 100%; flex: 1; align-content: center;
}
.keno-cell {
  aspect-ratio: 1; border: 1px solid #2a2a2e; border-radius: 8px; background: #161618;
  color: #d1d5db; font-size: 13px; font-weight: 800; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .12s;
}
.keno-cell:hover { filter: brightness(1.08); }
.keno-cell.picked {
  background: var(--red); border-color: #ff4d45; color: #fff;
}
.keno-cell.drawn:not(.picked) {
  background: #1b1b1e; border-color: #3a3a40; color: var(--muted);
}
.keno-cell.hit,
.keno-cell.picked.drawn {
  background: #00e701; border-color: #00e701; color: #04140a;
}
.keno-select-wrap {
  display: block; background: #101012; border: 1px solid #2a2a2e; border-radius: 8px;
  padding: 2px 8px;
}
.keno-select {
  width: 100%; border: 0; background: transparent; color: #fff;
  font-size: 14px; font-weight: 700; padding: 10px 4px; cursor: pointer;
}
.keno-select option { background: #101012; color: #fff; }
.keno-side-btn {
  width: 100%; border: 1px solid #2a2a2e; border-radius: 8px; padding: 12px 10px;
  background: #161618; color: #fff; font-size: 13px; font-weight: 800; cursor: pointer;
}
.keno-side-btn:hover { filter: brightness(1.1); }
.keno-side-btn.ghost { background: #101012; color: var(--muted); }

#game-view.stake-fit .mines-grid {
  width: min(100%, calc(100vh - 200px), 440px);
  margin: 0 auto;
  gap: 5px;
  flex: 0 0 auto;
}
.mines-board {
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}
.mines-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  width: min(100%, 440px);
  margin: 0 auto;
}
.mine-tile {
  aspect-ratio: 1;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  background-color: #2a2a2e;
  background-image: url("https://cdn.jsdelivr.net/gh/InventivetalentDev/minecraft-assets@1.21.4/assets/minecraft/textures/block/stone.png");
  background-size: cover;
  background-position: center;
  image-rendering: pixelated;
  transition: transform .2s, filter .2s, box-shadow .2s;
}
.mine-tile:hover { transform: scale(1.06); filter: brightness(1.15); }
.mine-tile:disabled { cursor: default; }
.mine-tile.gem {
  background-image: url("https://cdn.jsdelivr.net/gh/InventivetalentDev/minecraft-assets@1.21.4/assets/minecraft/textures/block/emerald_block.png");
}
.mine-tile.tnt {
  background-image: url("https://cdn.jsdelivr.net/gh/InventivetalentDev/minecraft-assets@1.21.4/assets/minecraft/textures/block/tnt_side.png");
}

/* Plinko: board is a flex column. Pegs shrink; bucket tray never leaves the frame. */
.plinko-wrap {
  width: 100%;
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.plinko-board {
  /* rows R → R+1 buckets; bottom peg row has R+2 pegs on bucket boundaries */
  --slots: 13;
  --peg-size: 7px;
  --bucket-h: 44px;
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: min(100%, 620px);
  margin: 0 auto;
  /* Frame clips balls; buckets live INSIDE this box (reserved via flex), not below it */
  overflow: hidden;
  border-radius: 14px;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(61, 214, 140, 0.07), transparent 55%),
    linear-gradient(180deg, #12141a 0%, #0c0e12 100%);
  border: 1px solid #23262e;
  padding: 10px 12px 20px;
  box-sizing: border-box;
}
/* Stake viewport: keep entire board (pegs + tray) inside the panel — no bottom clip */
#game-view.stake-fit .board-panel:has(.plinko-wrap) {
  overflow: hidden;
  padding: 10px 14px 12px;
}
#game-view.stake-fit .plinko-wrap,
#game-view.stake-fit .plinko-board {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}
.plinko-board[data-rows="8"] { --slots: 9; --peg-size: 7px; --bucket-h: 46px; }
.plinko-board[data-rows="12"] { --slots: 13; --peg-size: 6px; --bucket-h: 44px; }
.plinko-board[data-rows="16"] { --slots: 17; --peg-size: 5px; --bucket-h: 42px; }
.plinko-board .pegs {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: stretch;
  min-height: 0;
  gap: 0;
  width: 100%;
  padding: 4px 0 8px;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
/* Peg centers span the same track as bucket edges: outer centers at 0% / 100%. */
.plinko-board .peg-row {
  --n: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: content-box;
  /* +peg-size so outer peg *centers* sit on the 0% / 100% bucket edges */
  width: calc((var(--n) - 1) / var(--slots) * 100% + var(--peg-size));
  margin-inline: auto;
  gap: 0;
  flex: 0 0 auto;
}
.plinko-board .peg {
  flex: 0 0 auto;
  width: var(--peg-size);
  height: var(--peg-size);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff8a84, #e10600 55%, #8a0500);
  box-shadow: 0 0 6px rgba(225, 6, 0, 0.55);
}
.plinko-board[data-rows="16"] .peg { box-shadow: 0 0 4px rgba(225, 6, 0, 0.45); }
.plinko-board .buckets {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--slots), minmax(0, 1fr));
  gap: 3px;
  margin: 0;
  width: 100%;
  /* Always reserve tray height at bottom of the board frame — never overlap/under pegs */
  flex: 0 0 var(--bucket-h);
  height: var(--bucket-h);
  min-height: var(--bucket-h);
  max-height: var(--bucket-h);
  box-sizing: border-box;
  z-index: 5;
  overflow: visible;
  align-self: stretch;
}
.plinko-board .bucket {
  position: relative;
  z-index: 5;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
  padding: 4px 1px;
  border-radius: 5px;
  background: #1b1b1e;
  color: #fff !important;
  line-height: 1;
  letter-spacing: -0.02em;
  overflow: hidden;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.35);
}
.plinko-board[data-rows="8"] .bucket { font-size: 15px; }
.plinko-board[data-rows="12"] .bucket { font-size: 13px; }
.plinko-board[data-rows="16"] .bucket { font-size: 11px; padding: 2px 0; }
.plinko-board .bucket-label {
  display: block;
  position: relative;
  z-index: 6;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  color: #ffffff !important;
  font-size: inherit;
  font-weight: 900;
  line-height: 1;
  letter-spacing: inherit;
  /* dark outline + shadow so labels pop on every bucket tone */
  -webkit-text-stroke: 1px #0a0a0c;
  paint-order: stroke fill;
  text-shadow:
    0 0 2px #000,
    0 1px 0 #000,
    0 -1px 0 #000,
    1px 0 0 #000,
    -1px 0 0 #000,
    0 2px 4px rgba(0, 0, 0, 0.85);
  pointer-events: none;
  user-select: none;
}
.plinko-board .bucket.hot {
  background: linear-gradient(180deg, #d41c14, #8a0c08);
  color: #fff !important;
}
.plinko-board .bucket.warm {
  background: linear-gradient(180deg, #d49a18, #8a5a0a);
  color: #fff !important;
}
.plinko-board .bucket.cold {
  background: linear-gradient(180deg, #4a5160, #2a2e38);
  color: #fff !important;
}
.plinko-land-tip {
  position: absolute;
  z-index: 20;
  pointer-events: none;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  background: rgba(10, 10, 14, 0.92);
  border: 1px solid rgba(255, 220, 80, 0.85);
  border-radius: 8px;
  padding: 6px 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), 0 0 16px rgba(255, 200, 40, 0.35);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
  white-space: nowrap;
}
.plinko-land-tip.show {
  opacity: 1;
  transform: translateY(0);
}

.cashout-line { text-align: center; font-weight: 800; font-size: 16px; min-height: 1.2em; margin: 8px 0 0; }
.cashout-line.pos { color: var(--green); }
.cashout-line.neg { color: var(--red-2); }

.board-panel.crash-board {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0 !important;
  overflow: hidden;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
#game-view.crash-fit .bet-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}
.crash-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
  gap: 12px;
}
.crash-history {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 12px;
  min-height: 48px;
  align-items: center;
  background: #1a0c0e;
  border: 1px solid #3a1518;
  border-radius: 12px;
  scrollbar-width: none;
}
.crash-history-empty {
  color: #8a5a5e;
  font-size: 12px;
  font-family: ui-monospace, monospace;
  font-weight: 600;
}
.crash-pill {
  flex: 0 0 auto;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  font-family: ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  border: 1px solid transparent;
}
.crash-pill.cold {
  color: #d5dceb;
  background: #2a1214;
  border-color: rgba(255, 59, 48, .2);
}
.crash-pill.hot {
  color: #ff3b30;
  background: rgba(225, 6, 0, .16);
  border-color: rgba(255, 59, 48, .35);
}
.crash-pill.epic {
  color: #ffb4ae;
  background: rgba(225, 6, 0, .28);
  border-color: rgba(255, 59, 48, .5);
}
.crash-stage {
  position: relative;
  flex: 1;
  min-height: 420px;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(225, 6, 0, .18), transparent 55%),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(255,255,255,.03) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(255,255,255,.03) 39px 40px),
    #14080a;
  border: 1px solid #3a1518;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.crash-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.crash-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #1a0c0e;
  border: 1px solid #3a1518;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.crash-field-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #c9a0a3;
  margin-bottom: 2px;
}
.crash-bet-row {
  display: flex;
  align-items: stretch;
  background: #241012;
  border: 1px solid #3a1518;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .15s ease;
}
.crash-bet-row:focus-within { border-color: #e10600; }
.crash-affix {
  display: grid;
  place-items: center;
  padding: 0 12px;
  color: #8a5a5e;
  font-weight: 800;
}
.crash-field {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  padding: 12px 8px;
}
.crash-bet-steps {
  display: flex;
  align-items: stretch;
}
.crash-bet-steps button {
  border: 0;
  border-left: 1px solid #3a1518;
  background: transparent;
  color: #c9a0a3;
  font-weight: 800;
  font-size: 12px;
  padding: 0 10px;
  cursor: pointer;
}
.crash-bet-steps button:hover { color: #fff; background: #3a1518; }
.crash-cta {
  background: linear-gradient(180deg, #ff2a22, #e10600) !important;
  border-color: #ff4d45 !important;
  color: #fff !important;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  min-height: 52px;
  border-radius: 12px !important;
}
.crash-cta:hover:not(:disabled) {
  background: linear-gradient(180deg, #ff4d45, #e10600) !important;
}
.crash-cta.cashout {
  background: linear-gradient(180deg, #3dd68c, #2bb873) !important;
  border-color: #5ee6a8 !important;
  color: #042016 !important;
}
.crash-cta.wait,
.crash-cta:disabled {
  background: #2a1214 !important;
  border-color: #3a1518 !important;
  color: #8a5a5e !important;
  filter: none;
  opacity: 1;
}
.crash-players-card {
  flex: 1;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  background: #1a0c0e;
  border: 1px solid #3a1518;
  border-radius: 16px;
  overflow: hidden;
}
.crash-players-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #3a1518;
  color: #c9a0a3;
  font-size: 12px;
  font-weight: 800;
  font-family: ui-monospace, monospace;
}
.crash-players-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}
.crash-players-empty {
  height: 100%;
  min-height: 120px;
  display: grid;
  place-items: center;
  color: #8a5a5e;
  font-size: 14px;
}
.crash-player-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
}
.crash-player-row.mine {
  background: rgba(225, 6, 0, .12);
  border: 1px solid rgba(255, 59, 48, .28);
}
.crash-player-row.dead .crash-player-name { color: #8a5a5e; }
.crash-player-name {
  font-weight: 700;
  color: #f0d5d7;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 120px;
}
.crash-player-row.mine .crash-player-name { color: #ff8a82; }
.crash-player-amt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c9a0a3;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.crash-player-cash {
  background: rgba(61, 214, 140, .12);
  border: 1px solid rgba(61, 214, 140, .28);
  color: #3dd68c;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.crash-hud {
  position: relative;
  z-index: 2;
  text-align: center;
  pointer-events: none;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.crash-wait-block,
.crash-fly-block,
.crash-boom-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.crash-wait-block.hidden,
.crash-fly-block.hidden,
.crash-boom-block.hidden { display: none; }
.crash-wait-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #c9a0a3;
}
.crash-wait-clock {
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 900;
  font-family: ui-monospace, monospace;
  color: #fff;
}
.crash-wait-bar {
  width: 192px;
  height: 6px;
  margin-top: 8px;
  border-radius: 999px;
  background: #2a1214;
  overflow: hidden;
}
.crash-wait-bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #e10600, #ff3b30);
  border-radius: inherit;
  transition: width .05s linear;
}
.crash-mult {
  margin: 0;
  text-align: center;
  font-size: clamp(64px, 11vw, 120px);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  color: #fff;
  text-shadow: 0 0 28px rgba(255, 59, 48, .4);
}
.crash-mult span {
  font-size: .55em;
  color: #c9a0a3;
  margin-left: .15em;
  font-weight: 800;
}
.crash-mult.cold { color: #fff; }
.crash-mult.hot { color: #ff3b30; }
.crash-mult.epic { color: #ffb4ae; }
.crash-mult.dead,
.crash-boom-text {
  color: #e10600;
  text-shadow: 0 0 30px rgba(225, 6, 0, .55);
}
.crash-boom-text {
  font-size: clamp(36px, 7vw, 72px);
  font-weight: 900;
  animation: crash-blow .35s ease;
}
@keyframes crash-blow {
  0% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.crash-fair {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8a5a5e;
  font-size: 12px;
  font-family: ui-monospace, monospace;
  pointer-events: none;
}
.crash-fair-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ff3b30;
  font-weight: 700;
}
.crash-fair-badge::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e10600;
  box-shadow: 0 0 8px rgba(225, 6, 0, .65);
}
.crash-fair-hash {
  opacity: .7;
  border-left: 1px solid #3a1518;
  padding-left: 10px;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.crash-stage.live { animation: crash-live 2.4s ease-in-out infinite; }
@keyframes crash-live {
  50% { box-shadow: inset 0 -30px 50px rgba(225, 6, 0, .12); }
}

#game-view.crash-fit { min-height: 0; }
#game-view.stake-fit.crash-fit .game-layout {
  grid-template-columns: 280px minmax(0, 1fr);
}
#game-view.crash-fit .board-panel.crash-board { min-height: calc(100vh - 140px); }

.coin { width: 140px; height: 140px; margin: 30px auto; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #7cffb2, #117a3a 60%, #063);
  display: grid; place-items: center; font-size: 42px; box-shadow: 0 10px 40px rgba(0,0,0,.45);
  image-rendering: pixelated;
}
.coin.flip { animation: flip 0.8s ease; }
@keyframes flip { 50% { transform: rotateY(180deg) scale(1.1); } }

.cards { display: flex; gap: 8px; justify-content: center; min-height: 88px; margin: 10px 0 18px; }
.card {
  width: 58px; height: 82px; border-radius: 8px; background: #f4efe6; color: #111; display: grid; place-items: center;
  font-weight: 800; box-shadow: 0 8px 16px rgba(0,0,0,.35);
}
.card.red { color: #c00; }
.card.back {
  background:
    url("https://cdn.jsdelivr.net/gh/InventivetalentDev/minecraft-assets@1.21.4/assets/minecraft/textures/item/music_disc_11.png") center / 32px no-repeat #111;
  color: transparent;
}

.tower { display: grid; gap: 6px; }
.tower-row { display: flex; gap: 6px; }
.tower-cell {
  flex: 1; height: 38px; border: 0; border-radius: 8px; color: #fff; font-weight: 700;
  background-image: url("https://cdn.jsdelivr.net/gh/InventivetalentDev/minecraft-assets@1.21.4/assets/minecraft/textures/block/stone_bricks.png");
  background-size: 16px; image-rendering: pixelated;
}
.tower-cell.safe { outline: 2px solid var(--green); }
.tower-cell.boom {
  background-image: url("https://cdn.jsdelivr.net/gh/InventivetalentDev/minecraft-assets@1.21.4/assets/minecraft/textures/block/tnt_side.png");
}

.case-duel { display: flex; justify-content: space-around; align-items: center; padding: 20px 0; }
.case-box { text-align: center; }
.fair { margin-top: 12px; color: var(--muted); font-size: 12px; }
.board-head { display: flex; align-items: center; justify-content: center; gap: 10px; }
.board-head h2 { margin: 0; }

.slot-machine {
  display: flex; justify-content: center; gap: 12px; margin: 28px auto 10px;
  padding: 22px 18px 18px;
  width: min(520px, 100%);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(240,193,75,.18), transparent 40%),
    repeating-linear-gradient(90deg, #1a1208 0 12px, #120c06 12px 24px);
  border: 2px solid #f0c14b;
  box-shadow: inset 0 0 40px rgba(0,0,0,.55);
}
.slot-reel {
  flex: 1; min-height: 140px; display: grid; place-items: center; gap: 6px;
  background: #070708; border: 1px solid #3a2a10; border-radius: 12px; padding: 12px 8px;
}
.slot-reel span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.slot-reel.spinning img { animation: reel-spin .12s linear infinite; }
.slot-reel.landed { animation: reel-stop .35s ease; }
@keyframes reel-spin { to { transform: translateY(8px) rotate(8deg); } }
@keyframes reel-stop { from { transform: scale(.86); opacity: .4; } to { transform: none; opacity: 1; } }

.fish-lake {
  min-height: 260px; display: grid; place-items: center; gap: 10px; border-radius: 16px; margin-top: 12px;
  background:
    radial-gradient(circle at 50% 120%, rgba(61,214,140,.2), transparent 50%),
    repeating-linear-gradient(180deg, rgba(40,90,160,.35) 0 8px, rgba(18,42,80,.5) 8px 16px);
}
.fish-lake.casting img { animation: cast .6s ease; }
@keyframes cast { 50% { transform: rotate(-28deg) translateY(-10px); } }

.enchant-table {
  min-height: 240px; display: grid; place-items: center; gap: 16px; border-radius: 16px; margin-top: 12px;
  background:
    radial-gradient(circle at 50% 40%, rgba(90,40,220,.35), transparent 55%),
    #0b0714;
  border: 1px solid #4b2aa8;
}
.lapis-row { display: flex; gap: 12px; }
.lapis-row .dim { opacity: .25; }

.vault-door {
  min-height: 240px; display: grid; place-items: center; gap: 12px; border-radius: 16px; margin-top: 12px;
  background: radial-gradient(circle at 50% 40%, rgba(240,193,75,.18), #120e08 60%);
  border: 1px solid #5a4718;
}
.vault-door.ominous { background: radial-gradient(circle at 50% 40%, rgba(180,40,40,.28), #100808 60%); border-color: #7a1a1a; }

.pearl-void {
  min-height: 240px; display: grid; place-items: center; border-radius: 16px; margin-top: 12px;
  background:
    radial-gradient(circle at 50% 50%, rgba(90,20,140,.45), transparent 55%),
    repeating-linear-gradient(45deg, #0b0612 0 10px, #140a1c 10px 20px);
}

.brew-stand { text-align: center; margin-top: 18px; }
.brew-bottles { display: flex; justify-content: center; gap: 22px; margin-bottom: 12px; }

/* Stake Originals roulette — left rail + European wheel/table (site charcoal chrome) */
#game-view.stake-fit.roulette-fit .game-layout {
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 12px;
}
#game-view.stake-fit.roulette-fit .bet-panel {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid #26262a;
  border-radius: 16px;
  padding: 12px;
  min-height: 0;
}
#game-view.stake-fit.roulette-fit .stake-panel.limbo-panel {
  flex: 1 1 auto;
  gap: 12px;
  min-height: 0;
}
#game-view.stake-fit.roulette-fit .board-panel.roulette-board {
  min-height: 0;
  padding: 0;
  overflow: auto;
  background: var(--panel);
  border: 1px solid #26262a;
  border-radius: 16px;
}
#game-view.roulette-fit .limbo-mode {
  background: #0a0a0b;
  border: 1px solid #2a2a2e;
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
}
#game-view.roulette-fit .limbo-mode-btn {
  border-radius: 8px;
  color: var(--muted);
  padding: 10px 8px;
  font-size: 14px;
  font-weight: 600;
}
#game-view.roulette-fit .limbo-mode-btn.on {
  background: #1b1b1e;
  color: #fff;
}
#game-view.roulette-fit .stake-label {
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  font-size: 14px;
}
#game-view.roulette-fit .limbo-amount-row {
  grid-template-columns: 1fr auto;
  gap: 8px;
}
#game-view.roulette-fit .stake-amount {
  background: #101012;
  border: 1px solid #2a2a2e;
  border-radius: 10px;
  padding: 10px 12px;
}
#game-view.roulette-fit .limbo-half-double {
  gap: 6px;
}
#game-view.roulette-fit .limbo-half-double button {
  background: #161618;
  border: 1px solid #2a2a2e;
  border-radius: 8px;
  color: #fff;
  min-width: 48px;
  font-size: 13px;
  font-weight: 700;
}
#game-view.roulette-fit .limbo-half-double button:hover {
  background: #1f1f23;
  border-color: #2a2a2e;
  filter: brightness(1.1);
}
#game-view.roulette-fit .btn.limbo-play {
  background: linear-gradient(180deg, #ff2d24, #b10500);
  border: 1px solid #ff4d45;
  border-radius: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  padding: 14px 12px;
  margin-top: 4px;
}
#game-view.roulette-fit .btn.limbo-play:hover {
  filter: brightness(1.08);
}
#game-view.roulette-fit .fair-box {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #2a2a2e;
  gap: 8px;
}
#game-view.roulette-fit .fair-box > .tiny {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  margin: 0 0 2px;
}
#game-view.roulette-fit .fair-row {
  grid-template-columns: 52px 1fr;
  color: var(--muted);
  font-size: 12px;
}
#game-view.roulette-fit .fair-row code {
  color: #fff;
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  word-break: break-all;
}
#game-view.roulette-fit .fair-box .btn.sm {
  margin-top: 6px;
  background: #161618;
  border: 1px solid #2a2a2e;
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  padding: 10px 12px;
}
#game-view.roulette-fit .fair-box .btn.sm:hover {
  background: #1f1f23;
  border-color: #2a2a2e;
}

.rl-stake {
  /* Gameplay pocket/table colors (unchanged) */
  --rl-red: #e9113c;
  --rl-black: #1a1a1a;
  --rl-green: #1b7a2e;
  /* Chrome */
  --rl-line: #2a2a2e;
  --rl-cell: #161618;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  padding: 16px 18px 12px;
  background: transparent;
  color: #fff;
}

.rl-gold-coin {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe08a, #d4a017 55%, #8a6a12);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
  flex: 0 0 auto;
}

.rl-chip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.rl-chip-head .stake-label { margin: 0; }

.rl-chip-carousel {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 4px;
  background: #101012;
  border: 1px solid var(--rl-line);
  border-radius: 10px;
  padding: 8px 4px;
}
.rl-chip-nav {
  width: 28px;
  flex-shrink: 0;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 0;
  line-height: 1;
}
.rl-chip-nav:hover { color: var(--muted); }
.rl-chip-track {
  display: flex;
  align-items: center;
  justify-content: safe center;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 4px;
  scrollbar-width: thin;
}
.rl-chip {
  box-sizing: border-box;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  aspect-ratio: 1;
  flex-shrink: 0;
  padding: 0;
  border-radius: 50%;
  border: 3px dashed rgba(255,255,255,.55);
  background: radial-gradient(circle at 40% 35%, #c45c4a, #8b2e22 70%);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 0 0 2px #5c1a12, 0 2px 4px rgba(0,0,0,.35);
  transition: transform .12s ease, box-shadow .12s ease;
}
.rl-chip:hover { transform: translateY(-1px); }
.rl-chip.on {
  box-shadow: inset 0 0 0 2px #5c1a12, 0 0 0 2px #fff, 0 2px 6px rgba(0,0,0,.4);
  transform: scale(1.06);
}

.rl-total-row .stake-amount {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rl-total-row .stake-amount input { flex: 1; min-width: 0; }

.rl-wheel-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px 0 4px;
  position: relative;
}
.rl-last {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
  background: #161618;
  border: 1px solid var(--rl-line);
  color: #fff;
  flex: 0 0 auto;
  align-self: flex-start;
  margin-top: 12px;
}
.rl-last.empty { background: #161618; }
.rl-last.red { background: var(--rl-red); border-color: var(--rl-red); }
.rl-last.black { background: var(--rl-black); border-color: #2a2a2e; }
.rl-last.green { background: var(--rl-green); }

.rl-wheel-frame {
  position: relative;
  width: min(280px, 58vw);
  aspect-ratio: 1;
}
.rl-wheel-pointer {
  position: absolute;
  left: 50%;
  top: -2px;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 14px solid #c9a227;
  z-index: 3;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.5));
}
.rl-wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  will-change: transform;
}
.rl-wheel-svg { width: 100%; height: 100%; display: block; }
.rl-stake.spinning .rl-wheel-pointer { border-top-color: var(--red); }

.rl-table {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 52px;
  grid-template-rows: auto auto auto;
  gap: 3px;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}
.rl-zero {
  grid-row: 1 / 2;
  grid-column: 1;
  background: var(--rl-green);
  color: #fff;
  border: 1px solid #2a6b35;
  border-radius: 4px;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  position: relative;
  min-height: 100%;
  writing-mode: horizontal-tb;
}
.rl-nums {
  grid-row: 1;
  grid-column: 2;
  display: grid;
  gap: 3px;
}
.rl-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 3px;
}
.rl-num {
  aspect-ratio: 1.15 / 1;
  min-height: 36px;
  border: 0;
  border-radius: 3px;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  position: relative;
}
.rl-num.red { background: var(--rl-red); }
.rl-num.black { background: var(--rl-black); }
.rl-num:hover, .rl-zero:hover, .rl-out:hover { filter: brightness(1.08); }

.rl-cols {
  grid-row: 1;
  grid-column: 3;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
}
.rl-dozens {
  grid-row: 2;
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.rl-outside {
  grid-row: 3;
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
}
.rl-out {
  background: var(--rl-cell);
  border: 1px solid var(--rl-line);
  border-radius: 3px;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 12px 6px;
  cursor: pointer;
  position: relative;
  min-height: 42px;
}
.rl-diamond.red {
  background: var(--rl-red);
  border-color: var(--rl-red);
}
.rl-diamond.black {
  background: var(--rl-black);
}
.rl-diamond.red::after,
.rl-diamond.black::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: currentColor;
  opacity: .95;
  border-radius: 2px;
}
.rl-diamond.red::after { background: #fff; opacity: .9; }
.rl-diamond.black::after { background: #fff; opacity: .85; }

.rl-chip-stack {
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  min-width: 28px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: radial-gradient(circle at 40% 35%, #c45c4a, #8b2e22 70%);
  border: 2px solid rgba(255,255,255,.55);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 2;
  box-shadow: 0 1px 3px rgba(0,0,0,.4);
}

.rl-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 4px 2px 0;
  max-width: 920px;
  margin: 0 auto;
  width: 100%;
}
.rl-foot-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 4px;
}
.rl-foot-btn:disabled { opacity: .35; cursor: default; }
.rl-foot-btn:not(:disabled):hover { color: var(--muted); }

.rl-msg {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  min-height: 1.4em;
}
.rl-msg.pos { color: #00e701; }
.rl-msg.neg { color: #ed4163; }
.rl-msg.spinning { color: #fff; animation: rl-spin-text 1.1s ease-in-out infinite; }
@keyframes rl-spin-text {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}

.modal-backdrop {
  position: fixed; inset: 0; display: grid; place-items: center; z-index: 40;
  background: rgba(0,0,0,0);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .32s ease, visibility .32s, background .32s ease, backdrop-filter .32s ease;
}
.modal-backdrop.open {
  opacity: 1; visibility: visible; pointer-events: auto;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(12px);
}
.modal {
  width: min(420px, 92vw); background: linear-gradient(180deg, #1a1212, #121214);
  border: 1px solid var(--line); border-radius: 18px; padding: 22px; position: relative;
  transform: translateY(22px) scale(.96); opacity: 0;
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 40px rgba(225,6,0,.12);
  transition: transform .42s cubic-bezier(.16,1,.3,1), opacity .28s ease;
}
.modal-backdrop.open .modal { transform: none; opacity: 1; }
.modal-close { position: absolute; right: 10px; top: 6px; background: none; border: 0; font-size: 26px; color: var(--muted); }
.stack { display: grid; gap: 8px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.tiny { font-size: 11px; letter-spacing: .08em; }
.pos { color: var(--green); }
.neg { color: var(--red-2); }
.kv { display: grid; gap: 8px; }
.kv div { display: flex; justify-content: space-between; border-bottom: 1px solid #222; padding-bottom: 6px; }
.profile-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 12px; }

/* Profile dashboard */
.profile-verified {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; margin-bottom: 14px;
  background: linear-gradient(90deg, rgba(61, 214, 140, .08), rgba(12, 12, 14, .92));
  border: 1px solid rgba(61, 214, 140, .28);
  border-radius: 16px;
}
.profile-verified--off {
  background: linear-gradient(90deg, rgba(225, 6, 0, .08), rgba(12, 12, 14, .92));
  border-color: rgba(225, 6, 0, .28);
}
.profile-verified-icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 18px;
  background: rgba(61, 214, 140, .18); color: var(--green);
  border: 1px solid rgba(61, 214, 140, .35);
}
.profile-verified--off .profile-verified-icon {
  background: rgba(225, 6, 0, .15); color: var(--red-2);
  border-color: rgba(225, 6, 0, .35);
}
.profile-verified-copy { display: grid; gap: 2px; }
.profile-verified-copy strong { color: var(--green); font-size: 15px; }
.profile-verified--off .profile-verified-copy strong { color: var(--red-2); }
.profile-verified-sub { color: var(--muted); font-size: 13px; }
.profile-verified-sub em { color: var(--text); font-style: normal; font-weight: 700; }

.profile-top-row {
  display: grid; grid-template-columns: 1.45fr .85fr; gap: 12px; margin-bottom: 12px;
}
.profile-card {
  background: var(--panel); border: 1px solid #26262a; border-radius: 16px; padding: 18px;
}
.profile-card-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.profile-card-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; font-size: 16px;
  background: rgba(225, 6, 0, .14); border: 1px solid rgba(225, 6, 0, .28);
  color: var(--red-2); flex-shrink: 0;
}
.profile-card-icon--balance,
.profile-card-icon--level,
.profile-card-icon--clock { background: rgba(225, 6, 0, .14); }
.profile-card-label {
  display: block; font-size: 11px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.profile-card-hint { display: block; font-size: 11px; color: rgba(255,255,255,.35); margin-top: 2px; }
.profile-balance-value {
  font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -.03em;
  margin: 4px 0 16px; font-variant-numeric: tabular-nums;
}
.profile-balance-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.profile-outline {
  background: transparent; border: 1px solid rgba(225, 6, 0, .45); color: var(--red-2);
  border-radius: 10px; padding: 10px 18px; font-weight: 700;
}
.profile-outline:hover { border-color: var(--red); background: rgba(225, 6, 0, .08); }
.profile-level-title { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.03em; }
.profile-xp-meta {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px;
  font-size: 12px; font-weight: 700;
}
.profile-xp-bar {
  height: 8px; border-radius: 999px; background: #1a1a1e; overflow: hidden;
  border: 1px solid #2a2a2e;
}
.profile-xp-bar span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, #b10500, var(--red-2));
  border-radius: 999px; transition: width .35s ease;
}
.profile-xp-remaining { margin: 8px 0 0; }

.profile-stats-row {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px;
}
.profile-stat-card {
  background: var(--panel); border: 1px solid #26262a; border-radius: 14px; padding: 14px;
  display: grid; gap: 6px; min-width: 0;
}
.profile-stat-label {
  font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.profile-stat-value {
  font-size: clamp(16px, 1.6vw, 22px); font-weight: 800; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis;
}
.profile-stat-foot {
  font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.32);
}

.profile-activity {
  background: var(--panel); border: 1px solid #26262a; border-radius: 16px; padding: 16px 18px 8px;
}
.profile-activity-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  flex-wrap: wrap; margin-bottom: 12px;
}
.profile-activity-title { display: flex; align-items: center; gap: 12px; }
.profile-activity-title h2 {
  margin: 0; font-size: 14px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.profile-activity-tools { display: flex; align-items: center; gap: 8px; }
.profile-tab-toggle {
  display: inline-flex; background: #101012; border: 1px solid #2a2a2e; border-radius: 999px; padding: 3px;
}
.profile-tab {
  border: 0; background: transparent; color: var(--muted); border-radius: 999px;
  padding: 7px 12px; font-size: 12px; font-weight: 700;
}
.profile-tab.active {
  background: var(--red); color: #fff;
}
.profile-tab span {
  display: inline-block; margin-left: 4px; opacity: .75; font-size: 11px;
}
.profile-refresh {
  width: 34px; height: 34px; border-radius: 10px;
  background: #101012; border: 1px solid #2a2a2e; color: var(--muted); font-size: 16px;
}
.profile-refresh:hover { border-color: var(--red); color: #fff; }
.profile-activity-table { overflow: auto; }
.profile-activity-row {
  display: grid; grid-template-columns: minmax(160px, 1.6fr) 1fr 1fr 1fr;
  align-items: center; gap: 10px; min-height: 52px; padding: 0 4px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.profile-activity-row:last-child { border-bottom: 0; }
.profile-activity-row--head {
  min-height: 36px; color: rgba(255,255,255,.38); font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
}
.profile-activity-row:not(.profile-activity-row--head):hover {
  background: rgba(225, 6, 0, .04);
}
.profile-activity-row > div:nth-child(n+2) { text-align: right; }
.profile-activity-game {
  display: flex; align-items: center; gap: 10px; min-width: 0; text-align: left !important;
}
.profile-activity-game strong {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.profile-mult {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 52px; padding: 4px 8px; border-radius: 6px; font-size: 12px; font-weight: 700;
}
.profile-mult.win {
  color: #6ee7a8; background: rgba(34, 120, 72, .45);
  border: 1px solid rgba(61, 214, 140, .25);
}
.profile-mult.loss { color: rgba(255,255,255,.28); }
.profile-activity-empty { padding: 24px 8px; text-align: center; }

.profile-settings {
  margin-top: 14px; background: var(--panel); border: 1px solid #26262a; border-radius: 14px; padding: 12px 16px;
}
.profile-settings summary {
  cursor: pointer; font-weight: 700; color: var(--muted); list-style: none;
}
.profile-settings summary::-webkit-details-marker { display: none; }
.profile-settings-body { margin-top: 12px; display: grid; gap: 12px; max-width: 420px; }
.profile-toggle {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
  font-size: 13px; color: var(--muted); line-height: 1.4;
}
.profile-toggle input { margin-top: 3px; accent-color: var(--red); flex-shrink: 0; }

/* User profile card (chat) */
.modal.user-card {
  width: min(380px, 94vw); padding: 28px 24px 24px; text-align: center;
  background: linear-gradient(180deg, #141416 0%, #0e0e10 100%);
  border: 1px solid #2a2a2e;
}
.user-card-head { display: grid; justify-items: center; gap: 8px; margin-bottom: 18px; }
.user-card-avatar {
  width: 88px; height: 88px; border-radius: 50%; image-rendering: pixelated;
  border: 3px solid #2a2a2e; background: #1a1a1e;
}
.user-card-name {
  margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em;
}
.user-card-level {
  display: inline-block; padding: 4px 14px; border-radius: 999px;
  background: linear-gradient(135deg, var(--red) 0%, #a00500 100%);
  color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .04em;
}
.user-card-private { margin: 0 0 16px; font-size: 13px; }
.user-card-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px;
}
.user-card-stat {
  background: #18181b; border: 1px solid #26262a; border-radius: 12px;
  padding: 12px 10px; display: grid; gap: 6px;
}
.user-card-stat-label {
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: rgba(255,255,255,.38);
}
.user-card-stat-value {
  font-size: 17px; font-weight: 800; letter-spacing: -.02em; color: #fff;
}
.user-card-stat-value--wagered { color: #60a5fa; }
.user-card-stat-value.pos { color: var(--green); }
.user-card-stat-value.neg { color: var(--red-2); }
.user-card-actions { display: grid; gap: 10px; }
.user-card-tip {
  width: 100%; padding: 14px; border: 0; border-radius: 12px;
  background: linear-gradient(135deg, #f5c842 0%, #e8a317 50%, #d4920f 100%);
  color: #1a1400; font-weight: 800; font-size: 14px; letter-spacing: .04em;
  text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.user-card-tip:hover { filter: brightness(1.06); }
.user-card-mute {
  width: 100%; padding: 12px; border-radius: 12px;
  background: transparent; border: 1px solid var(--red-2); color: var(--red-2);
  font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.user-card-mute:hover { background: rgba(237, 65, 99, .08); }
.user-card-mute.is-muted { border-color: rgba(255,255,255,.25); color: var(--muted); }

.chat-user-link {
  background: none; border: 0; padding: 0; color: #fff; font-weight: 800;
  font-size: 13px; cursor: pointer; font-family: inherit;
}
.chat-user-link:hover { color: var(--red); text-decoration: underline; }

@media (max-width: 1200px) {
  .profile-stats-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .profile-top-row { grid-template-columns: 1fr; }
  .profile-stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .profile-stats-row { grid-template-columns: 1fr; }
  .profile-activity-row { grid-template-columns: 1.4fr 1fr 1fr 1fr; font-size: 12px; }
}

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 12px 0; }
.stat-card { background: var(--panel); border: 1px solid #26262a; border-radius: 12px; padding: 12px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #222; }
.row { display: grid; grid-template-columns: 28px 1fr auto auto auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid #222; }
.icon-btn, .chat-open-btn { background: #1b1b1e; border: 1px solid #2a2a2e; border-radius: 8px; padding: 6px 10px; }
.chat-open-btn { display: inline-flex; align-items: center; gap: 6px; }
.shell.chat-open .chat-open-btn { border-color: #3a3a40; color: #fff; }

.fx-head {
  display: flex; justify-content: space-between; align-items: end; gap: 16px;
  margin-bottom: 18px; flex-wrap: wrap;
}
.fx-head h1 { margin: 6px 0; font-size: clamp(32px, 5vw, 48px); letter-spacing: -.03em; }
.fx-rate-pill {
  display: grid; gap: 2px; background: #101012; border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 14px; min-width: 220px;
}
.fx-desk {
  display: grid; grid-template-columns: 1.4fr .8fr; gap: 14px; align-items: start;
}
.fx-ticket, .fx-quote {
  background: var(--panel); border: 1px solid #26262a; border-radius: 18px; padding: 18px;
}
.fx-pair {
  font-weight: 800; letter-spacing: .14em; font-size: 12px; color: var(--red-2);
  margin-bottom: 14px;
}
.fx-pair span { color: var(--muted); margin: 0 8px; }
.fx-leg {
  background: #0c0c0e; border: 1px solid #2a2a2e; border-radius: 14px; padding: 14px;
}
.fx-leg.receive { border-color: rgba(61, 214, 140, .25); }
.fx-leg-top { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.fx-ccy { color: var(--text); }
.fx-input { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.fx-input input {
  border: 0; background: transparent; font-size: 36px; font-weight: 800; padding: 4px 0;
  letter-spacing: -.03em;
}
.fx-symbol { font-size: 32px; font-weight: 800; color: var(--muted); }
.fx-quick { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.fx-quick button {
  background: #1b1b1e; border: 1px solid #2a2a2e; border-radius: 999px;
  padding: 6px 10px; color: var(--text); font-weight: 700; font-size: 12px;
}
.fx-quick button:hover { border-color: var(--red); }
.fx-mid {
  text-align: center; margin: 10px 0; color: var(--muted); font-size: 12px; font-weight: 700;
  letter-spacing: .08em;
}
#custom-pay { margin-top: 14px; }
.fx-kv { display: grid; gap: 0; margin: 0; }
.fx-kv div {
  display: flex; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid #222; padding: 10px 0; font-size: 14px;
}
.fx-kv dt { color: var(--muted); }
.fx-kv dd { margin: 0; font-weight: 700; text-align: right; }
#game-view.mines-fit .back-link { margin-bottom: 6px; }
#game-view.mines-fit .game-layout { height: calc(100% - 28px); }

button, .nav-link, .chip, .game-card, .btn {
  transition: transform .18s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease, opacity .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.28); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn.red {
  position: relative; overflow: hidden;
  box-shadow: 0 8px 22px rgba(225,6,0,.28);
}
.btn.red::after {
  content: ""; position: absolute; inset: 0 auto 0 -40%; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  transform: translateX(-120%);
}
.btn.red:hover::after { animation: shine .7s ease; }
.btn.busy, .btn:disabled { opacity: .65; pointer-events: none; }
.btn.busy { animation: pulse-glow 1s ease-in-out infinite; }
@keyframes shine { to { transform: translateX(420%); } }
@keyframes pulse-glow {
  50% { box-shadow: 0 0 22px rgba(225,6,0,.55); }
}

.nav-link { position: relative; }
.nav-link.active { box-shadow: 0 6px 16px rgba(225,6,0,.35); }
.games-list-item {
  display: block;
  width: 100%;
  background: none;
  border: 0;
  color: #fff;
  text-align: left;
  font-weight: 600;
  padding: 13px 18px;
}
.games-list-item:hover { background: rgba(255,255,255,.06); }

input, select {
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus {
  outline: none; border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(225,6,0,.18);
}

.app-view:not(.hidden) { animation: view-in .42s cubic-bezier(.16,1,.3,1); }
@keyframes view-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.home-hero {
  position: relative;
  overflow: hidden;
  border-color: rgba(225, 6, 0, .42);
  box-shadow: 0 0 48px rgba(225, 6, 0, .12), inset 0 0 80px rgba(225, 6, 0, .04);
  background:
    radial-gradient(ellipse at 82% 28%, rgba(225, 6, 0, .22), transparent 52%),
    radial-gradient(ellipse at 12% 80%, rgba(225, 6, 0, .08), transparent 45%),
    var(--panel);
}
.hero-steve { animation: steve-idle 4.5s ease-in-out infinite; }
.hero-logo { animation: logo-float 4.5s ease-in-out infinite; }
@keyframes steve-idle {
  50% { transform: translateY(-8px); filter: drop-shadow(0 18px 18px rgba(0,0,0,.45)); }
}
@keyframes logo-float {
  50% { transform: translateY(-6px); filter: drop-shadow(0 16px 22px rgba(0,0,0,.55)); }
}
.home-steps article {
  transition: transform .25s ease, border-color .25s;
}
.home-steps article:hover { transform: translateY(-4px); border-color: rgba(225,6,0,.4); }

.game-card { animation: card-in .5s cubic-bezier(.16,1,.3,1) backwards; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes card-in {
  from { opacity: 0; transform: translateY(16px) scale(.96); }
  to { opacity: 1; transform: none; }
}
.badge { animation: badge-pop .6s cubic-bezier(.16,1,.3,1) both; }
@keyframes badge-pop { from { transform: scale(.6); opacity: 0; } }

.balance-pill.pulse {
  animation: wallet-pulse .7s ease;
  border-color: var(--red);
}
@keyframes wallet-pulse {
  0% { box-shadow: 0 0 0 0 rgba(225,6,0,.45); }
  100% { box-shadow: 0 0 0 12px rgba(225,6,0,0); }
}

.toast {
  animation: toast-in .35s cubic-bezier(.16,1,.3,1);
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
}
@keyframes toast-in {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: none; }
}

.chat-line { animation: chat-in .28s ease; }
@keyframes chat-in { from { opacity: 0; transform: translateY(8px); } }

.row { animation: card-in .35s ease both; }

.board-panel.board-in { animation: view-in .4s cubic-bezier(.16,1,.3,1); }
.board-panel.fx-win { animation: win-flash .7s ease; }
.board-panel.fx-lose { animation: lose-flash .55s ease; }
@keyframes win-flash {
  0% { box-shadow: 0 0 0 0 rgba(61,214,140,.0); }
  35% { box-shadow: 0 0 40px 2px rgba(61,214,140,.45); border-color: var(--green); }
  100% { box-shadow: none; }
}
@keyframes lose-flash {
  0% { transform: translateX(0); }
  20% { transform: translateX(-6px); box-shadow: 0 0 28px rgba(225,6,0,.4); border-color: var(--red); }
  40% { transform: translateX(6px); }
  100% { transform: none; }
}

.chip:hover, .quick-bets button:hover { border-color: var(--red); transform: translateY(-1px); }

.mine-tile.revealing { animation: tile-flip .38s ease; }
.mine-tile.gem { animation: gem-pop .4s cubic-bezier(.16,1,.3,1); }
.mine-tile.tnt { animation: tnt-boom .45s ease; }
@keyframes tile-flip { 50% { transform: rotateY(90deg) scale(.9); } }
@keyframes gem-pop { from { transform: scale(.6); filter: brightness(2); } }
@keyframes tnt-boom { 0% { transform: scale(1.15); filter: brightness(2); } 100% { transform: none; } }

.plinko-ball {
  position: absolute; top: 0; left: 50%; width: 14px; height: 14px; margin-left: -7px;
  border-radius: 50%; background: radial-gradient(circle at 30% 30%, #d4ffe8, #3dd68c 55%, #1a9a5c);
  box-shadow: 0 0 12px rgba(61, 214, 140, 0.55); opacity: 0; z-index: 2; pointer-events: none;
  will-change: transform;
}
.plinko-board[data-rows="16"] .plinko-ball { width: 11px; height: 11px; margin-left: -5.5px; }
.plinko-ball.plinko-ball-done {
  transition: opacity .32s ease;
  opacity: 0 !important;
}
.plinko-board .bucket {
  transition: transform .2s, box-shadow .2s, filter .2s, outline-color .2s;
  outline: 2px solid transparent;
  outline-offset: 1px;
}
.plinko-board .bucket.hit {
  z-index: 8;
  transform: translateY(-4px) scale(1.12);
  outline-color: #fff;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.95),
    0 0 22px rgba(255, 220, 80, 0.85),
    0 0 36px rgba(225, 6, 0, 0.55);
  filter: brightness(1.35);
  animation: plinko-bucket-hit 1.2s ease;
}
@keyframes plinko-bucket-hit {
  0% { transform: translateY(-2px) scale(1.02); filter: brightness(1.1); }
  18% { transform: translateY(-5px) scale(1.16); filter: brightness(1.5); }
  40% { transform: translateY(-4px) scale(1.12); filter: brightness(1.35); }
  100% { transform: translateY(-4px) scale(1.12); filter: brightness(1.35); }
}

.coin {
  transition: transform .3s;
  transform-style: preserve-3d;
}
.coin.flip { animation: coin-flip 1.15s cubic-bezier(.15,.8,.2,1); }
@keyframes coin-flip {
  0% { transform: rotateY(0) scale(1); }
  50% { transform: rotateY(720deg) scale(1.14); }
  100% { transform: rotateY(1080deg) scale(1); }
}
.coin.win { box-shadow: 0 0 32px rgba(61,214,140,.55); }
.coin.lose { box-shadow: 0 0 32px rgba(225,6,0,.45); }

.card { animation: deal-in .35s cubic-bezier(.16,1,.3,1) both; }
.card:nth-child(1) { animation-delay: .02s; }
.card:nth-child(2) { animation-delay: .1s; }
.card:nth-child(3) { animation-delay: .18s; }
.card:nth-child(4) { animation-delay: .26s; }
.card:nth-child(5) { animation-delay: .34s; }
@keyframes deal-in {
  from { opacity: 0; transform: translateY(-18px) rotate(-8deg) scale(.8); }
}

.tower-cell { transition: transform .15s, outline .15s, filter .15s; }
.tower-cell:hover { filter: brightness(1.2); transform: scale(1.03); }
.tower-cell.picking { animation: tile-flip .32s ease; }
.tower-cell.safe { animation: gem-pop .35s ease; }
.tower-cell.boom { animation: tnt-boom .4s ease; }

.case-duel { gap: 12px; }
.case-box img { transition: transform .35s; }
.case-duel.opening .case-box img { animation: case-shake .7s ease; }
.case-box.win img { animation: gem-pop .45s ease; filter: drop-shadow(0 0 16px rgba(61,214,140,.6)); }
.case-box.lose img { filter: grayscale(.4) brightness(.8); }
@keyframes case-shake {
  20% { transform: rotate(-12deg) translateY(-6px); }
  40% { transform: rotate(12deg); }
  60% { transform: rotate(-8deg) translateY(-4px); }
  80% { transform: rotate(8deg); }
}

.slot-machine { position: relative; overflow: hidden; }
.slot-reel { overflow: hidden; }
.slot-reel.spinning img { animation: reel-spin .08s linear infinite; filter: blur(1px); }
.slot-reel.win img { animation: gem-pop .45s ease; filter: drop-shadow(0 0 14px rgba(240,193,75,.7)); }
@keyframes reel-spin {
  0% { transform: translateY(-12px); }
  100% { transform: translateY(12px); }
}

.fish-lake { position: relative; overflow: hidden; }
.fish-lake.casting img { animation: cast .7s ease; }
.fish-lake.splash::after {
  content: ""; position: absolute; left: 50%; top: 58%; width: 18px; height: 18px;
  border-radius: 50%; border: 2px solid rgba(180,230,255,.7);
  animation: splash .7s ease forwards;
}
.fish-lake .catch-pop { animation: gem-pop .5s cubic-bezier(.16,1,.3,1); }
@keyframes splash {
  to { transform: scale(6); opacity: 0; }
}

.enchant-table.charging { animation: enchant-glow .9s ease; }
@keyframes enchant-glow {
  50% { box-shadow: inset 0 0 40px rgba(140,80,255,.55); border-color: #b48cff; }
}

.vault-door.unlocking { animation: vault-crack .95s ease; }
@keyframes vault-crack {
  30% { transform: scale(1.03) rotate(-1deg); filter: brightness(1.4); }
  60% { transform: scale(.98) rotate(1deg); }
}

.pearl-void { position: relative; overflow: hidden; }
.pearl-void.throwing #pearl-mult { animation: pearl-throw 1.05s cubic-bezier(.15,.8,.25,1); }
@keyframes pearl-throw {
  0% { transform: translateY(24px) scale(.7); opacity: .4; }
  60% { transform: translateY(-10px) scale(1.08); opacity: 1; }
  100% { transform: none; }
}

.brew-stand.bubbling .brew-bottles img { animation: brew-bubble .7s ease infinite; }
.brew-bottles img:nth-child(2) { animation-delay: .12s; }
.brew-bottles img:nth-child(3) { animation-delay: .24s; }
@keyframes brew-bubble {
  50% { transform: translateY(-10px) rotate(-8deg); filter: drop-shadow(0 0 12px rgba(225,6,0,.4)); }
}

.crash-stage.blown { animation: stage-shake .5s ease; }
@keyframes stage-shake {
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

.fx-ticket, .fx-quote, .panel { animation: view-in .4s ease; }

#game-view.battles-fit { min-height: 0; max-height: calc(100vh - 108px); overflow: hidden; }
#game-view.battles-fit .game-layout { grid-template-columns: 1fr; min-height: 0; height: 100%; }
#game-view.battles-fit .bet-panel { display: none; }
#game-view.battles-fit .board-panel {
  min-height: 0; flex: 1; height: 100%; overflow: hidden;
  padding: 12px 14px; background: #0c0d11; border-color: #1c1e26; display: flex; flex-direction: column;
}
.stage:has(#game-view.battles-fit:not(.hidden)) { overflow: hidden; }
#game-view.battles-fit .board-panel > .sr-wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; }
#game-view.battles-fit .board-panel > .sr-wrap:not(.sr-room) { overflow: auto; }
#game-view.battles-fit .board-panel > .dl-create { flex: 1; min-height: 0; }
#game-view.battles-fit .sr-wrap.sr-room {
  flex: 1; min-height: 0; height: 100%; overflow: hidden;
  display: flex; flex-direction: column; gap: 12px;
}
#game-view.battles-fit .sr-wrap.sr-room .sr-room-bar,
#game-view.battles-fit .sr-wrap.sr-room .sr-info-bar,
#game-view.battles-fit .sr-wrap.sr-room .jp-wrap { flex-shrink: 0; }
/* Board area scrolls when team rows can't fit; each seat scrolls its own drops */
#game-view.battles-fit .sr-wrap.sr-room .sr-slots,
#game-view.battles-fit .sr-wrap.sr-room .dl-teams,
#game-view.battles-fit .sr-wrap.sr-room .br-ended {
  flex: 1; min-height: 0; overflow: auto;
}
#game-view.battles-fit .dl-teams { display: flex; flex-direction: column; gap: 8px; }
#game-view.battles-fit .dl-teams > .dl-vs { flex-shrink: 0; }
#game-view.battles-fit .dl-team-row {
  flex: 1 1 220px; min-height: 200px; overflow: hidden;
  align-items: stretch; width: 100%;
}
#game-view.battles-fit .dl-team-row > .sr-slot,
#game-view.battles-fit .sr-slots > .sr-slot {
  min-height: 0; height: auto; max-height: 100%;
}
.sr-wrap { display: grid; gap: 14px; color: #e8edf4; }
.sr-toolbar, .sr-room-bar, .sr-create-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.sr-stats, .sr-toolbar-right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sr-stats span { color: #8b93a7; font-size: 13px; }
.sr-h2 { margin: 8px 0 0; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: #8b93a7; }
.sr-btn {
  background: var(--red); color: #fff; border: 0; border-radius: 8px;
  font-weight: 800; padding: 8px 14px; letter-spacing: .06em;
}
.sr-btn.lg { padding: 12px 18px; }
.sr-btn-view {
  background: var(--red); color: #fff; border: 0; border-radius: 8px;
  font-weight: 800; padding: 10px 14px; min-width: 88px; letter-spacing: .04em;
}
.sr-btn-view.dim { background: #2a2e3a; color: #8b93a7; }
.sr-btn-join {
  background: var(--red); color: #fff; border: 0; border-radius: 8px;
  font-weight: 800; padding: 10px 14px; min-width: 88px; letter-spacing: .04em;
}
.sr-ghost.on { border-color: var(--red); color: var(--red); }
.dl-battles-title { letter-spacing: .12em; font-size: 14px; }
.dl-live {
  display: grid; grid-template-columns: 72px minmax(160px, 1.4fr) 90px 110px 100px;
  gap: 12px; align-items: center; background: #12141a; border: 1px solid #232632; border-radius: 14px; padding: 10px 12px;
}
.dl-count { position: relative; background: #0c0d11; border-radius: 10px; padding: 10px 8px 8px; text-align: center; }
.dl-count::before { content: ""; position: absolute; top: 6px; right: 8px; width: 7px; height: 7px; border-radius: 99px; background: #5b6273; }
.dl-count.running::before, .dl-count.waiting::before { background: var(--red); box-shadow: 0 0 8px var(--red); }
.dl-count strong { display: block; font-size: 22px; }
.dl-count em { font-style: normal; font-size: 9px; letter-spacing: .1em; color: #8b93a7; }
.dl-count.running em { color: var(--red); }
.dl-track { display: flex; gap: 6px; overflow: auto; background: #0c0d11; border-radius: 999px; padding: 8px 12px; align-items: center; min-height: 52px; }
.dl-track-case { opacity: .35; flex-shrink: 0; }
.dl-track-case.done, .dl-track-case.now { opacity: 1; }
.dl-track-case.now { outline: 2px solid var(--red); border-radius: 8px; }
.dl-track-case img { width: 32px; height: 32px; image-rendering: pixelated; }
.dl-pot { font-size: 20px; font-weight: 800; }
.dl-dias { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 110px; }
.dl-dia {
  width: 26px; height: 26px; transform: rotate(45deg); border: 2px solid #3a4050;
  display: grid; place-items: center; background: #0c0d11; overflow: hidden; position: relative;
}
.dl-dia b { transform: rotate(-45deg); font-size: 11px; }
.dl-dia img {
  position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px);
  object-fit: cover; transform: rotate(-45deg); image-rendering: pixelated;
}
.dl-dia:has(img) b { display: none; }
.dl-dia.on { background: #1a1d27; }
.dl-dia.c0 { border-color: var(--red); }
.dl-dia.c1 { border-color: #22c55e; }
.dl-dia.c2 { border-color: #3b82f6; }
.dl-dia.c3 { border-color: #f0c14b; }
.dl-live-act { display: grid; justify-items: end; gap: 4px; }
.dl-live-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: end; font-size: 10px; font-weight: 800; color: #8b93a7; }
.dl-fast { color: #f0c14b; }
.dl-user { display: grid; justify-items: center; text-align: center; gap: 2px; padding-bottom: 8px; }
.dl-user.team-head { grid-template-columns: auto 1fr; justify-items: start; text-align: left; align-items: center; gap: 8px; }
.dl-user.team-head .sr-outcome { grid-column: 1 / -1; width: 100%; }
.dl-user-meta { min-width: 0; }
.dl-user-meta small { display: block; color: #8b93a7; }
.dl-user-line {
  display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap;
  justify-content: center;
}
.dl-user.team-head .dl-user-line { justify-content: flex-start; }
.dl-user-line strong { font-size: 13px; font-weight: 800; }
.dl-user-amt {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 800; color: #e8edf4;
}
.dl-user-amt::before { content: "◆"; color: #c084fc; font-size: 11px; line-height: 1; }
.dl-user-pct { color: #f0c14b; font-size: 12px; font-weight: 700; }
/* Team battles: Team 1 top row, Team 2 bottom (NvN stacks more rows); never left/right columns */
.dl-teams {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
}
.dl-team-row {
  display: grid;
  grid-template-columns: repeat(var(--mates, 2), minmax(0, 1fr));
  grid-auto-flow: row;
  gap: 8px; padding: 10px; border-radius: 16px; background: #14161d; border: 1px solid #232632;
  width: 100%;
}
.dl-team-row.win { background: #10251c; border-color: #1f6b45; }
.dl-team-row.shared { background: #10251c; border-color: #1f6b45; }
.dl-team-row.lose { background: #2a1010; border-color: #6b1f1f; }
.dl-team-row .sr-slot { background: transparent; border-color: transparent; box-shadow: none; min-width: 0; }
.dl-vs {
  width: 40px; height: 40px; margin: -10px auto; position: relative; z-index: 2;
  flex-shrink: 0;
  border-radius: 99px; display: grid; place-items: center;
  background: #1a1d27; border: 1px solid #2a2e3a;
}
.dl-drop-stack {
  display: flex; flex-direction: column; gap: 6px;
  flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto;
  margin-top: 8px; padding: 8px; background: #0c0d11; border: 1px solid #232632;
  border-radius: 12px;
}
.dl-drop-count { color: #8b93a7; font-weight: 700; }
.dl-drop {
  display: grid; grid-template-columns: 4px 28px 1fr; gap: 8px; align-items: center;
  background: #12141a; border-radius: 10px; padding: 8px 8px 8px 0; position: relative;
}
.dl-drop-edge { width: 4px; height: 100%; border-radius: 4px 0 0 4px; background: #3a4050; }
.dl-drop img { width: 28px; height: 28px; image-rendering: pixelated; }
.dl-drop span { display: block; font-size: 12px; }
.dl-drop strong { font-size: 12px; color: #d5dbe6; }
.dl-drop.pending { display: none; }
.dl-drop.r-blue .dl-drop-edge { background: #4aa3ff; }
.dl-drop.r-purple .dl-drop-edge { background: #a855f7; }
.dl-drop.r-pink .dl-drop-edge { background: #ec4899; }
.dl-drop.r-red .dl-drop-edge { background: #ef4444; }
.dl-drop.r-gold .dl-drop-edge { background: #f0c14b; }
.dl-drop.r-gray .dl-drop-edge { background: #6b7280; }
.sr-slot.dl-col-seat {
  display: flex; flex-direction: column; min-height: 0; height: 100%; max-height: 100%; overflow: hidden;
}
.sr-slot.dl-col-seat > .dl-user { flex-shrink: 0; }
.sr-slot.dl-col-seat > .sr-reel.sr-reel-v {
  flex: 1 1 160px; min-height: 160px; max-height: 280px; height: auto;
}
.sr-slot.dl-col-seat > .dl-drop-stack { flex: 1 1 auto; min-height: 0; }
.sr-outcome { font-size: 13px; letter-spacing: .12em; margin-top: 4px; }
.sr-ghost {
  background: #171922; color: #d5dbe6; border: 1px solid #2a2e3a; border-radius: 8px; padding: 8px 12px; font-weight: 700;
}
.sr-ghost.on { border-color: #3ee0a0; color: #3ee0a0; }
.sr-list { display: grid; gap: 8px; }
.sr-row {
  display: grid; grid-template-columns: 64px minmax(160px,.8fr) 1fr 130px;
  gap: 12px; align-items: center; background: #14161d; border: 1px solid #232632; border-radius: 12px; padding: 10px 12px;
}
.sr-rounds { display: grid; justify-items: center; gap: 2px; }
.sr-rounds span { font-size: 10px; color: #8b93a7; letter-spacing: .08em; text-transform: uppercase; }
.sr-progress { width: 44px; height: 44px; }
.sr-pg-bg { fill: none; stroke: #2a2e3a; stroke-width: 4; }
.sr-pg-fg { fill: none; stroke: #3ee0a0; stroke-width: 4; transform: rotate(-90deg); transform-origin: 20px 20px; }
.sr-progress text { fill: #fff; font-size: 9px; font-weight: 800; }
.sr-avas { display: flex; gap: 4px; }
.sr-ava {
  width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center;
  background: #1c1f28; border: 1px dashed #3a4050; font-size: 11px; font-weight: 800; color: #8b93a7;
}
.sr-ava.on { border-style: solid; border-color: #3ee0a0; color: #fff; background: #123528; }
.sr-ava.open { color: #ff4b7d; border-color: #ff4b7d; }
.sr-ava.bot { border-color: #7aa2ff; }
.sr-ava.face { position: relative; overflow: hidden; color: transparent; }
.sr-ava img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; image-rendering: pixelated;
}
.sr-fmt-line { margin: 0 0 4px; font-size: 12px; font-weight: 800; color: #e8edf4; }
.sr-row-people p { margin: 4px 0 0; color: #8b93a7; font-size: 12px; }
.sr-chip { font-size: 11px; font-weight: 800; }
.sr-chip.purple, .sr-badge.purple { color: #c084fc; }
.sr-chip.blue, .sr-badge.blue { color: #60a5fa; }
.sr-chip.pink, .sr-badge.pink { color: #ff4b7d; }
.sr-chip.gold, .sr-badge.gold { color: #f0c14b; }
.sr-chip.mint, .sr-badge.mint { color: #3ee0a0; }
.sr-chip.red, .sr-badge.red { color: #ff5d7a; }
.sr-chip.violet, .sr-badge.violet { color: #a78bfa; }
.sr-row-cases { display: flex; gap: 6px; align-items: center; overflow: auto; }
.sr-case-thumb { display: grid; }
.sr-case-thumb.now { outline: 2px solid #3ee0a0; border-radius: 8px; }
.sr-row-cases img { width: 36px; height: 36px; image-rendering: pixelated; }
.sr-row-act { display: grid; justify-items: end; gap: 6px; }
.sr-row-act strong { color: #fff; font-size: 13px; }
.sr-fmt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sr-fmt p { margin: 0 0 6px; color: #8b93a7; font-size: 11px; letter-spacing: .14em; }
.sr-tile { background: #171922; border: 1px solid #2a2e3a; color: #fff; border-radius: 8px; padding: 10px 8px; margin: 0 4px 4px 0; font-weight: 700; }
.sr-tile.on { border-color: #3ee0a0; background: #10251c; }
.sr-modes { display: flex; flex-wrap: wrap; gap: 8px; }
.sr-mode { background: #171922; border: 1px solid #2a2e3a; color: #cfd6e4; border-radius: 8px; padding: 8px 12px; font-weight: 800; letter-spacing: .08em; font-size: 12px; display: inline-flex; gap: 8px; align-items: center; }
.sr-mode.on { border-color: #3ee0a0; color: #fff; }
.sr-dot { width: 8px; height: 8px; border-radius: 99px; display: inline-block; }
.sr-dot.gold { background: #f0c14b; }
.sr-dot.red { background: #ef4444; }
.sr-dot.purple { background: #a855f7; }
.sr-dot.blue { background: #3b82f6; }
.sr-dot.mint { background: #3ee0a0; }
.sr-dot.teal { background: #2dd4bf; }
.sr-dot.violet { background: #8b5cf6; }
.sr-dot.orange { background: #f97316; }
.sr-add-tools { display: flex; gap: 8px; margin-bottom: 10px; }
.sr-search { flex: 1; background: #101218; border: 1px solid #2a2e3a; border-radius: 8px; padding: 10px; }
.sr-add-case { border-style: dashed !important; min-height: 132px; color: #8b93a7; }
.sr-plus { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: #1c1f28; font-size: 22px; }
.sr-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.sr-create-head { justify-content: space-between; }
.sr-create-head h1 { margin: 0; font-size: 18px; letter-spacing: .14em; }
.sr-info-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; background: #14161d; border: 1px solid #232632; border-radius: 12px; padding: 10px 12px; }
.sr-plus-seat { width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center; border: 1px dashed #ff4b7d; color: #ff4b7d; font-size: 28px; }
.sr-slots.teams { grid-template-columns: repeat(var(--seats, 2), minmax(0, 1fr)); }
.sr-team { display: grid; gap: 10px; }
.sr-slot.loser { opacity: .85; }
.sr-item.r-gray .sr-bar { background: #6b7280; }

.dl-create { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 10px; color: #e8edf4; min-height: 0; flex: 1; height: 100%; }
.dl-create-head { display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }
.dl-create-head h1 { margin: 0; font-size: 16px; letter-spacing: .16em; }
.dl-create-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr) 272px; gap: 12px; min-height: 0; height: 100%; align-items: stretch; }
.dl-col { min-height: 0; display: flex; flex-direction: column; }
.dl-col h3 { margin: 0 0 8px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #8b93a7; }
.dl-side { overflow: auto; padding-right: 4px; }
.dl-players { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 16px; }
.dl-pbtn, .dl-mode, .dl-mod, .dl-ghost, .dl-pill {
  background: #12141b; border: 1px solid #2a2e3a; color: #e8edf4; border-radius: 10px; padding: 8px 10px; font-weight: 800;
}
.dl-pbtn { font-size: 11px; letter-spacing: .04em; }
.dl-pbtn.on, .dl-mode.on, .dl-mod.on, .dl-pill.on {
  border-color: var(--red); box-shadow: 0 0 0 1px var(--red), 0 0 16px rgba(225,6,0,.28); background: #1a1012;
}
.dl-modes, .dl-mods { display: grid; gap: 6px; margin-bottom: 16px; }
.dl-mode, .dl-mod { text-align: left; display: flex; align-items: center; gap: 10px; }
.dl-ico { width: 22px; text-align: center; flex-shrink: 0; font-size: 14px; }
.dl-mode span, .dl-mod span, .dl-sel span { display: block; color: #8b93a7; font-size: 11px; font-weight: 600; }
.dl-mod.off { opacity: .4; }
.dl-switch { width: 32px; height: 18px; border-radius: 99px; background: #2a2e3a; position: relative; flex-shrink: 0; margin-left: auto; }
.dl-switch::after { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 99px; background: #fff; top: 2px; left: 2px; }
.dl-mod.on .dl-switch { background: var(--red); }
.dl-mod.on .dl-switch::after { left: 16px; }
.dl-cases-col { min-height: 0; }
.dl-case-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; flex-shrink: 0; }
.dl-search-wrap {
  flex: 1 1 220px; display: flex; align-items: center; gap: 8px;
  background: #101218; border: 1px solid #2a2e3a; border-radius: 10px; padding: 0 12px; color: #8b93a7;
}
.dl-search { width: 100%; background: transparent; border: 0; padding: 10px 0; margin: 0; }
.dl-seg { display: flex; gap: 4px; background: #101218; border: 1px solid #2a2e3a; border-radius: 999px; padding: 4px; }
.dl-pill { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; padding: 6px 10px; border: 0; background: transparent; }
.dl-pill.on { background: var(--red); border-color: transparent; box-shadow: none; color: #fff; }
.dl-pill.dir { min-width: 76px; }
.dl-case-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px; overflow: auto; flex: 1; min-height: 0; align-content: start; padding-right: 4px;
}
.dl-empty { grid-column: 1 / -1; }
.dl-case {
  background: #14161d; border: 1px solid #232632; border-radius: 14px; padding: 12px 10px 10px;
  display: grid; gap: 6px; justify-items: stretch; transition: border-color .15s, transform .15s;
}
.dl-case:hover { border-color: #3a4050; transform: translateY(-1px); }
.dl-case.in { border-color: var(--red); }
.dl-case-art {
  height: 92px; display: grid; place-items: center; border-radius: 10px;
  background: radial-gradient(circle at 50% 42%, rgba(225,6,0,.16), transparent 64%), #0e1016;
}
.dl-case-art img { width: 64px; height: 64px; image-rendering: pixelated; filter: drop-shadow(0 8px 12px rgba(0,0,0,.45)); }
.dl-case h3 { margin: 2px 0 0; font-size: 12px; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.dl-price { color: #3ee0a0; font-weight: 800; font-style: normal; text-align: center; font-size: 14px; }
.dl-case small { text-align: center; color: #6b7280; font-size: 11px; }
.dl-add { width: 100%; background: var(--red); border: 0; color: #fff; border-radius: 8px; font-weight: 800; padding: 9px 8px; letter-spacing: .06em; }
.dl-drops-btn { background: none; border: 0; color: #8b93a7; font-size: 11px; font-weight: 700; padding: 2px; }
.dl-drops-btn:hover { color: #e8edf4; }
.dl-drops { list-style: none; margin: 0; padding: 6px 0 0; width: 100%; display: grid; gap: 4px; }
.dl-drops li { display: grid; grid-template-columns: 18px 1fr auto; gap: 6px; align-items: center; font-size: 11px; }
.dl-drops li em { font-style: normal; color: #22c55e; font-weight: 700; }
.dl-drops li.tier-gold span { color: #f0c14b; font-weight: 800; }
.dl-drops li.tier-pink span { color: #f472b6; font-weight: 800; }
.dl-drops li.tier-cyan span { color: #67e8f9; font-weight: 800; }
.dl-drops li.tier-purple span { color: #c084fc; font-weight: 800; }
.dl-drop.r-cyan .dl-drop-edge { background: #22d3ee; }
.sr-item.r-cyan .sr-bar { background: #22d3ee; }
.dl-drops img { width: 18px; height: 18px; }
.dl-sel-col {
  background: #12141a; border: 1px solid #232632; border-radius: 16px; padding: 0;
  display: flex; flex-direction: column; min-height: 0; overflow: hidden;
}
.dl-sel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 14px 14px 10px; flex-shrink: 0;
}
.dl-sel-head span { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: #e8edf4; text-transform: uppercase; }
.dl-sel-clear {
  background: none; border: 0; color: #ff5d7a; font-size: 11px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; padding: 0;
}
.dl-sel-clear:hover { color: #ff8fa8; }
.dl-sel-list {
  display: grid; gap: 6px; overflow: auto; flex: 1; min-height: 0;
  padding: 0 10px 10px; align-content: start;
}
.dl-sel-list.cards { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 8px; }
.dl-sel-empty { margin: 0; padding: 16px 6px; color: #6b7280; font-size: 12px; line-height: 1.45; text-align: center; }
.dl-sel {
  display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  background: #171922; border: 1px solid #262a36; border-radius: 12px; padding: 9px 10px; position: relative;
}
.dl-sel-qty {
  position: absolute; top: 7px; left: 8px; z-index: 1;
  background: #232632; color: #fff; font-size: 10px; font-weight: 800;
  padding: 2px 6px; border-radius: 999px; line-height: 1.2; letter-spacing: .02em;
}
.dl-sel-list.cards .dl-sel {
  grid-template-columns: 1fr; grid-template-rows: auto auto auto; justify-items: center; text-align: center;
  padding: 14px 10px 12px; position: relative; min-height: 112px;
}
.dl-sel img { width: 34px; height: 34px; image-rendering: pixelated; flex-shrink: 0; }
.dl-sel-list.cards .dl-sel img { width: 52px; height: 52px; margin-top: 8px; }
.dl-sel-copy { min-width: 0; }
.dl-sel-copy b { display: block; font-size: 12px; font-weight: 800; color: #fff; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-sel-count { color: #8b93a7; font-weight: 700; }
.dl-sel-copy em { display: block; margin-top: 2px; font-style: normal; font-size: 11px; color: #8b93a7; font-weight: 700; }
.dl-sel-list.cards .dl-sel-copy { width: 100%; }
.dl-sel-list.cards .dl-sel-copy b { display: none; }
.dl-sel-list.cards .dl-sel-copy em { color: #22ff66; font-size: 18px; font-weight: 800; letter-spacing: -.02em; margin-top: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.dl-sel-x {
  background: none; border: 0; color: #8b93a7; font-size: 14px; line-height: 1; padding: 2px 4px;
}
.dl-sel-list.cards .dl-sel-x {
  position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 99px;
  background: rgba(255,93,122,.12); color: #ff5d7a; display: grid; place-items: center; font-size: 12px;
}
.dl-sel-x:hover { color: #fff; }
.dl-sel-foot {
  margin-top: auto; flex-shrink: 0; border-top: 1px solid #232632;
  padding: 12px; display: grid; gap: 12px; background: #101218; border-radius: 0 0 16px 16px;
}
.dl-fast {
  width: 100%; background: #171922; border: 1px solid #262a36; color: #e8edf4; border-radius: 12px;
  padding: 10px 12px; display: flex; align-items: center; gap: 10px; text-align: left;
}
.dl-fast.on { border-color: #3a4050; }
.dl-fast.on .dl-switch { background: #fff; }
.dl-fast.on .dl-switch::after { background: #12141a; left: 16px; }
.dl-fast-ico { font-size: 16px; flex-shrink: 0; }
.dl-fast strong { display: block; font-size: 12px; letter-spacing: .06em; }
.dl-fast span { display: block; color: #8b93a7; font-size: 11px; font-weight: 600; margin-top: 2px; }
.dl-total {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
}
.dl-total span { color: #8b93a7; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.dl-total strong { color: #fff; font-size: 24px; font-weight: 800; letter-spacing: -.02em; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.dl-create-btn {
  width: 100%; background: #22c55e; color: #fff; border: 0; border-radius: 12px;
  padding: 14px 12px; font-weight: 800; letter-spacing: .08em; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 8px 24px rgba(34,197,94,.22);
}
.dl-create-btn:hover:not(:disabled) { background: #2dd66f; }
.dl-create-btn:disabled { opacity: .35; box-shadow: none; }
.dl-create-ico { font-size: 15px; }
.dl-cost { color: #8b93a7; margin: 8px 0; font-size: 12px; }
.dl-cost b { color: #3ee0a0; }
.sr-case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.sr-case { background: #14161d; border: 1px solid #232632; border-radius: 10px; padding: 10px; display: grid; gap: 6px; justify-items: center; color: inherit; }
.sr-case img { width: 48px; height: 48px; image-rendering: pixelated; }
.sr-picked-list { display: flex; flex-wrap: wrap; gap: 6px; }
.sr-picked { display: flex; gap: 6px; align-items: center; background: #171922; border-radius: 8px; padding: 6px 8px; }
.sr-picked img { width: 22px; height: 22px; image-rendering: pixelated; }
.sr-picked button { background: none; border: 0; color: #8b93a7; }
.sr-create-cost { display: flex; gap: 12px; align-items: center; }
.sr-room-bar { background: #14161d; border: 1px solid #232632; border-radius: 12px; padding: 10px 12px; }
.sr-round strong { font-size: 20px; }
.sr-badge { color: #ff5d7a; font-weight: 800; letter-spacing: .08em; }
.sr-case-line { display: flex; gap: 8px; }
.sr-case-dot { opacity: .35; }
.sr-case-dot img { width: 32px; height: 32px; image-rendering: pixelated; }
.sr-case-dot.done, .sr-case-dot.now { opacity: 1; }
.sr-case-dot.now { outline: 2px solid #3ee0a0; border-radius: 8px; }
.sr-slots { display: grid; grid-template-columns: repeat(var(--seats, 2), minmax(0, 1fr)); gap: 10px; align-items: stretch; min-height: 0; height: 100%; }
.sr-slot { background: #14161d; border: 1px solid #232632; border-radius: 12px; padding: 10px; position: relative; min-height: 0; }
.sr-slot.winner { border-color: #3ee0a0; }
.sr-slot.empty { display: grid; place-items: center; gap: 8px; text-align: center; }
.sr-num { position: absolute; left: 10px; top: 8px; color: #5b6273; font-weight: 800; }
.sr-slot-head { display: flex; gap: 8px; align-items: center; margin: 12px 0 10px; }
.sr-slot-head em { margin-left: auto; font-style: normal; font-weight: 800; color: #3ee0a0; }
.sr-slot-head small { display: block; color: #8b93a7; }
/* Vertical case-battle item reel (per seat) */
.sr-reel {
  position: relative; overflow: hidden; border-radius: 10px; background: #0c0d11;
  border: 1px solid #1c1e26;
}
.sr-reel-v {
  height: 220px;
}
.sr-reel-v::before,
.sr-reel-v::after {
  content: ""; position: absolute; left: 0; right: 0; z-index: 3; pointer-events: none; height: 42%;
}
.sr-reel-v::before {
  top: 0;
  background: linear-gradient(to bottom, rgba(12, 13, 17, .96) 8%, rgba(12, 13, 17, .55) 55%, transparent);
}
.sr-reel-v::after {
  bottom: 0;
  background: linear-gradient(to top, rgba(12, 13, 17, .96) 8%, rgba(12, 13, 17, .55) 55%, transparent);
}
.sr-reel-v .sr-reel-track {
  display: flex; flex-direction: column; gap: 6px; padding: 8px;
  width: 100%; height: max-content; position: relative; will-change: transform;
}
.sr-reel-v.spin .sr-reel-track { animation: sr-spin-y var(--ms) cubic-bezier(.12, .72, .08, 1) forwards; }
.sr-reel-v.landed .sr-reel-track { transform: translateY(var(--land, 0px)); }
@keyframes sr-spin-y {
  from { transform: translateY(0); }
  to { transform: translateY(var(--land, 0px)); }
}
.sr-hline {
  position: absolute; left: 0; right: 0; top: 50%; height: 2px; z-index: 5;
  transform: translateY(-50%); pointer-events: none;
  background: var(--red);
  box-shadow: 0 0 6px var(--red), 0 0 14px rgba(225, 6, 0, .65), 0 0 22px rgba(225, 6, 0, .35);
}
.sr-hline::before,
.sr-hline::after {
  content: ""; position: absolute; top: 50%; width: 0; height: 0;
  border-top: 5px solid transparent; border-bottom: 5px solid transparent;
  transform: translateY(-50%);
}
.sr-hline::before {
  left: 0; border-left: 7px solid var(--red);
  filter: drop-shadow(0 0 4px var(--red));
}
.sr-hline::after {
  right: 0; border-right: 7px solid var(--red);
  filter: drop-shadow(0 0 4px var(--red));
}
.sr-item {
  width: 100%; min-width: 0; height: 76px; border-radius: 8px; background: #151821;
  display: grid; justify-items: center; align-content: center; gap: 2px; position: relative; overflow: hidden;
  border: 1px solid #2a2e3a;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.sr-reel-v .sr-item img { width: 40px; height: 40px; image-rendering: pixelated; }
.sr-item-name {
  font-size: 10px; text-align: center; max-width: 92%; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; color: #9aa3b5;
}
.sr-item strong { font-size: 11px; color: #d5dbe6; }
.sr-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #3a4050; }
.sr-item.r-blue .sr-bar { background: #4aa3ff; }
.sr-item.r-purple .sr-bar { background: #a855f7; }
.sr-item.r-pink .sr-bar { background: #ec4899; }
.sr-item.r-red .sr-bar { background: #ef4444; }
.sr-item.r-gold .sr-bar { background: #f0c14b; }
.sr-item.win-tile {
  border-color: rgba(225, 6, 0, .55);
  box-shadow: 0 0 0 1px rgba(225, 6, 0, .35), 0 0 18px rgba(225, 6, 0, .28);
  background: #1c202c; z-index: 1;
}
.sr-item.win-tile strong { color: #fff; }
/* Jackpot stays horizontal */
.jp-wrap { position: relative; background: #14161d; border: 1px solid #232632; border-radius: 12px; padding: 0; overflow: hidden; }
.jp-reel { height: 118px; }
.jp-reel .sr-reel-track {
  display: flex; flex-direction: row; gap: 8px; padding: 4px 8px;
  width: max-content; height: auto; position: relative; will-change: transform;
}
.jp-reel.spin .sr-reel-track { animation: sr-spin-x var(--ms) cubic-bezier(.12, .72, .08, 1) forwards; }
.jp-reel.landed .sr-reel-track { transform: translateX(var(--land, 0px)); }
@keyframes sr-spin-x {
  from { transform: translateX(0); }
  to { transform: translateX(var(--land, 0px)); }
}
.jp-bar {
  position: absolute; left: 50%; top: 4px; bottom: 4px; width: 1px;
  background: var(--red); transform: translateX(-50%); z-index: 4; pointer-events: none;
  box-shadow: 0 0 4px var(--red);
}
.sr-mark {
  position: absolute; left: 50%; width: 0; height: 0;
  border-left: 7px solid transparent; border-right: 7px solid transparent;
  transform: translateX(-50%); z-index: 2;
}
.sr-mark.top { top: 0; border-top: 8px solid var(--red); }
.sr-mark.bot { bottom: 0; border-bottom: 8px solid var(--red); }
.jp-reel .sr-mark { border-left-width: 4px; border-right-width: 4px; }
.jp-reel .sr-mark.top { top: 0; border-top-width: 5px; border-top-color: var(--red); }
.jp-reel .sr-mark.bot { bottom: 0; border-bottom-width: 5px; border-bottom-color: var(--red); }
.jp-tile {
  width: 120px; min-width: 120px; height: 110px; border-radius: 10px; background: #1a1d27;
  display: grid; justify-items: center; align-content: center; gap: 4px; border: 1px solid #2a2e3a;
  opacity: 1; transform: none;
}
.jp-tile em { color: #f0c14b; font-style: normal; font-weight: 800; }
.jp-tile.win-tile { border-color: var(--red); box-shadow: 0 0 0 2px var(--red), 0 0 16px rgba(225,6,0,.35); }
.sr-item.current { outline: 2px solid #fff; }
.sr-item.big { width: 100%; min-width: 0; height: 120px; }
.sr-item.big img { width: 56px; height: 56px; }
.sr-outcome { text-align: center; margin-top: 10px; font-size: 28px; font-weight: 800; }
.sr-outcome.win { color: #3ee0a0; }
.sr-outcome.lose { color: #ff5d7a; }
.sr-outcome strong { display: block; font-size: 16px; }

/* Ended battle: summary grid + detailed drop columns */
.br-ended {
  display: flex; flex-direction: column; gap: 14px;
  flex: 1; min-height: 0; overflow: auto;
  padding-bottom: 4px;
}
.br-amt {
  display: inline-flex; align-items: center; gap: 4px;
  font-weight: 800; color: #e8edf4;
}
.br-amt::before { content: "◆"; color: #c084fc; font-size: .85em; line-height: 1; }
.br-summary {
  position: relative;
  flex-shrink: 0;
}
.br-summary-team {
  display: grid;
  grid-template-rows: repeat(var(--team-count, 2), minmax(120px, 1fr));
  gap: 8px;
}
.br-sum-row {
  display: grid;
  grid-template-columns: repeat(var(--mates, 2), minmax(0, 1fr));
  gap: 8px;
}
.br-summary-flat {
  display: grid;
  grid-template-columns: repeat(var(--seats, 2), minmax(0, 1fr));
  gap: 8px;
}
.br-sum-cell {
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 12px; min-height: 130px; padding: 14px 16px;
  border-radius: 14px; border: 1px solid #2a2e3a;
  background: rgba(20, 22, 29, .92);
}
.br-sum-cell.win,
.br-sum-row.win .br-sum-cell {
  background: linear-gradient(180deg, rgba(14, 42, 28, .95), rgba(10, 28, 20, .92));
  border-color: rgba(31, 107, 69, .75);
}
.br-sum-cell.lose,
.br-sum-row.lose .br-sum-cell {
  background: linear-gradient(180deg, rgba(48, 14, 18, .95), rgba(28, 10, 14, .92));
  border-color: rgba(107, 31, 31, .75);
}
.br-sum-head {
  display: flex; align-items: center; gap: 10px; min-width: 0;
}
.br-sum-head .sr-ava { width: 36px; height: 36px; flex-shrink: 0; }
.br-sum-meta { min-width: 0; display: grid; gap: 2px; }
.br-sum-meta strong {
  font-size: 14px; font-weight: 800; color: #e8edf4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.br-sum-meta .br-amt { font-size: 13px; }
.br-sum-mid {
  display: grid; justify-items: center; text-align: center; gap: 4px;
  flex: 1; align-content: center;
}
.br-sum-mid .br-verdict {
  font-size: clamp(22px, 3.2vw, 34px); font-weight: 900;
  letter-spacing: .14em; line-height: 1;
}
.br-sum-cell.win .br-verdict,
.br-sum-row.win .br-verdict { color: #3ee0a0; }
.br-sum-cell.lose .br-verdict,
.br-sum-row.lose .br-verdict { color: #ff5d7a; }
.br-payout {
  font-size: 15px; font-weight: 800; color: #d5dbe6;
}
.br-stat-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #7a8499;
  line-height: 1.2;
}
.br-sum-meta .br-stat-label { margin-top: 1px; }
.sr-outcome .br-stat-label {
  margin-top: 2px;
  font-size: 11px;
  letter-spacing: .1em;
}
.br-vs {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3; pointer-events: none;
  width: 44px; height: 44px; border-radius: 99px;
  display: grid; place-items: center;
  background: #12141a; border: 1px solid #2a2e3a;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .45);
  font-size: 18px; color: #cfd6e4;
}
.br-details {
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
  gap: 0;
  flex: 1; min-height: 0;
  background: rgba(0, 0, 0, .55);
  border: 1px solid rgba(35, 38, 50, .9);
  border-radius: 16px;
  backdrop-filter: blur(6px);
  overflow: hidden;
}
.br-detail-col {
  display: flex; flex-direction: column; gap: 10px;
  min-width: 0; min-height: 0;
  padding: 14px 12px 16px;
  border-right: 1px solid rgba(255, 255, 255, .06);
}
.br-detail-col:last-child { border-right: 0; }
.br-detail-head {
  display: flex; align-items: center; gap: 10px; min-width: 0;
}
.br-detail-head .sr-ava { width: 34px; height: 34px; flex-shrink: 0; }
.br-detail-meta { min-width: 0; display: grid; gap: 2px; }
.br-detail-meta strong {
  font-size: 13px; font-weight: 800;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.br-detail-meta .br-amt { font-size: 12px; }
.br-detail-col > .br-verdict {
  font-size: 13px; font-weight: 900; letter-spacing: .16em;
}
.br-detail-col > .br-verdict.win { color: #3ee0a0; }
.br-detail-col > .br-verdict.lose { color: #ff5d7a; }
.br-items {
  display: flex; flex-direction: column; gap: 6px;
  flex: 1; min-height: 0; overflow: auto;
}
.br-item {
  display: grid; grid-template-columns: 32px 1fr; gap: 8px; align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(12, 13, 17, .72);
  border: 1px solid rgba(42, 46, 58, .85);
}
.br-item img { width: 28px; height: 28px; image-rendering: pixelated; }
.br-item-body { min-width: 0; display: grid; gap: 2px; }
.br-item-body span {
  font-size: 12px; color: #cfd6e4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.br-item-body .br-amt { font-size: 12px; }
.br-item.r-blue { border-left: 3px solid #4aa3ff; }
.br-item.r-purple { border-left: 3px solid #a855f7; }
.br-item.r-pink { border-left: 3px solid #ec4899; }
.br-item.r-red { border-left: 3px solid #ef4444; }
.br-item.r-gold { border-left: 3px solid #f0c14b; }
.br-item.r-gray { border-left: 3px solid #6b7280; }

@media (max-width: 980px) {
  .topbar { grid-template-columns: auto 1fr auto; gap: 8px; padding: 8px 10px; }
  .top-left { gap: 6px; }
  .top-center { min-width: 0; }
  .top-right { gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
  .nav-toggle { display: inline-flex; }
  .top-nav {
    display: none;
    position: absolute;
    left: 10px;
    right: 10px;
    top: 56px;
    flex-direction: column;
    border-radius: 14px;
    padding: 8px;
    z-index: 40;
    background: #120808;
  }
  .top-nav.open { display: flex; }
  .nav-games { width: 100%; }
  .games-menu-btn { width: 100%; justify-content: center; }
  .games-dropdown { left: 0; right: 0; min-width: 0; }
  .shell { grid-template-columns: 1fr; }
  .shell.chat-open { grid-template-columns: 1fr; }
  .stage { padding: 10px; }
  .chat-rail {
    display: none;
    position: fixed;
    inset: 0 auto 0 0;
    width: min(320px, 92vw);
    z-index: 30;
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    top: 0;
    overflow: hidden;
    box-shadow: 8px 0 32px rgba(0,0,0,.45);
  }
  .shell.chat-open .chat-rail,
  .chat-rail.open { display: flex; flex-direction: column; }
  .chat-log {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .chat-open-btn { display: inline-flex; }

  /* Let the main page scroll on phones — desktop game fits use overflow:hidden */
  .stage:has(#game-view.stake-fit:not(.hidden)),
  .stage:has(#game-view.battles-fit:not(.hidden)),
  .stage:has(#game-view.mines-fit:not(.hidden)) {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  #game-view.stake-fit,
  #game-view.battles-fit,
  #game-view.mines-fit {
    max-height: none;
    height: auto;
    overflow: visible;
  }
  #game-view.battles-fit .board-panel,
  #game-view.stake-fit .board-panel {
    overflow: visible;
    height: auto;
  }

  .games-grid, .game-layout, .profile-grid, .stat-row, .home-steps, .home-featured, .featured-games, .fx-desk, .sr-fmt, .dl-create-grid { grid-template-columns: 1fr; }

  /* Beat desktop limbo/crash 280px sidebar specificity */
  #game-view.stake-fit .game-layout,
  #game-view.stake-fit.limbo-fit .game-layout,
  #game-view.stake-fit.crash-fit .game-layout,
  #game-view.stake-fit.roulette-fit .game-layout,
  #game-view.mines-fit .game-layout,
  #game-view.battles-fit .game-layout,
  #game-view.crash-fit .game-layout {
    grid-template-columns: 1fr !important;
    height: auto;
    max-height: none;
    min-height: 0;
    gap: 10px;
  }

  /* Crash — chart first, capped heights, no nested blob panels */
  #game-view.crash-fit .game-layout {
    display: flex;
    flex-direction: column;
  }
  #game-view.crash-fit .board-panel {
    order: -1;
  }
  #game-view.crash-fit.limbo-fit .bet-panel,
  #game-view.crash-fit.limbo-fit .board-panel,
  #game-view.crash-fit .bet-panel,
  #game-view.crash-fit .board-panel.crash-board {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  #game-view.crash-fit .board-panel.crash-board {
    min-height: 0 !important;
  }
  .crash-wrap {
    height: auto;
    gap: 8px;
  }
  .crash-history {
    padding: 8px;
    min-height: 40px;
    border-radius: 10px;
  }
  .crash-stage {
    min-height: min(42vh, 260px) !important;
    border-radius: 12px;
  }
  .crash-mult {
    font-size: clamp(40px, 14vw, 72px);
  }
  .crash-boom-text {
    font-size: clamp(24px, 8vw, 40px);
  }
  .crash-wait-clock {
    font-size: clamp(28px, 10vw, 44px);
  }
  .crash-players-card {
    min-height: 0;
    max-height: 160px;
    flex: 0 0 auto;
  }
  .crash-panel {
    padding: 12px;
    border-radius: 12px;
  }
  .crash-bet-row {
    flex-wrap: wrap;
  }
  .crash-bet-steps {
    width: 100%;
    border-top: 1px solid #3a1518;
  }
  .crash-bet-steps button {
    flex: 1;
    border-left: 0;
    border-right: 1px solid #3a1518;
    padding: 10px 6px;
  }
  .crash-bet-steps button:last-child { border-right: 0; }
  .crash-fair {
    left: 8px;
    bottom: 8px;
    right: 8px;
    max-width: none;
    font-size: 10px;
  }
  .crash-fair-hash { max-width: 46vw; }

  .limbo-foot { grid-template-columns: 1fr; }
  .dice-foot { grid-template-columns: 1fr; }
  .limbo-stage { min-height: 200px; }
  .limbo-result { font-size: clamp(40px, 14vw, 64px); }
  .keno-grid { grid-template-columns: repeat(5, 1fr); max-width: 420px; }

  /* Roulette */
  .rl-stake { padding: 12px 10px 14px; gap: 12px; }
  .rl-table { grid-template-columns: 32px minmax(0, 1fr) 40px; }
  .rl-num { font-size: 11px; min-height: 28px; }
  .rl-out { font-size: 11px; padding: 10px 4px; min-height: 36px; }
  .rl-wheel-frame { width: min(220px, 70vw); }
  .rl-footer { gap: 8px; }
  .verify-extras { grid-template-columns: 1fr; }

  /* Battles — 2-col seats, shorter reels, compact lobby rows */
  #game-view.battles-fit {
    max-height: none;
    overflow: visible;
  }
  #game-view.battles-fit .sr-wrap.sr-room,
  #game-view.battles-fit .board-panel > .sr-wrap {
    height: auto;
    min-height: 0;
    overflow: visible;
  }
  #game-view.battles-fit .sr-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    height: auto;
    gap: 8px;
  }
  #game-view.battles-fit .dl-team-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex: 0 0 auto;
    min-height: 0;
    height: auto;
    gap: 8px;
  }
  #game-view.battles-fit .sr-reel-v,
  #game-view.battles-fit .sr-slot.dl-col-seat > .sr-reel.sr-reel-v {
    height: 150px !important;
    min-height: 130px !important;
    max-height: 160px !important;
    flex: 0 0 auto;
  }
  #game-view.battles-fit .dl-drop-stack {
    max-height: 120px;
    overflow: auto;
  }
  #game-view.battles-fit .dl-create,
  #game-view.battles-fit .dl-create-grid {
    height: auto;
    min-height: 0;
  }
  #game-view.battles-fit .dl-case-grid {
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    max-height: 42vh;
    overflow: auto;
  }
  .sr-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 8px 10px;
    align-items: center;
  }
  .dl-live {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
  }
  .dl-track { grid-column: 1 / -1; }

  #authed-wallet .wallet-btn { padding: 0 10px; font-size: 13px; }
  #authed-wallet .balance-pill { padding: 0 10px; font-size: 13px; }
  .wallet-tab { padding: 7px 10px; font-size: 12px; }
  .profile-pill span { display: none; }

  .showcase-row--hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .showcase-row--squares { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .showcase-tile.featured { grid-column: span 1; aspect-ratio: 1; min-height: 0; }
  .home-hero { flex-direction: column; text-align: center; }
  .home-hero .lede { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-steve { height: clamp(140px, 40vw, 200px); }
  .hero-logo { max-width: min(260px, 70vw); height: auto; }
  .brand-logo { height: 32px; max-width: min(160px, 42vw); }
}

@media (max-width: 720px) {
  .showcase-row--hero { grid-template-columns: 1fr; }
  .showcase-row--squares { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .br-summary-team { grid-template-rows: none; }
  .br-sum-row { grid-template-columns: 1fr 1fr; }
  .br-summary-flat { grid-template-columns: 1fr 1fr; }
  .br-details {
    grid-template-columns: 1fr;
  }
  .br-detail-col {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
  }
  .br-detail-col:last-child { border-bottom: 0; }
  .br-vs { width: 36px; height: 36px; font-size: 15px; }

  /* Single-column battles on very small phones */
  #game-view.battles-fit .sr-slots,
  #game-view.battles-fit .dl-team-row {
    grid-template-columns: 1fr !important;
  }
  #game-view.battles-fit .sr-reel-v,
  #game-view.battles-fit .sr-slot.dl-col-seat > .sr-reel.sr-reel-v {
    height: 140px !important;
    max-height: 150px !important;
  }
  .crash-stage {
    min-height: min(38vh, 220px) !important;
  }
}

.sr-history { display: grid; gap: 10px; }
.sr-hist { background: #14161d; border: 1px solid #232632; border-radius: 12px; padding: 10px; }
.sr-hist-user { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.sr-hist-user strong { margin-left: auto; color: #3ee0a0; }
.sr-hist-items { display: flex; gap: 8px; overflow: auto; }
.sr-waiting { height: 118px; display: grid; place-items: center; color: #8b93a7; background: #0c0d11; border-radius: 10px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
