:root {
  --neon-cyan: #00f0ff;
  --neon-pink: #ff007f;
  --neon-purple: #bd00ff;
  --neon-yellow: #ffee00;
  --bg-dark: #05050b;
  --panel-bg: rgba(10, 10, 24, 0.9);
  --border-neon: 1px solid rgba(0, 240, 255, 0.25);
  --font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --glow-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}
html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-dark);
  font-family: var(--font-family);
  color: #ffffff;
}
.disclaimer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 3, 7, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  transition: opacity 0.4s ease;
  padding: 24px;
}
.disclaimer-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}
.disclaimer-card {
  background: rgba(14, 14, 35, 0.95);
  border: 1px solid rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.2);
  border-radius: 12px;
  padding: 32px;
  width: 100%;
  max-width: 520px;
  text-align: center;
  animation: bounceIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.disclaimer-logo {
  font-weight: 900;
  color: #ffffff;
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-shadow: 0 0 8px var(--neon-cyan);
  margin-bottom: 20px;
}
.disclaimer-card h2 {
  font-size: 1.6rem;
  color: var(--neon-pink);
  margin-bottom: 16px;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(255, 0, 127, 0.3);
}
.disclaimer-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #c0c0e0;
  margin-bottom: 16px;
}
.disclaimer-subtext {
  font-size: 0.8rem;
  color: #8080a0;
  margin-bottom: 28px;
}
.disclaimer-btn {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  color: #ffffff;
  border: none;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 12px 32px;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
  transition: all 0.2s ease;
}
.disclaimer-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.7);
}
.game-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: rgba(4, 4, 10, 0.95);
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 100;
}
.top-logo {
  font-weight: 800;
  color: #ffffff;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-shadow: 0 0 6px var(--neon-cyan);
}
.top-balance-container {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 240, 255, 0.08);
  padding: 4px 12px;
  border-radius: 4px;
  border: 1px solid rgba(0, 240, 255, 0.2);
}
.balance-label {
  font-size: 0.75rem;
  color: #a0a0c0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.balance-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--neon-yellow);
  text-shadow: 0 0 4px rgba(255, 238, 0, 0.4);
}
.top-shop-btn {
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
  border: none;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(255, 0, 127, 0.3);
  transition: all 0.2s ease;
}
.top-shop-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(255, 0, 127, 0.5);
}
.game-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 35px;
  background: rgba(4, 4, 10, 0.95);
  border-top: 1px solid rgba(255, 0, 127, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  z-index: 100;
  font-size: 0.7rem;
  color: #8080a0;
  text-align: center;
}
.game-viewport {
  position: absolute;
  top: 40px;
  bottom: 35px;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at center, #0f0c24 0%, #030307 100%);
  overflow: hidden;
}
.canvas-container {
  flex-grow: 1;
  position: relative;
  width: 100%;
  height: calc(100% - 75px);
  padding: 6px;
}
#slot-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.game-controls {
  height: 75px;
  background: var(--panel-bg);
  border-top: 1px solid rgba(0, 240, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 12px;
  gap: 8px;
  z-index: 50;
  backdrop-filter: blur(8px);
}
.control-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.control-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.control-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}
.text-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 4px;
  padding: 4px 10px;
  min-width: 85px;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.6);
}
.display-label {
  font-size: 0.6rem;
  color: #8080a0;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.display-value {
  font-size: 0.9rem;
  font-weight: 800;
  color: #ffffff;
}
.display-adjuster {
  display: flex;
  align-items: center;
  gap: 8px;
}
.adjust-btn {
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: var(--neon-cyan);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.adjust-btn:hover {
  background: var(--neon-cyan);
  color: #000000;
  box-shadow: 0 0 8px var(--neon-cyan);
}
.highlighted {
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: inset 0 0 8px rgba(0, 240, 255, 0.15);
}
.highlighted .display-value {
  color: var(--neon-cyan);
  text-shadow: 0 0 5px rgba(0, 240, 255, 0.4);
}
.highlighted-win {
  border-color: rgba(255, 238, 0, 0.3);
  box-shadow: inset 0 0 8px rgba(255, 238, 0, 0.15);
}
.highlighted-win .display-value {
  color: var(--neon-yellow);
  text-shadow: 0 0 5px rgba(255, 238, 0, 0.5);
}
.main-actions {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.action-spin {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  border: none;
  color: #ffffff;
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 800;
  border-radius: 4px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
}
.action-spin:hover:not(:disabled) {
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.7);
}
.action-spin:disabled {
  background: #20202c;
  color: #555566;
  box-shadow: none;
  cursor: not-allowed;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.action-auto {
  border: 1px solid rgba(255, 0, 127, 0.35);
  color: var(--neon-pink);
  background: rgba(255, 0, 127, 0.08);
}
.action-auto:hover {
  background: var(--neon-pink);
  color: #ffffff;
  box-shadow: 0 0 10px var(--neon-pink);
}
.action-auto.active {
  background: var(--neon-pink);
  color: #ffffff;
  box-shadow: 0 0 15px var(--neon-pink);
  animation: pulse 1.5s infinite alternate;
}
.game-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 3, 8, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}
.game-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-body {
  background: rgba(14, 14, 32, 0.95);
  border: 1px solid rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.2);
  border-radius: 8px;
  padding: 24px;
  width: 100%;
  max-width: 580px;
  max-height: 90%;
  overflow-y: auto;
  text-align: center;
}
.modal-body h3 {
  color: var(--neon-cyan);
  margin-bottom: 6px;
  font-size: 1.3rem;
  letter-spacing: 1px;
}
.modal-sub {
  font-size: 0.75rem;
  color: #8080a0;
  margin-bottom: 20px;
}
.paytable-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.paytable-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px;
  border-radius: 6px;
  text-align: left;
}
.paytable-symbol-icon {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.75rem;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}
.paytable-symbol-icon[data-symbol="WILD"] {
  border-color: var(--neon-yellow);
  color: var(--neon-yellow);
  box-shadow: inset 0 0 8px rgba(255, 238, 0, 0.2);
}
.paytable-symbol-icon[data-symbol="CAR"] {
  border-color: var(--neon-pink);
  color: var(--neon-pink);
  box-shadow: inset 0 0 8px rgba(255, 0, 127, 0.2);
}
.paytable-symbol-icon[data-symbol="DRONE"] {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: inset 0 0 8px rgba(0, 240, 255, 0.2);
}
.paytable-symbol-icon[data-symbol="NEURAL"] {
  border-color: var(--neon-purple);
  color: var(--neon-purple);
  box-shadow: inset 0 0 8px rgba(189, 0, 255, 0.2);
}
.paytable-symbol-icon[data-symbol="CHIP"] {
  border-color: #39ff14;
  color: #39ff14;
  box-shadow: inset 0 0 8px rgba(57, 255, 20, 0.2);
}
.paytable-symbol-icon[data-symbol="EYE"] {
  border-color: #ff5e00;
  color: #ff5e00;
  box-shadow: inset 0 0 8px rgba(255, 94, 0, 0.2);
}
.paytable-symbol-icon[data-symbol="LINK"] {
  border-color: #ff00ff;
  color: #ff00ff;
  box-shadow: inset 0 0 8px rgba(255, 0, 255, 0.2);
}
.paytable-details {
  display: flex;
  flex-direction: column;
}
.paytable-details strong {
  font-size: 0.8rem;
  margin-bottom: 2px;
  color: #ffffff;
}
.paytable-details span {
  font-size: 0.65rem;
  color: #a0a0c0;
}
.modal-close-btn {
  background: var(--neon-cyan);
  color: #000000;
  border: none;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 10px 24px;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
  transition: all 0.2s ease;
}
.modal-close-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 0 15px var(--neon-cyan);
}
.big-win-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.big-win-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.big-win-content {
  text-align: center;
  animation: bounceIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.big-win-content h2 {
  font-size: 3rem;
  font-weight: 900;
  color: var(--neon-yellow);
  text-shadow: 0 0 15px var(--neon-yellow), 0 0 30px rgba(255, 238, 0, 0.5);
  margin-bottom: 10px;
  letter-spacing: 2px;
  animation: scalePulse 1s infinite alternate;
}
.big-win-amount {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 0 10px var(--neon-cyan);
}
@keyframes pulse {
  0% { opacity: 0.85; }
  100% { opacity: 1; box-shadow: 0 0 16px var(--neon-pink); }
}
@keyframes scalePulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}
@keyframes bounceIn {
  0% { opacity: 0; transform: scale(0.3); }
  50% { opacity: 0.9; transform: scale(1.1); }
  70% { transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}
@media (max-width: 640px) {
  .game-controls {
    flex-wrap: wrap;
    height: auto;
    padding: 10px;
    gap: 10px;
  }
  .canvas-container {
    height: calc(100% - 130px);
  }
  .control-group {
    min-width: 45%;
  }
  .main-actions {
    min-width: 95%;
    justify-content: stretch;
  }
  .action-spin {
    flex-grow: 1;
  }
  .paytable-grid {
    grid-template-columns: 1fr;
  }
  .disclaimer-card {
    padding: 16px 20px;
    border-radius: 8px;
  }
  .disclaimer-logo {
    margin-bottom: 12px;
    font-size: 0.9rem;
  }
  .disclaimer-card h2 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
  }
  .disclaimer-text {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 12px;
  }
  .disclaimer-subtext {
    font-size: 0.7rem;
    margin-bottom: 18px;
  }
  .disclaimer-btn {
    padding: 10px 24px;
    font-size: 0.8rem;
    border-radius: 4px;
  }
  .game-top-bar {
    padding: 0 8px;
  }
  .top-logo {
    font-size: 0.8rem;
    max-width: 90px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .top-balance-container {
    padding: 4px 8px;
    gap: 4px;
  }
  .balance-label {
    display: none !important; 
  }
  .balance-value {
    font-size: 0.8rem;
  }
  .top-shop-btn {
    font-size: 0.75rem;
    padding: 4px 8px;
    white-space: nowrap;
    flex-shrink: 0;
  }
}
