/* Age gate */
.age-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

html.age-verified .age-gate-overlay {
  display: none !important;
}

.age-gate-modal {
  width: 100%;
  max-width: 440px;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.age-gate-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  background: var(--color-accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}

.age-gate-modal h2 {
  font-size: 1.35rem;
  color: var(--color-text-primary);
}

.age-gate-modal > p {
  font-size: 0.9375rem;
}

.age-gate-sub {
  font-size: 0.875rem !important;
  color: var(--color-text-muted) !important;
}

.age-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.age-gate-disclaimer {
  font-size: 0.75rem !important;
  color: var(--color-text-muted) !important;
  margin-bottom: 0 !important;
}

/* Header — must stack above .nav-overlay (8400); overlay is a sibling, not a child */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10000;
  transition: padding var(--transition), background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  padding: 0;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

.site-header.scrolled .nav-container {
  padding: 0.65rem 1.25rem;
}

@media (min-width: 768px) {
  .nav-container {
    padding: 1rem 2rem;
  }

  .site-header.scrolled .nav-container {
    padding: 0.65rem 2rem;
  }
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
}

.nav-logo:hover {
  color: var(--color-text-primary);
}

.logo-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-sm);
  background: rgba(249, 115, 22, 0.2);
  color: var(--color-accent-orange);
  border: 1px solid rgba(249, 115, 22, 0.35);
}

.nav-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: 0.9375rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-primary);
  cursor: pointer;
  transition: background var(--transition);
}

.nav-hamburger:hover {
  background: rgba(255, 255, 255, 0.08);
}

@media (min-width: 1024px) {
  .nav-hamburger {
    display: none;
  }
}

.nav-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 90vw);
  height: 100vh;
  z-index: 8500;
  background: var(--color-bg-secondary);
  border-left: 1px solid var(--color-border);
  padding: 5rem 1.5rem 2rem;
  transform: translateX(100%);
  transition: transform var(--transition);
  visibility: hidden;
}

.nav-mobile-drawer.open {
  transform: translateX(0);
  visibility: visible;
}

.nav-mobile-drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.nav-mobile-drawer a {
  color: var(--color-text-primary);
  font-weight: 600;
  font-size: 1.125rem;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 8400;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.nav-overlay.visible {
  opacity: 1;
  visibility: visible;
}

/* Footer */
.site-footer {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  padding: 3rem 0 2rem;
}

.footer-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-main {
    grid-template-columns: 2fr 1fr 1fr;
    padding: 0 2rem;
  }
}

.footer-brand .logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  display: block;
  margin-bottom: 0.75rem;
  color: var(--color-text-primary);
}

.footer-brand > p {
  font-size: 0.875rem;
  max-width: 320px;
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.footer-social a:hover {
  color: var(--color-accent-blue);
}

.footer-social svg {
  flex-shrink: 0;
}

.footer-social a span {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.footer-links h4 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
}

.footer-links a:hover {
  color: var(--color-text-primary);
}

.footer-compliance {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.25rem 0;
  border-top: 1px solid var(--color-border);
  margin-top: 2.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-compliance {
    padding: 2rem 2rem 0;
  }
}

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

.badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-age {
  background: rgba(249, 115, 22, 0.15);
  color: var(--color-accent-orange);
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.badge-free {
  background: rgba(79, 142, 247, 0.12);
  color: var(--color-accent-blue);
  border: 1px solid rgba(79, 142, 247, 0.25);
}

.badge-no-money {
  background: rgba(139, 92, 246, 0.12);
  color: var(--color-accent-purple);
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.footer-disclaimer {
  font-size: 0.75rem !important;
  color: var(--color-text-muted) !important;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 1rem;
}

.disclaimer-bar {
  background: rgba(17, 24, 39, 0.95);
  border-top: 1px solid var(--color-border);
  padding: 0.875rem 1.25rem;
}

.disclaimer-bar p {
  margin: 0;
  font-size: 0.8125rem;
  text-align: center;
  color: var(--color-text-muted);
}

/* Game card */
.game-card {
  position: relative;
  --game-accent: #4f8ef7;
  --game-accent-soft: rgba(79, 142, 247, 0.18);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.game-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--game-accent), transparent);
  z-index: 2;
}

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

.game-card-image {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 14, 26, 0.65);
  opacity: 0;
  transition: opacity var(--transition);
}

.game-card:hover .game-card-overlay {
  opacity: 1;
}

.game-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--game-accent), #8b5cf6);
  color: #fff;
}

.game-card-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.game-card-info h3 {
  margin-bottom: 0;
  font-size: 1.125rem;
}

.game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.game-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.game-card-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--game-accent);
  background: var(--game-accent-soft);
  border: 1px solid var(--game-accent-soft);
}

.game-card[data-game='lucky-spins'] {
  --game-accent: #4f8ef7;
  --game-accent-soft: rgba(79, 142, 247, 0.35);
}

.game-card[data-game='treasure-reels'] {
  --game-accent: #14b8a6;
  --game-accent-soft: rgba(20, 184, 166, 0.35);
}

.game-card[data-game='neon-fruits'] {
  --game-accent: #8b5cf6;
  --game-accent-soft: rgba(139, 92, 246, 0.35);
}

.game-card[data-game='diamond-rush'] {
  --game-accent: #f59e0b;
  --game-accent-soft: rgba(245, 158, 11, 0.35);
}

.game-card[data-game='wild-adventure'] {
  --game-accent: #22c55e;
  --game-accent-soft: rgba(34, 197, 94, 0.35);
}

.game-meta span::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-accent-blue);
  margin-right: 0.35rem;
  vertical-align: middle;
}

.game-meta span:first-child::before {
  margin-right: 0.35rem;
}

/* Benefit & trust */
.benefit-card,
.trust-item {
  padding: 1.75rem;
  border-radius: var(--radius-md);
  background: rgba(26, 34, 53, 0.6);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.benefit-card:hover,
.trust-item:hover {
  border-color: rgba(79, 142, 247, 0.25);
  box-shadow: var(--shadow-glow);
}

.benefit-card svg,
.trust-icon svg {
  display: block;
  margin-bottom: 1rem;
  color: var(--color-accent-blue);
}

.benefit-card h3,
.trust-item h4 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

/* Cookie */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9500;
  padding: 1rem 1.25rem 1.25rem;
  background: rgba(17, 24, 39, 0.97);
  border-top: 1px solid var(--color-border);
  backdrop-filter: blur(16px);
  transform: translateY(100%);
  animation: cookie-slide-in 0.45s var(--transition) forwards;
  animation-delay: 0.3s;
}

.cookie-banner[hidden] {
  display: none !important;
}

@keyframes cookie-slide-in {
  to {
    transform: translateY(0);
  }
}

.cookie-banner.dismissed {
  display: none !important;
}

.cookie-banner-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .cookie-banner-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cookie-banner-text strong {
  display: block;
  color: var(--color-text-primary);
  margin-bottom: 0.35rem;
}

.cookie-banner-text p {
  margin: 0;
  font-size: 0.875rem;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-preferences-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9600;
  max-height: 70vh;
  overflow-y: auto;
  padding: 1.5rem;
  background: var(--color-bg-card);
  border-top: 1px solid var(--color-border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transform: translateY(100%);
  transition: transform var(--transition);
}

.cookie-preferences-panel.open {
  transform: translateY(0);
}

.cookie-preferences-panel[hidden]:not(.open) {
  display: none;
}

.cookie-panel-inner {
  max-width: 480px;
  margin: 0 auto;
}

.cookie-panel-inner h3 {
  margin-bottom: 1rem;
}

.cookie-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.cookie-toggle-row span {
  font-size: 0.9375rem;
}

.cookie-toggle-row small {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.cookie-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--color-bg-secondary);
  border-radius: 999px;
  border: 1px solid var(--color-border);
  transition: background var(--transition);
}

.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 2px;
  background: var(--color-text-muted);
  border-radius: 50%;
  transition: transform var(--transition), background var(--transition);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background: rgba(79, 142, 247, 0.35);
  border-color: var(--color-accent-blue);
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
  transform: translateX(18px);
  background: var(--color-accent-blue);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-panel-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

/* AI Agent */
.ai-agent-trigger {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--color-accent-gradient);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(79, 142, 247, 0.5);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 0;
  transition: transform var(--transition), box-shadow var(--transition);
}

.ai-agent-trigger:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 28px rgba(79, 142, 247, 0.6);
}

.ai-agent-trigger::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(79, 142, 247, 0.4);
  animation: ai-pulse 2s ease-out infinite;
}

@keyframes ai-pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.15);
    opacity: 0;
  }
}

.ai-agent-chat {
  position: fixed;
  bottom: 170px;
  right: 24px;
  width: min(360px, calc(100vw - 32px));
  max-height: min(500px, 70vh);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 9000;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  animation: ai-chat-open 0.35s var(--transition);
}

@keyframes ai-chat-open {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ai-agent-chat[hidden] {
  display: none !important;
}

.ai-chat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-bottom: 1px solid var(--color-border);
  background: rgba(0, 0, 0, 0.2);
}

.ai-chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(79, 142, 247, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-blue);
}

.ai-chat-title {
  flex: 1;
}

.ai-chat-title strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--color-text-primary);
}

.ai-chat-title span {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.ai-chat-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-chat-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-primary);
}

.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  min-height: 200px;
  max-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ai-msg {
  max-width: 90%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  line-height: 1.5;
}

.ai-msg.bot {
  align-self: flex-start;
  background: rgba(79, 142, 247, 0.12);
  border: 1px solid rgba(79, 142, 247, 0.2);
  color: var(--color-text-secondary);
}

.ai-msg.user {
  align-self: flex-end;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: var(--color-text-primary);
}

.ai-typing {
  display: flex;
  gap: 4px;
  padding: 0.5rem 0.75rem;
}

.ai-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent-blue);
  animation: typing-bounce 1.2s infinite ease-in-out;
}

.ai-typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.ai-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typing-bounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.ai-chat-input-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--color-border);
}

.ai-chat-input-row input {
  flex: 1;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 0.875rem;
}

/* Forms */
.contact-form .form-group {
  margin-bottom: 1.25rem;
}

.contact-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--color-text-primary);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 0.9375rem;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  display: block;
  font-size: 0.75rem;
  color: #f87171;
  margin-top: 0.35rem;
  min-height: 1rem;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.form-checkbox input {
  width: auto;
  margin-top: 0.25rem;
}

.form-checkbox label {
  margin-bottom: 0;
  font-weight: 400;
  font-size: 0.875rem;
}

.form-success-message {
  margin-top: 0.75rem;
  padding: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-accent-blue);
  text-align: left;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  max-width: 400px;
}

.newsletter-form input[type='email'] {
  flex: 1;
  min-width: 200px;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  font-size: 0.875rem;
}

.newsletter-hint {
  font-size: 0.75rem;
  color: var(--color-accent-blue);
  margin-top: 0.35rem;
  width: 100%;
}

/* Game modal */
.game-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9200;
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.game-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.game-modal {
  width: 100%;
  max-width: 452px;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  position: relative;
  text-align: center;
}

.game-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-secondary);
  cursor: pointer;
}

.game-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-text-primary);
}

.game-modal h3 {
  margin-top: 0.5rem;
}

.coin-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(79, 142, 247, 0.15);
  border: 1px solid rgba(79, 142, 247, 0.35);
  font-weight: 700;
  color: var(--color-accent-blue);
  margin: 1rem 0;
}

.game-modal[data-game-variant='neon-fruits'] .coin-counter,
.game-modal[data-game-variant='diamond-rush'] .coin-counter,
.game-modal[data-game-variant='treasure-reels'] .coin-counter,
.game-modal[data-game-variant='wild-adventure'] .coin-counter {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--color-border);
  color: var(--color-accent-blue);
}

/* Slot machine modal (three reels) */
.spin-wheel-wrap {
  width: 100%;
  max-width: 340px;
  margin: 1.35rem auto 1rem;
}

.slot-machine-inner {
  position: relative;
  padding: 0;
  border-radius: var(--radius-lg);
}

.slot-marquee-bar {
  text-align: center;
  padding: 0.45rem 0.65rem;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: none;
  color: #fde68a;
  text-shadow: 0 0 12px rgba(250, 204, 21, 0.45);
}

.slot-cabinet {
  position: relative;
  padding: 1rem;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  border: 3px solid;
  border-top: none;
  background:
    radial-gradient(ellipse 80% 120% at 50% -20%, rgba(255, 255, 255, 0.12), transparent 55%),
    linear-gradient(180deg, rgb(36, 40, 55) 0%, rgb(16, 20, 32) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 40px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(0, 0, 0, 0.35);
}

.slot-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: radial-gradient(circle at 30% 30%, #fcd34d, #b45309);
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

.slot-corner-bl {
  bottom: -2px;
  left: -2px;
}

.slot-corner-br {
  bottom: -2px;
  right: -2px;
}

.slot-corner-tl {
  top: -2px;
  left: -2px;
}

.slot-corner-tr {
  top: -2px;
  right: -2px;
}

.slot-reels-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.slot-reel-cell {
  position: relative;
  min-height: 5.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(0, 0, 0, 0.5);
  background: linear-gradient(180deg, #0f1420 0%, #070a11 85%);
  box-shadow:
    inset 0 6px 16px rgba(0, 0, 0, 0.75),
    inset 0 -2px 0 rgba(255, 255, 255, 0.04),
    0 2px 0 rgba(255, 255, 255, 0.04);
}

.slot-payline {
  pointer-events: none;
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(239, 68, 68, 0.35) 12%,
    rgba(239, 68, 68, 0.85) 50%,
    rgba(239, 68, 68, 0.35) 88%,
    transparent 100%
  );
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
  z-index: 2;
  opacity: 0.9;
}

.slot-symbol {
  font-size: clamp(2.15rem, 9vw, 2.95rem);
  line-height: 1;
  -webkit-user-select: none;
  user-select: none;
}

.slot-machine-inner.tripled-win .slot-symbol {
  animation: slot-win-pop 0.55s ease both;
}

@keyframes slot-win-pop {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }

  45% {
    transform: scale(1.12);
    filter: brightness(1.35);
  }

  100% {
    transform: scale(1);
    filter: brightness(1.1);
  }
}

.slot-win-flash {
  margin-top: 0.85rem;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.slot-machine-inner.tripled-win .slot-win-flash {
  opacity: 1;
  transform: translateY(0);
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.35), rgba(245, 158, 11, 0.2));
  color: #fef3c7;
  border: 1px solid rgba(251, 191, 36, 0.45);
}

@keyframes slot-bonus-pulse {
  0% {
    box-shadow:
      inset 0 0 0 transparent,
      0 12px 40px rgba(0, 0, 0, 0.65);
  }

  50% {
    box-shadow:
      inset 0 0 42px rgba(79, 142, 247, 0.22),
      0 12px 40px rgba(0, 0, 0, 0.65);
  }

  100% {
    box-shadow:
      inset 0 0 0 transparent,
      0 12px 40px rgba(0, 0, 0, 0.65);
  }
}

.slot-machine-inner.slot-bonus-pulse .slot-cabinet {
  animation: slot-bonus-pulse 0.48s ease;
}

.spin-wheel-wrap.spinning .slot-reel-cell {
  animation: slot-reel-nudge 0.12s ease-in-out infinite;
}

.spin-wheel-wrap.spinning .slot-symbol {
  animation: slot-symbol-roll 0.08s linear infinite;
  filter: blur(1px);
}

@keyframes slot-reel-nudge {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2px);
  }
}

@keyframes slot-symbol-roll {
  0% {
    opacity: 0.45;
    transform: scaleY(0.94);
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
  }

  100% {
    opacity: 0.65;
    transform: scaleY(0.94);
  }
}

/* Slot themes */
.spin-wheel-wrap[data-slot-theme='classic'] .slot-marquee-bar {
  color: #fef08a;
}

.spin-wheel-wrap[data-slot-theme='classic'] .slot-cabinet {
  border-color: #c9973f;
  background:
    radial-gradient(ellipse 100% 80% at 50% -10%, rgba(201, 151, 63, 0.25), transparent 50%),
    linear-gradient(180deg, #2a1f14 0%, #120e0c 100%);
}

.spin-wheel-wrap[data-slot-theme='classic'] .slot-symbol {
  text-shadow:
    0 0 20px rgba(251, 191, 36, 0.45),
    0 2px 0 rgba(0, 0, 0, 0.6);
}

.spin-wheel-wrap[data-slot-theme='treasure'] .slot-marquee-bar {
  color: #99f6e4;
}

.spin-wheel-wrap[data-slot-theme='treasure'] .slot-cabinet {
  border-color: #14b8a6;
  background:
    radial-gradient(ellipse 90% 90% at 50% -20%, rgba(20, 184, 166, 0.35), transparent 55%),
    linear-gradient(180deg, #0c2f2f 0%, #061716 100%);
}

.spin-wheel-wrap[data-slot-theme='treasure'] .slot-payline {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(45, 212, 191, 0.4) 20%,
    rgba(167, 243, 208, 0.9) 50%,
    rgba(45, 212, 191, 0.4) 80%,
    transparent
  );
  box-shadow: 0 0 12px rgba(45, 212, 191, 0.5);
}

.spin-wheel-wrap[data-slot-theme='treasure'] .slot-symbol {
  text-shadow:
    0 0 16px rgba(45, 212, 191, 0.5),
    0 2px 0 rgba(0, 0, 0, 0.55);
}

.spin-wheel-wrap[data-slot-theme='neon'] .slot-marquee-bar {
  color: #e9d5ff;
  text-shadow: 0 0 14px rgba(139, 92, 246, 0.9);
}

.spin-wheel-wrap[data-slot-theme='neon'] .slot-cabinet {
  border-color: #a855f7;
  background:
    linear-gradient(
      180deg,
      rgba(139, 92, 246, 0.22) 0%,
      rgba(15, 10, 30, 1) 40%,
      rgba(12, 8, 24, 1) 100%
    ),
    radial-gradient(circle at 50% -30%, rgba(236, 72, 153, 0.25), transparent 60%);
  box-shadow:
    inset 0 0 28px rgba(139, 92, 246, 0.12),
    0 0 32px rgba(139, 92, 246, 0.25),
    0 12px 36px rgba(0, 0, 0, 0.6);
}

.spin-wheel-wrap[data-slot-theme='neon'] .slot-reel-cell {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow:
    inset 0 0 22px rgba(139, 92, 246, 0.12),
    inset 0 -2px 0 rgba(236, 72, 153, 0.15);
}

.spin-wheel-wrap[data-slot-theme='neon'] .slot-symbol {
  text-shadow:
    0 0 12px rgba(236, 72, 153, 0.8),
    0 0 24px rgba(139, 92, 246, 0.5);
}

.spin-wheel-wrap[data-slot-theme='crystal'] .slot-marquee-bar {
  color: #fde68a;
}

.spin-wheel-wrap[data-slot-theme='crystal'] .slot-cabinet {
  border-color: #f59e0b;
  background:
    radial-gradient(ellipse 80% 100% at 50% 0%, rgba(253, 230, 138, 0.2), transparent 55%),
    linear-gradient(180deg, #2a2312 0%, #15100a 100%);
}

.spin-wheel-wrap[data-slot-theme='crystal'] .slot-reel-cell {
  background: linear-gradient(180deg, #241c0f 0%, #0f0d08 90%);
}

.spin-wheel-wrap[data-slot-theme='crystal'] .slot-symbol {
  filter: saturate(1.15);
  text-shadow:
    0 0 18px rgba(253, 230, 138, 0.7),
    0 2px 0 rgba(0, 0, 0, 0.5);
}

.spin-wheel-wrap[data-slot-theme='wild'] .slot-marquee-bar {
  color: #bbf7d0;
}

.spin-wheel-wrap[data-slot-theme='wild'] .slot-cabinet {
  border-color: #22c55e;
  background:
    radial-gradient(ellipse 95% 80% at 30% -10%, rgba(34, 197, 94, 0.35), transparent 52%),
    linear-gradient(180deg, #0f2618 0%, #07130c 100%);
}

.spin-wheel-wrap[data-slot-theme='wild'] .slot-payline {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(34, 197, 94, 0.35) 15%,
    rgba(74, 222, 128, 0.95) 50%,
    rgba(34, 197, 94, 0.35) 85%,
    transparent
  );
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.45);
}

.spin-wheel-wrap[data-slot-theme='wild'] .slot-symbol {
  text-shadow:
    0 0 14px rgba(74, 222, 128, 0.5),
    0 2px 0 rgba(0, 0, 0, 0.5);
}

.game-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.25rem;
}
