/* 
  Lago di Amore - CSS Design System & Stylesheet
  Venetian Romance theme with deep velvets, rich golds, and glowing neons.
*/

:root {
  --velvet-dark: #0f020c;
  --velvet-medium: #2c041c;
  --velvet-light: #520935;
  --gold-primary: #d4af37;
  --gold-glowing: #ffea7a;
  --gold-dark: #8c6d13;
  --neon-magenta: #e0115f;
  --neon-purple: #9d00ff;
  --neon-cyan: #00e5ff;
  --neon-green: #39ff14;
  --led-amber: #ff6a00;
  --led-amber-glow: rgba(255, 106, 0, 0.45);
  --glass-bg: rgba(15, 2, 12, 0.65);
  --glass-border: rgba(212, 175, 55, 0.25);
  --screen-shadow: inset 0 0 25px rgba(0, 0, 0, 0.9);
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

body {
  background-color: #050106;
  color: #f0ebd8;
  font-family: 'Outfit', sans-serif;
  overflow-x: hidden;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Casino Ambient Floor Background */
.casino-floor {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 30%, #20061d 0%, #080209 70%, #000000 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 20px;
  overflow: hidden;
}

/* Casino Ambient Lights */
.casino-floor::before, .casino-floor::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.casino-floor::before {
  top: 10%;
  left: 20%;
  width: 300px;
  height: 300px;
  background-color: var(--neon-purple);
}

.casino-floor::after {
  bottom: 15%;
  right: 15%;
  width: 400px;
  height: 400px;
  background-color: var(--neon-magenta);
}

/* Slot Cabinet Wrapper */
.cabinet {
  position: relative;
  z-index: 2;
  width: 760px;
  height: 860px;
  background-color: #121214;
  border-radius: 20px 20px 10px 10px;
  box-shadow: 
    0 25px 60px rgba(0,0,0,0.85),
    inset 0 0 20px rgba(255,255,255,0.05),
    0 0 3px 2px rgba(212, 175, 55, 0.4);
  border: 4px solid #1a1a1f;
  display: flex;
  flex-direction: column;
  padding: 8px;
}

/* Physical Metal Bevel and Cabinet Frame styling */
.cabinet::after {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  border-radius: 18px 18px 8px 8px;
  border: 2px solid var(--gold-primary);
  opacity: 0.65;
  pointer-events: none;
}

/* Cabinet Header */
.cabinet-header {
  height: 70px;
  background: linear-gradient(180deg, #1c0316 0%, #0d010a 100%);
  border-bottom: 2px solid var(--gold-primary);
  border-radius: 12px 12px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  position: relative;
  box-shadow: inset 0 2px 5px rgba(255,255,255,0.1);
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 800;
  font-style: italic;
  color: #fff;
  text-shadow: 
    0 0 5px rgba(255,255,255,0.8),
    0 0 10px var(--neon-magenta),
    0 0 20px var(--neon-magenta);
  letter-spacing: 1px;
}

.logo-subtext {
  position: absolute;
  left: 26px;
  bottom: 4px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--gold-primary);
}

.cabinet-status {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,0,0,0.4);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
}

.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
  animation: pulse-glow 1.5s infinite;
}

.cabinet-status span {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--neon-cyan);
  letter-spacing: 1px;
}

/* Screen Glass Overlay (gives a shiny reflective glass curve) */
.screen-glass {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.0) 45%, rgba(0,0,0,0.2) 50%, rgba(255,255,255,0.03) 55%, rgba(255,255,255,0) 100%);
  pointer-events: none;
  z-index: 10;
}

/* Cabinet Top Screen: Paytable / Free Games / Balance of Fortune */
.cabinet-top-screen {
  position: relative;
  height: 200px;
  background-color: #0b020a;
  border-bottom: 3px solid #1a1a1f;
  margin-top: 4px;
  overflow: hidden;
  box-shadow: var(--screen-shadow);
  border: 2px solid #222227;
}

.screen-content {
  width: 100%;
  height: 100%;
  position: relative;
}

.top-panel {
  display: none;
  width: 100%;
  height: 100%;
  padding: 15px 20px;
}

.top-panel.active {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Welcome Panel styling */
.top-banner {
  text-align: center;
}

.top-banner h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--gold-glowing);
  margin-bottom: 5px;
  text-shadow: 0 0 6px var(--gold-primary);
}

.top-banner p {
  font-size: 13px;
  color: #ddd;
}

.multiplier-info {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
}

.multiplier-badge {
  background-color: var(--neon-magenta);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 13px;
  box-shadow: 0 0 8px var(--neon-magenta);
  text-shadow: none;
}

.balance-fortune-teaser {
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.03);
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid rgba(212,175,55,0.15);
  max-width: 580px;
}

.purple-pill {
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-magenta));
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
  box-shadow: 0 0 10px rgba(157,0,255,0.4);
  flex-shrink: 0;
}

.balance-fortune-teaser p {
  font-size: 11px;
  color: #aaa;
  line-height: 1.3;
}

/* Free Games Panel styling */
.free-games-banner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle, #2d0426 0%, #0d010b 90%);
  border: 2px solid var(--neon-purple);
  border-radius: 4px;
  box-shadow: inset 0 0 15px var(--neon-purple);
  position: relative;
}

.free-games-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 2px;
  text-shadow: 0 0 10px var(--neon-purple), 0 0 20px var(--neon-purple);
  margin-bottom: 8px;
}

.free-games-counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 6px;
}

.counter-label {
  font-size: 9px;
  letter-spacing: 2px;
  color: #aaa;
  margin-bottom: 2px;
}

.counter-value {
  font-family: 'Share Tech Mono', monospace;
  font-size: 44px;
  font-weight: 800;
  color: var(--neon-green);
  text-shadow: 0 0 15px rgba(57,255,20,0.6);
  line-height: 1;
}

.free-games-total-win {
  display: flex;
  align-items: center;
  gap: 8px;
}

.win-label {
  font-size: 11px;
  color: #bbb;
}

.win-value {
  font-family: 'Share Tech Mono', monospace;
  font-size: 18px;
  font-weight: 800;
  color: var(--gold-glowing);
  text-shadow: 0 0 8px var(--gold-primary);
}

.bof-hint {
  position: absolute;
  bottom: 8px;
  font-size: 10px;
  color: var(--neon-purple);
  animation: pulse-opacity 1.5s infinite;
  font-weight: 600;
}

/* Balance of Fortune Popup Choice Overlay */
.bof-screen-overlay {
  display: none;
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(12, 1, 10, 0.95);
  z-index: 100;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.4s ease-out;
}

.bof-container {
  width: 90%;
  text-align: center;
  border: 2px solid var(--gold-primary);
  background: radial-gradient(circle, #220317 0%, #0b0108 100%);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 15px rgba(212, 175, 55, 0.2);
}

.bof-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: #fff;
  letter-spacing: 2px;
  margin-bottom: 4px;
  text-shadow: 
    0 0 5px var(--neon-purple),
    0 0 15px var(--neon-purple);
}

.bof-spins-info {
  font-size: 14px;
  color: #ddd;
  margin-bottom: 8px;
}

.bof-choice-info {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 18px;
}

.bof-choices {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.bof-btn {
  flex: 1;
  max-width: 260px;
  height: 70px;
  border-radius: 8px;
  border: 2px solid #555;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: 'Outfit', sans-serif;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.bof-btn:hover {
  transform: translateY(-2px);
}

.bof-btn:active {
  transform: translateY(1px);
}

.bof-btn.play-games {
  background: linear-gradient(180deg, #10660a 0%, #063803 100%);
  border-color: var(--neon-green);
  color: #fff;
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.3);
}

.bof-btn.play-games:hover {
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.6);
  background: linear-gradient(180deg, #168e0e 0%, #094705 100%);
}

.bof-btn.exchange-credits {
  background: linear-gradient(180deg, #6c118a 0%, #350447 100%);
  border-color: var(--neon-purple);
  color: #fff;
  box-shadow: 0 0 12px rgba(157, 0, 255, 0.3);
}

.bof-btn.exchange-credits:hover {
  box-shadow: 0 0 20px rgba(157, 0, 255, 0.6);
  background: linear-gradient(180deg, #8718ac 0%, #45065c 100%);
}

.btn-main-txt {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1px;
}

.btn-sub-txt {
  font-size: 9px;
  color: #ccc;
  margin-top: 3px;
}

/* Main Cabinet Screen: Reels Area */
.cabinet-main-screen {
  position: relative;
  height: 400px;
  background-color: #070005;
  border: 3px solid #202025;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--screen-shadow);
}

/* 3D cylindrical container shadow effect */
.reels-container {
  position: relative;
  flex: 1;
  display: flex;
  padding: 0 15px;
  background: 
    linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 15%, rgba(0,0,0,0) 85%, rgba(0,0,0,0.85) 100%),
    #180313;
  overflow: hidden;
}

/* Individual Reels styling */
.reel {
  flex: 1;
  height: 100%;
  position: relative;
  border-right: 1px solid rgba(212,175,55,0.08);
  border-left: 1px solid rgba(0,0,0,0.5);
  overflow: hidden;
}

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

.reel-symbols {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Symbol Box styling */
.symbol-box {
  width: 100%;
  height: 110px; /* height of visual slots */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px;
  position: relative;
  transform-style: preserve-3d;
}

.symbol-box svg {
  width: 90%;
  height: 90%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

/* Custom CSS to blur symbols during spin */
.reel.spinning .symbol-box svg {
  filter: blur(4px) opacity(0.8);
  transform: scaleY(1.1);
}

/* Winning symbols highlight animation */
.symbol-box.winning {
  z-index: 50;
  animation: winning-pulse 0.6s infinite alternate ease-in-out;
}

.symbol-box.winning::before {
  content: '';
  position: absolute;
  top: 2px; left: 2px; right: 2px; bottom: 2px;
  border: 3px solid var(--gold-glowing);
  border-radius: 8px;
  box-shadow: 
    0 0 20px var(--gold-glowing), 
    inset 0 0 10px var(--gold-primary);
  pointer-events: none;
  animation: border-flash 0.6s infinite alternate ease-in-out;
}

/* Paylines Draw Overlay */
.paylines-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 30;
}

.payline-path {
  fill: none;
  stroke-width: 5px;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transition: opacity 0.2s ease;
  filter: drop-shadow(0 0 8px rgba(0,0,0,0.9));
}

.payline-path.active {
  opacity: 1;
  stroke-dasharray: 12, 12;
  animation: dash 1s linear infinite;
}

/* Scrolling Led Ticker */
.ticker-bar {
  height: 34px;
  background: #000;
  border-top: 2px solid var(--gold-primary);
  display: flex;
  align-items: center;
  padding: 0 15px;
  overflow: hidden;
  position: relative;
}

.ticker-text {
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  color: var(--led-amber);
  text-shadow: 0 0 4px var(--led-amber-glow);
  white-space: nowrap;
  letter-spacing: 1px;
}

/* Ledger Display Bar (Credits, Bet, Win) */
.cabinet-ledger-deck {
  height: 80px;
  background: linear-gradient(180deg, #0f0f12 0%, #040405 100%);
  border-bottom: 3px solid #1f1f26;
  display: flex;
  padding: 8px 15px;
  gap: 15px;
  margin-top: 4px;
}

.ledger-display {
  flex: 1;
  background-color: #000;
  border: 2px solid #333;
  border-radius: 6px;
  padding: 4px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.9);
}

.ledger-display.highlighted {
  border-color: var(--gold-dark);
}

.ledger-display.win-display {
  border-color: var(--neon-magenta);
}

.ledger-title {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #888;
}

.ledger-display.highlighted .ledger-title {
  color: var(--gold-primary);
}

.ledger-display.win-display .ledger-title {
  color: var(--neon-magenta);
}

.ledger-value {
  font-family: 'Share Tech Mono', monospace;
  font-size: 26px;
  font-weight: 800;
  color: var(--led-amber);
  text-shadow: 0 0 6px var(--led-amber-glow);
  line-height: 1.1;
  text-align: right;
}

.ledger-display.win-display .ledger-value {
  color: var(--neon-magenta);
  text-shadow: 0 0 8px rgba(224, 17, 95, 0.6);
}

.ledger-dollars {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: #666;
  text-align: right;
}

.ledger-display.win-display .ledger-dollars {
  color: rgba(224,17,95,0.7);
}

/* Bottom Controls Deck: Custom Mechanical Glowing Buttons */
.button-deck {
  margin-top: 4px;
  background: linear-gradient(180deg, #1c1c22 0%, #0e0e11 100%);
  border-radius: 0 0 12px 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 10px 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.control-group {
  display: flex;
  align-items: center;
  width: 100%;
}

.panel-label {
  font-size: 9px;
  font-weight: 800;
  color: #888;
  width: 100px;
  letter-spacing: 1px;
}

.denom-buttons, .bet-buttons {
  display: flex;
  gap: 8px;
  flex: 1;
}

/* Mechanical Button Style */
.deck-btn {
  font-family: 'Outfit', sans-serif;
  background: linear-gradient(180deg, #2a2c35 0%, #15161b 100%);
  border: 2px solid #4a4d5e;
  border-radius: 6px;
  color: #bbb;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 
    0 3px 0 #0f1013, 
    0 4px 6px rgba(0,0,0,0.6),
    inset 0 1px 1px rgba(255,255,255,0.1);
  transition: all 0.1s ease;
  outline: none;
}

.deck-btn:active:not(.disabled) {
  transform: translateY(2px);
  box-shadow: 
    0 1px 0 #0f1013, 
    0 2px 3px rgba(0,0,0,0.6);
}

.deck-btn.disabled, .deck-btn[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  transform: none;
}

/* Denom Buttons specifically */
.denom-btn {
  width: 50px;
  height: 34px;
  font-size: 13px;
}

.denom-btn.active {
  color: #fff;
  border-color: var(--neon-cyan);
  background: linear-gradient(180deg, #00778a 0%, #003640 100%);
  box-shadow: 
    0 3px 0 #002127,
    0 0 10px rgba(0, 229, 255, 0.4);
  text-shadow: 0 0 4px rgba(255,255,255,0.8);
}

/* Bet level buttons */
.bet-btn {
  width: 44px;
  height: 34px;
  font-size: 13px;
}

.bet-btn.active {
  color: #fff;
  border-color: var(--gold-primary);
  background: linear-gradient(180deg, #8c6d13 0%, #443405 100%);
  box-shadow: 
    0 3px 0 #281e01,
    0 0 10px rgba(212, 175, 55, 0.4);
  text-shadow: 0 0 4px rgba(255,255,255,0.8);
}

/* Action Control Group */
.action-panel {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.square-btn {
  flex: 1;
  height: 48px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.yellow-glow.active, .yellow-glow:hover:not(:active) {
  border-color: var(--gold-primary);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

.blue-glow.active {
  color: #fff;
  border-color: var(--neon-cyan);
  background: linear-gradient(180deg, #04526d 0%, #012431 100%);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
}

.green-glow.active {
  color: #fff;
  border-color: var(--neon-green);
  background: linear-gradient(180deg, #0e6b0a 0%, #063104 100%);
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.4);
}

.purple-glow:not(.disabled) {
  animation: pulse-border-purple 2s infinite;
  color: #fff;
  border-color: var(--neon-purple);
  background: linear-gradient(180deg, #450c6b 0%, #1e0231 100%);
}

.purple-glow:not(.disabled):hover {
  box-shadow: 0 0 15px var(--neon-purple);
}

.red-glow {
  color: #fff;
  border-color: #e62117;
  background: linear-gradient(180deg, #85100a 0%, #470401 100%);
}

.red-glow:hover:not(:active) {
  box-shadow: 0 0 12px rgba(230, 33, 23, 0.4);
}

/* Giant Spin Button */
.spin-btn {
  flex: 2;
  height: 52px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #fff;
  border-color: var(--gold-glowing);
  background: linear-gradient(180deg, #c79a1a 0%, #5e4504 100%);
  box-shadow: 
    0 4px 0 #281d01,
    0 5px 8px rgba(0,0,0,0.5),
    0 0 15px rgba(212, 175, 55, 0.3);
  animation: pulse-glow-gold 3s infinite;
}

.spin-btn:active {
  transform: translateY(3px);
  box-shadow: 
    0 1px 0 #281d01,
    0 2px 3px rgba(0,0,0,0.5);
  animation: none;
}

.spin-btn.disabled, .spin-btn[disabled] {
  background: linear-gradient(180deg, #2a2a2f 0%, #17171a 100%) !important;
  border-color: #444 !important;
  box-shadow: none !important;
  animation: none !important;
}

/* Accessory Side Panel (Validator, printer, cheats) */
.accessory-panel {
  width: 250px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 2;
}

/* Bill Validator Graphics */
.bill-validator {
  background-color: #1a1a1f;
  border: 3px solid #333;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.validator-label {
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  letter-spacing: 1px;
  margin-bottom: 10px;
  color: #bbb;
}

.validator-slot {
  position: relative;
  height: 38px;
  background-color: #000;
  border-radius: 4px;
  border: 1px solid #444;
  overflow: hidden;
  margin-bottom: 15px;
}

.validator-opening {
  position: absolute;
  top: 10px; left: 10%; width: 80%; height: 18px;
  background-color: #111;
  border-radius: 2px;
  border-bottom: 2px solid #333;
}

.validator-green-leds {
  position: absolute;
  top: 6px; left: 5%; width: 90%; height: 2px;
  background-color: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
  animation: pulse-opacity 1s infinite alternate;
}

.bill-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.bill-btn {
  font-family: 'Outfit', sans-serif;
  height: 38px;
  border-radius: 6px;
  border: 1px solid #555;
  background: linear-gradient(180deg, #2d5a27 0%, #153011 100%);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.bill-btn:hover {
  background: linear-gradient(180deg, #376d30 0%, #1c4217 100%);
  border-color: var(--neon-green);
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.3);
}

.bill-instruction {
  font-size: 9px;
  color: #888;
  text-align: center;
}

/* Ticket Printer Panel & Printer Slot */
.ticket-printer-panel {
  background-color: #1a1a1f;
  border: 3px solid #333;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cashout-btn {
  font-family: 'Outfit', sans-serif;
  height: 42px;
  border-radius: 6px;
  border: 2px solid var(--gold-dark);
  background: linear-gradient(180deg, #1f1d1b 0%, #0d0c0b 100%);
  color: var(--gold-primary);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.cashout-btn:hover:not(:disabled) {
  border-color: var(--gold-primary);
  color: #fff;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

.printer-slot {
  height: 16px;
  background-color: #050505;
  border-radius: 2px;
  border: 1px solid #444;
  position: relative;
}

.printer-opening {
  position: absolute;
  top: 4px; left: 10%; width: 80%; height: 6px;
  background-color: #000;
  border-bottom: 1px solid #222;
}

/* Ticket Container and Ticket graphics */
.ticket-container {
  display: none;
  animation: slideOutTicket 1s ease-out forwards;
  position: relative;
  z-index: 100;
}

.ticket-paper {
  background-color: #fffff0;
  color: #000;
  padding: 12px;
  border-radius: 4px;
  border: 1px solid #ccc;
  box-shadow: 0 8px 20px rgba(0,0,0,0.6);
  font-family: 'Share Tech Mono', monospace;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.ticket-paper::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0; width: 100%; height: 6px;
  background: linear-gradient(-45deg, transparent 4px, #fffff0 4px), linear-gradient(45deg, transparent 4px, #fffff0 4px);
  background-size: 8px 12px;
}

.ticket-casino {
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 6px;
  border-bottom: 1px dashed #000;
  width: 100%;
  text-align: center;
  padding-bottom: 4px;
}

.ticket-barcode {
  font-size: 18px;
  letter-spacing: -2px;
  margin: 6px 0;
  font-weight: bold;
}

.ticket-amount {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
}

.ticket-date {
  font-size: 9px;
  color: #444;
  margin-bottom: 10px;
}

.ticket-tag {
  font-size: 8px;
  border: 1px solid #000;
  padding: 1px 4px;
  margin-bottom: 10px;
}

#ticket-collect-btn {
  font-family: 'Outfit', sans-serif;
  height: 28px;
  width: 100%;
  border-radius: 4px;
  border: 1px solid #000;
  background-color: #000;
  color: #fff;
  font-weight: 700;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.1s;
}

#ticket-collect-btn:hover {
  background-color: #222;
}

/* Dev Diagnostics Panel */
.cheat-panel {
  background-color: #1a1a1f;
  border: 3px solid #b22222;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.cheat-header {
  font-size: 9px;
  font-weight: 800;
  color: #ff4500;
  text-align: center;
  letter-spacing: 1px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 69, 0, 0.2);
  padding-bottom: 4px;
}

.cheat-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cheat-btn {
  font-family: 'Outfit', sans-serif;
  height: 28px;
  border-radius: 4px;
  border: 1px solid #555;
  background: #333;
  color: #ffb3b3;
  font-weight: 600;
  font-size: 10px;
  cursor: pointer;
}

.cheat-btn:hover {
  background: #444;
  border-color: #ff4500;
}

.cheat-desc {
  font-size: 8px;
  color: #777;
  text-align: center;
  margin-top: 4px;
}

/* Paytable Modal / Overlay Popup */
.overlay-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease-out;
}

.overlay-content {
  background: radial-gradient(circle, #2d041c 0%, #12010b 100%);
  width: 90%;
  max-width: 680px;
  max-height: 85vh;
  border-radius: 12px;
  border: 2px solid var(--gold-primary);
  padding: 24px;
  position: relative;
  overflow-y: auto;
  box-shadow: 0 15px 40px rgba(0,0,0,0.9), 0 0 20px rgba(212,175,55,0.25);
}

.close-overlay {
  position: absolute;
  top: 15px; right: 20px;
  font-size: 32px;
  color: #888;
  cursor: pointer;
  transition: color 0.2s;
}

.close-overlay:hover {
  color: #fff;
}

.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 0 6px var(--gold-primary);
  border-bottom: 2px solid rgba(212,175,55,0.25);
  padding-bottom: 8px;
}

/* Tab styling inside modal */
.tab-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.tab-header {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 8px;
}

.tab-btn {
  font-family: 'Outfit', sans-serif;
  padding: 8px 16px;
  background: none;
  border: none;
  color: #888;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
}

.tab-btn.active {
  color: #fff;
  background: var(--velvet-light);
  box-shadow: inset 0 0 8px rgba(0,0,0,0.4);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

/* Symbol Pays Tab Grid */
.pays-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 50vh;
  overflow-y: auto;
  padding-right: 10px;
}

/* Custom Scrollbar */
.pays-grid::-webkit-scrollbar, .overlay-content::-webkit-scrollbar {
  width: 6px;
}
.pays-grid::-webkit-scrollbar-track, .overlay-content::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.3);
}
.pays-grid::-webkit-scrollbar-thumb, .overlay-content::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 3px;
}

.pay-card {
  display: flex;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 10px 15px;
  align-items: center;
  gap: 20px;
}

.pay-card-img {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pay-card-img svg {
  width: 100%;
  height: 100%;
}

.pay-card-info {
  flex: 1;
}

.pay-card-info h3 {
  font-size: 14px;
  color: var(--gold-glowing);
  margin-bottom: 4px;
}

.pay-card-info p, .pay-card-info ul {
  font-size: 11px;
  color: #ccc;
  line-height: 1.4;
}

.pay-card-info ul {
  list-style: none;
  display: flex;
  gap: 15px;
}

.pay-card.text-symbols .card-icons {
  width: 70px;
  font-size: 20px;
  font-weight: 800;
  color: var(--gold-primary);
  text-align: center;
  font-family: 'Outfit', sans-serif;
  text-shadow: 0 0 5px rgba(212,175,55,0.4);
}

/* Features tab styling */
.features-text h3 {
  font-size: 15px;
  color: var(--gold-glowing);
  margin: 15px 0 5px 0;
}
.features-text h3:first-child {
  margin-top: 0;
}

.features-text p {
  font-size: 12px;
  color: #ccc;
  line-height: 1.5;
  margin-bottom: 10px;
}

/* Paylines preview grid layout */
.grid-preview {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 15px;
  max-height: 50vh;
  overflow-y: auto;
}

.payline-mini-card {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.3);
  padding: 6px;
  border-radius: 4px;
  text-align: center;
}

.mini-line-title {
  font-size: 9px;
  font-weight: bold;
  color: var(--gold-primary);
  margin-bottom: 4px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(5, 12px);
  grid-gap: 2px;
  justify-content: center;
}

.mini-cell {
  width: 12px;
  height: 8px;
  background-color: #222;
  border-radius: 1px;
}

.mini-cell.active {
  background-color: var(--neon-cyan);
  box-shadow: 0 0 3px var(--neon-cyan);
}

/* Keyframe Animations */
@keyframes pulse-glow {
  0% { transform: scale(1); opacity: 0.8; box-shadow: 0 0 5px var(--neon-cyan); }
  50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 15px var(--neon-cyan); }
  100% { transform: scale(1); opacity: 0.8; box-shadow: 0 0 5px var(--neon-cyan); }
}

@keyframes pulse-opacity {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}

@keyframes winning-pulse {
  0% { transform: scale(1.0); }
  100% { transform: scale(1.06); }
}

@keyframes border-flash {
  0% { opacity: 0.5; box-shadow: 0 0 5px var(--gold-primary); }
  100% { opacity: 1; box-shadow: 0 0 25px var(--gold-glowing); }
}

@keyframes dash {
  to {
    stroke-dashoffset: -24;
  }
}

@keyframes pulse-glow-gold {
  0% { box-shadow: 0 4px 0 #281d01, 0 5px 8px rgba(0,0,0,0.5), 0 0 15px rgba(212, 175, 55, 0.3); }
  50% { box-shadow: 0 4px 0 #281d01, 0 5px 8px rgba(0,0,0,0.5), 0 0 25px rgba(212, 175, 55, 0.7); }
  100% { box-shadow: 0 4px 0 #281d01, 0 5px 8px rgba(0,0,0,0.5), 0 0 15px rgba(212, 175, 55, 0.3); }
}

@keyframes pulse-border-purple {
  0% { border-color: rgba(157, 0, 255, 0.5); box-shadow: 0 0 5px rgba(157, 0, 255, 0.2); }
  50% { border-color: rgba(157, 0, 255, 1); box-shadow: 0 0 15px rgba(157, 0, 255, 0.6); }
  100% { border-color: rgba(157, 0, 255, 0.5); box-shadow: 0 0 5px rgba(157, 0, 255, 0.2); }
}

@keyframes slideOutTicket {
  0% { transform: translateY(-50px) scaleY(0.1); opacity: 0; display: block; }
  100% { transform: translateY(0) scaleY(1); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes dash {
  to {
    stroke-dashoffset: -40;
  }
}

/* SVG animations inside symbols (loaded dynamically) */
.svg-gondola-water {
  animation: wave 3s ease-in-out infinite alternate;
}

.svg-heart-pulse {
  animation: heart-beat 1.5s infinite alternate;
  transform-origin: center;
}

.svg-sunset-glow {
  animation: sunset-radiate 4s infinite alternate;
}

@keyframes wave {
  0% { transform: translateY(0); }
  100% { transform: translateY(1.5px); }
}

@keyframes heart-beat {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

@keyframes sunset-radiate {
  0% { opacity: 0.8; }
  100% { opacity: 1; }
}

/* Media Queries for Responsiveness */
@media (max-width: 1050px) {
  .casino-floor {
    flex-direction: column;
    height: auto;
    padding: 10px;
    gap: 15px;
    overflow-y: auto;
  }
  .cabinet {
    width: 100%;
    max-width: 760px;
    height: auto;
  }
  .accessory-panel {
    width: 100%;
    max-width: 760px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .bill-validator, .ticket-printer-panel, .cheat-panel {
    flex: 1;
    min-width: 200px;
  }
  .ticket-container {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .logo-text { font-size: 20px; }
  .logo-subtext { font-size: 6px; letter-spacing: 2px; }
  .denom-buttons, .bet-buttons { flex-wrap: wrap; }
  .square-btn { font-size: 9px; padding: 2px; height: 38px; }
  .spin-btn { font-size: 14px; height: 44px; }
  .symbol-box { height: 85px; }
  .ledger-value { font-size: 20px; }
  .cabinet-ledger-deck { height: 65px; gap: 8px; }
  .button-deck { padding: 8px; gap: 8px; }
  .panel-label { width: 70px; font-size: 8px; }
  .grid-preview { grid-template-columns: repeat(3, 1fr); }
}
