/* ============================================================
   FastKeno — Atlas-V exact replica
   ============================================================ */

:root {
  --bg0: #0a0a10;
  --bg1: #111118;
  --bg2: #18181f;
  --bg3: #1f1f28;
  --bg4: #282832;
  --green: #00e676;
  --green-dim: #00c853;
  --green-dark: #00802e;
  --green-glow: rgba(0, 230, 118, 0.35);
  --gold: #ffd600;
  --gold-glow: rgba(255, 214, 0, 0.4);
  --red: #ff1744;
  --red-dim: rgba(255, 23, 68, 0.25);
  --cyan: #00e5ff;
  --line: #222230;
  --line-bright: #333345;
  --text: #e0e0e8;
  --text-dim: #888898;
  --text-mute: #505060;
  --radius: 8px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "SF Mono", Menlo, Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html, body {
  background: var(--bg0);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
  overscroll-behavior: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}

/* ===== TOP BAR ===== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: var(--bg1);
  border-bottom: 1px solid var(--line);
  min-height: 46px;
  flex-shrink: 0;
}
.topbar-left { display: flex; align-items: center; }
.logo {
  font-size: 9px; line-height: 1.1;
  color: var(--green); letter-spacing: 2px;
  text-transform: uppercase;
}
.logo strong { font-size: 15px; color: #fff; display: block; letter-spacing: 3px; }
.topbar-center { display: flex; gap: 10px; align-items: center; }
.timer-pill {
  display: flex; align-items: center; gap: 5px;
  background: var(--bg3); border-radius: 12px;
  padding: 3px 10px;
  font-family: var(--mono); font-size: 12px;
  color: var(--green); font-weight: 700;
}
.timer-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  animation: blink 1s infinite;
}
@keyframes blink { 50% { opacity: 0.3; } }
.game-id { font-size: 10px; color: var(--text-mute); font-family: var(--mono); }

/* Phase label in timer */
.phase-label {
  font-size: 8px; letter-spacing: 1.5px;
  text-transform: uppercase; opacity: 0.8;
}

/* Timer urgency: last 10 seconds */
.timer-pill.urgent { color: var(--red); }
.timer-pill.urgent .timer-dot { background: var(--red); animation: blink 0.3s infinite; }
.timer-pill.urgent .phase-label { color: var(--red); }

/* Timer during draw */
.timer-pill.drawing { color: var(--gold); }
.timer-pill.drawing .timer-dot { background: var(--gold); }
.timer-pill.drawing .phase-label { color: var(--gold); }

/* Timer during results */
.timer-pill.results { color: var(--cyan); }
.timer-pill.results .timer-dot { background: var(--cyan); }
.timer-pill.results .phase-label { color: var(--cyan); }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.demo-badge {
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  padding: 3px 8px;
  border-radius: 4px;
}
.balance-box {
  background: linear-gradient(135deg, var(--bg3), var(--bg4));
  padding: 5px 12px; border-radius: 6px;
  font-family: var(--mono); font-size: 14px;
  font-weight: 800; color: var(--green);
  border: 1px solid var(--line-bright);
}
.balance-box small { color: var(--text-mute); font-size: 10px; margin-left: 4px; }

/* ===== GAME AREA ===== */
.game-area {
  flex: 1;
  padding: 6px 8px 16px;
  display: flex; flex-direction: column;
  gap: 6px;
  /* Ensure content doesn't hide behind tab bar */
  padding-bottom: 60px;
}

/* ===== CHOOSE SECTION ===== */
.choose-section { padding: 4px 0; }
.choose-header {
  display: flex; align-items: center; gap: 10px;
}
.choose-ball {
  width: 38px; height: 38px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #4cff91, #00802e);
  border: 2px solid var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 900; color: #fff;
  box-shadow: 0 0 14px var(--green-glow);
  flex-shrink: 0;
}
.choose-text { font-size: 13px; color: var(--text); line-height: 1.3; flex: 1; }
.choose-sub { font-size: 11px; color: var(--text-mute); }
.possible-win {
  text-align: right; flex-shrink: 0;
}
.possible-win small { display: block; font-size: 8px; color: var(--text-mute); letter-spacing: 1px; text-transform: uppercase; }
.possible-win span {
  font-family: var(--mono); font-size: 14px; font-weight: 800;
  color: var(--gold);
}

/* ===== DRAW SCREEN ===== */
.draw-screen {
  position: relative;
  background: radial-gradient(ellipse at center, #0d1a0d 0%, var(--bg0) 70%);
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 16px 8px;
  display: flex; flex-direction: column;
  align-items: center; gap: 12px;
  min-height: 200px;
  overflow: hidden;
}
.draw-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}
.draw-center {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
}

/* Ring progress around the ball */
.draw-ring {
  position: relative;
  width: 96px; height: 96px;
}
.ring-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.ring-bg {
  fill: none; stroke: var(--line); stroke-width: 3;
}
.ring-progress {
  fill: none; stroke: var(--green); stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 339.292;
  stroke-dashoffset: 339.292;
  transition: stroke-dashoffset 0.3s ease;
  filter: drop-shadow(0 0 6px var(--green-glow));
}

/* The ball itself */
.draw-ball {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 72px; height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4cff91 0%, #00c853 40%, #005520 100%);
  border: 3px solid var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 900; color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  box-shadow:
    0 0 30px var(--green-glow),
    0 0 60px rgba(0, 230, 118, 0.15),
    inset 0 -4px 12px rgba(0,0,0,0.3);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.draw-ball.hit-ball {
  background: radial-gradient(circle at 35% 30%, #ffe082 0%, #ffd600 40%, #c6a700 100%);
  border-color: var(--gold);
  box-shadow:
    0 0 30px var(--gold-glow),
    0 0 60px rgba(255, 214, 0, 0.2),
    inset 0 -4px 12px rgba(0,0,0,0.3);
}
.draw-ball.miss-ball {
  background: radial-gradient(circle at 35% 30%, #ff5252 0%, #d50000 50%, #7f0000 100%);
  border-color: var(--red);
  box-shadow:
    0 0 20px var(--red-dim),
    inset 0 -4px 12px rgba(0,0,0,0.3);
}
.draw-ball.pop {
  animation: ballPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes ballPop {
  0% { transform: translate(-50%,-50%) scale(0.3); opacity: 0; }
  60% { transform: translate(-50%,-50%) scale(1.2); opacity: 1; }
  100% { transform: translate(-50%,-50%) scale(1); }
}

.draw-counter {
  font-family: var(--mono); font-size: 11px;
  color: var(--text-mute); letter-spacing: 2px;
  font-weight: 700;
}

/* Drawn numbers trail */
.drawn-trail {
  position: relative; z-index: 2;
  display: flex; gap: 4px;
  flex-wrap: wrap; justify-content: center;
  max-width: 100%; padding: 0 4px;
}
.trail-ball {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; font-family: var(--mono);
  opacity: 0; animation: trailIn 0.3s ease forwards;
}
.trail-ball.normal {
  background: var(--bg3); color: var(--text-dim);
  border: 1px solid var(--line-bright);
}
.trail-ball.hit {
  background: linear-gradient(135deg, #ffd600, #ffab00);
  color: #000; border: 1px solid var(--gold);
  box-shadow: 0 0 8px var(--gold-glow);
}
@keyframes trailIn {
  from { opacity: 0; transform: scale(0.3) translateY(-10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Hit counter */
.hit-counter {
  position: relative; z-index: 2;
  font-family: var(--mono); font-size: 14px;
  font-weight: 800; color: var(--gold);
  letter-spacing: 1px;
  display: flex; align-items: center; gap: 6px;
}
.hit-icon { font-size: 16px; }

/* ===== NUMBER GRID ===== */
.keno-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 3px;
}
.keno-num {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--bg2);
  color: var(--text-dim);
  font-size: 13px; font-weight: 600;
  font-family: var(--mono);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.12s;
  position: relative; outline: none;
}
.keno-num:active { transform: scale(0.9); }

/* Selected */
.keno-num.selected {
  background: var(--green);
  color: #fff; font-weight: 800;
  border-color: var(--green);
  box-shadow: 0 0 10px var(--green-glow);
}

/* Hit — gold */
.keno-num.hit {
  background: linear-gradient(135deg, #ffd600, #ff6d00);
  color: #000; font-weight: 900;
  border-color: var(--gold);
  box-shadow: 0 0 14px var(--gold-glow);
  animation: cellHit 0.4s ease;
}
@keyframes cellHit {
  0% { transform: scale(1); }
  40% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* Drawn not selected */
.keno-num.drawn {
  background: var(--red-dim);
  color: var(--red);
  border-color: rgba(255, 23, 68, 0.3);
}

/* Selected but not drawn (miss) */
.keno-num.miss {
  background: rgba(255, 23, 68, 0.35);
  color: #ff8a80;
  border-color: rgba(255, 23, 68, 0.4);
}

/* Revealing flash */
.keno-num.revealing {
  animation: cellFlash 0.3s ease;
}
@keyframes cellFlash {
  0% { transform: scale(0.7); filter: brightness(2); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); filter: brightness(1); }
}

/* Locked during draw */
.keno-grid.locked .keno-num {
  pointer-events: none;
  cursor: default;
}

/* ===== BET SECTION ===== */
.bet-section {
  display: flex; flex-direction: column; gap: 6px;
  padding: 4px 0;
}
.stake-row {
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.stake-btn {
  width: 36px; height: 36px;
  border: 1px solid var(--line-bright);
  border-radius: 8px; background: var(--bg2);
  color: var(--text); font-size: 20px;
  cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: all 0.12s;
}
.stake-btn:active { transform: scale(0.9); }
.stake-value {
  min-width: 80px; text-align: center;
  font-family: var(--mono); font-size: 18px;
  font-weight: 800; color: #fff;
}
.stake-special {
  padding: 6px 12px;
  border: 1px solid var(--line-bright);
  border-radius: 8px; background: var(--bg2);
  color: var(--text-dim); font-size: 12px;
  font-weight: 700; cursor: pointer;
  transition: all 0.12s;
}
.stake-special:active { transform: scale(0.9); }

/* BET button */
.bet-btn {
  width: 100%; padding: 14px;
  border: none; border-radius: 10px;
  background: linear-gradient(180deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff; font-size: 18px;
  font-weight: 900; letter-spacing: 4px;
  cursor: pointer; text-transform: uppercase;
  box-shadow: 0 4px 20px var(--green-glow);
  transition: all 0.15s;
}
.bet-btn:active { transform: scale(0.97); }
.bet-btn:disabled {
  background: var(--bg3);
  color: var(--text-mute);
  box-shadow: none; cursor: default;
}
.bet-btn.free-bet {
  background: linear-gradient(180deg, var(--gold), #c6a700);
  color: #000;
  box-shadow: 0 4px 20px var(--gold-glow);
}
.bet-btn.placed {
  background: linear-gradient(180deg, var(--green-dark), #004d1a);
  color: var(--green);
  border: 2px solid var(--green);
  box-shadow: 0 4px 20px var(--green-glow);
  letter-spacing: 3px;
}

/* ===== TICKETS SECTION (real-time) ===== */
.tickets-section {
  border-top: 1px solid var(--line);
  padding-top: 8px;
  flex-shrink: 0;
}
.tickets-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 6px;
}
.tickets-label {
  font-size: 11px; font-weight: 800;
  color: var(--text-mute); letter-spacing: 2px;
}
.tickets-badge {
  font-size: 10px; font-weight: 700;
  background: var(--bg3); color: var(--text-dim);
  padding: 1px 8px; border-radius: 10px;
  font-family: var(--mono);
}
.tickets-phase {
  font-size: 9px; font-weight: 700;
  letter-spacing: 1px; color: var(--green);
  margin-left: auto; text-transform: uppercase;
}
.tickets-phase.drawing { color: var(--gold); }
.tickets-phase.results { color: var(--cyan); }

/* Ticket join animation */
.ticket-card.joining {
  animation: ticketJoin 0.4s ease;
}
@keyframes ticketJoin {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
.tickets-scroll {
  overflow-y: visible;
  display: flex; flex-direction: column; gap: 5px;
  padding-bottom: 8px;
}
.tickets-empty {
  text-align: center; color: var(--text-mute);
  font-size: 12px; padding: 16px 0;
}

/* Ticket card */
.ticket-card {
  background: var(--bg2);
  border-radius: 8px; padding: 8px 10px;
  border: 1px solid var(--line);
  transition: border-color 0.3s;
}
.ticket-card.mine {
  border-color: var(--green);
  background: linear-gradient(135deg, rgba(0,230,118,0.06), var(--bg2));
}
.ticket-card.tc-win { border-color: var(--gold); }
.ticket-card.tc-loss { border-color: rgba(255,23,68,0.3); }

.tc-head {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 6px; font-size: 11px;
}
.tc-player {
  font-family: var(--mono); font-weight: 700;
  color: var(--text-dim);
}
.tc-player.me { color: var(--green); }
.tc-stake {
  font-family: var(--mono); color: var(--text-mute);
  margin-left: auto;
}
.tc-status {
  font-weight: 800; font-size: 10px;
  padding: 2px 8px; border-radius: 4px;
  letter-spacing: 0.5px;
}
.tc-status.waiting {
  background: rgba(0, 229, 255, 0.1); color: var(--cyan);
}
.tc-status.win {
  background: rgba(0, 230, 118, 0.15); color: var(--green);
}
.tc-status.loss {
  background: var(--red-dim); color: var(--red);
}

/* Number circles row */
.tc-nums {
  display: flex; gap: 3px; flex-wrap: wrap;
}
.tc-n {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; font-family: var(--mono);
  transition: all 0.3s;
}
.tc-n.pick {
  background: var(--bg3); color: var(--text-dim);
  border: 1px solid var(--line-bright);
}
.tc-n.pick-hit {
  background: linear-gradient(135deg, #ffd600, #ff9100);
  color: #000; border: 1px solid var(--gold);
  box-shadow: 0 0 6px var(--gold-glow);
}
.tc-n.pick-miss {
  background: var(--red-dim);
  color: var(--red);
  border: 1px solid rgba(255,23,68,0.3);
}
.tc-n.empty {
  border: 1px dashed var(--line);
  color: var(--text-mute);
}

/* ===== TAB BAR ===== */
.tab-bar {
  display: flex;
  background: var(--bg1);
  border-top: 1px solid var(--line);
  flex-shrink: 0;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 50;
}
.tab {
  flex: 1; border: none; background: transparent;
  color: var(--text-mute); font-size: 9px;
  font-weight: 700; padding: 8px 2px 6px;
  cursor: pointer; display: flex;
  flex-direction: column; align-items: center;
  gap: 2px; white-space: nowrap;
  transition: color 0.15s;
}
.tab.active { color: var(--green); }
.tab-icon { font-size: 14px; }

/* ===== PANELS ===== */
.panel {
  flex: 1; overflow-y: auto;
  padding: 8px 10px 60px;
  background: var(--bg0);
}
.panel-tabs {
  display: flex; border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.ptab {
  flex: 1; border: none; background: transparent;
  color: var(--text-mute); font-size: 12px;
  font-weight: 600; padding: 8px;
  cursor: pointer; border-bottom: 2px solid transparent;
}
.ptab.active { color: var(--green); border-bottom-color: var(--green); }

.panel-list { display: flex; flex-direction: column; gap: 5px; }
.empty-msg { text-align: center; color: var(--text-mute); padding: 30px 10px; font-size: 12px; }

/* History ticket items */
.hist-item {
  background: var(--bg2); border-radius: 8px;
  padding: 8px 10px; border: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
}
.hist-nums { font-family: var(--mono); font-size: 11px; color: var(--text-dim); }
.hist-nums .h-hit { color: var(--gold); font-weight: 800; }
.hist-result { font-family: var(--mono); font-size: 12px; font-weight: 800; }
.hist-result.win { color: var(--green); }
.hist-result.loss { color: var(--red); }
.hist-meta { font-size: 10px; color: var(--text-mute); margin-bottom: 2px; }

/* Results drawn number balls */
.res-balls { display: flex; gap: 3px; flex-wrap: wrap; }
.res-ball {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg3); color: var(--text-dim);
  font-size: 9px; font-weight: 700; font-family: var(--mono);
  display: flex; align-items: center; justify-content: center;
}

/* Stats */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.stat-card { background: var(--bg2); border-radius: 8px; padding: 14px; text-align: center; border: 1px solid var(--line); }
.stat-val { font-family: var(--mono); font-size: 22px; font-weight: 800; color: var(--green); }
.stat-label { font-size: 9px; color: var(--text-mute); margin-top: 4px; text-transform: uppercase; letter-spacing: 1px; }
.hot-cold { background: var(--bg2); border-radius: 8px; padding: 12px; border: 1px solid var(--line); }
.hc-title { font-size: 11px; font-weight: 800; color: var(--text-dim); letter-spacing: 1px; margin-bottom: 8px; }
.hc-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.hc-label { font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 4px; min-width: 40px; text-align: center; }
.hc-label.hot { background: var(--red-dim); color: var(--red); }
.hc-label.cold { background: rgba(0, 229, 255, 0.12); color: var(--cyan); }
.hc-nums { font-family: var(--mono); font-size: 12px; color: var(--text-dim); }

/* ===== OVERLAY / DRAWER ===== */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex; align-items: center; justify-content: center;
  z-index: 100; padding: 16px;
}
.overlay-card {
  background: var(--bg1); border-radius: 14px;
  max-width: 380px; width: 100%; max-height: 80vh;
  overflow-y: auto; position: relative;
  border: 1px solid var(--line);
}
.overlay-tabs { display: flex; border-bottom: 1px solid var(--line); }
.otab {
  flex: 1; border: none; background: transparent;
  color: var(--text-mute); font-size: 12px;
  font-weight: 800; padding: 12px; cursor: pointer;
  letter-spacing: 1px; border-bottom: 2px solid transparent;
}
.otab.active { color: var(--green); border-bottom-color: var(--green); }
.overlay-close { position: absolute; top: 8px; right: 8px; }
.overlay-body { padding: 16px; font-size: 13px; line-height: 1.6; color: var(--text-dim); }
.overlay-body h3 { color: var(--text); font-size: 14px; margin: 12px 0 6px; }

.paytable-grid { font-family: var(--mono); font-size: 9px; overflow-x: auto; }
.paytable-grid table { width: 100%; border-collapse: collapse; }
.paytable-grid th, .paytable-grid td { padding: 4px 5px; text-align: center; border: 1px solid var(--line); }
.paytable-grid th { background: var(--bg3); color: var(--text-dim); }
.paytable-grid td { color: var(--green); }
.paytable-grid td.zero { color: var(--text-mute); }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 300px; max-width: 85vw;
  background: var(--bg1); border-left: 1px solid var(--line);
  z-index: 90; display: flex; flex-direction: column;
  box-shadow: -4px 0 24px rgba(0,0,0,0.5);
}
.drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
  color: var(--green); font-size: 13px; letter-spacing: 1px;
}
.drawer-body { padding: 14px; font-size: 12px; line-height: 1.5; color: var(--text-dim); overflow-y: auto; flex: 1; }
.drawer-body dt { color: var(--text-mute); font-size: 10px; margin-top: 8px; text-transform: uppercase; }
.drawer-body dd { margin: 2px 0 0; word-break: break-all; font-family: var(--mono); font-size: 11px; color: var(--text); }
.drawer-body .small { font-size: 11px; color: var(--text-mute); margin-top: 12px; }

.close-btn {
  background: transparent; border: none;
  color: var(--text-dim); font-size: 22px;
  cursor: pointer; padding: 4px 8px; line-height: 1;
}

/* ===== WIN MODAL ===== */
.win-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.8);
  display: flex; align-items: center; justify-content: center;
  z-index: 110; padding: 20px;
}
.win-card {
  background: var(--bg1);
  border: 2px solid var(--gold);
  border-radius: 16px; padding: 28px 24px;
  text-align: center; width: 300px;
  max-width: 90vw; position: relative;
  box-shadow: 0 0 40px var(--gold-glow);
}
.win-card.no-win {
  border-color: var(--red);
  box-shadow: 0 0 20px var(--red-dim);
}
.win-title {
  font-size: 28px; font-weight: 900;
  letter-spacing: 4px; margin-bottom: 6px;
  color: var(--gold);
}
.win-card.no-win .win-title { color: var(--red); }
.win-hits {
  font-size: 13px; color: var(--text-dim); margin-bottom: 12px;
}
.win-amount {
  font-family: var(--mono); font-size: 26px;
  font-weight: 900; margin-bottom: 4px;
}
.win-amount.positive { color: var(--gold); }
.win-amount.negative { color: var(--red); }
.win-mult {
  font-family: var(--mono); font-size: 14px;
  color: var(--text-mute); margin-bottom: 16px;
}
.win-ok {
  width: 100%; padding: 12px; border: none;
  border-radius: 8px; background: var(--green);
  color: #fff; font-size: 14px; font-weight: 800;
  letter-spacing: 2px; cursor: pointer;
}
.win-ok:active { transform: scale(0.97); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-bright); border-radius: 2px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 380px) {
  .keno-num { font-size: 11px; }
  .stake-value { font-size: 16px; }
  .bet-btn { padding: 12px; font-size: 16px; }
  .tc-n { width: 20px; height: 20px; font-size: 8px; }
}
