/* Shared layout for casino games (used by every game page) */
.game-layout { display: grid; grid-template-columns: 320px 1fr; gap: 16px; align-items: start; }
.game-controls { min-width: 0; padding: 18px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 84px; }
.game-stage { min-width: 0; padding: 20px; min-height: 420px; position: relative; overflow: hidden; }
.game-field { display: flex; flex-direction: column; gap: 6px; }
.game-field > span { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.bet-input { display: flex; align-items: center; gap: 6px; background: var(--bg2); border: 1px solid var(--line2); border-radius: 10px; padding: 4px 4px 4px 12px; }
.bet-input .coin { font-size: 16px; }
.bet-input .input { border: 0; background: transparent; height: 32px; padding: 0 4px; flex: 1; width: 0; min-width: 0; font-weight: 700; }
.bet-input .btn { padding: 0 9px; height: 30px; }
.game-stat { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--muted); }
.game-stat b { color: var(--text); font-variant-numeric: tabular-nums; }
.game-controls .btn-lg { width: 100%; }
.seg-options { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: var(--bg2); border: 1px solid var(--line2); padding: 4px; border-radius: 10px; }
.seg-options button { height: 32px; border: 0; border-radius: 7px; background: none; cursor: pointer; font-weight: 700; color: var(--muted); font-size: 13px; }
.seg-options button.active { background: var(--panel3); color: var(--accent-hi); }

.live-bets tr.win .payout, .live-bets tr.win .mult { color: var(--green); font-weight: 700; }
.live-bets tr.loss .mult { color: var(--muted); }

/* Big-win celebration */
.celebrate { position: fixed; inset: 0; z-index: 300; pointer-events: auto; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle, rgba(228,174,57,.18), rgba(0,0,0,.55)); animation: fade .2s; }
.celebrate i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation-name: confetti; animation-timing-function: cubic-bezier(.2,.6,.4,1); animation-fill-mode: forwards; }
@keyframes confetti { to { top: 110%; transform: translateX(80px) rotate(720deg); } }
.celebrate-card { text-align: center; padding: 26px 40px; border-radius: 18px; background: rgba(20, 15, 17, .92); border: 2px solid var(--gold); box-shadow: 0 0 60px rgba(228,174,57,.45); animation: pop .45s cubic-bezier(.2,.9,.3,1.5); }
.celebrate-card small { display: block; font-family: var(--display); letter-spacing: .2em; color: var(--gold); font-size: 14px; }
.celebrate-card b { font-family: var(--display); font-weight: 400; font-size: 44px; }

@media (max-width: 900px) {
  .game-layout { grid-template-columns: minmax(0, 1fr); }
  .game-controls { position: static; order: 2; }
  .game-stage { order: 1; min-height: 320px; }
}

/* Live bets table scrolls sideways on phones instead of widening the page */
[data-live-bets] { overflow-x: auto; }
@media (max-width: 640px) {
  .live-bets th, .live-bets td { padding: 10px 8px; font-size: 13px; }
}
