/* ==========================================================================
   SLOT MACHINE CHASSIS & REEL MATRIX
   ========================================================================== */

.slot-machine-wrapper {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Freispiel-Banner oben */
#freespins-banner {
  display: none;
  background: linear-gradient(90deg, #ff00ea, #7928ca, #ffb700);
  padding: 10px 24px;
  border-radius: 12px;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #fff;
  box-shadow: 0 0 25px rgba(255, 0, 234, 0.6);
  animation: pulse-banner 1.5s infinite alternate;
}

@keyframes pulse-banner {
  0% { transform: scale(1); filter: brightness(1); }
  100% { transform: scale(1.01); filter: brightness(1.2); }
}

.fs-badge {
  background: #000;
  padding: 4px 12px;
  border-radius: 20px;
  color: var(--gold-neon);
  font-size: 15px;
}

/* Slot-Chassis Gehäuse */
.slot-chassis {
  position: relative;
  background: linear-gradient(180deg, #181232 0%, #0d091b 100%);
  border-radius: 24px;
  padding: 18px;
  border: 2px solid rgba(0, 240, 255, 0.35);
  box-shadow: 
    0 15px 45px rgba(0, 0, 0, 0.9),
    inset 0 2px 4px rgba(255, 255, 255, 0.15),
    0 0 30px rgba(121, 40, 202, 0.3);
}

/* Neon-Lichtleiste oben und an den Seiten */
.slot-chassis::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  border-radius: 26px;
  background: linear-gradient(45deg, #00f0ff, transparent 40%, #ff00ea 60%, #ffd700);
  z-index: -1;
  opacity: 0.45;
  filter: blur(6px);
}

/* Walzenfenster (Viewport) */
.reels-viewport {
  position: relative;
  background: #06040d;
  border-radius: 16px;
  border: 2px solid #231c42;
  overflow: hidden;
  box-shadow: 
    inset 0 15px 25px rgba(0, 0, 0, 0.9),
    inset 0 -15px 25px rgba(0, 0, 0, 0.9);
}

/* Gewölbte Glas-Reflexion (3D Trommel-Optik) */
.reels-viewport::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.02) 20%,
    transparent 45%,
    transparent 55%,
    rgba(0, 0, 0, 0.4) 85%,
    rgba(0, 0, 0, 0.7) 100%
  );
  pointer-events: none;
  z-index: 4;
}

/* Paylines & Laser-Canvas */
#paylines-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

/* Walzen-Container: 5 Spalten */
#reels-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(2px, 0.8vw, 6px);
  padding: clamp(4px, 1vw, 10px);
  position: relative;
  z-index: 2;
}

/* Einzelne Walze */
.slot-reel {
  position: relative;
  height: clamp(190px, 52vw, 340px);
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(20, 15, 38, 0.6) 0%, rgba(10, 7, 20, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.6);
  transition: box-shadow 0.2s, border-color 0.2s;
}

/* Anticipation-Effekt: Wenn Walze auf 3. Scatter wartet */
.slot-reel.anticipation-active {
  border-color: var(--magenta-neon);
  box-shadow: 0 0 25px var(--magenta-neon), inset 0 0 20px rgba(255, 0, 234, 0.5);
  animation: anticipation-pulse 0.4s infinite alternate;
  z-index: 3;
}

@keyframes anticipation-pulse {
  0% { transform: scale(1); filter: brightness(1); }
  100% { transform: scale(1.02); filter: brightness(1.3); }
}

/* Walzenstreifen (Symbol-Container) */
.reel-strip {
  display: flex;
  flex-direction: column;
  transition: transform 0.1s ease-out;
}

/* Schnelle Dreh-Animation */
.reel-strip.strip-spinning {
  animation: reel-spin-loop 0.25s linear infinite;
  filter: none;
}

@keyframes reel-spin-loop {
  0% { transform: translateY(0); }
  100% { transform: translateY(-33.33%); }
}

/* Walzen-Aufprall (Bounce beim Stoppen) */
.slot-reel.reel-bounce .reel-strip {
  animation: reel-bounce-anim 0.24s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes reel-bounce-anim {
  0% { transform: translateY(-14px); }
  60% { transform: translateY(6px); }
  100% { transform: translateY(0); }
}

/* Einzelnes Symbol */
.slot-symbol {
  height: clamp(63px, 17.3vw, 110px);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2px, 0.8vw, 8px);
  position: relative;
  transition: transform 0.2s ease;
}

.symbol-svg {
  width: 100%;
  height: 100%;
  max-width: 94px;
  max-height: 94px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Gewinnsymbol-Hervorhebung */
.slot-symbol.winner-symbol {
  z-index: 6;
}

.slot-symbol.winner-symbol .symbol-svg {
  transform: scale(1.18);
  animation: winner-pulse 0.7s infinite alternate ease-in-out;
}

@keyframes winner-pulse {
  0% { transform: scale(1.12); filter: drop-shadow(0 0 10px #ffd700); }
  100% { transform: scale(1.26); filter: drop-shadow(0 0 24px #ffd700); }
}

.slot-symbol.winner-symbol::after {
  content: '';
  position: absolute;
  top: 4px; left: 4px; right: 4px; bottom: 4px;
  border: 2px solid var(--gold-neon);
  border-radius: 12px;
  box-shadow: 0 0 18px var(--gold-neon), inset 0 0 10px rgba(255, 215, 0, 0.4);
  pointer-events: none;
  animation: border-glow 0.7s infinite alternate;
}

@keyframes border-glow {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

/* Scatter Highlight */
.symbol-scatter.scatter-highlight {
  animation: scatter-blast 0.6s ease-out;
}

@keyframes scatter-blast {
  0% { transform: scale(0.9); }
  50% { transform: scale(1.3); filter: drop-shadow(0 0 30px #ff00ea); }
  100% { transform: scale(1); }
}

/* ==========================================================================
   HUD METERS & CONTROLS DASHBOARD
   ========================================================================== */

.slot-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 18px;
  background: rgba(10, 7, 20, 0.95);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.meter-card {
  flex: 1;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 12px;
  padding: 10px 14px;
  text-align: center;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
}

.meter-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}

.meter-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.meter-balance .meter-value {
  color: var(--gold-neon);
  text-shadow: var(--glow-gold);
}

.meter-win .meter-value {
  color: var(--green-neon);
  text-shadow: 0 0 12px rgba(0, 255, 136, 0.6);
}

/* ==========================================================================
   BEDIENLEISTE (SPIN, AUTO, BET)
   ========================================================================== */

.slot-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.control-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.control-btn:hover:not(:disabled) {
  background: rgba(0, 240, 255, 0.2);
  border-color: var(--cyan-neon);
  box-shadow: var(--glow-cyan);
}

.control-btn:active:not(:disabled) {
  transform: scale(0.96);
}

.control-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.control-btn.active {
  background: linear-gradient(135deg, var(--magenta-neon), #7928ca);
  border-color: var(--magenta-neon);
  box-shadow: var(--glow-magenta);
}

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

.btn-spin-main {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid #00f0ff;
  background: radial-gradient(circle at 35% 35%, #00f0ff 0%, #0052cc 60%, #06112c 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1.5px;
  cursor: pointer;
  box-shadow: 
    0 0 25px rgba(0, 240, 255, 0.7),
    inset 0 3px 6px rgba(255, 255, 255, 0.5),
    0 10px 20px rgba(0, 0, 0, 0.7);
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-spin-main:hover:not(:disabled) {
  transform: scale(1.06);
  box-shadow: 
    0 0 40px rgba(0, 240, 255, 0.9),
    inset 0 4px 8px #ffffff;
.control-btn {
  touch-action: manipulation;
}

.btn-spin-main {
  touch-action: manipulation;
}

/* Responsives Design */
@media (max-width: 768px) {
  .slot-machine-wrapper {
    gap: 10px;
  }

  .slot-chassis {
    padding: 10px 8px;
    border-radius: 18px;
  }

  .meter-card {
    padding: 6px 8px;
  }

  .meter-label {
    font-size: 10px;
    letter-spacing: 0.5px;
  }

  .meter-value {
    font-size: clamp(15px, 4vw, 20px);
  }

  .slot-hud {
    padding: 8px 12px;
    gap: 8px;
    margin-top: 8px;
  }

  .slot-controls {
    margin-top: 8px;
    gap: 8px;
    justify-content: space-between;
  }

  .control-btn {
    padding: 8px 12px;
    font-size: 13px;
    min-width: 40px;
  }

  .btn-spin-main {
    width: 76px;
    height: 76px;
    font-size: 13px;
    letter-spacing: 1px;
  }
}

@media (max-width: 480px) {
  .slot-chassis {
    padding: 6px 4px;
    border-radius: 14px;
  }

  .slot-hud {
    padding: 6px 8px;
    gap: 4px;
  }

  .control-btn {
    padding: 6px 8px;
    font-size: 12px;
    min-width: 36px;
  }

  .btn-spin-main {
    width: 80px;
    height: 80px;
    font-size: 13px;
  }
}
