/* Slots Module CSS */
@keyframes floatUp {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-80px) scale(1.2); opacity: 0; }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
  20%, 40%, 60%, 80% { transform: translateX(3px); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(245,197,24,0.4), 0 4px 16px rgba(245,197,24,0.3); }
  50% { box-shadow: 0 0 32px rgba(245,197,24,0.7), 0 4px 24px rgba(245,197,24,0.5); }
}
@keyframes lampBlink {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
@keyframes winLineGlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
@keyframes textGlow {
  0%, 100% { text-shadow: 0 0 10px rgba(245,197,24,0.6), 0 0 20px rgba(245,197,24,0.4); }
  50% { text-shadow: 0 0 20px rgba(245,197,24,0.9), 0 0 30px rgba(245,197,24,0.6); }
}

.slots-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.slots-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.slots-container {
  font-family: -apple-system, system-ui, sans-serif;
  background: #0a0a0c;
  color: #eae6de;
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  position: relative;
  margin: 10px;
}

.slots-header {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #131316;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.slots-body {
  flex: 1;
  padding: 16px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slots-bg-effect {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center top, rgba(168,85,247,0.15) 0%, transparent 50%), radial-gradient(ellipse at center bottom, rgba(245,197,24,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.slots-title-section {
  text-align: center;
  margin-bottom: 8px;
  position: relative;
}

.slots-subtitle {
  font-size: 11px;
  color: #f5c518;
  font-weight: 600;
  letter-spacing: 2px;
  opacity: 0.7;
}

.slots-title {
  font-size: 24px;
  font-weight: 800;
  color: #f5c518;
  letter-spacing: 1px;
  animation: textGlow 3s ease-in-out infinite;
  font-family: 'Bebas Neue', 'Arial Black', sans-serif;
}

.slots-streak {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
  position: relative;
}

.slots-streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245,197,24,0.08);
  padding: 5px 14px;
  border-radius: 12px;
  border: 1px solid rgba(245,197,24,0.15);
}

.slots-machine {
  background: linear-gradient(180deg, #2a1810 0%, #1a0f08 100%);
  border-radius: 20px;
  padding: 20px 14px 16px;
  border: 2px solid #f5c518;
  box-shadow: 0 0 40px rgba(245,197,24,0.2), inset 0 0 30px rgba(0,0,0,0.6), inset 0 2px 0 rgba(245,197,24,0.4);
  position: relative;
  margin-bottom: 14px;
  width: 100%;
  box-sizing: border-box;
}

.slots-reels {
  display: flex;
  justify-content: center;
  gap: 10px;
  position: relative;
}

.slots-reel {
  width: 90px;
  height: 240px; /* SYMBOL_HEIGHT * 3 */
  background: linear-gradient(180deg, #1a1410 0%, #2a1f15 50%, #1a1410 100%);
  border-radius: 8px;
  border: 1px solid rgba(245,197,24,0.2);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 4px 12px rgba(0,0,0,0.6);
  transition: all 0.3s;
}

.slots-reel.highlight {
  border: 2px solid #f5c518;
  box-shadow: 0 0 24px #f5c518, inset 0 0 12px rgba(245,197,24,0.2);
}

.slots-reel-shadow-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(180deg, rgba(0,0,0,0.7), transparent);
  z-index: 2;
  pointer-events: none;
}

.slots-reel-shadow-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(0deg, rgba(0,0,0,0.7), transparent);
  z-index: 2;
  pointer-events: none;
}

.slots-reel-center {
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  height: 80px;
  border-top: 1px solid rgba(245,197,24,0.25);
  border-bottom: 1px solid rgba(245,197,24,0.25);
  background: rgba(245,197,24,0.05);
  zIndex: 1;
  pointer-events: none;
}

.slots-reel-strip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  will-change: transform;
}

.slots-symbol {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  transition: filter 0.3s;
}

.slots-win-line {
  position: absolute;
  top: 116px;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #f5c518, #f5c518, transparent);
  animation: winLineGlow 1s ease-in-out infinite;
  pointer-events: none;
  box-shadow: 0 0 12px #f5c518;
  z-index: 10;
}

.slots-win-display {
  margin-top: 14px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slots-win-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 18px;
}

.slots-spin-btn {
  cursor: pointer;
  background: linear-gradient(135deg, #f5c518 0%, #c9a000 100%);
  padding: 16px 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  animation: pulseGlow 2s ease-in-out infinite;
  min-width: 200px;
  color: #1a1200;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 2px;
  transition: transform 0.1s, opacity 0.3s;
  border: none;
}

.slots-spin-btn:disabled {
  background: rgba(255,255,255,0.06);
  color: #7a7670;
  border: 1px solid rgba(255,255,255,0.06);
  animation: none;
  opacity: 0.5;
  cursor: default;
}

.slots-paytable-btn {
  cursor: pointer;
  padding: 8px 16px;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #7a7670;
  margin-top: 12px;
}

.slots-footer {
  padding: 10px 16px;
  background: #131316;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  font-size: 11px;
  color: #4a4640;
}

.shake-anim {
  animation: shake 0.6s ease-in-out;
}

.floating-coin {
  position: absolute;
  pointer-events: none;
  animation: floatUp 1.2s ease-out forwards;
  z-index: 100;
}

.floating-coin-content {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0,0,0,0.6);
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid #f5c518;
  white-space: nowrap;
  color: #f5c518;
  font-weight: 700;
  font-size: 13px;
}

.slots-lamp {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f5c518;
  box-shadow: 0 0 12px #f5c518;
  animation: lampBlink 1.2s ease-in-out infinite;
}

/* Pay Table Modal */
.paytable-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}

.paytable-content {
  background: #1a1a1f;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(245,197,24,0.25);
}

.paytable-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.paytable-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
