/* Slotoro Casino - Static Site Styles */
/* Compiled from Tailwind + Custom CSS */

/* ============================================
   CSS VARIABLES (Design System)
   ============================================ */
:root {
  /* Casino Dark Theme - JoyCasino */
  --background: 0 0% 0%;
  --foreground: 0 0% 96%;

  --card: 0 0% 13%;
  --card-foreground: 0 0% 96%;

  --popover: 0 0% 10%;
  --popover-foreground: 0 0% 96%;

  /* Primary - JoyCasino Orange CTA */
  --primary: 24 93% 56%;
  --primary-foreground: 0 0% 100%;

  /* Secondary - Soft Charcoal */
  --secondary: 0 0% 18%;
  --secondary-foreground: 0 0% 96%;

  /* Muted - Casino Charcoal */
  --muted: 0 0% 18%;
  --muted-foreground: 0 0% 68%;

  /* Accent - Bronze/Gold */
  --accent: 32 70% 45%;
  --accent-foreground: 0 0% 96%;

  /* Destructive */
  --destructive: 0 84% 60%;
  --destructive-foreground: 45 100% 95%;

  /* Success - Neon Green */
  --success: 145 70% 45%;
  --success-foreground: 260 50% 5%;

  --border: 0 0% 22%;
  --input: 0 0% 18%;
  --ring: 24 93% 56%;

  --radius: 0.75rem;

  /* Custom Casino Colors */
  --casino-dark: 0 0% 0%;
  --casino-purple-deep: 0 0% 8%;
  --casino-purple: 0 0% 18%;
  --casino-purple-light: 24 70% 42%;
  --casino-magenta: 24 93% 56%;
  --casino-yellow: 32 90% 58%;
  --casino-gold: 35 65% 58%;
  --casino-green: 145 70% 45%;

  /* Shadows */
  --shadow-glow-yellow: 0 0 28px hsl(24, 93%, 56%, 0.35);
  --shadow-glow-purple: 0 0 30px hsl(24, 93%, 56%, 0.22);
  --shadow-card: 0 8px 32px hsl(0, 0%, 0%, 0.55);
}

/* Dynamic viewport height for mobile */
:root {
  --vh: 1vh;
}

/* ============================================
   BASE RESET & DEFAULTS
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  font-size: 16px;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  content-visibility: auto;
}

/* Lazy loaded images fade-in effect */
img[loading="lazy"] {
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

/* Prevent layout shift for images */
img[width][height] {
  aspect-ratio: attr(width) / attr(height);
}

/* Prevent image overflow */
img[src] {
  max-width: 100%;
  width: auto;
}

/* ============================================
   RESPONSIVE IMAGE SYSTEM
   ============================================ */

/* Base responsive image - fills container */
.img-responsive {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Contain image within bounds */
.img-contain {
  object-fit: contain;
}

/* Cover image fills container */
.img-cover {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* Fluid image with max-width */
.img-fluid {
  max-width: 100%;
  height: auto;
}

/* Game card images - consistent aspect ratio */
.game-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform 0.3s ease;
}

.game-card:hover .game-card-img {
  transform: scale(1.05);
}

/* Hero/Banner images - full width responsive */
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Promo card images */
.promo-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Character/mascot images */
.character-img {
  max-height: 250px;
  width: auto;
  object-fit: contain;
}

@media (min-width: 640px) {
  .character-img { max-height: 350px; }
}

@media (min-width: 768px) {
  .character-img { max-height: 400px; }
}

@media (min-width: 1024px) {
  .character-img { max-height: 500px; }
}

/* Provider/logo images */
.logo-img {
  max-height: 32px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) brightness(1.5);
  transition: filter 0.3s ease;
}

.logo-img:hover {
  filter: grayscale(0%) brightness(1);
}

@media (min-width: 768px) {
  .logo-img { max-height: 40px; }
}

/* Bonus/feature images */
.bonus-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .bonus-img { width: 100px; height: 100px; }
}

/* Payment method icons */
.payment-icon {
  height: 24px;
  width: auto;
  object-fit: contain;
}

@media (min-width: 768px) {
  .payment-icon { height: 32px; }
}

/* Thumbnail images in grids */
.thumb-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: calc(var(--radius) * 0.5);
}

/* Featured large images */
.featured-img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: var(--radius);
}

@media (min-width: 768px) {
  .featured-img { aspect-ratio: 21 / 9; }
}

/* Background cover images */
.bg-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* Image loading states */
.img-loading {
  background: linear-gradient(90deg, hsl(var(--muted)) 0%, hsl(var(--muted) / 0.5) 50%, hsl(var(--muted)) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Lazy load fade-in */
.img-lazy {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.img-lazy.loaded {
  opacity: 1;
}

/* Aspect ratio containers for responsive images */
.aspect-3-2 { aspect-ratio: 3 / 2; }
.aspect-4-3 { aspect-ratio: 4 / 3; }
.aspect-16-9 { aspect-ratio: 16 / 9; }
.aspect-21-9 { aspect-ratio: 21 / 9; }
.aspect-1-1 { aspect-ratio: 1 / 1; }

/* Responsive image sizes - CRITICAL for mobile */
@media (max-width: 639px) {
  .hero-character img { height: auto; max-height: 200px; max-width: 60vw; }
  .promo-card img { aspect-ratio: 16 / 9; max-width: 100%; }
  .game-card img { aspect-ratio: 4 / 3; max-width: 100%; }
  .bonus-highlight-image { display: none; }
  
  /* Force all images to be responsive on mobile */
  img {
    max-width: 100% !important;
    height: auto !important;
  }
  
  /* Section images */
  section img {
    max-width: 100%;
    width: 100%;
    height: auto;
    object-fit: cover;
  }
  
  /* Feature card images */
  .feature-card-image {
    max-width: 100%;
    overflow: hidden;
  }
  
  .feature-card-image img {
    width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: cover;
  }
}

@media (min-width: 640px) and (max-width: 767px) {
  .hero-character img { max-height: 280px; max-width: 50vw; }
  
  img {
    max-width: 100%;
    height: auto;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero-character img { max-height: 350px; max-width: 45vw; }
}

/* Image container with fixed aspect ratio */
.img-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.img-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

h2, h3 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

h4, h5, h6 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

/* Flexbox */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* Spacing */
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.pt-16 { padding-top: 4rem; }
.pt-20 { padding-top: 5rem; }
.pt-24 { padding-top: 6rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Width/Height */
.w-full { width: 100%; }
.w-auto { width: auto; }
.h-auto { height: auto; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.min-h-screen { min-height: 100vh; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }

/* Text */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-7xl { font-size: 4.5rem; line-height: 1; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }
.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.leading-relaxed { line-height: 1.625; }

@media (min-width: 640px) {
  .sm\:text-xl { font-size: 1.25rem; }
  .sm\:text-2xl { font-size: 1.5rem; }
  .sm\:text-3xl { font-size: 1.875rem; }
  .sm\:text-4xl { font-size: 2.25rem; }
  .sm\:text-5xl { font-size: 3rem; }
}

@media (min-width: 768px) {
  .md\:text-3xl { font-size: 1.875rem; }
  .md\:text-4xl { font-size: 2.25rem; }
  .md\:text-5xl { font-size: 3rem; }
  .md\:text-6xl { font-size: 3.75rem; }
  .md\:text-7xl { font-size: 4.5rem; }
}

/* Colors */
.text-foreground { color: hsl(var(--foreground)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-primary { color: hsl(var(--primary)); }
.text-success { color: hsl(var(--success)); }
.text-destructive { color: hsl(var(--destructive)); }
.bg-background { background-color: hsl(var(--background)); }
.bg-card { background-color: hsl(var(--card)); }
.bg-muted { background-color: hsl(var(--muted)); }
.bg-primary { background-color: hsl(var(--primary)); }
.bg-destructive { background-color: hsl(var(--destructive)); }

/* Border */
.border { border-width: 1px; border-style: solid; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-border { border-color: hsl(var(--border)); }
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* Display */
.hidden { display: none; }
.block { display: block; }
.inline { display: inline; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }

@media (min-width: 640px) {
  .sm\:flex { display: flex; }
  .sm\:hidden { display: none; }
  .sm\:block { display: block; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:block { display: block; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:order-1 { order: 1; }
  .md\:order-2 { order: 2; }
}

@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
  .lg\:block { display: block; }
}

@media (min-width: 1280px) {
  .xl\:flex { display: flex; }
  .xl\:hidden { display: none; }
}

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }
.overflow-y-auto { overflow-y: auto; }

/* Object Fit */
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

/* Opacity */
.opacity-0 { opacity: 0; }
.opacity-25 { opacity: 0.25; }
.opacity-30 { opacity: 0.3; }
.opacity-40 { opacity: 0.4; }
.opacity-50 { opacity: 0.5; }
.opacity-60 { opacity: 0.6; }
.opacity-80 { opacity: 0.8; }
.opacity-100 { opacity: 1; }

/* Transitions */
.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.ease-out { transition-timing-function: cubic-bezier(0, 0, 0.2, 1); }

/* Transform */
.transform { transform: translateX(var(--tw-translate-x, 0)) translateY(var(--tw-translate-y, 0)) rotate(var(--tw-rotate, 0)) skewX(var(--tw-skew-x, 0)) skewY(var(--tw-skew-y, 0)) scaleX(var(--tw-scale-x, 1)) scaleY(var(--tw-scale-y, 1)); }
.scale-100 { --tw-scale-x: 1; --tw-scale-y: 1; transform: scale(1); }
.scale-105 { transform: scale(1.05); }
.scale-110 { transform: scale(1.1); }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:scale-110:hover { transform: scale(1.1); }
.translate-y-0 { --tw-translate-y: 0; transform: translateY(0); }
.-translate-y-full { transform: translateY(-100%); }

/* Shadow */
.shadow { box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); }
.drop-shadow-2xl { filter: drop-shadow(0 25px 25px rgb(0 0 0 / 0.15)); }

/* Pointer */
.pointer-events-none { pointer-events: none; }
.cursor-pointer { cursor: pointer; }

/* ============================================
   COMPONENT STYLES
   ============================================ */

/* Glass Effect Header */
.glass-effect {
  backdrop-filter: blur(12px);
  background: hsl(260 45% 10% / 0.95);
  -webkit-backdrop-filter: blur(12px);
}

/* Text Gradients */
.text-gradient-gold {
  background: linear-gradient(135deg, hsl(52, 100%, 55%) 0%, hsl(45, 90%, 60%) 50%, hsl(52, 100%, 50%) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-purple {
  background: linear-gradient(135deg, hsl(270, 70%, 60%) 0%, hsl(290, 80%, 65%) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Casino Card */
.casino-card {
  background: linear-gradient(180deg, hsl(260, 45%, 12%) 0%, hsl(260, 50%, 8%) 100%);
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: all 0.2s ease;
  border: none;
  outline: none;
}

.btn:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.btn-sm {
  height: 2.25rem;
  padding: 0 0.75rem;
  font-size: 0.875rem;
}

.btn-md {
  height: 2.5rem;
  padding: 0 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  height: 3rem;
  padding: 0 2rem;
  font-size: 1rem;
}

.btn-hero {
  background: linear-gradient(135deg, hsl(24, 93%, 58%) 0%, hsl(24, 90%, 48%) 100%);
  color: hsl(var(--primary-foreground));
  font-weight: 700;
  box-shadow: var(--shadow-glow-yellow);
}

.btn-hero:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 40px hsl(24, 93%, 56%, 0.45);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
}

.btn-outline:hover {
  background: hsl(var(--muted));
}

.btn-ghost {
  background: transparent;
  color: hsl(var(--foreground));
}

.btn-ghost:hover {
  background: hsl(var(--muted));
}

.btn-nav {
  background: transparent;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
}

.btn-nav:hover {
  color: hsl(var(--foreground));
  background: hsl(var(--muted) / 0.5);
}

.btn-nav.active {
  color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.16);
}

/* Icon Button */
.btn-icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
}

@media (min-width: 640px) {
  .header-inner { height: 4rem; }
}

@media (min-width: 768px) {
  .header-inner { height: 5rem; }
}

.logo {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.logo-joy {
  display: inline-flex;
  align-items: center;
  min-width: 126px;
}

.logo-joy img {
  width: 126px;
  height: 32px;
  object-fit: contain;
  content-visibility: visible;
}

@media (min-width: 640px) {
  .logo { font-size: 1.5rem; }
}

@media (min-width: 768px) {
  .logo { font-size: 1.875rem; }
}

/* Navigation */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

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

.nav-mobile {
  position: fixed;
  top: 3.5rem;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  background: hsl(var(--background));
  backdrop-filter: blur(20px);
  transform: translateX(100%);
  transition: transform 0.3s ease-out;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 640px) {
  .nav-mobile { top: 4rem; }
}

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

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

.nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
  color: hsl(var(--foreground));
}

.nav-link:hover {
  background: hsl(var(--muted) / 0.5);
}

.nav-link.active {
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
}

.nav-link-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--muted) / 0.5);
}

.nav-link.active .nav-link-icon {
  background: hsl(var(--primary) / 0.2);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: hsl(var(--foreground));
  position: relative;
  z-index: 60;
}

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

/* Mobile Menu Overlay */
#menuOverlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: hsl(0 0% 0% / 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#menuOverlay.show {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 70vh;
  min-height: calc(var(--vh, 1vh) * 70); /* Mobile viewport fix */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 4rem;
}

@media (min-width: 640px) {
  .hero {
    min-height: 80vh;
    min-height: calc(var(--vh, 1vh) * 80);
    padding-top: 5rem;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, hsl(var(--background) / 0.6), hsl(var(--background) / 0.4), hsl(var(--background)));
}

.hero-character {
  position: absolute;
  bottom: 0;
  right: 0;
  display: none;
}

@media (min-width: 768px) {
  .hero-character {
    display: block;
    right: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-character { right: 5rem; }
}

.hero-character img {
  height: auto;
  max-height: 300px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 25px 25px rgb(0 0 0 / 0.15));
}

@media (min-width: 640px) {
  .hero-character img { max-height: 350px; }
}

@media (min-width: 768px) {
  .hero-character img { max-height: 400px; }
}

@media (min-width: 1024px) {
  .hero-character img { max-height: 500px; }
}

@media (min-width: 1280px) {
  .hero-character img { max-height: 550px; }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
}

.hero-title {
  font-size: 1.875rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .hero-title { font-size: 3rem; margin-bottom: 1.5rem; }
}

@media (min-width: 768px) {
  .hero-title { font-size: 4.5rem; }
}

.hero-subtitle {
  font-size: 1rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .hero-subtitle { font-size: 1.25rem; margin-bottom: 2rem; }
}

@media (min-width: 768px) {
  .hero-subtitle { font-size: 1.5rem; }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    gap: 1rem;
    padding: 0;
  }
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 3rem 0;
}

@media (min-width: 640px) {
  .section { padding: 4rem 0; }
}

@media (min-width: 768px) {
  .section { padding: 6rem 0; }
}

.section-muted {
  background: hsl(var(--muted) / 0.2);
}

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

@media (min-width: 640px) {
  .section-title { font-size: 1.875rem; margin-bottom: 1rem; }
}

@media (min-width: 768px) {
  .section-title { font-size: 2.25rem; }
}

/* ============================================
   FEATURE CARDS
   ============================================ */
.feature-card {
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: scale(1.05);
}

.feature-card-image {
  aspect-ratio: 16/9;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  overflow: hidden;
}

.feature-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature-card:hover .feature-card-image img {
  transform: scale(1.1);
}

.feature-card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: linear-gradient(to bottom right, hsl(var(--primary) / 0.2), transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card-desc {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.feature-card-link {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--primary));
  transition: transform 0.2s ease;
}

.feature-card:hover .feature-card-link {
  transform: translateX(0.5rem);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: linear-gradient(to bottom, hsl(var(--background)), hsl(270, 60%, 15%, 0.8));
  border-top: 1px solid hsl(var(--border));
}

.footer-trust {
  border-bottom: 1px solid hsl(var(--border) / 0.3);
  background: hsl(var(--muted) / 0.2);
  padding: 2rem 0;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background: hsl(var(--background) / 0.3);
  transition: background 0.2s ease;
}

.trust-badge:hover {
  background: hsl(var(--background) / 0.5);
}

.trust-badge-icon {
  width: 2rem;
  height: 2rem;
}

.trust-badge-text {
  font-size: 0.875rem;
  font-weight: 500;
}

.footer-main {
  padding: 3rem 0;
}

.footer-about {
  margin-bottom: 1.5rem;
}

.footer-about p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.625;
  max-width: 24rem;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer-social a {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: hsl(var(--muted) / 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--muted-foreground));
  transition: all 0.2s ease;
}

.footer-social a:hover {
  transform: scale(1.1);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.footer-contact a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  color: hsl(var(--primary));
}

.footer-links h4 {
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.2s ease;
}

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

.footer-payments,
.footer-providers {
  border-top: 1px solid hsl(var(--border) / 0.3);
  padding: 2rem 0;
  text-align: center;
}

.footer-payments h5,
.footer-providers h5 {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}

.payment-tags,
.provider-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.payment-tag,
.provider-tag {
  padding: 0.5rem 1rem;
  background: hsl(var(--muted) / 0.3);
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  transition: background 0.2s ease;
}

.payment-tag:hover,
.provider-tag:hover {
  background: hsl(var(--muted) / 0.5);
}

.provider-tag:hover {
  background: hsl(var(--primary) / 0.2);
  color: hsl(var(--primary));
}

.footer-license {
  border-top: 1px solid hsl(var(--border) / 0.3);
  background: hsl(var(--muted) / 0.1);
  padding: 1.5rem 0;
}

.license-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .license-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.license-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .license-item:first-child { justify-content: flex-start; }
  .license-item:last-child { justify-content: flex-end; }
}

.license-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .license-icon { width: 4rem; height: 4rem; }
}

.license-icon.gold {
  background: linear-gradient(to bottom right, hsl(45, 90%, 55%, 0.2), hsl(45, 90%, 40%, 0.2));
  border: 1px solid hsl(45, 90%, 55%, 0.3);
}

.license-icon.green {
  background: linear-gradient(to bottom right, hsl(145, 70%, 45%, 0.2), hsl(145, 70%, 30%, 0.2));
  border: 1px solid hsl(145, 70%, 45%, 0.3);
}

.license-text p {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.license-text p:last-child {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
  font-weight: 900;
  font-size: 1rem;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .age-badge { width: 3rem; height: 3rem; font-size: 1.25rem; }
}

.responsible-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.responsible-link {
  padding: 0.25rem 0.5rem;
  background: hsl(var(--muted) / 0.3);
  border-radius: 0.25rem;
  font-size: 0.75rem;
  transition: background 0.2s ease;
}

@media (min-width: 640px) {
  .responsible-link { padding: 0.375rem 0.75rem; }
}

.responsible-link:hover {
  background: hsl(var(--muted) / 0.5);
}

.footer-bottom {
  border-top: 1px solid hsl(var(--border) / 0.3);
  background: hsl(var(--background) / 0.5);
  padding: 1rem 0;
}

@media (min-width: 640px) {
  .footer-bottom { padding: 1.5rem 0; }
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: center;
}

@media (min-width: 1024px) {
  .footer-bottom-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-copyright {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  order: 3;
}

@media (min-width: 640px) {
  .footer-copyright { font-size: 0.875rem; }
}

@media (min-width: 1024px) {
  .footer-copyright { order: 1; }
}

.footer-disclaimer {
  font-size: 0.625rem;
  color: hsl(var(--muted-foreground));
  max-width: 42rem;
  order: 2;
}

@media (min-width: 640px) {
  .footer-disclaimer { font-size: 0.75rem; }
}

.footer-legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  order: 1;
}

@media (min-width: 640px) {
  .footer-legal-links { gap: 1rem; }
}

@media (min-width: 1024px) {
  .footer-legal-links { order: 3; }
}

.footer-legal-links a {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.2s ease;
}

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

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.lang-switcher {
  position: relative;
  z-index: 100;
}

.lang-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  z-index: 101;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

.lang-trigger:hover,
.lang-trigger:focus {
  background: hsl(var(--muted));
  border-color: hsl(var(--primary) / 0.5);
}

.lang-trigger:active {
  transform: scale(0.98);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: hsl(var(--popover));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 0.5rem;
  min-width: 11rem;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.5rem);
  transition: all 0.2s ease;
  box-shadow: 0 10px 40px hsl(0 0% 0% / 0.4);
  pointer-events: none;
}

.lang-switcher.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  border-radius: 0.5rem;
  color: hsl(var(--foreground));
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  font-weight: 500;
}

.lang-option:hover {
  background: hsl(var(--primary) / 0.15);
  color: hsl(var(--primary));
}

.lang-option.active {
  background: hsl(var(--primary) / 0.2);
  color: hsl(var(--primary));
}

/* ============================================
   ACCORDION
   ============================================ */
.accordion {
  display: flex;
  flex-direction: column;
}

.accordion-item {
  border-bottom: 1px solid hsl(var(--border));
}

.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 0;
  background: transparent;
  border: none;
  color: hsl(var(--foreground));
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

.accordion-trigger:hover {
  color: hsl(var(--primary));
}

.accordion-trigger svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s ease;
}

.accordion-item.open .accordion-trigger svg {
  transform: rotate(180deg);
}

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

.accordion-item.open .accordion-content {
  max-height: 500px;
}

.accordion-content-inner {
  padding-bottom: 1rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  line-height: 1.625;
}

/* ============================================
   PROMO SLIDER
   ============================================ */
.promo-slider {
  padding: 2rem 0;
  overflow: hidden;
}

.promo-slider-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.3s ease;
}

.promo-slide {
  flex: 0 0 calc(100% - 2rem);
  min-width: 0;
}

@media (min-width: 768px) {
  .promo-slide { flex: 0 0 calc(50% - 0.5rem); }
}

@media (min-width: 1024px) {
  .promo-slide { flex: 0 0 calc(33.333% - 0.667rem); }
}

.promo-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 16/9;
}

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

.promo-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsl(var(--background) / 0.9), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.promo-card-title,
.promo-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
}

.promo-card-desc {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* ============================================
   GAME CARDS
   ============================================ */
.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .game-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}

@media (min-width: 768px) {
  .game-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .game-grid { grid-template-columns: repeat(6, 1fr); }
}

.game-card {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  aspect-ratio: 3/4;
  border: 1px solid hsl(var(--border) / 0.5);
  transition: all 0.3s ease;
}

.game-card:hover {
  border-color: hsl(var(--primary) / 0.3);
  transform: translateY(-0.25rem);
}

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

.game-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsl(var(--background) / 0.9), transparent 50%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  transition: opacity 0.3s ease;
}

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

.game-card-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px hsl(52, 100%, 50%, 0.4); }
  50% { box-shadow: 0 0 40px hsl(52, 100%, 50%, 0.6); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */

/* Mobile-first touch improvements */
@media (hover: none) and (pointer: coarse) {
  .btn { min-height: 44px; }
  .btn-sm { min-height: 40px; }
  .nav-link { min-height: 48px; }
  .lang-trigger { min-height: 44px; }
  .accordion-trigger { min-height: 48px; }
}

/* Safe area insets for modern phones */
@supports (padding: env(safe-area-inset-bottom)) {
  .footer-bottom { padding-bottom: calc(1rem + env(safe-area-inset-bottom)); }
  .nav-mobile { padding-bottom: env(safe-area-inset-bottom); }
}

/* Extra small screens (< 375px) */
@media (max-width: 374px) {
  html { font-size: 14px; }
  .container { padding: 0 0.75rem; }
  .hero-title { font-size: 1.5rem; }
  .hero-subtitle { font-size: 0.875rem; }
  .btn-lg { padding: 0 1.25rem; font-size: 0.875rem; }
  .section { padding: 2rem 0; }
  .section-title { font-size: 1.25rem; }
  .trust-badge { padding: 0.75rem; }
  .trust-badge-text { font-size: 0.75rem; }
  .footer-main { padding: 2rem 0; }
  .payment-tag, .provider-tag { padding: 0.375rem 0.75rem; font-size: 0.625rem; }
  .feature-card { padding: 1rem; }
  .game-grid { gap: 0.5rem; }
}

/* Small screens */
@media (min-width: 640px) {
  .sm\:px-4 { padding-left: 1rem; padding-right: 1rem; }
  .sm\:py-8 { padding-top: 2rem; padding-bottom: 2rem; }
  .sm\:gap-4 { gap: 1rem; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:w-auto { width: auto; }
  .sm\:min-h-80vh { min-height: 80vh; }
  .sm\:pt-20 { padding-top: 5rem; }
  .sm\:pt-24 { padding-top: 6rem; }
  .sm\:h-16 { height: 4rem; }
  .sm\:mb-6 { margin-bottom: 1.5rem; }
  .sm\:mb-8 { margin-bottom: 2rem; }
  .sm\:text-base { font-size: 1rem; }
  .sm\:text-lg { font-size: 1.125rem; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Medium screens */
@media (min-width: 768px) {
  .md\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
  .md\:gap-8 { gap: 2rem; }
  .md\:gap-12 { gap: 3rem; }
  .md\:right-10 { right: 2.5rem; }
  .md\:block { display: block; }
  .md\:hidden { display: none; }
  .md\:h-20 { height: 5rem; }
  .md\:text-base { font-size: 1rem; }
  .md\:text-lg { font-size: 1.125rem; }
  .md\:mb-4 { margin-bottom: 1rem; }
  .md\:mb-6 { margin-bottom: 1.5rem; }
  .md\:rounded-2xl { border-radius: 1rem; }
  .md\:shadow-2xl { box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); }
  .md\:col-span-3 { grid-column: span 3; }
}

/* Large screens */
@media (min-width: 1024px) {
  .lg\:right-20 { right: 5rem; }
  .lg\:h-500 { height: 500px; }
  .lg\:col-span-2 { grid-column: span 2; }
  .lg\:flex-row { flex-direction: row; }
  .lg\:text-left { text-align: left; }
  .lg\:items-center { align-items: center; }
  .lg\:justify-between { justify-content: space-between; }
}

/* Order utilities */
.order-1 { order: 1; }
.order-2 { order: 2; }
.order-3 { order: 3; }
.order-first { order: -9999; }
.order-last { order: 9999; }

@media (min-width: 768px) {
  .md\:order-1 { order: 1; }
  .md\:order-2 { order: 2; }
  .md\:order-last { order: 9999; }
}

@media (min-width: 1024px) {
  .lg\:order-1 { order: 1; }
  .lg\:order-2 { order: 2; }
  .lg\:order-3 { order: 3; }
}

/* Aspect ratio */
.aspect-video { aspect-ratio: 16 / 9; }
.aspect-square { aspect-ratio: 1 / 1; }

/* Blur effects */
.blur-3xl { filter: blur(64px); }
.blur-100 { filter: blur(100px); }

/* ============================================
   PAGE HERO STYLES (FAQ, Payments, etc.)
   ============================================ */
.page-hero {
  position: relative;
  padding: 6rem 0 3rem;
  min-height: 40vh;
  display: flex;
  align-items: center;
}

@media (min-width: 640px) {
  .page-hero {
    padding: 8rem 0 4rem;
  }
}

.page-hero .hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, hsl(270, 60%, 15%) 0%, hsl(260, 50%, 5%) 100%);
}

.page-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, hsl(290, 80%, 55%, 0.15) 0%, transparent 70%);
}

.page-hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
}

.page-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, hsl(52, 100%, 55%) 0%, hsl(45, 90%, 60%) 50%, hsl(52, 100%, 50%) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (min-width: 640px) {
  .page-title { font-size: 2.5rem; }
}

@media (min-width: 768px) {
  .page-title { font-size: 3.5rem; }
}

.page-subtitle {
  font-size: 1rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  max-width: 36rem;
  margin: 0 auto 1.5rem;
}

@media (min-width: 640px) {
  .page-subtitle { font-size: 1.125rem; }
}

/* Page Hero CTA Buttons */
.page-hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .page-hero-buttons {
    flex-direction: row;
    gap: 1rem;
  }
}

/* ============================================
   FAQ PAGE STYLES
   ============================================ */
.faq-hero {
  background: linear-gradient(135deg, hsl(270, 60%, 12%) 0%, hsl(260, 50%, 5%) 100%);
}

.faq-search {
  display: flex;
  gap: 0.5rem;
  max-width: 24rem;
  margin: 1.5rem auto 0;
}

.faq-search .search-input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: hsl(var(--muted));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  color: hsl(var(--foreground));
  font-size: 0.9375rem;
}

.faq-search .search-btn {
  padding: 0.75rem 1rem;
  background: hsl(var(--primary));
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
}

.faq-categories-section {
  padding: 1.5rem 0;
  background: hsl(var(--muted) / 0.2);
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}

.faq-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.faq-cat-btn {
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid hsl(var(--border));
  border-radius: 2rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.faq-cat-btn:hover,
.faq-cat-btn.active {
  background: hsl(var(--primary));
  border-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.faq-section {
  padding: 3rem 0;
}

.faq-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .faq-grid {
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
  }
}

.faq-main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.faq-category {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
}

.faq-category-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}

.faq-accordion {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid hsl(var(--border) / 0.3);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1rem 0;
  background: transparent;
  border: none;
  color: hsl(var(--foreground));
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
  gap: 1rem;
}

.faq-question:hover {
  color: hsl(var(--primary));
}

.faq-icon {
  font-size: 1.25rem;
  font-weight: 300;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer p,
.faq-answer ul,
.faq-answer ol {
  padding-bottom: 1rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  line-height: 1.7;
}

.faq-answer ul,
.faq-answer ol {
  padding-left: 1.5rem;
  margin: 0.5rem 0;
}

.faq-answer li {
  margin-bottom: 0.375rem;
}

.faq-answer a {
  color: hsl(var(--primary));
  text-decoration: underline;
}

.faq-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-sidebar-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.faq-sidebar-card img {
  width: 100%;
  max-width: 200px;
  margin: 0 auto 1rem;
  border-radius: var(--radius);
}

.faq-sidebar-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.faq-sidebar-card p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}

/* ============================================
   PAYMENTS PAGE STYLES
   ============================================ */
.payments-hero {
  background: linear-gradient(135deg, hsl(270, 60%, 12%) 0%, hsl(260, 50%, 5%) 100%);
}

.payment-features-section {
  padding: 2rem 0;
  background: hsl(var(--muted) / 0.15);
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}

.payment-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .payment-features-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.payment-feature-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  transition: all 0.3s ease;
}

.payment-feature-card:hover {
  border-color: hsl(var(--primary) / 0.5);
  transform: translateY(-2px);
}

.payment-feature-card .feature-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.payment-feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.payment-feature-card p {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
}

.payment-methods-section {
  padding: 3rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-subtitle {
  color: hsl(var(--muted-foreground));
  font-size: 1rem;
}

.payment-category {
  margin-bottom: 2.5rem;
}

.category-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}

.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .payment-methods-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .payment-methods-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.payment-method-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.payment-method-card:hover {
  border-color: hsl(var(--primary) / 0.5);
}

.payment-method-card.featured {
  border-color: hsl(var(--primary) / 0.5);
  background: linear-gradient(to bottom, hsl(var(--card)), hsl(var(--primary) / 0.05));
}

.payment-method-card .method-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: hsl(var(--primary));
  margin-bottom: 0.5rem;
}

.payment-method-card h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.payment-method-card .method-details {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.payment-method-card .detail {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

.payment-method-card .detail span:first-child {
  color: hsl(var(--foreground) / 0.7);
}

/* ============================================
   CRITICAL IMAGE RESPONSIVE FIXES
   ============================================ */

/* Force all images to respect container bounds */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* Mobile image fixes - Very Aggressive */
@media (max-width: 767px) {
  /* Global image constraint */
  img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: cover;
  }
  
  /* Container overflow prevention */
  .container,
  section,
  .grid,
  .flex,
  div {
    max-width: 100%;
    overflow-x: hidden;
  }
  
  /* Specific image containers */
  .feature-card-image,
  .promo-card,
  .game-card,
  .relative {
    max-width: 100%;
    overflow: hidden;
  }
  
  /* Section images must be 100% width */
  section img,
  .grid img,
  .feature-card img,
  .promo-slide img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
  }
  
  /* Hero character on mobile */
  .hero-character {
    display: none !important;
  }
  
  /* Promo slider cards */
  .promo-slide {
    min-width: 85vw;
    max-width: 85vw;
  }
  
  /* Game grid */
  .game-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  /* Body overflow */
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  html {
    overflow-x: hidden;
  }
}

/* Tablet image fixes */
@media (min-width: 768px) and (max-width: 1023px) {
  img {
    max-width: 100%;
    height: auto;
  }
  
  .hero-character img {
    max-height: 350px;
    max-width: 40vw;
  }
}

/* Col span utilities */
.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }

/* Scroll snap for promo slider on mobile */
@media (max-width: 767px) {
  .promo-slider-track {
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .promo-slider-track::-webkit-scrollbar { display: none; }
  .promo-slide { scroll-snap-align: start; }
}

/* Improved mobile spacing */
@media (max-width: 639px) {
  .hero { min-height: 60vh; }
  .hero-content { padding: 0 0.5rem; }
  .feature-card-title { font-size: 1.125rem; }
  .footer-links { margin-bottom: 1.5rem; }
  .footer-links h4 { font-size: 0.875rem; }
  .footer-links a { font-size: 0.8125rem; }
}

/* Prevent text overflow on small screens */
.hero-title,
.section-title,
.feature-card-title,
.promo-card-title {
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

/* Better button tap states */
.btn:active {
  transform: scale(0.98);
}

.btn-hero:active {
  transform: translateY(0) scale(0.98);
}

/* Improved focus states for accessibility */
.btn:focus-visible,
.nav-link:focus-visible,
.lang-trigger:focus-visible,
.accordion-trigger:focus-visible {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 2px;
}

/* Better select/input sizing for mobile */
input, select, textarea {
  font-size: 16px; /* Prevents iOS zoom on focus */
}

/* ============================================
   🔧 LAYOUT FIXES v2 — APR 2026
   Добавлено для устранения бардака в верстке
   ============================================ */

/* ---------- HEADER: компактнее на 1024-1280px, бургер с 1100px ---------- */

/* Скрыть desktop-навигацию до 1100px (раньше было 1024px) */
@media (max-width: 1099px) {
  .nav-desktop { display: none !important; }
  .menu-toggle { display: flex !important; }
  .nav-mobile { /* mobile меню уже до 1024px, расширяем диапазон */ }
}

/* На 1100-1280px — компактные кнопки в header */
@media (min-width: 1100px) and (max-width: 1366px) {
  .nav-desktop { gap: 0.125rem; }
  .nav-desktop .btn-nav { padding: 0.5rem 0.625rem; font-size: 0.8125rem; }
  .header .header-actions .btn-icon-label { display: none; } /* скрываем подписи у Online Chat / Get App */
  .header .header-actions { gap: 0.375rem; }
}

/* Шапка-actions: общая раскладка справа */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Logo — не позволяем переноситься */
.logo { white-space: nowrap; }

/* Nav-link icon — компактнее на 1100-1280 */
@media (min-width: 1100px) and (max-width: 1366px) {
  .nav-desktop .nav-link-icon { display: none; }
}

/* ---------- LANGUAGE SWITCHER: компактный на mobile, не вылезает ---------- */
@media (max-width: 480px) {
  .lang-switcher .lang-trigger { padding: 0.375rem 0.5rem; font-size: 0.8125rem; }
  .lang-switcher .lang-code { font-size: 0.75rem; }
}

/* ---------- HERO ГЛАВНОЙ: затемнение поверх картинки, читаемый текст ---------- */
.hero-bg-overlay {
  /* Усиленный градиент для читаемости */
  background:
    radial-gradient(ellipse at center, hsl(var(--background) / 0.35) 0%, hsl(var(--background) / 0.75) 70%, hsl(var(--background)) 100%),
    linear-gradient(180deg, hsl(var(--background) / 0.5) 0%, hsl(var(--background) / 0.7) 70%, hsl(var(--background)) 100%);
}

.hero-content {
  padding: 1rem;
}

.hero-title {
  text-shadow: 0 4px 24px hsl(0 0% 0% / 0.6), 0 2px 8px hsl(0 0% 0% / 0.5);
}

.hero-subtitle {
  color: hsl(0 0% 95%) !important;
  text-shadow: 0 2px 12px hsl(0 0% 0% / 0.8), 0 1px 4px hsl(0 0% 0% / 0.7);
  background: hsl(0 0% 0% / 0.25);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  display: inline-block;
  backdrop-filter: blur(2px);
}

/* ---------- PAGE-HERO: если внутри есть IMG — добавляем overlay поверх картинки ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  padding: 6rem 0 3rem;
  display: flex;
  align-items: center;
}

@media (min-width: 768px) {
  .page-hero { min-height: 440px; padding: 7rem 0 4rem; }
}

/* Фон-картинка внутри page-hero */
.page-hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Overlay поверх картинки в page-hero */
.page-hero-bg-image + .page-hero-overlay,
.page-hero .page-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, hsl(260 50% 8% / 0.55) 0%, hsl(260 60% 5% / 0.85) 75%),
    linear-gradient(180deg, hsl(260 60% 8% / 0.6) 0%, hsl(260 60% 5% / 0.95) 100%);
  z-index: 1;
}

.page-hero .container { position: relative; z-index: 2; }

/* Если страница использует .hero (slots.html) с фоновой картинкой — делаем тоже самое */
.hero .hero-img,
.page-hero .hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Hero-stats внутри hero */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: center;
  margin-top: 1.5rem;
  position: relative;
  z-index: 2;
}

.hero-stats > div,
.hero-stat {
  text-align: center;
  min-width: 80px;
}

.hero-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: hsl(var(--primary));
  text-shadow: 0 2px 8px hsl(0 0% 0% / 0.6);
  display: block;
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: hsl(0 0% 90%);
  text-shadow: 0 1px 4px hsl(0 0% 0% / 0.8);
  margin-top: 0.25rem;
  display: block;
}

@media (min-width: 768px) {
  .hero-stat-value { font-size: 2rem; }
  .hero-stat-label { font-size: 0.875rem; }
}

/* ---------- BUTTONS: ограничить ширину на mobile ---------- */
@media (max-width: 639px) {
  .hero-buttons,
  .page-hero-buttons {
    align-items: stretch;
    padding: 0 1rem;
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-buttons .btn,
  .page-hero-buttons .btn {
    width: 100%;
    min-height: 48px;
    font-size: 0.9375rem;
  }
  .btn-hero, .btn-lg {
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
  }
}

/* ---------- MOBILE TYPOGRAPHY ---------- */
@media (max-width: 480px) {
  .hero-title,
  .page-title {
    font-size: 1.75rem !important;
    line-height: 1.15;
  }
  .hero-subtitle,
  .page-subtitle {
    font-size: 0.9375rem !important;
  }
  .section-title {
    font-size: 1.5rem !important;
  }
  .section { padding: 2.5rem 0 !important; }
  .container { padding-left: 1rem; padding-right: 1rem; }
}

/* Тип-перенос для длинных немецких слов (DE) */
:lang(de) .hero-title,
:lang(de) .page-title,
:lang(de) .section-title {
  hyphens: auto;
  -webkit-hyphens: auto;
  word-break: break-word;
}

/* ---------- FILTER BAR (slots) ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.filter-categories {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-cat-btn {
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid hsl(var(--border));
  border-radius: 2rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-cat-btn:hover, .filter-cat-btn.active {
  background: hsl(var(--primary));
  border-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.filter-search {
  display: flex;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.filter-search .input {
  background: hsl(var(--muted) / 0.4);
  border: 1px solid hsl(var(--border));
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  color: hsl(var(--foreground));
  min-width: 200px;
}

@media (max-width: 639px) {
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-search .input { width: 100%; min-width: 0; }
}

/* ---------- GAMES GRID (slots) ---------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
}

.game-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px hsl(var(--primary) / 0.2);
}

.game-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

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

.game-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsl(var(--background) / 0.95), transparent);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s;
}

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

.game-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: hsl(var(--destructive));
  color: hsl(0 0% 100%);
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.game-info { padding: 1rem; }
.game-title { font-weight: 600; margin-bottom: 0.25rem; }
.game-meta { font-size: 0.875rem; color: hsl(var(--muted-foreground)); }

/* ---------- PROMO SLIDER: ограничения для не-обрезанных фото ---------- */
.promo-card-img {
  width: 100%;
  height: 100%;
  max-height: 240px;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 768px) {
  .promo-card-img { max-height: 180px; }
}

/* ---------- FOOTER на узких ---------- */
@media (max-width: 480px) {
  .footer-grid { gap: 1.5rem; }
}

/* ============================================
   🔧 BONUSES PAGE — конвертация inline в классы
   ============================================ */

.bonus-highlight {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .bonus-highlight {
    grid-template-columns: 1fr auto;
    gap: 2rem;
    padding: 3rem;
  }
}

.bonus-tag {
  display: inline-block;
  background: hsl(var(--casino-gold, 45 95% 55%));
  color: hsl(0 0% 0%);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.bonus-amount {
  font-size: 1.875rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.1;
}

@media (min-width: 640px) { .bonus-amount { font-size: 2.5rem; } }
@media (min-width: 768px) { .bonus-amount { font-size: 3rem; } }

.bonus-extras {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.bonus-pill {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
}

.bonus-pill--success {
  background: hsl(140 60% 45% / 0.2);
  color: hsl(140 70% 60%);
}

.bonus-pill--primary {
  background: hsl(var(--primary) / 0.2);
  color: hsl(var(--primary));
}

.bonus-description {
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.bonus-features {
  list-style: none;
  margin-bottom: 2rem;
  padding: 0;
}

.bonus-features li {
  margin-bottom: 0.5rem;
  padding-left: 0;
  color: hsl(var(--foreground));
}

.bonus-highlight-image {
  display: none;
}

@media (min-width: 768px) {
  .bonus-highlight-image { display: block; }
}

/* Bonuses grid (другие бонусы) */
.bonuses-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) { .bonuses-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bonuses-grid { grid-template-columns: repeat(3, 1fr); } }

.bonus-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.bonus-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 0.75rem;
  background: hsl(var(--primary) / 0.15);
  color: hsl(var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.bonus-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.bonus-card-amount {
  font-size: 1.5rem;
  font-weight: 800;
  color: hsl(var(--primary));
  margin-bottom: 0.5rem;
}

.bonus-card-desc {
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
  flex: 1;
  font-size: 0.9375rem;
}

/* Section header */
.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

@media (min-width: 768px) { .section-header { margin-bottom: 3rem; } }

/* ============================================
   🎲 LIVE CASINO PAGE — конвертация inline в классы
   ============================================ */

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: hsl(var(--destructive));
  color: hsl(0 0% 100%);
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}

.live-indicator-dot {
  width: 8px;
  height: 8px;
  background: hsl(0 0% 100%);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.live-categories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) { .live-categories-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
@media (min-width: 1280px) { .live-categories-grid { grid-template-columns: repeat(3, 1fr); } }

.live-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.category-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

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

.live-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: hsl(var(--destructive));
  color: hsl(0 0% 100%);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.tables-count {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: hsl(var(--background) / 0.85);
  backdrop-filter: blur(8px);
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  color: hsl(var(--foreground));
}

.category-content {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.category-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.category-content p {
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.category-games {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1rem;
}

.category-games .badge {
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Section с тёмным фоном */
.section--muted-bg {
  background: hsl(var(--muted) / 0.3);
}

/* ============================================
   🛠 UTILITY HELPERS for bonuses/live-casino content
   ============================================ */

.text-center { text-align: center; }
.text-right { text-align: right; }

.feature-item {
  padding: 1.5rem;
  text-align: center;
}

.feature-item-lg {
  padding: 2rem;
  text-align: center;
}

.feature-icon-lg {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.feature-title-md {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0.5rem 0;
}

.feature-title-lg {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.feature-amount-xl {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.feature-desc-sm {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.feature-list-clean {
  list-style: none;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  padding: 0;
}

.feature-list-clean li { margin-bottom: 0.4rem; }

.list-disc {
  list-style: disc;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.text-primary { color: hsl(var(--primary)); }
.text-gold { color: hsl(var(--casino-gold, 45 95% 55%)); }
.text-magenta { color: hsl(var(--casino-magenta, 320 80% 60%)); }

.card-pad-lg { padding: 2rem; }

.card-vip-bordered {
  padding: 2rem;
  border: 2px solid hsl(var(--casino-gold, 45 95% 55%) / 0.4);
  border-radius: 1rem;
}

.muted-bg {
  background: hsl(var(--muted) / 0.3);
}

.providers-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .providers-grid { gap: 2rem; }
}

.text-bold { font-weight: 600; }
.text-xs { font-size: 0.75rem; }

/* ============================================
   🔧 LAYOUT FIXES v3 — финальная полировка
   ============================================ */

/* Глобальный overflow-x: hidden чтобы избежать горизонтального скролла */
html, body { overflow-x: hidden; max-width: 100vw; }

/* Header на mobile: компактнее, lang-switcher не обрезан */
@media (max-width: 1099px) {
  .header .header-actions {
    gap: 0.375rem;
  }
  /* Скрываем "Online Chat" и "Get App" подписи на мобиле — оставляем только иконки */
  .header .header-actions .btn-icon-label,
  .header .header-actions .btn-online-chat span:not(.icon),
  .header .header-actions .btn-get-app span:not(.icon) {
    display: none;
  }
  /* Сами кнопки — только иконка */
  .header .header-actions .btn-online-chat,
  .header .header-actions .btn-get-app {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  /* Login/Register на мобиле — скрываем (есть в бургере) */
  .header .header-actions .btn-login,
  .header .header-actions .btn-register {
    display: none;
  }
}

/* Если используются классы, то и другой подход — селектор по тексту в кнопках. 
   Используем data-attr-friendly правило: иконочные кнопки в шапке */
@media (max-width: 1099px) {
  .header-actions .btn-icon { padding: 0.5rem; min-width: 2.25rem; }
  .header-actions > a > .btn { gap: 0.25rem; }
}

/* Ещё компактнее на 480 */
@media (max-width: 480px) {
  .header-inner { gap: 0.5rem; padding-left: 0.75rem; padding-right: 0.75rem; }
  .header .header-actions { gap: 0.25rem; }
  .header .header-actions .btn { font-size: 0.8125rem; padding: 0.4rem 0.6rem; }
  .header .header-actions .lang-switcher .lang-trigger { padding: 0.35rem 0.45rem; }
  /* На 320-480px скрываем и Online Chat и Get App полностью */
  .header .header-actions > a:has(.btn-online-chat),
  .header .header-actions > a:has(.btn-get-app) {
    display: none;
  }
}

/* HERO: усиливаем overlay на главной чтобы текст был читаем */
.hero-bg-overlay {
  background:
    linear-gradient(180deg, hsl(260 60% 5% / 0.65) 0%, hsl(260 60% 5% / 0.55) 50%, hsl(var(--background)) 100%),
    radial-gradient(ellipse at 70% 50%, hsl(0 0% 0% / 0.4) 0%, transparent 60%);
}

/* Hero-title на главной — drop-shadow помощнее */
.hero-title {
  text-shadow:
    0 4px 12px hsl(0 0% 0% / 0.85),
    0 2px 4px hsl(0 0% 0% / 0.95),
    0 0 30px hsl(0 0% 0% / 0.6);
}

/* Hero-content на mobile — внутренний паддинг чтобы не упиралось */
.hero-content,
.page-hero-content {
  padding-left: 1rem;
  padding-right: 1rem;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .hero-title,
  .page-title {
    font-size: 1.625rem !important;
    line-height: 1.15;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

/* Container на мобиле — гарантируем нормальные паддинги и не выходим за экран */
.container {
  max-width: 100%;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .container { padding-left: 1rem !important; padding-right: 1rem !important; }
}

/* Hero-stats на mobile — стек, не растягивать */
@media (max-width: 480px) {
  .hero-stats { gap: 1rem; flex-direction: row; justify-content: space-around; }
  .hero-stats > div { min-width: 0; flex: 1; }
  .hero-stat-value { font-size: 1.25rem; }
}

/* Promo card images: фиксированный aspect-ratio чтобы не растягивались */
.promo-card,
.promo-slide {
  overflow: hidden;
}

.promo-card-image,
.promo-card .image-wrapper {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}

.promo-card-image > picture,
.promo-card-image img,
.promo-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Burger menu visible до 1100px */
@media (max-width: 1099px) {
  .menu-toggle { display: flex !important; }
  .nav-mobile { display: block; } /* показывается через .open */
}

/* Утилиты, которые могут быть в HTML */
.relative { position: relative; }
.z-10 { z-index: 10; }
.hidden { display: none; }

@media (min-width: 1100px) {
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
}

/* ============================================
   🔧 TAILWIND-LIKE UTILITIES (используются в HTML)
   ============================================ */

/* hidden + breakpoint:flex */
.hidden { display: none !important; }

/* sm: ≥640 */
@media (min-width: 640px) {
  .sm\:flex { display: flex !important; }
  .sm\:block { display: block !important; }
  .sm\:hidden { display: none !important; }
}

/* md: ≥768 */
@media (min-width: 768px) {
  .md\:flex { display: flex !important; }
  .md\:block { display: block !important; }
  .md\:hidden { display: none !important; }
  .md\:display\:block { display: block !important; }
}

/* lg: ≥1024 */
@media (min-width: 1024px) {
  .lg\:flex { display: flex !important; }
  .lg\:block { display: block !important; }
  .lg\:hidden { display: none !important; }
}

/* xl: ≥1280 */
@media (min-width: 1280px) {
  .xl\:flex { display: flex !important; }
  .xl\:block { display: block !important; }
  .xl\:hidden { display: none !important; }
}

/* Flex utilities */
.flex { display: flex; }
.items-center { align-items: center; }
.items-stretch { align-items: stretch; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

/* Text utilities */
.text-sm { font-size: 0.875rem; }
.text-md { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }

/* H-utilities */
.h-14 { height: 3.5rem; }
.w-full { width: 100%; }

/* НО! на мобиле desktop nav должен быть скрыт (бургер вместо). У нас уже это в .nav-desktop. */
/* Online chat / Get app / Auth — у них md:flex значит они ВИДНЫ от 768px. 
   Это ок, но на 768-1099px они теснят nav. Решение: поднять breakpoint для md:flex кнопок до lg или xl */

/* Override: в header справа кнопки доступны только с 1100px (вместо 768) */
.header-inner .hidden.md\:flex { display: none !important; }
@media (min-width: 1100px) {
  .header-inner .hidden.md\:flex { display: flex !important; }
}

/* Online Chat (xl:flex) — оставляем как есть (с 1280px) */
/* Lang switcher — всегда видим, но компактен на мобиле (правила выше уже есть) */

/* ============================================
   🔧 LAYOUT FIXES v4 — fix text-shadow с gradient-clip
   ============================================ */

/* Если у hero-title есть text-gradient-gold (transparent fill), 
   text-shadow ломает читаемость. Альтернатива: drop-shadow на родителе */
.hero-title.text-gradient-gold,
.hero-title:has(.text-gradient-gold),
.page-title {
  text-shadow: none !important;
  filter: drop-shadow(0 4px 12px hsl(0 0% 0% / 0.85)) drop-shadow(0 2px 4px hsl(0 0% 0% / 0.95));
}

/* Если внутри h1 spans с text-gradient — родителю drop-shadow тоже */
.hero-title {
  text-shadow: none;
  filter: drop-shadow(0 4px 12px hsl(0 0% 0% / 0.85)) drop-shadow(0 2px 4px hsl(0 0% 0% / 0.95));
}

/* Hero-subtitle — теперь это white text, без gradient. shadow можно оставить */
.hero-subtitle {
  background: hsl(0 0% 0% / 0.4);
  display: block;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
}

/* Mobile: текст hero не должен вылезать */
@media (max-width: 480px) {
  .hero-content,
  .page-hero-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .page-subtitle,
  .hero-subtitle {
    max-width: 100%;
    font-size: 0.875rem !important;
    line-height: 1.4;
    word-wrap: break-word;
  }
  /* page-hero на slots: фоновое изображение слишком большое — ограничим */
  .page-hero {
    min-height: 320px !important;
    padding: 5rem 0 2rem !important;
  }
}

/* Бургер-кнопка — гарантированно видна на mobile */
.menu-toggle {
  display: flex !important;
}
@media (min-width: 1100px) {
  .menu-toggle { display: none !important; }
}

/* SVG внутри .menu-toggle — initial должен быть menuIcon visible, closeIcon hidden */
.menu-toggle svg { display: block; }
.menu-toggle svg.hidden { display: none !important; }

/* Бургер всегда поверх */
.menu-toggle {
  color: hsl(var(--foreground));
  background: transparent;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

/* Header sub-fixes: обеспечим видимость flex actions с lang-switcher и burger на mobile */
@media (max-width: 1099px) {
  .header-inner > div:last-child,
  .header-inner > .flex {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
  }
}

/* ============================================
   🔧 Финальный фикс бургера и language switcher
   ============================================ */
.menu-toggle {
  display: inline-flex !important;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  color: hsl(var(--foreground));
}
@media (min-width: 1100px) {
  .menu-toggle { display: none !important; }
}
.menu-toggle svg { width: 24px; height: 24px; display: block; }
.menu-toggle svg.hidden { display: none !important; }

/* lang-switcher не уезжает за край */
.lang-switcher { position: relative; flex-shrink: 0; }
.lang-dropdown { right: 0; left: auto; }

/* Header inner — гарантируем что lang+burger справа всегда уместятся */
.header-inner > .container,
.header .container { max-width: 100%; }

/* ============================================
   🎨 HERO H1 CONTRAST FIX — чтобы золотой градиент
   не сливался с яркими hero-картинками
   ============================================ */

/* Перебиваем золотой градиент в hero на ярко-белый
   с жёлтой обводкой и сильным тёмным свечением */
.hero-title .text-gradient-gold,
.page-title .text-gradient-gold,
.hero-title.text-gradient-gold,
.page-title.text-gradient-gold {
  background: linear-gradient(135deg,
    hsl(52 100% 70%) 0%,
    hsl(45 100% 60%) 50%,
    hsl(52 100% 65%) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  -webkit-text-stroke: 1px hsl(260 60% 5% / 0.5);
  filter:
    drop-shadow(0 2px 0 hsl(260 60% 5% / 0.9))
    drop-shadow(0 4px 16px hsl(260 60% 5% / 0.95))
    drop-shadow(0 0 24px hsl(52 100% 50% / 0.4));
}

/* H1 без градиента (page-title без span) — делаем ярко-жёлтым с тенью */
.page-title:not(:has(.text-gradient-gold)),
.hero-title:not(:has(.text-gradient-gold)):not(.text-gradient-gold) {
  color: hsl(52 100% 65%);
  text-shadow:
    0 2px 0 hsl(260 60% 5% / 0.9),
    0 4px 16px hsl(260 60% 5% / 0.95),
    0 0 24px hsl(52 100% 50% / 0.35) !important;
}

/* ============================================
   🖼️ IMAGE SIZE HARD CAPS v2 — таргетируем ТОЧЕЧНО,
   не трогаем .hero-bg/.hero-img (фоны) и .character-img
   ============================================ */

/* Feature-card иллюстрации (5000+ Slot Games, VIP, Live Casino карточки) */
.feature-card-image {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  overflow: hidden;
  background: hsl(var(--muted) / 0.3);
}

.feature-card-image picture,
.feature-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Bonus / promo highlight иллюстрации в обычных секциях */
.bonus-highlight-image,
.bonus-highlight,
.promo-character,
.section-image {
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.bonus-highlight-image img,
.bonus-highlight img,
.promo-character img,
.section-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Promo slider — фиксированный 16:9 */
.promo-card-image,
.promo-card .image-wrapper {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
}

.promo-card-image img,
.promo-card-img,
.promo-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Game cards — фиксированный 4:3 */
.game-card-img,
.game-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* Payment / provider иконки — небольшие */
.payment-icon,
.payment-method img,
.provider-logo img {
  max-width: 80px;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.provider-logo img {
  max-width: 120px;
  max-height: 60px;
}

/* Inline VIP-crown / bonus-иконки если они НЕ в feature-card */
section img[src*="vip-crown"]:not(.feature-card-image img),
section img[src*="welcome-bonus"]:not(.feature-card-image img),
section img[src*="reload-bonus"]:not(.feature-card-image img) {
  max-width: 280px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* Hero-character уже описан в строках 968-1009 — НЕ трогаем */

/* Mobile: предотвращаем горизонтальный overflow от длинных слов */
h1, h2, h3, h4 {
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

@media (max-width: 480px) {
  body, html { overflow-x: hidden; max-width: 100vw; }
  .container, section { max-width: 100vw; overflow-x: hidden; }
}

/* ============================================
   LAYOUT FIXES — недостающие сеточные классы
   ============================================ */

/* --- Features grid (Warum Slotoro) --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
@media (min-width: 640px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
@media (min-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}
.features-grid .feature-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.features-grid .feature-card:hover {
  transform: translateY(-4px);
  border-color: hsl(var(--primary) / .5);
  box-shadow: var(--shadow-glow-yellow);
}
.features-grid .feature-card .feature-icon {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 1rem;
  display: block;
}
.features-grid .feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: .5rem;
}
.features-grid .feature-card p {
  color: hsl(var(--muted-foreground));
  font-size: .95rem;
  line-height: 1.55;
  margin: 0;
}

/* --- SEO content grid (text + sidebar) --- */
.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}
@media (min-width: 1024px) {
  .content-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; align-items: start; }
}
.content-main { min-width: 0; }
.content-main h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
}
.content-main h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: .75rem;
  color: hsl(var(--foreground));
}
.content-main p {
  color: hsl(var(--muted-foreground));
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.content-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 6rem;
}
@media (max-width: 1023px) {
  .content-sidebar { position: static; }
}
.sidebar-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.25rem;
}
.sidebar-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: hsl(var(--foreground));
}
.sidebar-card p {
  color: hsl(var(--muted-foreground));
  font-size: .9rem;
  margin-bottom: 1rem;
}
.sidebar-card .btn { width: 100%; justify-content: center; }

/* --- Live Casino grid --- */
.live-casino-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 2rem auto 0;
  max-width: 1240px;             /* 3 × 400 + gaps, не даём раздуваться */
  justify-content: center;
}
@media (min-width: 640px) {
  .live-casino-grid {
    grid-template-columns: repeat(2, minmax(0, 400px));
  }
}
@media (min-width: 1024px) {
  .live-casino-grid {
    grid-template-columns: repeat(3, minmax(0, 400px));
  }
}
.live-game-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 2;            /* 600×400 пропорция */
  width: 100%;
  max-width: 600px;               /* жёсткий потолок ширины карточки */
  margin: 0 auto;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  isolation: isolate;
}
.live-game-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 600px;
  max-height: 400px;
  object-fit: cover;
  transition: transform .4s ease;
}
.live-game-card:hover img { transform: scale(1.05); }
.live-game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  background: linear-gradient(180deg, transparent 30%, hsl(var(--background) / .85) 100%);
  color: hsl(var(--foreground));
}
.live-game-overlay h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: .25rem;
}
.live-game-overlay p {
  color: hsl(var(--muted-foreground));
  font-size: .9rem;
  margin-bottom: .75rem;
}
.live-game-overlay .btn { align-self: flex-start; }
.live-badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
  background: hsl(0 84% 50%);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: .25rem .6rem;
  border-radius: 999px;
  letter-spacing: .03em;
}

/* --- Footer trust badges --- */
.footer-trust {
  border-bottom: 1px solid hsl(var(--border) / .4);
  background: hsl(var(--muted) / .25);
  padding: 2rem 0;
}
.trust-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 768px) {
  .trust-badges { grid-template-columns: repeat(4, 1fr); }
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  background: hsl(var(--background) / .4);
  border-radius: var(--radius);
}
.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: hsl(var(--muted) / .5);
  flex-shrink: 0;
}
.trust-label {
  font-size: .75rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.2;
}
.trust-value {
  font-size: .9rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  line-height: 1.2;
  margin-top: 2px;
}

/* --- Main footer grid --- */
.footer { background: hsl(var(--background)); border-top: 1px solid hsl(var(--border)); }
.footer-main { padding: 3rem 0 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr repeat(4, 1fr); gap: 2.5rem; }
}
.footer-brand .logo {
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: .05em;
  display: inline-block;
  margin-bottom: 1rem;
}
.footer-brand-text {
  color: hsl(var(--muted-foreground));
  font-size: .9rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  max-width: 28rem;
}
.social-links {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: hsl(var(--muted) / .5);
  color: hsl(var(--muted-foreground));
  transition: transform .2s, color .2s, background .2s;
}
.social-link:hover { transform: scale(1.1); color: hsl(var(--primary)); background: hsl(var(--muted)); }

.footer-links h4 {
  font-size: .95rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.footer-links a {
  font-size: .875rem;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: hsl(var(--primary)); }

/* --- Footer payments / providers --- */
.footer-payments,
.footer-providers {
  border-top: 1px solid hsl(var(--border) / .4);
  padding: 1.75rem 0;
}
.footer-payments h5,
.footer-providers h5 {
  text-align: center;
  font-size: .85rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
  font-weight: 500;
}
.payment-tags,
.provider-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
}
.payment-tag,
.provider-tag {
  padding: .5rem 1rem;
  background: hsl(var(--muted) / .35);
  border-radius: 8px;
  font-size: .75rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  transition: background .2s, color .2s;
}
.payment-tag:hover { background: hsl(var(--muted) / .55); }
.provider-tag:hover { background: hsl(var(--primary) / .2); color: hsl(var(--primary)); }

/* --- Footer license / responsible --- */
.footer-license {
  border-top: 1px solid hsl(var(--border) / .4);
  background: hsl(var(--muted) / .15);
  padding: 1.75rem 0;
}
.license-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 768px) {
  .license-grid { grid-template-columns: repeat(3, 1fr); }
}
.license-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}
@media (min-width: 768px) {
  .license-item:first-child { justify-content: flex-start; }
  .license-item:last-child { justify-content: flex-end; }
}
.license-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: hsl(var(--muted) / .4);
  flex-shrink: 0;
}
.license-icon.gold { background: linear-gradient(135deg, hsl(var(--casino-gold) / .2), hsl(45 90% 50% / .15)); border: 1px solid hsl(var(--casino-gold) / .35); }
.license-icon.green { background: linear-gradient(135deg, hsl(var(--success) / .2), hsl(145 70% 40% / .15)); border: 1px solid hsl(var(--success) / .35); }
.license-text p {
  margin: 0;
  font-size: .8rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.4;
}
.license-text p:nth-child(2) { font-size: .9rem; font-weight: 600; color: hsl(var(--foreground)); }
.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
  font-weight: 900;
  font-size: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  flex-shrink: 0;
}
.responsible-links {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.responsible-link {
  padding: .35rem .7rem;
  background: hsl(var(--muted) / .35);
  border-radius: 6px;
  font-size: .75rem;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: background .2s;
}
.responsible-link:hover { background: hsl(var(--muted) / .55); }

/* --- Footer bottom bar --- */
.footer-bottom {
  border-top: 1px solid hsl(var(--border) / .4);
  background: hsl(var(--background) / .6);
  padding: 1.25rem 0;
}
.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .85rem;
  text-align: center;
}
@media (min-width: 1024px) {
  .footer-bottom-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-copyright {
  font-size: .8rem;
  color: hsl(var(--muted-foreground));
  margin: 0;
}
.footer-disclaimer {
  font-size: .7rem;
  color: hsl(var(--muted-foreground));
  max-width: 42rem;
  margin: 0;
  line-height: 1.5;
}
.footer-legal-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.footer-legal-links a {
  font-size: .75rem;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  transition: color .2s;
}
.footer-legal-links a:hover { color: hsl(var(--primary)); }

/* --- Section-header utility (если ещё не задан) --- */
.section-header { text-align: center; margin-bottom: 2rem; }
.section-header .section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: .5rem;
  color: hsl(var(--foreground));
}
.section-header .section-subtitle {
  color: hsl(var(--muted-foreground));
  font-size: 1rem;
  max-width: 36rem;
  margin: 0 auto;
}

/* --- Live Casino section padding --- */
.live-casino-section { padding: 3rem 0; }
.live-casino-section .text-center { text-align: center; margin-top: 2rem; }

/* --- Safety: глобально не давать картинкам растягиваться выше своих карточек --- */
.live-game-card img,
.game-card img,
.feature-card img {
  max-width: 100%;
  max-height: 100%;
}

/* Жёсткий потолок именно для Live Casino картинок (600×400) */
.live-casino-grid img,
.live-casino-section img {
  max-width: 600px;
  max-height: 400px;
}

/* JoyCasino visual override */
body {
  background:
    linear-gradient(180deg, hsl(0 0% 7%) 0, hsl(0 0% 0%) 180px),
    hsl(var(--background));
}

.glass-effect,
.header {
  background: hsl(0 0% 8% / 0.96);
  backdrop-filter: blur(18px);
}

.casino-card,
.feature-card,
.trust-badge,
.payment-tag,
.provider-tag {
  background: hsl(0 0% 13%);
  border-color: hsl(0 0% 22% / 0.75);
  border-radius: 14px;
}

.section-muted {
  background:
    radial-gradient(circle at 50% 0, hsl(24 93% 56% / 0.08), transparent 38rem),
    hsl(0 0% 3%);
}

.text-gradient-gold {
  background: linear-gradient(135deg, hsl(0 0% 100%) 0%, hsl(35 65% 74%) 54%, hsl(24 93% 58%) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero {
  min-height: 540px;
  padding-top: 5rem;
  border-bottom: 1px solid hsl(var(--border));
}

.hero-bg img {
  object-fit: cover;
  object-position: center;
}

.hero-bg-overlay {
  background:
    linear-gradient(90deg, hsl(0 0% 0% / 0.86) 0%, hsl(0 0% 0% / 0.55) 38%, hsl(0 0% 0% / 0.2) 100%),
    linear-gradient(180deg, hsl(0 0% 0% / 0.18) 0%, hsl(0 0% 0%) 100%);
}

.hero-content {
  max-width: 38rem;
}

.hero-title {
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: 0;
}

.promo-card,
.promo-slide {
  border-radius: 14px;
}

.promo-card-overlay {
  background: linear-gradient(to top, hsl(0 0% 0% / 0.9), hsl(0 0% 0% / 0.18));
}

.asset-list {
  display: grid;
  gap: .75rem;
  margin-top: 1.5rem;
}

.asset-list div {
  display: grid;
  grid-template-columns: minmax(12rem, 18rem) 1fr;
  gap: 1rem;
  align-items: center;
  padding: .9rem 1rem;
  background: hsl(0 0% 13%);
  border: 1px solid hsl(var(--border));
  border-radius: 10px;
}

.asset-list strong {
  color: hsl(var(--primary));
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .9rem;
}

.asset-list span {
  color: hsl(var(--muted-foreground));
}

@media (max-width: 768px) {
  .hero {
    min-height: 420px;
    padding-top: 4rem;
  }

  .hero-content {
    padding-top: 2rem;
  }

  .asset-list div {
    grid-template-columns: 1fr;
    gap: .35rem;
  }
}
