:root {
  --boost-electric: #00E5FF;
  --boost-gold: #FFC107;
  --boost-neon-green: #00FF88;
  --boost-purple: #9C27B0;
  --boost-orange: #FF6B00;
  --boost-pink: #FF4081;
  
  --primary: var(--boost-electric);
  --secondary: var(--boost-gold);
  --accent: var(--boost-neon-green);
  --accent2: var(--boost-purple);
  
  --primary-dark: #00B8D4;
  --primary-light: #64FFFF;
  --secondary-dark: #FFA000;
  --secondary-light: #FFECB3;
  
  --success: var(--boost-neon-green);
  --warning: var(--boost-orange);
  --danger: #FF1744;
  --info: var(--primary);
  
  --bg-primary: #0D0D1A;
  --bg-secondary: #1A1A2E;
  --bg-tertiary: #252541;
  --bg-card: #1E1E30;
  --bg-overlay: rgba(13, 13, 26, 0.96);
  
  --text-primary: #FFFFFF;
  --text-secondary: #E8E8F0;
  --text-tertiary: #C8C8D8;
  --text-muted: #9898B0;
  --text-inverse: #0D0D1A;
  
  --gradient-primary: linear-gradient(135deg, var(--boost-electric) 0%, var(--boost-purple) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--boost-gold) 0%, var(--boost-orange) 100%);
  --gradient-success: linear-gradient(135deg, var(--boost-neon-green) 0%, #00D170 100%);
  --gradient-boost: linear-gradient(90deg, var(--boost-electric) 0%, var(--boost-neon-green) 50%, var(--boost-gold) 100%);
  --gradient-bg: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
  --gradient-card: linear-gradient(145deg, var(--bg-card) 0%, rgba(30, 30, 48, 0.85) 100%);
  
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --container-padding: var(--space-md);
  --section-spacing: var(--space-xl);
  --card-padding: var(--space-md);
  
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.3);
  --shadow-electric: 0 0 24px rgba(0, 229, 255, 0.6);
  --shadow-gold: 0 0 20px rgba(255, 193, 7, 0.5);
  --shadow-boost: 0 0 30px rgba(0, 255, 136, 0.5);
  
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-tooltip: 1070;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--gradient-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  font-size: clamp(14px, 2.5vw, 16px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  will-change: scroll-position;
}

input, select, textarea, button {
  font-size: max(16px, 1rem);
  font-family: inherit;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

.container {
  width: 100%;
  max-width: 100%;
  padding: 0 var(--container-padding);
  margin: 0 auto;
  contain: layout style;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary);
  color: var(--text-inverse);
  padding: 8px 16px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  z-index: var(--z-tooltip);
  transition: var(--transition-fast);
  font-weight: 600;
}

.skip-link:focus {
  top: 6px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .btn, .nav-link, .content-card {
    transform: none !important;
  }
}

.header {
  position: sticky;
  top: 0;
  height: 56px;
  background: var(--bg-overlay);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 2px solid transparent;
  border-image: var(--gradient-boost) 1;
  z-index: var(--z-sticky);
  transition: var(--transition-base);
  contain: layout style;
  will-change: transform;
}

.header-content {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--secondary);
  font-weight: 700;
  font-size: clamp(var(--font-size-base), 3vw, var(--font-size-lg));
  text-shadow: var(--shadow-gold);
  transition: var(--transition-base);
  border-radius: var(--radius-sm);
  padding: var(--space-xs) var(--space-sm);
}

.logo:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.logo:hover {
  color: var(--primary);
  text-shadow: var(--shadow-electric);
  transform: scale(1.02);
}

.logo-icon {
  font-size: clamp(var(--font-size-xl), 4vw, var(--font-size-2xl));
  filter: drop-shadow(0 0 10px currentColor);
}

.main-nav {
  position: fixed;
  top: 56px;
  left: -100%;
  width: 100%;
  height: calc(100vh - 56px);
  background: var(--gradient-bg);
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: var(--z-dropdown);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.main-nav.active {
  left: 0;
}

.nav-menu {
  list-style: none;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-item {
  border-bottom: 1px solid rgba(0, 229, 255, 0.15);
}

.nav-item:last-child {
  border-bottom: none;
}

.nav-link {
  display: block;
  padding: var(--space-md) 0;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: var(--font-size-base);
  min-height: 48px;
  transition: var(--transition-base);
  position: relative;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
}

.nav-link:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  text-shadow: var(--shadow-electric);
}

.nav-link.active::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-electric);
}

.mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: var(--space-sm);
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
  border-radius: var(--radius-sm);
}

.mobile-toggle:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.mobile-toggle:hover {
  background: rgba(0, 229, 255, 0.1);
}

.mobile-toggle span {
  width: 24px;
  height: 3px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  transition: var(--transition-base);
  box-shadow: 0 0 10px currentColor;
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: calc(var(--z-dropdown) - 1);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: var(--font-size-base);
  line-height: 1.2;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  opacity: 0;
  transition: var(--transition-fast);
}

.btn:focus {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.btn:hover::before {
  opacity: 0.2;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-primary);
  border-color: var(--primary);
  box-shadow: var(--shadow-electric);
}

.btn-primary:hover {
  box-shadow: var(--shadow-electric), var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--secondary);
  border-color: var(--secondary);
  box-shadow: var(--shadow-gold);
}

.btn-secondary:hover {
  background: var(--gradient-secondary);
  color: var(--text-inverse);
  box-shadow: var(--shadow-gold), var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-boost {
  background: var(--gradient-boost);
  color: var(--text-inverse);
  border: none;
  box-shadow: var(--shadow-boost);
  animation: pulse-boost 2.5s infinite;
  font-weight: 800;
}

.btn-boost:hover {
  animation-play-state: paused;
  transform: translateY(-3px) scale(1.03);
}

.content-card {
  background: var(--gradient-card);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--card-padding);
  margin-bottom: var(--space-md);
  transition: var(--transition-base);
  position: relative;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.content-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient-boost);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: var(--transition-base);
}

.content-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.content-card:hover::before {
  opacity: 0.7;
}

.section-title {
  font-size: clamp(var(--font-size-xl), 5vw, var(--font-size-3xl));
  color: var(--secondary);
  font-weight: 800;
  margin-bottom: var(--space-sm);
  text-shadow: var(--shadow-gold);
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.section-subtitle {
  font-size: clamp(var(--font-size-sm), 2.5vw, var(--font-size-base));
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  font-weight: 500;
}

body[data-feature~="demo"] .demo-interface-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}

body[data-feature~="demo"] .game-frame {
  background: var(--gradient-card);
  border: 3px solid;
  border-image: var(--gradient-boost) 1;
  border-radius: var(--radius-xl);
  padding: var(--space-md);
  min-height: 400px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

body[data-feature~="demo"] .game-frame::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: var(--gradient-boost);
  border-radius: inherit;
  z-index: -1;
  opacity: 0.3;
  animation: rotate-glow 4s linear infinite;
}

body[data-feature~="demo"] .game-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  border-bottom: 2px solid rgba(0, 229, 255, 0.3);
  margin-bottom: var(--space-md);
  gap: var(--space-sm);
  flex-wrap: wrap;
}

body[data-feature~="demo"] .bet-btn {
  background: var(--gradient-secondary);
  color: var(--text-inverse);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: var(--font-size-lg);
  transition: var(--transition-bounce);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold);
}

body[data-feature~="demo"] .bet-btn:focus {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

body[data-feature~="demo"] .bet-btn:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: var(--shadow-gold), var(--shadow-lg);
}

body[data-feature~="demo"] .game-screen {
  flex: 1;
  background: radial-gradient(circle at center, var(--bg-tertiary) 0%, var(--bg-primary) 100%);
  border: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  min-height: 280px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 60px rgba(0, 255, 136, 0.15);
}

body[data-feature~="demo"] .reels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-xs);
  width: 100%;
  max-width: 500px;
  padding: var(--space-md);
}

body[data-feature~="demo"] .reel {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  padding: var(--space-xs);
}

body[data-feature~="demo"] .symbol {
  font-size: clamp(24px, 5vw, 36px);
  text-align: center;
  padding: var(--space-xs);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  transition: var(--transition-base);
}

body[data-feature~="demo"] .symbol.winning-symbol {
  animation: symbol-glow 0.5s ease-in-out infinite alternate;
  background: rgba(0, 255, 136, 0.2);
  box-shadow: 0 0 20px var(--accent);
}

body[data-feature~="demo"] .game-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

body[data-feature~="demo"] .paylines {
  position: absolute;
  inset: 0;
}

body[data-feature~="demo"] .payline {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent);
  opacity: 0.3;
  animation: payline-pulse 1s ease-in-out infinite;
}

body[data-feature~="demo"] .win-message {
  position: absolute;
  bottom: var(--space-md);
  right: var(--space-md);
  background: var(--gradient-primary);
  border: 3px solid var(--primary);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-lg);
  transform: translateY(15px);
  opacity: 0;
  transition: var(--transition-bounce);
  box-shadow: var(--shadow-electric);
  animation: pulse-boost 1.2s infinite;
  font-weight: 800;
  min-width: 150px;
  text-align: center;
}

body[data-feature~="demo"] .win-message.animate {
  transform: translateY(0);
  opacity: 1;
}

body[data-feature~="demo"] .win-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

body[data-feature~="demo"] .win-title {
  font-size: var(--font-size-lg);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

body[data-feature~="demo"] .win-amount {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--accent);
}

body[data-feature~="demo"] .win-credits {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
}

body[data-feature~="demo"] .boost-indicator {
  font-size: var(--font-size-sm);
  color: var(--accent);
  font-weight: 700;
  margin-top: var(--space-xs);
}

body[data-feature~="demo"] .spin-btn {
  width: 100%;
  background: var(--gradient-boost);
  color: var(--text-inverse);
  font-size: var(--font-size-lg);
  font-weight: 800;
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: var(--transition-bounce);
  box-shadow: var(--shadow-boost);
  text-transform: uppercase;
  letter-spacing: 1px;
}

body[data-feature~="demo"] .spin-btn:hover {
  transform: scale(1.03) translateY(-2px);
  box-shadow: var(--shadow-boost), var(--shadow-lg);
}

body[data-feature~="demo"] .spin-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

body[data-feature~="demo"] .autoplay-btn {
  background: var(--gradient-secondary);
  color: var(--text-inverse);
}

body[data-feature~="demo"] .autoplay-btn.active {
  background: var(--gradient-primary);
  animation: pulse-boost 2s infinite;
}

body[data-feature~="bonuses"] .bonus-calculator-interactive {
  background: rgba(0, 229, 255, 0.05);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  backdrop-filter: blur(10px);
  margin-top: var(--space-lg);
}

body[data-feature~="bonuses"] .calculator-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

body[data-feature~="bonuses"] .input-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

body[data-feature~="bonuses"] .input-group label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-secondary);
}

body[data-feature~="bonuses"] .calculator-input {
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  border: 2px solid rgba(0, 229, 255, 0.3);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-primary);
  font-weight: 600;
  transition: var(--transition-base);
}

body[data-feature~="bonuses"] .calculator-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.2);
}

body[data-feature~="bonuses"] .calculator-results {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

body[data-feature~="bonuses"] .result-section h5 {
  font-size: var(--font-size-lg);
  color: var(--secondary);
  margin-bottom: var(--space-sm);
  font-weight: 700;
}

body[data-feature~="bonuses"] .result-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(255, 193, 7, 0.2);
}

body[data-feature~="bonuses"] .result-row:last-child {
  border-bottom: none;
}

body[data-feature~="bonuses"] .result-label {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

body[data-feature~="bonuses"] .result-value {
  font-weight: 700;
  font-size: var(--font-size-base);
}

body[data-feature~="bonuses"] .result-value.highlight {
  color: var(--secondary);
}

body[data-feature~="bonuses"] .result-value.success {
  color: var(--success);
}

body[data-feature~="bonuses"] .result-value.warning {
  color: var(--warning);
}

body[data-feature~="bonuses"] .result-value.danger {
  color: var(--danger);
}

body[data-feature~="bonuses"] .probability-bar {
  height: 12px;
  background: rgba(0, 229, 255, 0.2);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: var(--space-sm);
}

body[data-feature~="bonuses"] .probability-fill {
  height: 100%;
  background: var(--gradient-primary);
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px var(--primary);
  border-radius: inherit;
}

body[data-feature~="bonuses"] .probability-fill.success {
  background: var(--gradient-success);
  box-shadow: 0 0 10px var(--success);
}

body[data-feature~="bonuses"] .probability-fill.warning {
  background: var(--gradient-secondary);
  box-shadow: 0 0 10px var(--secondary);
}

body[data-feature~="bonuses"] .probability-fill.danger {
  background: linear-gradient(135deg, var(--danger) 0%, #C41230 100%);
  box-shadow: 0 0 10px var(--danger);
}

body[data-feature~="bonuses"] .calculator-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: flex-end;
  flex-wrap: wrap;
}

body[data-feature~="strategies"] .strategy-tabs {
  background: var(--gradient-card);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-lg);
}

body[data-feature~="strategies"] .tab-buttons {
  display: flex;
  border-bottom: 2px solid rgba(0, 229, 255, 0.2);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body[data-feature~="strategies"] .tab-btn {
  flex: 1;
  min-width: 120px;
  padding: var(--space-md);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: var(--font-size-sm);
  transition: var(--transition-base);
  position: relative;
  cursor: pointer;
  white-space: nowrap;
}

body[data-feature~="strategies"] .tab-btn:focus {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

body[data-feature~="strategies"] .tab-btn:hover {
  background: rgba(0, 229, 255, 0.1);
  color: var(--primary);
}

body[data-feature~="strategies"] .tab-btn.active {
  background: rgba(0, 229, 255, 0.2);
  color: var(--primary);
  text-shadow: var(--shadow-electric);
}

body[data-feature~="strategies"] .tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  box-shadow: var(--shadow-electric);
}

body[data-feature~="strategies"] .tab-content {
  display: none;
  padding: var(--space-lg);
}

body[data-feature~="strategies"] .tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

body[data-feature~="strategies"] .rtp-breakdown {
  background: var(--bg-tertiary);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  margin: var(--space-md) 0;
  border: 1px solid rgba(0, 229, 255, 0.2);
}

body[data-feature~="strategies"] .rtp-bar {
  height: 10px;
  background: rgba(0, 229, 255, 0.2);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  margin-top: var(--space-sm);
}

body[data-feature~="strategies"] .rtp-fill {
  height: 100%;
  background: var(--gradient-primary);
  transition: width 1.5s ease-out;
  box-shadow: 0 0 10px var(--primary);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 700;
  background: var(--gradient-primary);
  color: var(--text-primary);
  box-shadow: var(--shadow-electric);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.live-indicator {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: var(--radius-full);
  margin-right: var(--space-xs);
  animation: pulse-dot 2s infinite;
  box-shadow: 0 0 12px currentColor;
}

.responsible-gaming-notice {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease-in-out;
}

.notice-content {
  background: var(--gradient-card);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  max-width: 500px;
  margin: var(--space-md);
  box-shadow: var(--shadow-lg);
}

.notice-content h4 {
  font-size: var(--font-size-2xl);
  color: var(--secondary);
  margin-bottom: var(--space-md);
}

.notice-content p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.notice-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: flex-end;
  flex-wrap: wrap;
}

.game-notification {
  position: fixed;
  top: 80px;
  right: var(--space-md);
  background: var(--gradient-card);
  border: 2px solid var(--info);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-tooltip);
  max-width: 300px;
  opacity: 0;
  transform: translateX(400px);
  transition: var(--transition-base);
}

.game-notification.show {
  opacity: 1;
  transform: translateX(0);
}

.game-notification.error {
  border-color: var(--danger);
  background: linear-gradient(145deg, rgba(255, 23, 68, 0.1) 0%, rgba(30, 30, 48, 0.85) 100%);
}

.game-notification.info {
  border-color: var(--info);
}

.autoplay-menu {
  background: var(--bg-card);
  border: 2px solid var(--primary);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
}

.autoplay-menu-title {
  font-weight: 700;
  color: var(--secondary);
  padding: var(--space-sm);
  border-bottom: 1px solid rgba(0, 229, 255, 0.2);
  margin-bottom: var(--space-xs);
}

.autoplay-option {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition-base);
  font-weight: 600;
}

.autoplay-option:hover {
  background: rgba(0, 229, 255, 0.1);
  color: var(--primary);
}

.stat-net-result.positive {
  color: var(--success);
}

.stat-net-result.negative {
  color: var(--danger);
}

@keyframes pulse-boost {
  0%, 100% {
    box-shadow: var(--shadow-boost);
    opacity: 1;
  }
  50% {
    box-shadow: var(--shadow-boost), 0 0 40px var(--accent);
    opacity: 0.95;
  }
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.3);
  }
}

@keyframes rotate-glow {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes symbol-glow {
  from {
    box-shadow: 0 0 10px var(--accent);
  }
  to {
    box-shadow: 0 0 25px var(--accent);
  }
}

@keyframes payline-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 229, 255, 0.2),
    transparent
  );
  animation: shimmer 1.5s infinite;
}

*:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

@media (min-width: 768px) {
  :root {
    --container-padding: var(--space-lg);
    --section-spacing: var(--space-2xl);
    --card-padding: var(--space-lg);
  }
  
  body {
    font-size: var(--font-size-base);
  }
  
  .container {
    max-width: 1200px;
  }
  
  .header {
    height: 64px;
  }
  
  .header-content {
    height: 64px;
  }
  
  .logo {
    font-size: var(--font-size-xl);
  }
  
  .main-nav {
    position: static;
    width: auto;
    height: auto;
    background: none;
    left: 0;
    overflow: visible;
  }
  
  .nav-menu {
    flex-direction: row;
    gap: var(--space-xl);
    padding: 0;
  }
  
  .nav-item {
    border-bottom: none;
  }
  
  .nav-link {
    padding: var(--space-sm) var(--space-md);
    border-bottom: 3px solid transparent;
  }
  
  .nav-link:hover,
  .nav-link.active {
    border-bottom-color: var(--primary);
  }
  
  .nav-link.active::before {
    display: none;
  }
  
  .mobile-toggle,
  .nav-overlay {
    display: none;
  }
  
  body[data-feature~="demo"] .demo-interface-container {
    grid-template-columns: 2fr 1fr;
    gap: var(--space-2xl);
  }
  
  body[data-feature~="demo"] .game-frame {
    min-height: 500px;
    padding: var(--space-lg);
  }
  
  body[data-feature~="demo"] .game-screen {
    min-height: 350px;
  }
  
  body[data-feature~="demo"] .reels {
    gap: var(--space-sm);
  }
  
  body[data-feature~="demo"] .symbol {
    font-size: 36px;
  }
}

@media (min-width: 1024px) {
  .header {
    height: 72px;
  }
  
  .header-content {
    height: 72px;
  }
  
  .logo {
    font-size: var(--font-size-2xl);
  }
  
  body[data-feature~="demo"] .game-frame {
    min-height: 600px;
  }
  
  body[data-feature~="demo"] .game-screen {
    min-height: 420px;
  }
  
  body[data-feature~="bonuses"] .calculator-inputs {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }
}

@media (max-width: 767px) {
  .btn {
    min-height: 48px;
    font-size: var(--font-size-sm);
    padding: var(--space-sm) var(--space-md);
  }
  
  .section-title {
    font-size: clamp(var(--font-size-lg), 5vw, var(--font-size-2xl));
  }
  
  .nav-link {
    min-height: 48px;
  }
  
  body[data-feature~="demo"] .game-frame::before {
    animation: none;
  }
  
  body[data-feature~="strategies"] .tab-buttons {
    justify-content: flex-start;
  }
  
  body[data-feature~="strategies"] .tab-btn {
    flex: 0 0 auto;
  }
}

@media (prefers-contrast: high) {
  :root {
    --primary: #00E5FF;
    --secondary: #FFC107;
    --accent: #00FF88;
    --text-primary: #FFFFFF;
    --bg-primary: #000000;
  }
  
  .btn {
    border-width: 3px;
  }
}

@media print {
  .header,
  .mobile-toggle,
  .nav-overlay,
  body[data-feature~="demo"] .game-frame {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}