:root {
  --bg-dark: #050505;
  --bg-panel: rgba(10, 10, 15, 0.85);
  --neon-cyan: #00f3ff;
  --neon-magenta: #ff00ff;
  --neon-purple: #bc13fe;
  --neon-green: #0aff00;
  --text-main: #ffffff;
  --text-muted: #a1a1aa;
  
  --glow-cyan: 0 0 10px rgba(0, 243, 255, 0.5), 0 0 20px rgba(0, 243, 255, 0.3);
  --glow-magenta: 0 0 10px rgba(255, 0, 255, 0.5), 0 0 20px rgba(255, 0, 255, 0.3);
  --glow-text: 0 0 5px rgba(255, 255, 255, 0.5);
  
  --border-cyan: 1px solid rgba(0, 243, 255, 0.5);
  --border-magenta: 1px solid rgba(255, 0, 255, 0.5);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', 'Roboto', Helvetica, Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  /* Using the provided image as a backdrop */
  background-image: url('./.documents/cyber casino-composed-view-2026-02-04-3c93e25d.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Overlay to darken background for UI readability */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: -1;
}

.layout-container {
  width: 100%;
  max-width: 1200px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 95vh;
  justify-content: center;
}

/* Header */
.game-header {
  text-align: center;
  margin-bottom: 10px;
  position: relative;
}

.logo {
  font-family: 'Courier New', monospace;
  font-size: 3rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 4px;
  background: linear-gradient(90deg, var(--neon-cyan), #ffffff, var(--neon-magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
  animation: glitch 3s infinite alternate;
}

/* Main Machine Frame */
.slot-machine {
  background: rgba(20, 20, 30, 0.6);
  border: 2px solid var(--neon-purple);
  border-radius: 20px;
  padding: 40px;
  position: relative;
  box-shadow: 
    0 0 30px rgba(188, 19, 254, 0.3),
    inset 0 0 50px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-grow: 1;
  max-height: 800px;
}

/* Decorative frame corners */
.slot-machine::after {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  border-radius: 20px;
  background: linear-gradient(45deg, var(--neon-cyan), transparent 40%, transparent 60%, var(--neon-magenta));
  z-index: -1;
  opacity: 0.7;
}

/* Reels Container */
.reels-window {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid #333;
  padding: 10px;
  border-radius: 8px;
  height: 100%;
  box-shadow: inset 0 0 20px rgba(0,0,0,1);
  overflow: hidden;
  position: relative;
}

/* Paylines indicators (decorative) */
.payline-indicator {
  position: absolute;
  left: -20px;
  top: 50%;
  width: 10px;
  height: 10px;
  background: var(--neon-cyan);
  border-radius: 50%;
  box-shadow: var(--glow-cyan);
}
.payline-indicator.right {
  left: auto;
  right: -20px;
  background: var(--neon-magenta);
  box-shadow: var(--glow-magenta);
}

.reel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: space-around;
  height: 100%;
  position: relative;
}

/* Gradient overlay on reels to simulate curve */
.reels-window::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 100px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent);
  z-index: 2;
  pointer-events: none;
}
.reels-window::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 100px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  z-index: 2;
  pointer-events: none;
}

/* Symbols */
.symbol {
  background: rgba(30, 30, 40, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.symbol:hover {
  border-color: var(--neon-cyan);
  box-shadow: inset 0 0 15px rgba(0, 243, 255, 0.3);
}

.symbol-content {
  text-align: center;
  color: var(--text-main);
  z-index: 1;
}

.symbol-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Symbol Variants */
.symbol.wild {
  border: 1px solid var(--neon-purple);
  box-shadow: inset 0 0 20px rgba(188, 19, 254, 0.4);
}
.symbol.wild .symbol-text {
  color: var(--neon-purple);
  font-weight: 900;
  text-shadow: 0 0 10px var(--neon-purple);
}

.symbol.scatter {
  border: 1px solid var(--neon-cyan);
  box-shadow: inset 0 0 20px rgba(0, 243, 255, 0.4);
}
.symbol.scatter .symbol-text {
  color: var(--neon-cyan);
  font-weight: 900;
}

.symbol.bonus {
  border: 1px solid var(--neon-green);
  box-shadow: inset 0 0 20px rgba(10, 255, 0, 0.4);
}
.symbol.bonus .symbol-text {
  color: var(--neon-green);
  font-weight: 900;
}

.symbol.katana { color: var(--neon-cyan); }
.symbol.data { color: var(--neon-purple); }
.symbol.credit { color: #ffd700; text-shadow: 0 0 5px #ffd700; }
.symbol.dragon { color: var(--neon-magenta); }

/* Control Panel (HUD) */
.control-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
  border-top: 1px solid #333;
  border-radius: 0 0 16px 16px;
  backdrop-filter: blur(10px);
}

.stat-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 120px;
  text-align: center;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.stat-value {
  font-family: 'Courier New', monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--neon-cyan);
  text-shadow: 0 0 5px rgba(0, 243, 255, 0.5);
}

/* Spin Button */
.spin-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-spin {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, #2a2a2a, #000);
  border: 2px solid var(--neon-magenta);
  color: var(--text-main);
  font-weight: 900;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 
    0 0 20px rgba(255, 0, 255, 0.4),
    inset 0 0 10px rgba(255, 0, 255, 0.2);
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 2px;
  outline: none;
}

.btn-spin:hover {
  transform: scale(1.05);
  box-shadow: 
    0 0 40px rgba(255, 0, 255, 0.6),
    inset 0 0 20px rgba(255, 0, 255, 0.3);
  text-shadow: 0 0 10px white;
}

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

/* Controls (Bet/Lines) */
.controls-group {
  display: flex;
  gap: 15px;
}

.btn-control {
  background: transparent;
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  padding: 8px 16px;
  border-radius: 4px;
  font-family: monospace;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.btn-control:hover {
  background: rgba(0, 243, 255, 0.1);
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

.btn-control.max-bet {
  border-color: var(--neon-purple);
  color: var(--neon-purple);
}
.btn-control.max-bet:hover {
  background: rgba(188, 19, 254, 0.1);
  box-shadow: 0 0 10px rgba(188, 19, 254, 0.3);
}

/* Animations */
@keyframes glitch {
  0% { text-shadow: 2px 0 var(--neon-cyan), -2px 0 var(--neon-magenta); }
  25% { text-shadow: -2px 0 var(--neon-cyan), 2px 0 var(--neon-magenta); }
  50% { text-shadow: 2px 0 var(--neon-magenta), -2px 0 var(--neon-cyan); }
  75% { text-shadow: -2px 0 var(--neon-magenta), 2px 0 var(--neon-cyan); }
  100% { text-shadow: 2px 0 var(--neon-cyan), -2px 0 var(--neon-magenta); }
}

/* Responsive */
@media (max-width: 768px) {
  .reels-window {
    grid-template-columns: repeat(5, 1fr); /* Keep 5 cols but shrink */
    gap: 4px;
  }
  .symbol-icon {
    width: 32px;
    height: 32px;
  }
  .control-panel {
    flex-direction: column;
    gap: 20px;
  }
  .logo {
    font-size: 2rem;
  }
}
