/* CSS Variables - Rockstar Theme */
:root {
  --bg: #12081b;
  --bg-alt: #1a0f26;
  --panel: #1f1028;
  --panel-softer: #271233;
  --accent: #ff2bbf;
  --accent-soft: #ff6fe0;
  --chip: #2a1638;
  --chip-active: #ffb400;
  --text: #f9f4ff;
  --muted: #a49ac1;
  --border-soft: rgba(255, 255, 255, 0.08);
  --radius: 18px;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 20px rgba(255, 43, 191, 0.3);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.loaded {
  opacity: 1;
}

body:not(.loaded) {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 280px;
  height: 100vh;
  background: var(--panel);
  border-right: 1px solid var(--border-soft);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0;
  overflow-y: auto;
  transition: transform 0.3s ease, width 0.3s ease;
}

/* Desktop: sidebar visible by default */
@media (min-width: 1025px) {
  .sidebar {
    transform: translateX(0);
  }
}

/* Mobile: sidebar hidden by default - removed, will be in mobile section */

.sidebar.collapsed {
  width: 80px;
}

.sidebar.collapsed .logo img {
  opacity: 0;
  width: 0;
  height: 0;
}

.sidebar.collapsed .nav-item {
  justify-content: center;
  padding: 1rem;
  padding-left: 1.25rem;
}

.sidebar.collapsed .nav-item span {
  opacity: 0;
  width: 0;
  overflow: hidden;
  margin: 0;
}

.sidebar.collapsed .nav-item svg {
  opacity: 1;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-left: 2px;
}

.sidebar.collapsed .sidebar-header {
  justify-content: center;
  padding: 0 1rem 2rem;
}

.sidebar-header {
  padding: 0 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.burger-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  flex-shrink: 0;
}

@media (min-width: 1025px) {
  .burger-btn {
    display: flex;
  }
}

.burger-btn span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

.logo img {
  width: 100%;
  height: auto;
  max-width: 120px;
  object-fit: contain;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 1rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  color: var(--muted);
  text-decoration: none;
  border-radius: 12px;
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}

.nav-item span {
  transition: opacity 0.3s ease, width 0.3s ease;
}

.nav-item svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  flex-shrink: 0;
  opacity: 1;
}

.nav-item:hover,
.nav-item.active {
  color: var(--text);
  background: var(--panel-softer);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}

.lang-switcher {
  margin-top: auto;
  margin-bottom: 1rem;
}

/* Main Content */
.main-content {
  margin-left: 280px;
  min-height: 100vh;
  transition: margin-left 0.3s ease;
}

/* Desktop only: adjust main content when sidebar collapsed */
@media (min-width: 1025px) {
  .sidebar.collapsed ~ .main-content {
    margin-left: 80px;
  }
}

/* Header */
.header {
  position: sticky;
  top: 0;
  background: var(--panel);
  border-bottom: 1px solid var(--border-soft);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  z-index: 100;
}

.header-logo {
  display: none;
  align-items: center;
  flex-shrink: 0;
  min-width: 120px;
}

.header-logo img {
  height: 40px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.header-search {
  flex: 1;
  max-width: 500px;
  position: relative;
  transition: margin-left 0.3s ease;
  cursor: pointer;
}

.header-search:hover {
  opacity: 0.9;
}

.header-search:hover .search-input {
  border-color: var(--accent);
  color: var(--text);
}

.header-search:hover .search-icon {
  color: var(--accent);
}

/* Show logo in header when sidebar is collapsed (desktop only) */
@media (min-width: 1025px) {
  .sidebar.collapsed ~ .main-content .header-logo {
    display: flex;
  }

  .sidebar.collapsed ~ .main-content .header-search {
    margin-left: 1rem;
  }
}

.search-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 3rem;
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.95rem;
  transition: var(--transition);
  display: block;
  pointer-events: none;
  user-select: none;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.header-actions {
  display: flex;
  gap: 1rem;
}

/* Buttons */
.btn {
  padding: 0.875rem 2rem;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #b91c7c 100%);
  color: var(--text);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 43, 191, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.btn-hero {
  padding: 1.25rem 3rem;
  font-size: 1.1rem;
  background: linear-gradient(135deg, var(--accent) 0%, #b91c7c 100%);
  color: var(--text);
  box-shadow: var(--shadow-glow);
  margin-top: 1.5rem;
}

.btn-collection {
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
}

/* Hero Banner Section */
.hero-banner-section {
  padding: 1.5rem 0;
  margin: 0;
  width: 100%;
  position: relative;
}

.hero-banner-container {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slider {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide.active {
  opacity: 1;
  position: relative;
}

.hero-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hero-button-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  pointer-events: none;
  padding: 0;
}

.hero-button-wrapper .btn {
  pointer-events: auto;
}

/* Mobile: button below banner */
@media (max-width: 1024px) {
  .hero-button-wrapper {
    position: static;
    transform: none;
    padding: 1rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
  }
}

.hero-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--chip-active);
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.indicator.active {
  background: var(--accent);
  width: 30px;
  border-radius: 5px;
}

.hero-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  padding: 0;
}

.hero-indicator.active {
  background: var(--accent);
  width: 30px;
  border-radius: 5px;
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
  color: var(--text);
  padding: 0;
}

.hero-nav:hover {
  background: rgba(0, 0, 0, 0.7);
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.1);
}

.hero-nav.hero-prev {
  left: 1rem;
}

.hero-nav.hero-next {
  right: 1rem;
}

.hero-nav svg {
  width: 24px;
  height: 24px;
}

/* Mini Game */
.mini-game-section {
  margin: 1rem 2rem;
  padding: 2rem;
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
}

.game-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.game-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.game-timer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

.timer-label {
  color: var(--muted);
  font-weight: 500;
}

.timer-value {
  color: var(--chip-active);
}

.game-area {
  position: relative;
  width: 100%;
  background: #0a0a1a;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border-soft);
}

#gameCanvas {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.game-ui {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  pointer-events: none;
}

.game-stats {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
  pointer-events: auto;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.7);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  box-sizing: border-box;
  flex-shrink: 0;
  min-width: 0;
}

.stat-label {
  color: var(--muted);
  font-size: 0.875rem;
}

.stat-value {
  color: var(--chip-active);
  font-weight: 700;
  font-size: 1rem;
}

.score-item {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 165, 0, 0.2) 100%);
  border-color: var(--chip-active);
}

.score-value {
  color: var(--chip-active);
  font-size: 1.1rem;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  animation: scorePulse 0.3s ease-out;
}

@keyframes scorePulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* Game Tutorial */
.game-tutorial {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.game-tutorial.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.tutorial-content {
  text-align: center;
  position: relative;
}

.tutorial-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: pointDown 1.5s ease-in-out infinite;
}

@keyframes pointDown {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(20px) rotate(10deg);
  }
}

.tutorial-text {
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.tutorial-pointer {
  position: absolute;
  width: 60px;
  height: 60px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulseRing 2s ease-out infinite;
  pointer-events: none;
}

@keyframes pulseRing {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}

.btn-start {
  pointer-events: auto;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
  color: var(--text);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(255, 20, 147, 0.4);
  align-self: center;
}

.btn-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(255, 20, 147, 0.6);
}

.btn-start:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-start.hidden {
  display: none;
}

/* Click Button - Pixel Style */
.btn-click {
  pointer-events: auto;
  padding: 1.25rem 2.5rem;
  font-size: 1.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ff1493 0%, #ff6b9d 100%);
  color: var(--text);
  border: 4px solid #ff1493;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.1s ease;
  box-shadow: 
    0 0 0 2px #000,
    0 0 0 4px #ff1493,
    0 8px 0 0 #cc0066,
    0 8px 0 2px #000,
    0 8px 0 4px #cc0066;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: 'Courier New', monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-width: 200px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  align-self: center;
}

.btn-click:active:not(:disabled) {
  transform: translateY(4px);
  box-shadow: 
    0 0 0 2px #000,
    0 0 0 4px #ff1493,
    0 4px 0 0 #cc0066,
    0 4px 0 2px #000,
    0 4px 0 4px #cc0066;
}

.btn-click:hover:not(:disabled) {
  background: linear-gradient(135deg, #ff6b9d 0%, #ff1493 100%);
  box-shadow: 
    0 0 0 2px #000,
    0 0 0 4px #ff6b9d,
    0 8px 0 0 #cc0066,
    0 8px 0 2px #000,
    0 8px 0 4px #cc0066,
    0 0 20px rgba(255, 20, 147, 0.6);
}

.btn-click:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: linear-gradient(135deg, #666 0%, #888 100%);
  border-color: #666;
  box-shadow: 
    0 0 0 2px #000,
    0 0 0 4px #666,
    0 4px 0 0 #444,
    0 4px 0 2px #000,
    0 4px 0 4px #444;
  transform: translateY(4px);
}

.btn-click-icon {
  font-size: 1.5rem;
  display: inline-block;
  animation: rocketPulse 1.5s ease-in-out infinite;
}

@keyframes rocketPulse {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-3px) rotate(-5deg);
  }
}

.btn-click:disabled .btn-click-icon {
  animation: none;
  opacity: 0.5;
}

.btn-click-text {
  position: relative;
  text-shadow: 
    2px 2px 0 #000,
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000;
}

.btn-click:not(:disabled) .btn-click-text {
  animation: textGlow 2s ease-in-out infinite;
}

@keyframes textGlow {
  0%, 100% {
    text-shadow: 
      2px 2px 0 #000,
      -1px -1px 0 #000,
      1px -1px 0 #000,
      -1px 1px 0 #000,
      0 0 10px rgba(255, 20, 147, 0.5);
  }
  50% {
    text-shadow: 
      2px 2px 0 #000,
      -1px -1px 0 #000,
      1px -1px 0 #000,
      -1px 1px 0 #000,
      0 0 20px rgba(255, 20, 147, 0.8);
  }
}

/* Win Popup */
.win-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
}

.win-popup.active {
  display: flex;
}

.win-popup-content {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  max-width: 500px;
  width: 90%;
  border: 2px solid var(--accent);
  box-shadow: 0 10px 50px rgba(255, 20, 147, 0.5);
  animation: popupAppear 0.3s ease-out;
}

@keyframes popupAppear {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.win-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.win-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
}

.win-message {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  font-weight: 700;
}

.win-bonus-text {
  margin-bottom: 2rem;
  text-align: center;
}

.win-bonus-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--chip-active);
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.win-bonus-spins {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 15px rgba(255, 20, 147, 0.6);
  line-height: 1.2;
}

.win-amount {
  font-size: 3rem;
  font-weight: 800;
  display: none;
  color: var(--chip-active);
  margin-bottom: 2rem;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
  animation: pulse 2s ease-in-out infinite;
}

.btn-win {
  padding: 1.25rem 3rem;
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--chip-active) 0%, #ffd700 100%);
  color: var(--bg);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}

.btn-win:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(255, 215, 0, 0.6);
}

/* Mobile Game Styles */
@media (max-width: 1024px) {
  .mini-game-section {
    margin: 0.5rem 1rem;
    padding: 1rem;
  }

  .game-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .game-title {
    font-size: 1.25rem;
  }

  #gameCanvas {
    height: 500px;
    min-height: 500px;
  }

  .game-area {
    min-height: 500px;
  }

  .game-ui {
    flex-direction: column;
    gap: 0.75rem;
    top: 1rem;
    bottom: auto;
    left: 1rem;
    right: 1rem;
    align-items: stretch;
  }

  .game-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
    justify-content: flex-end;
    padding-left: 50px;
  }

  .stat-item {
    flex: 0 0 auto;
    min-width: auto;
    max-width: none;
    padding: 0.5rem 0.5rem;
    font-size: 0.8rem;
    box-sizing: border-box;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .stat-value {
    font-size: 0.9rem;
  }

  .btn-start {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    align-self: center;
    max-width: 200px;
  }

  .btn-click {
    padding: 1rem 2rem;
    font-size: 1rem;
    min-width: 180px;
  }

  .btn-click-icon {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .mini-game-section {
    margin: 0.25rem 0.5rem;
    padding: 0.75rem;
  }

  #gameCanvas {
    height: 450px;
    min-height: 450px;
  }

  .game-area {
    min-height: 450px;
  }

  .game-ui {
    top: 0.75rem;
    bottom: auto;
    left: 0.75rem;
    right: 0.75rem;
    gap: 0.5rem;
  }

  .game-stats {
    justify-content: flex-end;
    padding-left: 50px;
  }

  .stat-item {
    padding: 0.4rem 0.4rem;
    font-size: 0.7rem;
    flex: 0 0 auto;
    min-width: auto;
    max-width: none;
  }

  .stat-label {
    font-size: 0.65rem;
  }

  .stat-value {
    font-size: 0.8rem;
  }

  .btn-start {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    max-width: 180px;
  }

  .btn-click {
    padding: 0.875rem 1.75rem;
    font-size: 0.9rem;
    min-width: 160px;
    border-width: 3px;
  }

  .btn-click-icon {
    font-size: 1.1rem;
  }

  .btn-click-text {
    font-size: 0.85rem;
    letter-spacing: 1px;
  }

  .win-popup-content {
    padding: 2rem 1.5rem;
  }

  .win-title {
    font-size: 1.5rem;
  }

  .win-bonus-amount {
    font-size: 2rem;
  }

  .win-bonus-spins {
    font-size: 1.5rem;
  }
}

/* Promo Strip */
.promo-strip {
  display: flex;
  gap: 1rem;
  padding: 0 2rem 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  justify-content: center;
}

.promo-strip::-webkit-scrollbar {
  display: none;
}

.promo-card {
  flex: 0 0 280px;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
}

.promo-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.promo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent) 0%, #b91c7c 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  margin-left: auto;
  margin-right: auto;
}

.promo-icon svg {
  color: var(--text);
}

.promo-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-align: center;
  width: 100%;
}

.promo-card p {
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
  width: 100%;
}

/* Category Chips */
.category-chips {
  display: flex;
  gap: 0.75rem;
  padding: 0 2rem 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  justify-content: center;
  flex-wrap: wrap;
}

.category-chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  padding: 0.75rem 1.5rem;
  background: var(--chip);
  border: 1px solid var(--border-soft);
  border-radius: 50px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  scroll-snap-align: start;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}

.chip:hover,
.chip.active {
  background: var(--chip-active);
  color: var(--bg);
  border-color: var(--chip-active);
}

/* Games Sections */
.games-section {
  padding: 2rem;
  margin-bottom: 2rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
}

.section-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.section-link:hover {
  color: var(--accent-soft);
}

/* Games Carousel */
.games-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-alt);
  padding-bottom: 0.5rem;
}

.games-carousel::-webkit-scrollbar {
  height: 8px;
}

.games-carousel::-webkit-scrollbar-track {
  background: var(--bg-alt);
  border-radius: 4px;
}

.games-carousel::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.game-card {
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  scroll-snap-align: start;
  flex: 0 0 200px;
  width: 200px;
  min-width: 200px;
  max-width: 200px;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow);
}

.game-image {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  flex-shrink: 0;
}

.game-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.game-card:hover .game-image img {
  transform: scale(1.1);
  filter: brightness(0.7);
}

.game-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
  z-index: 5;
  pointer-events: none;
}

.game-card:hover .game-image::after {
  background: rgba(0, 0, 0, 0.3);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
  color: var(--text);
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 15;
  box-shadow: 0 4px 20px rgba(255, 20, 147, 0.4);
  white-space: nowrap;
}

.play-button:hover {
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--accent) 100%);
  box-shadow: 0 6px 30px rgba(255, 20, 147, 0.6);
  transform: translate(-50%, -50%) scale(1.05);
}

.game-card:hover .play-button {
  opacity: 1;
  visibility: visible;
}

.game-info {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 80px;
}

.game-name {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.game-provider {
  font-size: 0.8rem;
  color: var(--muted);
}

.live-badge,
.jackpot-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--accent);
  color: var(--text);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.jackpot-badge {
  background: var(--chip-active);
  color: var(--bg);
}

.jackpot-amount {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--chip-active);
  font-weight: 700;
  font-size: 1.1rem;
  background: rgba(0, 0, 0, 0.7);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  z-index: 12;
  white-space: nowrap;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 0.9;
    transform: translateX(-50%) scale(1.02);
  }
}

/* Collections */
.collections-section {
  padding: 2rem;
  margin-bottom: 2rem;
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.collection-card {
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.collection-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.collection-image {
  width: 100%;
  height: auto;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-alt);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.collection-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top center;
  display: block;
}

.collection-info {
  padding: 1.5rem;
}

.collection-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.collection-count {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Providers */
.providers-section {
  padding: 3rem 2rem;
  background: var(--bg-alt);
  margin: 2rem 0;
}

.providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 2rem;
  align-items: center;
}

.provider-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-radius: 8px;
  background: var(--panel);
  transition: var(--transition);
  min-height: 60px;
}

.provider-logo img {
  max-width: 100%;
  max-height: 50px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0.8);
  transition: var(--transition);
}

.provider-logo:hover {
  background: var(--panel-softer);
  transform: translateY(-2px);
}

.provider-logo:hover img {
  filter: brightness(1);
}

/* About Section */
.about-section {
  padding: 3rem 2rem;
  background: var(--panel-softer);
  margin: 2rem 0;
}

.about-content {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.about-logo {
  display: flex;
  align-items: flex-start;
}

.about-logo img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.about-text h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--muted);
  line-height: 1.8;
}

.about-text strong {
  color: var(--text);
}

.about-social {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border-soft);
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: var(--panel);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
}

.rating-logo {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Accordions */
.footer-accordions {
  padding: 2rem;
  background: var(--bg-alt);
}

.accordion-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.accordion {
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  padding: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.accordion-header:hover {
  background: var(--panel-softer);
}

.accordion-header svg {
  transition: var(--transition);
}

.accordion-header[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-content ul {
  list-style: none;
  padding: 0 1.25rem 1.25rem;
}

.accordion-content li {
  margin-bottom: 0.75rem;
}

.accordion-content a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.accordion-content a:hover {
  color: var(--accent);
}

/* Payment Section */
.payment-section {
  padding: 2rem;
  background: var(--bg-alt);
}

.payment-grid,
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.payment-logo,
.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: var(--panel);
  border-radius: 8px;
  transition: var(--transition);
  min-height: 60px;
}

.payment-logo img {
  max-width: 100%;
  max-height: 40px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0.9);
  transition: var(--transition);
}

.payment-logo:hover,
.partner-logo:hover {
  background: var(--panel-softer);
  transform: translateY(-2px);
}

.payment-logo:hover img {
  filter: brightness(1.1);
}

.partner-logo {
  color: var(--muted);
  font-size: 0.85rem;
}

/* SEO Text */
.seo-text {
  max-width: 900px;
  margin: 3rem auto;
  padding: 3rem 1.5rem;
  background: var(--panel-softer);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.seo-text h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.seo-text h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.seo-text p {
  margin-bottom: 1.25rem;
  color: var(--muted);
  line-height: 1.8;
}

.seo-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-soft);
}

.seo-table tr {
  border-bottom: 1px solid var(--border-soft);
}

.seo-table tr:last-child {
  border-bottom: none;
}

.seo-table td {
  padding: 1rem;
  vertical-align: top;
}

.seo-table td:first-child {
  font-weight: 600;
  color: var(--accent);
  width: 200px;
  min-width: 150px;
}

.seo-table td:last-child {
  color: var(--text);
}

.seo-text ul,
.seo-text ol {
  margin-left: 2rem;
  margin-bottom: 1.25rem;
  color: var(--muted);
}

.seo-text blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  color: var(--muted);
  font-style: italic;
}

/* Bottom Footer */
.bottom-footer {
  padding: 2rem;
  text-align: center;
  background: var(--bg-alt);
  border-top: 1px solid var(--border-soft);
}

.footer-warning {
  max-width: 800px;
  margin: 0 auto 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.age-badge,
.partner-badge {
  padding: 0.5rem 1rem;
  background: var(--panel);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-copyright {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Mobile Bottom Bar */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--panel);
  border-top: 1px solid var(--border-soft);
  padding: 0.75rem 0 calc(0.75rem + env(safe-area-inset-bottom));
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  justify-content: space-around;
  align-items: center;
}

.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.7rem;
  transition: var(--transition);
  padding: 0.5rem;
  border-radius: 8px;
}

.mobile-nav-item svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.mobile-nav-item:hover,
.mobile-nav-item:active,
.mobile-nav-item:focus {
  color: var(--accent);
  background: var(--panel-softer);
}

.mobile-nav-item.deposit {
  color: #4ade80;
}

.mobile-nav-item.deposit:hover,
.mobile-nav-item.deposit:active {
  color: #22c55e;
}

/* Reveal Animation */
.reveal {
  animation: reveal 0.6s ease-out forwards;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
  pointer-events: all;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  /* Hide sidebar by default on mobile */
  .sidebar {
    transform: translateX(-100%);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5);
    width: 280px;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    visibility: visible;
    opacity: 1;
  }

  /* Show sidebar when open */
  .sidebar.open {
    transform: translateX(0);
  }

  /* Override collapsed state on mobile */
  .sidebar.collapsed {
    width: 280px;
    transform: translateX(-100%);
  }

  .sidebar.collapsed.open {
    transform: translateX(0);
  }
  
  /* Overlay behind sidebar */
  .sidebar-overlay {
    z-index: 999;
  }

  .burger-btn {
    display: flex;
    z-index: 1001;
    position: relative;
  }

  .main-content {
    margin-left: 0;
    padding-bottom: 80px; /* Space for mobile bottom bar */
  }

  .header {
    padding: 1rem;
    position: sticky;
    top: 0;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .header-logo {
    display: flex;
    flex: 1;
    min-width: 0;
    align-items: center;
  }

  .header-logo img {
    height: 44px;
    max-width: 100%;
  }

  .header-search {
    flex: 1;
    max-width: none;
    min-width: 0;
  }

  .header-actions {
    flex: 0 0 100%;
    display: flex;
    gap: 1rem;
    width: 100%;
  }

  .hero-banner-section {
    margin: 0;
    padding: 1rem 0;
  }

  .hero-banner-container {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .hero-slide img {
    width: 100%;
    height: auto;
    display: block;
  }

  .hero-button-wrapper {
    padding: 1rem;
    margin: 0;
  }

  .promo-strip {
    padding: 0 1rem 1rem;
    justify-content: center;
  }

  .category-chips {
    padding: 0 1rem 1rem;
    justify-content: center;
    flex-wrap: wrap;
  }

  .games-section {
    padding: 1.5rem 1rem;
  }

  .collections-grid {
    grid-template-columns: 1fr;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .accordion-container {
    grid-template-columns: 1fr;
  }

  .mobile-bottom-bar {
    display: flex;
  }

  .logo img {
    max-width: 100px;
  }

  .about-logo img {
    max-width: 120px;
  }

  .provider-logo img {
    max-height: 40px;
  }

  .payment-logo img {
    max-height: 35px;
  }
}

@media (max-width: 768px) {
  .header {
    flex-direction: row;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .header-logo {
    flex: 1;
    min-width: 0;
  }

  .header-search {
    flex: 1;
    min-width: 0;
  }

  .header-actions {
    flex: 0 0 100%;
    width: 100%;
    order: 3;
  }

  .btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }

  .game-card {
    flex: 0 0 150px;
  }

  .providers-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 1rem;
  }

  .seo-text {
    padding: 2rem 1rem;
  }

  .seo-text h2 {
    font-size: 1.5rem;
  }

  .seo-text h3 {
    font-size: 1.25rem;
  }

  .seo-table {
    font-size: 0.9rem;
  }

  .seo-table td {
    padding: 0.75rem;
  }

  .seo-table td:first-child {
    width: 120px;
    min-width: 100px;
  }
}

@media (max-width: 480px) {
  .hero-banner-section {
    margin: 0;
    padding: 0.75rem 0;
  }

  .hero-banner-container {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .promo-card {
    flex: 0 0 240px;
  }

  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .game-card {
    flex: 0 0 auto;
    width: 150px;
    min-width: 150px;
    max-width: 150px;
  }

  .game-image {
    height: 210px;
  }

  .main-content {
    padding-bottom: 70px;
  }

  .mobile-nav-item {
    font-size: 0.65rem;
    padding: 0.4rem;
  }

  .mobile-nav-item svg {
    width: 20px;
    height: 20px;
  }
}

