/* ═══════════════════════════════════════════════════════════════
   Book of Ra — HTML5 Slot Machine
   Egyptian theme, mobile-first, no external dependencies
   ═══════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:       #D4AF37;
  --gold-light: #FFD700;
  --gold-dark:  #8B6914;
  --bg-deep:    #0A0500;
  --bg-mid:     #1A0E00;
  --bg-panel:   #120900;
  --sand:       #C8A96E;
  --sand-light: #E8C98E;
  --red:        #CC2200;
  --red-bright: #FF3300;
  --green:      #00AA44;
  --green-bright:#00FF66;
  --blue:       #0055AA;
  --blue-bright:#0088FF;
  --white:      #FFFFFF;
  --text-gold:  #FFD700;
  --text-sand:  #E8C98E;
  --shadow-gold:0 0 20px rgba(212,175,55,0.6);
  --radius:     12px;
  --font:       'Georgia', 'Times New Roman', serif;
  --font-ui:    'Arial', sans-serif;
}

html, body {
  height: 100%;
  background: var(--bg-deep);
  color: var(--text-gold);
  font-family: var(--font);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* ── App wrapper ──────────────────────────────────────────────── */
#app {
  min-height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #1A0E00 0%, #0A0500 100%);
  position: relative;
  overflow: hidden;
}

/* ── Decorative top border ────────────────────────────────────── */
#app::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
}

/* ══════════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════════ */
#header {
  text-align: center;
  padding: 14px 16px 8px;
  background: linear-gradient(180deg, #1A0E00 0%, #0D0700 100%);
  border-bottom: 2px solid var(--gold-dark);
  position: relative;
}

.header-ornament {
  font-size: 0.7rem;
  color: var(--gold-dark);
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.game-title {
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: linear-gradient(180deg, #FFD700 0%, #D4AF37 50%, #8B6914 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 2px 8px rgba(212,175,55,0.5));
  line-height: 1.1;
}

.game-subtitle {
  font-size: 0.65rem;
  color: var(--sand);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-top: 2px;
  font-family: var(--font-ui);
}

/* ══════════════════════════════════════════════════════════════
   BALANCE BAR
   ══════════════════════════════════════════════════════════════ */
#balance-bar {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  padding: 8px 12px;
  background: linear-gradient(180deg, #0D0700 0%, #120900 100%);
  border-bottom: 1px solid rgba(212,175,55,0.2);
  gap: 6px;
}

.bal-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(180deg, #1A0E00 0%, #0D0700 100%);
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 8px;
  padding: 6px 4px;
}

.bal-label {
  font-size: 0.58rem;
  color: var(--sand);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-ui);
  margin-bottom: 2px;
}

.bal-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-light);
  font-family: var(--font-ui);
  letter-spacing: 0.5px;
}

#win-display .bal-value {
  color: var(--green-bright);
  transition: color 0.3s;
}

#win-display.has-win .bal-value {
  animation: winPulse 0.6s ease-in-out infinite alternate;
}

@keyframes winPulse {
  from { color: var(--green-bright); text-shadow: 0 0 8px var(--green); }
  to   { color: #AAFFCC; text-shadow: 0 0 20px var(--green-bright); }
}

/* ══════════════════════════════════════════════════════════════
   WIN LINES INDICATOR
   ══════════════════════════════════════════════════════════════ */
#lines-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  background: #0D0700;
  border-bottom: 1px solid rgba(212,175,55,0.15);
  flex-wrap: wrap;
}

.line-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(212,175,55,0.3);
  background: #1A0E00;
  font-size: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(212,175,55,0.4);
  font-family: var(--font-ui);
  transition: all 0.3s;
}

.line-dot.active {
  border-color: var(--gold);
  background: rgba(212,175,55,0.15);
  color: var(--gold-light);
  box-shadow: 0 0 6px rgba(212,175,55,0.4);
}

/* ══════════════════════════════════════════════════════════════
   REELS CONTAINER
   ══════════════════════════════════════════════════════════════ */
#reels-wrapper {
  position: relative;
  padding: 10px 10px 0;
  background: linear-gradient(180deg, #120900 0%, #0D0700 100%);
}

#reels-frame {
  position: relative;
  border: 3px solid var(--gold-dark);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow:
    0 0 0 1px rgba(212,175,55,0.1),
    0 0 30px rgba(212,175,55,0.15),
    inset 0 0 40px rgba(0,0,0,0.8);
}

/* Reel grid */
#reels-grid {
  display: flex;
  gap: 0;
}

.reel-col {
  flex: 1;
  position: relative;
  border-right: 1px solid rgba(212,175,55,0.15);
  overflow: hidden;
  height: 270px; /* 3 rows × 90px */
}

.reel-col:last-child {
  border-right: none;
}

/* Reel strip — scrolls vertically */
.reel-strip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  transition: none;
}

.reel-strip.spinning {
  animation: none;
}

/* Individual symbol cell */
.symbol-cell {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
  position: relative;
  background: linear-gradient(180deg, #0A0500 0%, #120900 50%, #0A0500 100%);
  border-bottom: 1px solid rgba(212,175,55,0.08);
  transition: background 0.2s;
}

.symbol-cell.highlight {
  background: radial-gradient(ellipse at center, rgba(212,175,55,0.25) 0%, rgba(212,175,55,0.05) 70%, transparent 100%);
  animation: cellGlow 0.8s ease-in-out infinite alternate;
}

@keyframes cellGlow {
  from { background: radial-gradient(ellipse at center, rgba(212,175,55,0.2) 0%, transparent 70%); }
  to   { background: radial-gradient(ellipse at center, rgba(212,175,55,0.4) 0%, transparent 70%); }
}

.symbol-cell.scatter-highlight {
  background: radial-gradient(ellipse at center, rgba(255,215,0,0.35) 0%, transparent 70%);
  animation: scatterGlow 0.5s ease-in-out infinite alternate;
}

@keyframes scatterGlow {
  from { box-shadow: inset 0 0 20px rgba(255,215,0,0.3); }
  to   { box-shadow: inset 0 0 40px rgba(255,215,0,0.6); }
}

/* Win line overlay on reels */
#win-line-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 10;
}

/* Reel top/bottom fade masks */
.reel-mask-top,
.reel-mask-bottom {
  position: absolute;
  left: 0; right: 0;
  height: 30px;
  z-index: 5;
  pointer-events: none;
}

.reel-mask-top {
  top: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, transparent 100%);
}

.reel-mask-bottom {
  bottom: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 100%);
}

/* Win line highlight bar */
.win-line-bar {
  position: absolute;
  left: 0; right: 0;
  height: 90px;
  pointer-events: none;
  border: 2px solid transparent;
  transition: opacity 0.3s;
}

/* Payline markers on sides */
#payline-left,
#payline-right {
  position: absolute;
  top: 0; bottom: 0;
  width: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  z-index: 6;
  pointer-events: none;
}

#payline-left  { left:  -22px; }
#payline-right { right: -22px; }

.payline-num {
  font-size: 0.55rem;
  font-family: var(--font-ui);
  color: rgba(212,175,55,0.4);
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.payline-num.lit {
  color: var(--gold-light);
  border-color: var(--gold);
  background: rgba(212,175,55,0.2);
  box-shadow: 0 0 6px rgba(212,175,55,0.5);
}

/* ── Spinning animation ───────────────────────────────────────── */
@keyframes reelSpin {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-90px); }
}

.reel-col.is-spinning .reel-strip {
  animation: reelSpin 0.08s linear infinite;
}

/* ── Frame decorations ────────────────────────────────────────── */
.frame-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  z-index: 8;
  font-size: 1rem;
  pointer-events: none;
}

.frame-corner.tl { top: -2px;  left: -2px; }
.frame-corner.tr { top: -2px;  right: -2px; transform: scaleX(-1); }
.frame-corner.bl { bottom: -2px; left: -2px; transform: scaleY(-1); }
.frame-corner.br { bottom: -2px; right: -2px; transform: scale(-1); }

/* ══════════════════════════════════════════════════════════════
   WIN ANNOUNCEMENT BANNER
   ══════════════════════════════════════════════════════════════ */
#win-banner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: linear-gradient(135deg, #1A0E00 0%, #2A1800 50%, #1A0E00 100%);
  border: 2px solid var(--gold);
  border-radius: 16px;
  padding: 16px 28px;
  text-align: center;
  z-index: 20;
  box-shadow: 0 0 40px rgba(212,175,55,0.6), 0 0 80px rgba(212,175,55,0.3);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none;
  min-width: 200px;
}

#win-banner.show {
  transform: translate(-50%, -50%) scale(1);
}

.win-banner-label {
  font-size: 0.7rem;
  color: var(--sand);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-family: var(--font-ui);
}

.win-banner-amount {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--gold-light);
  text-shadow: 0 0 20px rgba(255,215,0,0.8);
  font-family: var(--font-ui);
  letter-spacing: 1px;
}

.win-banner-type {
  font-size: 0.85rem;
  color: var(--sand-light);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════════════
   CONTROLS PANEL
   ══════════════════════════════════════════════════════════════ */
#controls-panel {
  padding: 10px 12px 8px;
  background: linear-gradient(180deg, #0D0700 0%, #120900 100%);
  border-top: 1px solid rgba(212,175,55,0.2);
}

/* Bet row */
#bet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}

.bet-label {
  font-size: 0.65rem;
  color: var(--sand);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-ui);
  white-space: nowrap;
}

.bet-adjuster {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #0A0500;
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 8px;
  padding: 4px 8px;
}

.btn-bet {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.1rem;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.15s;
  font-family: var(--font-ui);
}

.btn-bet:hover { background: rgba(212,175,55,0.1); }
.btn-bet:active { background: rgba(212,175,55,0.2); }

#bet-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-light);
  font-family: var(--font-ui);
  min-width: 40px;
  text-align: center;
}

.lines-adjuster {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #0A0500;
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 8px;
  padding: 4px 8px;
}

#lines-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-light);
  font-family: var(--font-ui);
  min-width: 28px;
  text-align: center;
}

/* Main action buttons */
#action-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.btn-action {
  flex: 1;
  border: none;
  border-radius: 10px;
  padding: 14px 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: var(--font-ui);
  transition: transform 0.1s, box-shadow 0.1s, opacity 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  line-height: 1.2;
}

.btn-action:active { transform: scale(0.95) translateY(1px); }
.btn-action:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.btn-action .btn-icon { font-size: 1.3rem; }

/* SPIN button */
#btn-spin {
  flex: 2;
  background: linear-gradient(180deg, #CC2200 0%, #991A00 50%, #CC2200 100%);
  color: var(--gold-light);
  border: 2px solid var(--gold-dark);
  box-shadow: 0 4px 16px rgba(204,34,0,0.5), 0 1px 0 rgba(255,100,0,0.3) inset;
  font-size: 1rem;
}

#btn-spin:not(:disabled):hover {
  box-shadow: 0 4px 24px rgba(204,34,0,0.7), 0 0 20px rgba(255,100,0,0.3);
}

#btn-spin.spinning {
  background: linear-gradient(180deg, #661100 0%, #440D00 50%, #661100 100%);
  animation: spinBtnPulse 0.5s ease-in-out infinite alternate;
}

@keyframes spinBtnPulse {
  from { box-shadow: 0 4px 12px rgba(204,34,0,0.4); }
  to   { box-shadow: 0 4px 24px rgba(204,34,0,0.8); }
}

/* MAX BET button */
#btn-maxbet {
  background: linear-gradient(180deg, #8B6914 0%, #5A4510 50%, #8B6914 100%);
  color: var(--gold-light);
  border: 1px solid var(--gold-dark);
  box-shadow: 0 2px 8px rgba(139,105,20,0.4);
}

/* AUTO button */
#btn-auto {
  background: linear-gradient(180deg, #1A3A1A 0%, #0D200D 50%, #1A3A1A 100%);
  color: #88CC88;
  border: 1px solid #2A5A2A;
  box-shadow: 0 2px 8px rgba(0,100,0,0.3);
}

#btn-auto.active-auto {
  background: linear-gradient(180deg, #2A5A2A 0%, #1A3A1A 50%, #2A5A2A 100%);
  color: var(--green-bright);
  border-color: var(--green);
  box-shadow: 0 0 12px rgba(0,200,0,0.4);
}

/* GAMBLE button */
#btn-gamble {
  background: linear-gradient(180deg, #1A1A3A 0%, #0D0D20 50%, #1A1A3A 100%);
  color: #8888CC;
  border: 1px solid #2A2A5A;
  box-shadow: 0 2px 8px rgba(0,0,100,0.3);
}

#btn-gamble.available {
  background: linear-gradient(180deg, #2A2A5A 0%, #1A1A3A 50%, #2A2A5A 100%);
  color: var(--blue-bright);
  border-color: var(--blue-bright);
  box-shadow: 0 0 12px rgba(0,100,255,0.4);
  animation: gamblePulse 1s ease-in-out infinite alternate;
}

@keyframes gamblePulse {
  from { box-shadow: 0 0 8px rgba(0,100,255,0.4); }
  to   { box-shadow: 0 0 20px rgba(0,150,255,0.7); }
}

/* ══════════════════════════════════════════════════════════════
   PAYTABLE PANEL (collapsible)
   ══════════════════════════════════════════════════════════════ */
#paytable-toggle {
  width: 100%;
  background: #0A0500;
  border: none;
  border-top: 1px solid rgba(212,175,55,0.15);
  color: var(--sand);
  font-size: 0.7rem;
  font-family: var(--font-ui);
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s;
}

#paytable-toggle:hover { background: rgba(212,175,55,0.05); }

#paytable-panel {
  background: #0A0500;
  border-top: 1px solid rgba(212,175,55,0.1);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
}

#paytable-panel.open {
  max-height: 500px;
}

.paytable-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 10px 12px 14px;
}

.pay-row {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #120900 0%, #1A0E00 100%);
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: 8px;
  padding: 6px 8px;
}

.pay-symbol { font-size: 1.6rem; flex-shrink: 0; }

.pay-info {
  flex: 1;
  min-width: 0;
}

.pay-name {
  font-size: 0.6rem;
  color: var(--sand);
  font-family: var(--font-ui);
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pay-odds {
  font-size: 0.65rem;
  color: var(--gold);
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* ══════════════════════════════════════════════════════════════
   BONUS / FREE SPINS OVERLAY
   ══════════════════════════════════════════════════════════════ */
#bonus-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}

#bonus-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.bonus-title {
  font-size: 2rem;
  font-weight: 900;
  text-align: center;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: linear-gradient(180deg, #FFD700 0%, #D4AF37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
  filter: drop-shadow(0 0 20px rgba(255,215,0,0.6));
}

.bonus-subtitle {
  font-size: 1rem;
  color: var(--sand-light);
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 20px;
  font-family: var(--font-ui);
}

.bonus-spins-count {
  font-size: 4rem;
  font-weight: 900;
  color: var(--gold-light);
  text-shadow: 0 0 30px rgba(255,215,0,0.8);
  font-family: var(--font-ui);
  animation: countBounce 0.5s ease-out;
}

@keyframes countBounce {
  0%   { transform: scale(0.5); opacity: 0; }
  70%  { transform: scale(1.2); }
  100% { transform: scale(1);   opacity: 1; }
}

.bonus-special-symbol {
  font-size: 3rem;
  margin: 10px 0;
  animation: symbolFloat 2s ease-in-out infinite;
}

@keyframes symbolFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-10px) scale(1.1); }
}

.bonus-info {
  font-size: 0.85rem;
  color: var(--sand);
  text-align: center;
  margin: 8px 0 20px;
  font-family: var(--font-ui);
  line-height: 1.5;
}

.btn-bonus-start {
  background: linear-gradient(135deg, #CC2200 0%, #991A00 100%);
  color: var(--gold-light);
  border: 2px solid var(--gold);
  border-radius: 50px;
  padding: 16px 48px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--font-ui);
  box-shadow: 0 0 30px rgba(204,34,0,0.5);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-bonus-start:active { transform: scale(0.96); }

/* ══════════════════════════════════════════════════════════════
   GAMBLE OVERLAY
   ══════════════════════════════════════════════════════════════ */
#gamble-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

#gamble-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.gamble-title {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue-bright);
  text-shadow: 0 0 20px rgba(0,136,255,0.6);
  margin-bottom: 4px;
}

.gamble-subtitle {
  font-size: 0.75rem;
  color: var(--sand);
  letter-spacing: 2px;
  margin-bottom: 20px;
  font-family: var(--font-ui);
}

.gamble-amount {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold-light);
  font-family: var(--font-ui);
  margin-bottom: 6px;
}

.gamble-card-area {
  width: 120px;
  height: 160px;
  border: 3px solid var(--gold-dark);
  border-radius: 12px;
  background: linear-gradient(135deg, #1A0E00 0%, #0A0500 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  margin: 16px 0;
  box-shadow: 0 0 20px rgba(212,175,55,0.3);
  transition: transform 0.3s;
}

.gamble-card-area.flip {
  animation: cardFlip 0.6s ease-in-out;
}

@keyframes cardFlip {
  0%   { transform: rotateY(0); }
  50%  { transform: rotateY(90deg); }
  100% { transform: rotateY(0); }
}

.gamble-buttons {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

.btn-gamble-choice {
  padding: 14px 32px;
  border-radius: 10px;
  border: 2px solid;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: var(--font-ui);
  transition: transform 0.1s, box-shadow 0.1s;
}

.btn-gamble-choice:active { transform: scale(0.95); }

#btn-red {
  background: linear-gradient(135deg, #CC2200 0%, #991A00 100%);
  color: var(--gold-light);
  border-color: var(--red-bright);
  box-shadow: 0 0 16px rgba(204,34,0,0.4);
}

#btn-black {
  background: linear-gradient(135deg, #1A1A1A 0%, #0A0A0A 100%);
  color: var(--white);
  border-color: #555;
  box-shadow: 0 0 16px rgba(100,100,100,0.3);
}

.btn-gamble-collect {
  margin-top: 12px;
  background: none;
  border: 1px solid rgba(212,175,55,0.4);
  color: var(--sand);
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.8rem;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: var(--font-ui);
  transition: background 0.2s;
}

.btn-gamble-collect:hover { background: rgba(212,175,55,0.1); }

.gamble-result-msg {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 10px;
  font-family: var(--font-ui);
  letter-spacing: 1px;
  min-height: 28px;
}

.gamble-result-msg.win  { color: var(--green-bright); }
.gamble-result-msg.lose { color: var(--red-bright); }

/* ══════════════════════════════════════════════════════════════
   FREE SPINS HUD
   ══════════════════════════════════════════════════════════════ */
#free-spins-hud {
  display: none;
  background: linear-gradient(135deg, #1A0E00 0%, #2A1800 100%);
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 6px 14px;
  text-align: center;
  margin: 6px 12px 0;
  box-shadow: 0 0 16px rgba(212,175,55,0.3);
}

#free-spins-hud.active {
  display: block;
  animation: hudPulse 1s ease-in-out infinite alternate;
}

@keyframes hudPulse {
  from { box-shadow: 0 0 10px rgba(212,175,55,0.3); }
  to   { box-shadow: 0 0 25px rgba(212,175,55,0.6); }
}

.fs-label {
  font-size: 0.6rem;
  color: var(--sand);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--font-ui);
}

.fs-count {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--gold-light);
  font-family: var(--font-ui);
}

/* ══════════════════════════════════════════════════════════════
   MESSAGE TOAST
   ══════════════════════════════════════════════════════════════ */
#toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(10,5,0,0.92);
  border: 1px solid var(--gold-dark);
  color: var(--sand-light);
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-family: var(--font-ui);
  letter-spacing: 0.5px;
  white-space: nowrap;
  z-index: 200;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (min-width: 480px) {
  #app { box-shadow: 0 0 60px rgba(0,0,0,0.8); }
}

@media (max-height: 700px) {
  .symbol-cell { height: 76px; font-size: 2.8rem; }
  .reel-col    { height: 228px; }
  #btn-spin    { padding: 10px 8px; }
}

@media (max-height: 600px) {
  .symbol-cell { height: 66px; font-size: 2.4rem; }
  .reel-col    { height: 198px; }
  .game-title  { font-size: 1.4rem; }
}

/* ── Scrollbar ────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }
