/* ============================================================
   JugaaAhora — main.css
   Social entertainment website (10 pages, 2 browser games)
   Prefix: jah-
   Colors: Plum #8B5CF6, Cyan #06B6D4, Peach #FB923C,
           Lime #84CC16, Yellow #EAB308
   Mobile-first, app-style, soft gradients
   ============================================================ */

/* ==========================================================
   1. RESET & BASE
   ========================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: #0F0A1A;
  color: #F0E8FF;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: #8B5CF6;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #A78BFA;
}

ul,
ol {
  list-style: none;
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid #8B5CF6;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ==========================================================
   2. CSS CUSTOM PROPERTIES
   ========================================================== */

:root {
  /* Primary palette */
  --jah-plum: #8B5CF6;
  --jah-plum-light: #A78BFA;
  --jah-plum-dark: #6D3BEF;
  --jah-cyan: #06B6D4;
  --jah-cyan-light: #22D3EE;
  --jah-cyan-dark: #0891B2;
  --jah-peach: #FB923C;
  --jah-peach-light: #FBBF24;
  --jah-peach-dark: #EA580C;
  --jah-lime: #84CC16;
  --jah-lime-light: #A3E635;
  --jah-lime-dark: #65A30D;
  --jah-yellow: #EAB308;
  --jah-yellow-light: #FACC15;
  --jah-yellow-dark: #CA8A04;

  /* Backgrounds */
  --jah-bg-dark: #0F0A1A;
  --jah-bg-surface: #1A1228;
  --jah-bg-card: #221A33;
  --jah-bg-card-hover: #2A1F3F;
  --jah-bg-elevated: #2E2342;

  /* Text */
  --jah-text: #F0E8FF;
  --jah-text-muted: #A89BC2;
  --jah-text-dim: #7B6F96;
  --jah-text-inverse: #1A1228;

  /* Shadows */
  --jah-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --jah-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
  --jah-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.45);
  --jah-shadow-glow-plum: 0 0 20px rgba(139, 92, 246, 0.3);
  --jah-shadow-glow-cyan: 0 0 20px rgba(6, 182, 212, 0.3);
  --jah-shadow-glow-peach: 0 0 20px rgba(251, 146, 60, 0.3);

  /* Borders */
  --jah-radius-sm: 8px;
  --jah-radius-md: 12px;
  --jah-radius-lg: 16px;
  --jah-radius-xl: 24px;
  --jah-radius-full: 9999px;

  /* Gradients */
  --jah-gradient-plum-cyan: linear-gradient(135deg, #8B5CF6 0%, #06B6D4 100%);
  --jah-gradient-plum-peach: linear-gradient(135deg, #8B5CF6 0%, #FB923C 100%);
  --jah-gradient-peach-yellow: linear-gradient(135deg, #FB923C 0%, #EAB308 100%);
  --jah-gradient-cyan-lime: linear-gradient(135deg, #06B6D4 0%, #84CC16 100%);
  --jah-gradient-dark: linear-gradient(180deg, #1A1228 0%, #0F0A1A 100%);
  --jah-gradient-card: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%);
  --jah-gradient-hero: linear-gradient(135deg, #1A1228 0%, #221A33 50%, #1A1228 100%);

  /* Transitions */
  --jah-transition-fast: 0.2s ease;
  --jah-transition-base: 0.3s ease;
  --jah-transition-slow: 0.5s ease;

  /* Font sizes */
  --jah-text-xs: 0.75rem;
  --jah-text-sm: 0.875rem;
  --jah-text-base: 1rem;
  --jah-text-lg: 1.125rem;
  --jah-text-xl: 1.25rem;
  --jah-text-2xl: 1.5rem;
  --jah-text-3xl: 1.875rem;
  --jah-text-4xl: 2.25rem;
  --jah-text-5xl: 3rem;

  /* Spacing */
  --jah-space-1: 0.25rem;
  --jah-space-2: 0.5rem;
  --jah-space-3: 0.75rem;
  --jah-space-4: 1rem;
  --jah-space-5: 1.25rem;
  --jah-space-6: 1.5rem;
  --jah-space-8: 2rem;
  --jah-space-10: 2.5rem;
  --jah-space-12: 3rem;
  --jah-space-16: 4rem;
  --jah-space-20: 5rem;

  /* Z-index layers */
  --jah-z-base: 1;
  --jah-z-dropdown: 100;
  --jah-z-sticky: 200;
  --jah-z-header: 300;
  --jah-z-drawer: 400;
  --jah-z-drawer-backdrop: 399;
  --jah-z-cookie: 450;
  --jah-z-age-gate: 500;
  --jah-z-age-gate-backdrop: 499;
  --jah-z-modal: 600;
}

/* ==========================================================
   3. TYPOGRAPHY
   ========================================================== */

.jah-heading-1 {
  font-size: var(--jah-text-3xl);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  background: var(--jah-gradient-plum-cyan);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.jah-heading-2 {
  font-size: var(--jah-text-2xl);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.jah-heading-3 {
  font-size: var(--jah-text-xl);
  font-weight: 600;
  line-height: 1.3;
}

.jah-heading-4 {
  font-size: var(--jah-text-lg);
  font-weight: 600;
  line-height: 1.35;
}

.jah-text-large {
  font-size: var(--jah-text-lg);
  line-height: 1.65;
  color: var(--jah-text-muted);
}

.jah-text-small {
  font-size: var(--jah-text-sm);
  line-height: 1.5;
  color: var(--jah-text-dim);
}

.jah-text-muted {
  color: var(--jah-text-muted);
}

.jah-text-gradient-plum-cyan {
  background: var(--jah-gradient-plum-cyan);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.jah-text-gradient-peach {
  background: var(--jah-gradient-peach-yellow);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Shimmer text effect */
.jah-shimmer-text {
  background: linear-gradient(
    90deg,
    var(--jah-plum) 0%,
    var(--jah-cyan) 25%,
    var(--jah-peach) 50%,
    var(--jah-yellow) 75%,
    var(--jah-plum) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: jah-shimmer 3s ease-in-out infinite;
}

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

/* ==========================================================
   4. CONTAINER
   ========================================================== */

.jah-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: var(--jah-space-4);
  padding-right: var(--jah-space-4);
}

.jah-container-narrow {
  max-width: 800px;
}

.jah-container-wide {
  max-width: 1400px;
}

/* ==========================================================
   5. HEADER
   ========================================================== */

.jah-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--jah-z-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--jah-space-3) var(--jah-space-4);
  background: rgba(15, 10, 26, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
  transition: background var(--jah-transition-base);
}

.jah-header-scrolled {
  background: rgba(15, 10, 26, 0.92);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.jah-header-logo {
  display: flex;
  align-items: center;
  gap: var(--jah-space-2);
  text-decoration: none;
  color: var(--jah-text);
  font-weight: 700;
  font-size: var(--jah-text-lg);
}

.jah-header-logo img {
  width: 36px;
  height: 36px;
  border-radius: var(--jah-radius-sm);
}

.jah-header-logo span {
  display: none;
}

.jah-header-actions {
  display: flex;
  align-items: center;
  gap: var(--jah-space-2);
}

.jah-header-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--jah-radius-full);
  background: var(--jah-bg-card);
  color: var(--jah-text-muted);
  transition: all var(--jah-transition-fast);
  border: 1px solid rgba(139, 92, 246, 0.1);
}

.jah-header-btn:hover {
  background: var(--jah-bg-card-hover);
  color: var(--jah-text);
  border-color: rgba(139, 92, 246, 0.3);
}

.jah-header-btn svg {
  width: 20px;
  height: 20px;
}

/* Hamburger menu icon */
.jah-hamburger {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--jah-radius-full);
  background: var(--jah-bg-card);
  border: 1px solid rgba(139, 92, 246, 0.1);
  cursor: pointer;
  transition: all var(--jah-transition-fast);
}

.jah-hamburger:hover {
  background: var(--jah-bg-card-hover);
  border-color: rgba(139, 92, 246, 0.3);
}

.jah-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--jah-text);
  border-radius: 2px;
  transition: all var(--jah-transition-base);
  transform-origin: center;
}

.jah-hamburger-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.jah-hamburger-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.jah-hamburger-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================
   6. DRAWER NAV (slide-in from right)
   ========================================================== */

.jah-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--jah-z-drawer-backdrop);
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--jah-transition-base);
}

.jah-drawer-backdrop-active {
  opacity: 1;
  visibility: visible;
}

.jah-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  z-index: var(--jah-z-drawer);
  background: var(--jah-bg-surface);
  border-left: 1px solid rgba(139, 92, 246, 0.15);
  transform: translateX(100%);
  transition: transform var(--jah-transition-base);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4);
}

.jah-drawer-open {
  transform: translateX(0);
}

.jah-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--jah-space-4);
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.jah-drawer-header-title {
  font-weight: 600;
  font-size: var(--jah-text-lg);
  color: var(--jah-text);
}

.jah-drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--jah-radius-full);
  background: var(--jah-bg-card);
  color: var(--jah-text-muted);
  cursor: pointer;
  transition: all var(--jah-transition-fast);
  border: none;
}

.jah-drawer-close:hover {
  background: var(--jah-bg-card-hover);
  color: var(--jah-text);
}

.jah-drawer-close svg {
  width: 18px;
  height: 18px;
}

.jah-drawer-nav {
  flex: 1;
  padding: var(--jah-space-3) 0;
}

.jah-drawer-link {
  display: flex;
  align-items: center;
  gap: var(--jah-space-3);
  padding: var(--jah-space-3) var(--jah-space-6);
  color: var(--jah-text-muted);
  font-size: var(--jah-text-base);
  font-weight: 500;
  transition: all var(--jah-transition-fast);
  text-decoration: none;
  border-left: 3px solid transparent;
}

.jah-drawer-link:hover,
.jah-drawer-link-active {
  color: var(--jah-text);
  background: rgba(139, 92, 246, 0.08);
  border-left-color: var(--jah-plum);
}

.jah-drawer-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.6;
}

.jah-drawer-link:hover svg {
  opacity: 1;
}

.jah-drawer-footer {
  padding: var(--jah-space-4) var(--jah-space-6);
  border-top: 1px solid rgba(139, 92, 246, 0.1);
}

.jah-drawer-footer-text {
  font-size: var(--jah-text-sm);
  color: var(--jah-text-dim);
}

/* ==========================================================
   7. HERO (dashboard-card style)
   ========================================================== */

.jah-hero {
  position: relative;
  padding: var(--jah-space-20) 0 var(--jah-space-12);
  background: var(--jah-gradient-hero);
  overflow: hidden;
  margin-top: 60px;
}

.jah-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.jah-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.jah-hero-content {
  position: relative;
  z-index: 1;
}

.jah-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--jah-space-2);
  padding: var(--jah-space-1) var(--jah-space-3);
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--jah-radius-full);
  font-size: var(--jah-text-xs);
  color: var(--jah-plum-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--jah-space-4);
}

.jah-hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jah-lime);
  animation: jah-pulse-dot 2s ease-in-out infinite;
}

@keyframes jah-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.75); }
}

.jah-hero-title {
  font-size: var(--jah-text-3xl);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--jah-space-4);
  letter-spacing: -0.02em;
}

.jah-hero-title-gradient {
  background: var(--jah-gradient-plum-cyan);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.jah-hero-subtitle {
  font-size: var(--jah-text-base);
  color: var(--jah-text-muted);
  line-height: 1.6;
  margin-bottom: var(--jah-space-6);
  max-width: 560px;
}

.jah-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--jah-space-3);
  margin-bottom: var(--jah-space-8);
}

/* Hero preview panels */
.jah-hero-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--jah-space-4);
  margin-top: var(--jah-space-6);
}

.jah-hero-panel-card {
  background: var(--jah-bg-card);
  border: 1px solid rgba(139, 92, 246, 0.12);
  border-radius: var(--jah-radius-lg);
  padding: var(--jah-space-4);
  transition: all var(--jah-transition-base);
  display: flex;
  flex-direction: column;
  gap: var(--jah-space-3);
}

.jah-hero-panel-card:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.25);
  box-shadow: var(--jah-shadow-glow-plum);
}

.jah-hero-panel-image {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--jah-radius-md);
  object-fit: cover;
  background: var(--jah-bg-elevated);
}

.jah-hero-panel-label {
  font-size: var(--jah-text-sm);
  font-weight: 600;
  color: var(--jah-text);
}

.jah-hero-panel-desc {
  font-size: var(--jah-text-sm);
  color: var(--jah-text-muted);
  line-height: 1.5;
}

/* Hero stats row */
.jah-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--jah-space-6);
  padding-top: var(--jah-space-6);
  border-top: 1px solid rgba(139, 92, 246, 0.1);
  margin-top: var(--jah-space-6);
}

.jah-hero-stat {
  text-align: center;
  flex: 1;
  min-width: 80px;
}

.jah-hero-stat-value {
  font-size: var(--jah-text-2xl);
  font-weight: 800;
  background: var(--jah-gradient-plum-cyan);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.jah-hero-stat-label {
  font-size: var(--jah-text-xs);
  color: var(--jah-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: var(--jah-space-1);
}

/* ==========================================================
   8. CARDS
   ========================================================== */

.jah-card {
  background: var(--jah-bg-card);
  border: 1px solid rgba(139, 92, 246, 0.1);
  border-radius: var(--jah-radius-lg);
  padding: var(--jah-space-5);
  transition: all var(--jah-transition-base);
  position: relative;
  overflow: hidden;
}

.jah-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.2);
  box-shadow: var(--jah-shadow-lg), var(--jah-shadow-glow-plum);
}

.jah-card-glow-cyan:hover {
  box-shadow: var(--jah-shadow-lg), var(--jah-shadow-glow-cyan);
}

.jah-card-glow-peach:hover {
  box-shadow: var(--jah-shadow-lg), var(--jah-shadow-glow-peach);
}

.jah-card-image {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: var(--jah-radius-md);
  object-fit: cover;
  margin-bottom: var(--jah-space-4);
  background: var(--jah-bg-elevated);
}

.jah-card-title {
  font-size: var(--jah-text-lg);
  font-weight: 700;
  margin-bottom: var(--jah-space-2);
  color: var(--jah-text);
}

.jah-card-text {
  font-size: var(--jah-text-sm);
  color: var(--jah-text-muted);
  line-height: 1.6;
  margin-bottom: var(--jah-space-4);
}

.jah-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--jah-space-3);
  border-top: 1px solid rgba(139, 92, 246, 0.08);
  margin-top: auto;
}

/* Card sizes for masonry */
.jah-card-sm {
  grid-row: span 1;
}

.jah-card-md {
  grid-row: span 2;
}

.jah-card-lg {
  grid-row: span 3;
}

/* ==========================================================
   9. MASONRY GRID
   ========================================================== */

.jah-masonry {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--jah-space-4);
}

/* ==========================================================
   10. GAME HUB
   ========================================================== */

.jah-game-hub {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--jah-space-6);
}

.jah-game-hub-card {
  background: var(--jah-bg-card);
  border: 1px solid rgba(139, 92, 246, 0.1);
  border-radius: var(--jah-radius-lg);
  overflow: hidden;
  transition: all var(--jah-transition-base);
  display: flex;
  flex-direction: column;
}

.jah-game-hub-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.25);
  box-shadow: var(--jah-shadow-lg), var(--jah-shadow-glow-plum);
}

.jah-game-hub-image {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: var(--jah-bg-elevated);
}

.jah-game-hub-body {
  padding: var(--jah-space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.jah-game-hub-title {
  font-size: var(--jah-text-xl);
  font-weight: 700;
  margin-bottom: var(--jah-space-2);
  color: var(--jah-text);
}

.jah-game-hub-desc {
  font-size: var(--jah-text-sm);
  color: var(--jah-text-muted);
  line-height: 1.6;
  margin-bottom: var(--jah-space-4);
  flex: 1;
}

.jah-game-hub-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--jah-space-3);
  border-top: 1px solid rgba(139, 92, 246, 0.08);
}

/* ==========================================================
   11. GAME 1: RUEDA SALVAJE (5x3 reel)
   ========================================================== */

.jah-game-reel {
  background: var(--jah-bg-card);
  border: 1px solid rgba(139, 92, 246, 0.12);
  border-radius: var(--jah-radius-lg);
  padding: var(--jah-space-4);
  max-width: 500px;
  margin: 0 auto;
}

.jah-game-reel-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: var(--jah-space-4);
}

.jah-game-reel-cell {
  aspect-ratio: 1;
  background: var(--jah-bg-elevated);
  border: 2px solid rgba(139, 92, 246, 0.15);
  border-radius: var(--jah-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all var(--jah-transition-fast);
  position: relative;
}

.jah-game-reel-cell img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  transition: transform 0.15s ease;
}

.jah-game-reel-cell-active {
  border-color: var(--jah-lime);
  box-shadow: 0 0 12px rgba(132, 204, 22, 0.3);
}

.jah-game-reel-cell-win {
  border-color: var(--jah-yellow);
  box-shadow: 0 0 16px rgba(234, 179, 8, 0.4);
  animation: jah-win-glow 0.6s ease-in-out infinite alternate;
}

@keyframes jah-win-glow {
  0% { box-shadow: 0 0 8px rgba(234, 179, 8, 0.3); }
  100% { box-shadow: 0 0 20px rgba(234, 179, 8, 0.6); }
}

/* Reel spin animation */
.jah-game-reel-spin .jah-game-reel-cell img {
  animation: jah-symbol-spin 0.6s ease-in-out;
}

@keyframes jah-symbol-spin {
  0% { transform: scale(1) rotateX(0deg); opacity: 1; }
  25% { transform: scale(0.8) rotateX(90deg); opacity: 0.5; }
  50% { transform: scale(0.8) rotateX(180deg); opacity: 0.3; }
  75% { transform: scale(0.8) rotateX(270deg); opacity: 0.5; }
  100% { transform: scale(1) rotateX(360deg); opacity: 1; }
}

/* Staggered spin delays */
.jah-game-reel-spin .jah-game-reel-cell:nth-child(5n+1) img { animation-delay: 0s; }
.jah-game-reel-spin .jah-game-reel-cell:nth-child(5n+2) img { animation-delay: 0.05s; }
.jah-game-reel-spin .jah-game-reel-cell:nth-child(5n+3) img { animation-delay: 0.1s; }
.jah-game-reel-spin .jah-game-reel-cell:nth-child(5n+4) img { animation-delay: 0.15s; }
.jah-game-reel-spin .jah-game-reel-cell:nth-child(5n+5) img { animation-delay: 0.2s; }

/* ==========================================================
   12. GAME 2: MEMORIA BRILLANTE (4x4 memory grid)
   ========================================================== */

.jah-memory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 420px;
  margin: 0 auto;
  perspective: 1000px;
}

.jah-memory-card {
  aspect-ratio: 1;
  position: relative;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}

.jah-memory-card-flipped {
  transform: rotateY(180deg);
}

.jah-memory-card-matched {
  transform: rotateY(180deg);
}

.jah-memory-card-matched .jah-memory-card-front {
  border-color: var(--jah-lime);
  box-shadow: 0 0 12px rgba(132, 204, 22, 0.3);
}

.jah-memory-card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--jah-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid rgba(139, 92, 246, 0.15);
  background: var(--jah-bg-card);
}

.jah-memory-card-back {
  background: var(--jah-gradient-plum-cyan);
  border-color: rgba(139, 92, 246, 0.3);
  transform: rotateY(0deg);
}

.jah-memory-card-back::after {
  content: '?';
  font-size: var(--jah-text-3xl);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.6);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.jah-memory-card-front {
  transform: rotateY(180deg);
  background: var(--jah-bg-elevated);
  padding: 8px;
}

.jah-memory-card-front img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.jah-memory-card-disabled {
  cursor: default;
  pointer-events: none;
}

/* Memory card matched celebration */
.jah-memory-card-matched .jah-memory-card-front img {
  animation: jah-match-pop 0.4s ease;
}

@keyframes jah-match-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ==========================================================
   13. GAME PANELS (shared styling)
   ========================================================== */

.jah-game-panel {
  background: var(--jah-bg-surface);
  border: 1px solid rgba(139, 92, 246, 0.1);
  border-radius: var(--jah-radius-lg);
  padding: var(--jah-space-5);
}

.jah-game-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--jah-space-4);
  padding-bottom: var(--jah-space-3);
  border-bottom: 1px solid rgba(139, 92, 246, 0.08);
}

.jah-game-panel-title {
  font-size: var(--jah-text-lg);
  font-weight: 700;
  color: var(--jah-text);
}

.jah-game-credit-display {
  text-align: center;
  padding: var(--jah-space-4);
  margin-bottom: var(--jah-space-4);
  background: rgba(139, 92, 246, 0.06);
  border-radius: var(--jah-radius-md);
  border: 1px solid rgba(139, 92, 246, 0.1);
}

.jah-game-credit-label {
  font-size: var(--jah-text-sm);
  color: var(--jah-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--jah-space-1);
}

.jah-game-credit-amount {
  font-size: var(--jah-text-3xl);
  font-weight: 800;
  background: var(--jah-gradient-plum-cyan);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.jah-game-stake-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--jah-space-2);
  justify-content: center;
  margin-bottom: var(--jah-space-4);
}

.jah-game-stake-btn {
  padding: var(--jah-space-2) var(--jah-space-4);
  background: var(--jah-bg-card);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: var(--jah-radius-full);
  color: var(--jah-text-muted);
  font-size: var(--jah-text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--jah-transition-fast);
}

.jah-game-stake-btn:hover {
  border-color: rgba(139, 92, 246, 0.35);
  color: var(--jah-text);
}

.jah-game-stake-btn-active {
  background: var(--jah-gradient-plum-cyan);
  color: white;
  border-color: transparent;
  box-shadow: var(--jah-shadow-glow-plum);
}

.jah-game-actions {
  display: flex;
  gap: var(--jah-space-3);
  justify-content: center;
  margin-bottom: var(--jah-space-4);
}

.jah-game-result {
  text-align: center;
  padding: var(--jah-space-3);
  border-radius: var(--jah-radius-md);
  font-size: var(--jah-text-sm);
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jah-game-result-win {
  color: var(--jah-lime);
  background: rgba(132, 204, 22, 0.1);
  border: 1px solid rgba(132, 204, 22, 0.2);
}

.jah-game-result-lose {
  color: #F87171;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.jah-game-result-info {
  color: var(--jah-cyan-light);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.jah-game-info {
  display: flex;
  justify-content: center;
  gap: var(--jah-space-6);
  padding: var(--jah-space-3);
  font-size: var(--jah-text-sm);
  color: var(--jah-text-muted);
}

.jah-game-info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--jah-space-1);
}

.jah-game-info-value {
  font-weight: 700;
  font-size: var(--jah-text-lg);
  color: var(--jah-text);
}

/* ==========================================================
   14. AGE GATE
   ========================================================== */

.jah-age-gate {
  position: fixed;
  inset: 0;
  z-index: var(--jah-z-age-gate);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--jah-space-4);
}

.jah-age-gate-modal {
  background: var(--jah-bg-surface);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: var(--jah-radius-xl);
  padding: var(--jah-space-8) var(--jah-space-6);
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: var(--jah-shadow-lg);
  animation: jah-age-gate-enter 0.4s ease-out;
}

@keyframes jah-age-gate-enter {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.jah-age-gate-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--jah-space-4);
  background: var(--jah-gradient-plum-cyan);
  border-radius: var(--jah-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: white;
  box-shadow: var(--jah-shadow-glow-plum);
}

.jah-age-gate-title {
  font-size: var(--jah-text-2xl);
  font-weight: 800;
  margin-bottom: var(--jah-space-3);
  color: var(--jah-text);
}

.jah-age-gate-text {
  font-size: var(--jah-text-sm);
  color: var(--jah-text-muted);
  line-height: 1.6;
  margin-bottom: var(--jah-space-6);
}

.jah-age-gate-actions {
  display: flex;
  gap: var(--jah-space-3);
  justify-content: center;
}

.jah-age-gate-btn-no {
  padding: var(--jah-space-3) var(--jah-space-8);
  background: var(--jah-bg-card);
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: var(--jah-radius-full);
  color: #F87171;
  font-weight: 600;
  font-size: var(--jah-text-base);
  cursor: pointer;
  transition: all var(--jah-transition-fast);
}

.jah-age-gate-btn-no:hover {
  background: rgba(248, 113, 113, 0.1);
  border-color: #F87171;
}

.jah-age-gate-btn-yes {
  padding: var(--jah-space-3) var(--jah-space-8);
  background: var(--jah-gradient-plum-cyan);
  border: none;
  border-radius: var(--jah-radius-full);
  color: white;
  font-weight: 600;
  font-size: var(--jah-text-base);
  cursor: pointer;
  transition: all var(--jah-transition-fast);
  box-shadow: var(--jah-shadow-glow-plum);
}

.jah-age-gate-btn-yes:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

/* Age gate hidden (accepted) */
.jah-age-gate-hidden,
.jah-age-gate-hidden .jah-age-gate-backdrop {
  display: none;
}

/* ==========================================================
   15. COOKIE BANNER
   ========================================================== */

.jah-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--jah-z-cookie);
  background: var(--jah-bg-surface);
  border-top: 1px solid rgba(139, 92, 246, 0.12);
  padding: var(--jah-space-4) var(--jah-space-4);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  animation: jah-cookie-slide-up 0.4s ease-out;
}

@keyframes jah-cookie-slide-up {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.jah-cookie-banner-inner {
  display: flex;
  flex-direction: column;
  gap: var(--jah-space-3);
  max-width: 1280px;
  margin: 0 auto;
}

.jah-cookie-text {
  font-size: var(--jah-text-sm);
  color: var(--jah-text-muted);
  line-height: 1.5;
}

.jah-cookie-text a {
  color: var(--jah-cyan-light);
  text-decoration: underline;
}

.jah-cookie-actions {
  display: flex;
  gap: var(--jah-space-2);
  flex-shrink: 0;
}

.jah-cookie-btn {
  padding: var(--jah-space-2) var(--jah-space-5);
  border-radius: var(--jah-radius-full);
  font-weight: 600;
  font-size: var(--jah-text-sm);
  cursor: pointer;
  transition: all var(--jah-transition-fast);
  border: none;
}

.jah-cookie-btn-accept {
  background: var(--jah-gradient-plum-cyan);
  color: white;
}

.jah-cookie-btn-accept:hover {
  box-shadow: var(--jah-shadow-glow-plum);
}

.jah-cookie-btn-decline {
  background: var(--jah-bg-card);
  color: var(--jah-text-muted);
  border: 1px solid rgba(139, 92, 246, 0.15);
}

.jah-cookie-btn-decline:hover {
  color: var(--jah-text);
  border-color: rgba(139, 92, 246, 0.3);
}

/* ==========================================================
   16. FAQ ACCORDION
   ========================================================== */

.jah-faq {
  display: flex;
  flex-direction: column;
  gap: var(--jah-space-3);
}

.jah-faq-item {
  background: var(--jah-bg-card);
  border: 1px solid rgba(139, 92, 246, 0.1);
  border-radius: var(--jah-radius-md);
  overflow: hidden;
  transition: border-color var(--jah-transition-base);
}

.jah-faq-item:hover {
  border-color: rgba(139, 92, 246, 0.2);
}

.jah-faq-item-open {
  border-color: rgba(139, 92, 246, 0.25);
}

.jah-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--jah-space-4) var(--jah-space-5);
  background: none;
  border: none;
  color: var(--jah-text);
  font-size: var(--jah-text-base);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  gap: var(--jah-space-3);
  transition: color var(--jah-transition-fast);
}

.jah-faq-question:hover {
  color: var(--jah-plum-light);
}

.jah-faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--jah-text-muted);
  transition: transform var(--jah-transition-base);
}

.jah-faq-item-open .jah-faq-chevron {
  transform: rotate(180deg);
  color: var(--jah-plum-light);
}

.jah-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--jah-transition-base), padding var(--jah-transition-base);
}

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

.jah-faq-answer-inner {
  padding: 0 var(--jah-space-5) var(--jah-space-4);
  font-size: var(--jah-text-sm);
  color: var(--jah-text-muted);
  line-height: 1.7;
}

/* ==========================================================
   17. INFO CARDS
   ========================================================== */

.jah-info-card {
  display: flex;
  gap: var(--jah-space-4);
  padding: var(--jah-space-5);
  background: var(--jah-bg-card);
  border: 1px solid rgba(139, 92, 246, 0.1);
  border-radius: var(--jah-radius-lg);
  transition: all var(--jah-transition-base);
}

.jah-info-card:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.2);
  box-shadow: var(--jah-shadow-md);
}

.jah-info-card-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--jah-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.jah-info-card-icon-plum {
  background: rgba(139, 92, 246, 0.15);
  color: var(--jah-plum-light);
}

.jah-info-card-icon-cyan {
  background: rgba(6, 182, 212, 0.15);
  color: var(--jah-cyan-light);
}

.jah-info-card-icon-peach {
  background: rgba(251, 146, 60, 0.15);
  color: var(--jah-peach);
}

.jah-info-card-icon-lime {
  background: rgba(132, 204, 22, 0.15);
  color: var(--jah-lime-light);
}

.jah-info-card-body {
  flex: 1;
  min-width: 0;
}

.jah-info-card-title {
  font-size: var(--jah-text-base);
  font-weight: 700;
  color: var(--jah-text);
  margin-bottom: var(--jah-space-1);
}

.jah-info-card-text {
  font-size: var(--jah-text-sm);
  color: var(--jah-text-muted);
  line-height: 1.6;
}

/* ==========================================================
   18. CTA CARDS
   ========================================================== */

.jah-cta-card {
  background: var(--jah-gradient-plum-cyan);
  border-radius: var(--jah-radius-xl);
  padding: var(--jah-space-8) var(--jah-space-6);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.jah-cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.jah-cta-card-title {
  font-size: var(--jah-text-2xl);
  font-weight: 800;
  color: white;
  margin-bottom: var(--jah-space-3);
  position: relative;
}

.jah-cta-card-text {
  font-size: var(--jah-text-base);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--jah-space-6);
  line-height: 1.6;
  position: relative;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Alternate CTA variants */
.jah-cta-card-peach {
  background: var(--jah-gradient-plum-peach);
}

.jah-cta-card-lime {
  background: var(--jah-gradient-cyan-lime);
}

.jah-cta-card-ghost {
  background: var(--jah-bg-card);
  border: 1px solid rgba(139, 92, 246, 0.15);
}

.jah-cta-card-ghost .jah-cta-card-title {
  background: var(--jah-gradient-plum-cyan);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.jah-cta-card-ghost .jah-cta-card-text {
  color: var(--jah-text-muted);
}

/* ==========================================================
   19. FOOTER — BEM classes (match site-footer.php)
   ========================================================== */

/* ── Container ── */
.jah-footer__container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: var(--jah-space-4);
  padding-right: var(--jah-space-4);
}

/* ── Responsible Gaming Bar ── */
.jah-footer__responsible {
  background: rgba(139, 92, 246, 0.04);
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
  padding: var(--jah-space-4) 0;
  margin-bottom: var(--jah-space-8);
}

.jah-footer__responsible-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--jah-space-3);
  text-align: center;
}

@media (min-width: 640px) {
  .jah-footer__responsible-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.jah-footer__responsible-text {
  font-size: var(--jah-text-xs);
  color: var(--jah-text-dim);
  line-height: 1.5;
  max-width: 640px;
}

.jah-footer__responsible-text a {
  color: var(--jah-cyan-light);
  text-decoration: underline;
}

.jah-footer__responsible-text a:hover {
  color: var(--jah-cyan);
}

.jah-footer__age-icon {
  font-size: 1.1rem;
}

.jah-footer__responsible-logos {
  display: flex;
  align-items: center;
  gap: var(--jah-space-3);
  flex-shrink: 0;
}

.jah-footer__ga-link {
  display: inline-flex;
  align-items: center;
  opacity: 0.65;
  transition: opacity var(--jah-transition-fast);
}

.jah-footer__ga-link:hover {
  opacity: 1;
}

.jah-footer__ga-svg {
  height: 24px;
  width: auto;
  color: var(--jah-text-muted);
}

.jah-footer__badge-18 {
  display: inline-flex;
  align-items: center;
  opacity: 0.7;
}

/* ── Main Grid ── */
.jah-footer__main {
  padding-bottom: var(--jah-space-8);
}

.jah-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--jah-space-8);
}

@media (min-width: 768px) {
  .jah-footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.jah-footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--jah-space-3);
}

.jah-footer__col--brand {
  gap: var(--jah-space-4);
}

/* ── Brand Column ── */
.jah-footer__logo a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.jah-footer__logo-img {
  width: 64px;
  height: 64px;
  border-radius: var(--jah-radius-md);
  transition: transform var(--jah-transition-fast);
}

.jah-footer__logo-img:hover {
  transform: scale(1.05);
}

.jah-footer__desc {
  font-size: var(--jah-text-sm);
  color: var(--jah-text-muted);
  line-height: 1.6;
  max-width: 300px;
}

/* ── Social Buttons ── */
.jah-footer__social {
  display: flex;
  gap: var(--jah-space-2);
  margin-top: var(--jah-space-2);
}

.jah-footer__social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--jah-bg-card);
  border: 1px solid rgba(139, 92, 246, 0.12);
  border-radius: var(--jah-radius-full);
  color: var(--jah-text-muted);
  transition: all var(--jah-transition-fast);
}

.jah-footer__social-btn:hover {
  background: var(--jah-bg-card-hover);
  color: var(--jah-plum-light);
  border-color: rgba(139, 92, 246, 0.3);
}

.jah-footer__social-btn svg {
  width: 18px;
  height: 18px;
}

/* ── Column Titles & Lists ── */
.jah-footer__col-title {
  font-size: var(--jah-text-sm);
  font-weight: 700;
  color: var(--jah-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--jah-space-2);
}

.jah-footer__list {
  display: flex;
  flex-direction: column;
  gap: var(--jah-space-2);
  list-style: none;
  padding: 0;
  margin: 0;
}

.jah-footer__list a {
  font-size: var(--jah-text-sm);
  color: var(--jah-text-muted);
  text-decoration: none;
  transition: color var(--jah-transition-fast);
  padding: var(--jah-space-1) 0;
  display: inline-block;
}

.jah-footer__list a:hover {
  color: var(--jah-plum-light);
}

/* ── Disclaimer Bar ── */
.jah-footer__disclaimer {
  background: rgba(139, 92, 246, 0.03);
  border-top: 1px solid rgba(139, 92, 246, 0.06);
  border-bottom: 1px solid rgba(139, 92, 246, 0.06);
  padding: var(--jah-space-4) 0;
}

.jah-footer__disclaimer p {
  font-size: var(--jah-text-xs);
  color: var(--jah-text-dim);
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.jah-footer__disclaimer a {
  color: var(--jah-cyan-light);
  text-decoration: underline;
}

/* ── Bottom Bar ── */
.jah-footer__bottom {
  padding-top: var(--jah-space-6);
}

.jah-footer__bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--jah-space-3);
  text-align: center;
}

@media (min-width: 768px) {
  .jah-footer__bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.jah-footer__copyright {
  font-size: var(--jah-text-xs);
  color: var(--jah-text-dim);
  line-height: 1.5;
}

.jah-footer__bottom-links {
  display: flex;
  gap: var(--jah-space-4);
}

.jah-footer__bottom-links a {
  font-size: var(--jah-text-xs);
  color: var(--jah-text-dim);
  text-decoration: none;
  transition: color var(--jah-transition-fast);
}

.jah-footer__bottom-links a:hover {
  color: var(--jah-plum-light);
}

/* ==========================================================
   21. LEGAL PAGES
   ========================================================== */

.jah-legal-page {
  padding-top: 80px;
  padding-bottom: var(--jah-space-12);
}

.jah-legal-page .jah-container {
  max-width: 800px;
}

.jah-legal-header {
  margin-bottom: var(--jah-space-8);
  padding-bottom: var(--jah-space-6);
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.jah-legal-title {
  font-size: var(--jah-text-3xl);
  font-weight: 800;
  margin-bottom: var(--jah-space-2);
  color: var(--jah-text);
}

.jah-legal-meta {
  font-size: var(--jah-text-sm);
  color: var(--jah-text-dim);
}

.jah-legal-content {
  font-size: var(--jah-text-base);
  color: var(--jah-text-muted);
  line-height: 1.8;
}

.jah-legal-content h2 {
  font-size: var(--jah-text-2xl);
  font-weight: 700;
  color: var(--jah-text);
  margin-top: var(--jah-space-8);
  margin-bottom: var(--jah-space-3);
}

.jah-legal-content h3 {
  font-size: var(--jah-text-lg);
  font-weight: 600;
  color: var(--jah-text);
  margin-top: var(--jah-space-6);
  margin-bottom: var(--jah-space-2);
}

.jah-legal-content p {
  margin-bottom: var(--jah-space-4);
}

.jah-legal-content ul,
.jah-legal-content ol {
  margin-bottom: var(--jah-space-4);
  padding-left: var(--jah-space-6);
}

.jah-legal-content ul {
  list-style: disc;
}

.jah-legal-content ol {
  list-style: decimal;
}

.jah-legal-content li {
  margin-bottom: var(--jah-space-2);
}

.jah-legal-content a {
  color: var(--jah-cyan-light);
  text-decoration: underline;
}

.jah-legal-content a:hover {
  color: var(--jah-cyan);
}

.jah-legal-content strong {
  color: var(--jah-text);
}

/* ==========================================================
   22. BUTTONS
   ========================================================== */

.jah-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--jah-space-2);
  padding: var(--jah-space-3) var(--jah-space-6);
  border-radius: var(--jah-radius-full);
  font-weight: 600;
  font-size: var(--jah-text-base);
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--jah-transition-fast);
  border: 2px solid transparent;
  white-space: nowrap;
}

.jah-btn:active {
  transform: scale(0.97);
}

.jah-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Primary (plum-cyan gradient) */
.jah-btn-primary {
  background: var(--jah-gradient-plum-cyan);
  color: white;
  box-shadow: 0 2px 12px rgba(139, 92, 246, 0.25);
}

.jah-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
}

/* Ghost (bordered) */
.jah-btn-ghost {
  background: transparent;
  color: var(--jah-text-muted);
  border: 2px solid rgba(139, 92, 246, 0.2);
}

.jah-btn-ghost:hover {
  color: var(--jah-text);
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.06);
}

/* Accent (peach) */
.jah-btn-accent {
  background: var(--jah-gradient-peach-yellow);
  color: var(--jah-text-inverse);
  box-shadow: 0 2px 12px rgba(251, 146, 60, 0.25);
}

.jah-btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(251, 146, 60, 0.35);
}

/* Link style */
.jah-btn-link {
  padding: 0;
  background: none;
  border: none;
  color: var(--jah-plum-light);
  font-weight: 600;
  border-radius: 0;
}

.jah-btn-link:hover {
  color: var(--jah-plum);
  text-decoration: underline;
}

/* Sizes */
.jah-btn-sm {
  padding: var(--jah-space-2) var(--jah-space-4);
  font-size: var(--jah-text-sm);
}

.jah-btn-sm svg {
  width: 16px;
  height: 16px;
}

.jah-btn-lg {
  padding: var(--jah-space-4) var(--jah-space-8);
  font-size: var(--jah-text-lg);
}

.jah-btn-lg svg {
  width: 20px;
  height: 20px;
}

/* Block / full width */
.jah-btn-block {
  width: 100%;
}

/* Disabled state */
.jah-btn:disabled,
.jah-btn-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Loading state */
.jah-btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.jah-btn-loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: jah-spin 0.6s linear infinite;
}

@keyframes jah-spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================
   23. TAGS
   ========================================================== */

.jah-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--jah-space-1);
  padding: var(--jah-space-1) var(--jah-space-3);
  border-radius: var(--jah-radius-full);
  font-size: var(--jah-text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.jah-tag-default {
  background: rgba(139, 92, 246, 0.12);
  color: var(--jah-plum-light);
}

.jah-tag-new {
  background: rgba(6, 182, 212, 0.12);
  color: var(--jah-cyan-light);
  animation: jah-tag-pulse 2s ease-in-out infinite;
}

@keyframes jah-tag-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.jah-tag-gold {
  background: rgba(234, 179, 8, 0.15);
  color: var(--jah-yellow-light);
}

.jah-tag-lime {
  background: rgba(132, 204, 22, 0.12);
  color: var(--jah-lime-light);
}

.jah-tag-peach {
  background: rgba(251, 146, 60, 0.12);
  color: var(--jah-peach);
}

/* ==========================================================
   24. STATS
   ========================================================== */

.jah-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--jah-space-1);
}

.jah-stat-number {
  font-size: var(--jah-text-3xl);
  font-weight: 800;
  background: var(--jah-gradient-plum-cyan);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.jah-stat-label {
  font-size: var(--jah-text-sm);
  color: var(--jah-text-muted);
}

.jah-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--jah-space-6);
  justify-content: center;
}

/* ==========================================================
   25. PAGE SECTIONS
   ========================================================== */

.jah-section {
  padding: var(--jah-space-12) 0;
}

.jah-section-sm {
  padding: var(--jah-space-8) 0;
}

.jah-section-lg {
  padding: var(--jah-space-16) 0;
}

.jah-section-header {
  text-align: center;
  margin-bottom: var(--jah-space-8);
}

.jah-section-header-left {
  text-align: left;
}

.jah-section-title {
  font-size: var(--jah-text-2xl);
  font-weight: 800;
  color: var(--jah-text);
  margin-bottom: var(--jah-space-3);
  letter-spacing: -0.01em;
}

.jah-section-subtitle {
  font-size: var(--jah-text-base);
  color: var(--jah-text-muted);
  max-width: 600px;
  line-height: 1.6;
}

.jah-section-header-center .jah-section-subtitle {
  margin: 0 auto;
}

/* Section dividers */
.jah-section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.2), transparent);
  margin: 0;
  border: none;
}

/* Background variations */
.jah-section-surface {
  background: var(--jah-bg-surface);
}

.jah-section-card-bg {
  background: var(--jah-bg-card);
}

.jah-section-gradient {
  background: linear-gradient(180deg, var(--jah-bg-dark) 0%, var(--jah-bg-surface) 50%, var(--jah-bg-dark) 100%);
}

/* ==========================================================
   26. THANK YOU PAGE
   ========================================================== */

.jah-thank-you {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 60vh;
  padding: var(--jah-space-12) var(--jah-space-4);
  margin-top: 60px;
}

.jah-thank-you-icon {
  width: 80px;
  height: 80px;
  background: var(--jah-gradient-plum-cyan);
  border-radius: var(--jah-radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--jah-space-6);
  box-shadow: var(--jah-shadow-glow-plum);
}

.jah-thank-you-icon svg {
  width: 40px;
  height: 40px;
  color: white;
}

.jah-thank-you-title {
  font-size: var(--jah-text-3xl);
  font-weight: 800;
  margin-bottom: var(--jah-space-3);
  color: var(--jah-text);
}

.jah-thank-you-text {
  font-size: var(--jah-text-base);
  color: var(--jah-text-muted);
  max-width: 480px;
  line-height: 1.6;
  margin-bottom: var(--jah-space-6);
}

/* ==========================================================
   27. ABOUT / SOBRE JUGAA PAGE
   ========================================================== */

.jah-about-page {
  padding-top: 80px;
}

.jah-about-hero {
  text-align: center;
  padding: var(--jah-space-10) 0;
}

.jah-about-hero-image {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 16/9;
  border-radius: var(--jah-radius-lg);
  object-fit: cover;
  margin: var(--jah-space-6) auto 0;
  background: var(--jah-bg-elevated);
}

.jah-about-values {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--jah-space-4);
  margin: var(--jah-space-8) 0;
}

/* ==========================================================
   28. GAME HERO PAGES
   ========================================================== */

.jah-game-hero {
  padding: 80px 0 var(--jah-space-8);
  text-align: center;
}

.jah-game-hero-image {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 16/9;
  border-radius: var(--jah-radius-lg);
  object-fit: cover;
  margin: var(--jah-space-4) auto 0;
  background: var(--jah-bg-elevated);
}

/* ==========================================================
   29. UTILITY CLASSES
   ========================================================== */

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

.jah-flex { display: flex; }
.jah-flex-col { flex-direction: column; }
.jah-flex-wrap { flex-wrap: wrap; }
.jah-items-center { align-items: center; }
.jah-justify-center { justify-content: center; }
.jah-justify-between { justify-content: space-between; }
.jah-gap-1 { gap: var(--jah-space-1); }
.jah-gap-2 { gap: var(--jah-space-2); }
.jah-gap-3 { gap: var(--jah-space-3); }
.jah-gap-4 { gap: var(--jah-space-4); }
.jah-gap-6 { gap: var(--jah-space-6); }
.jah-gap-8 { gap: var(--jah-space-8); }

.jah-mt-2 { margin-top: var(--jah-space-2); }
.jah-mt-4 { margin-top: var(--jah-space-4); }
.jah-mt-6 { margin-top: var(--jah-space-6); }
.jah-mt-8 { margin-top: var(--jah-space-8); }
.jah-mb-2 { margin-bottom: var(--jah-space-2); }
.jah-mb-4 { margin-bottom: var(--jah-space-4); }
.jah-mb-6 { margin-bottom: var(--jah-space-6); }
.jah-mb-8 { margin-bottom: var(--jah-space-8); }

.jah-hidden { display: none; }
.jah-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================
   30. ANIMATIONS & EFFECTS
   ========================================================== */

/* Fade in reveal */
.jah-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.jah-fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.jah-stagger > *:nth-child(1) { transition-delay: 0.05s; }
.jah-stagger > *:nth-child(2) { transition-delay: 0.1s; }
.jah-stagger > *:nth-child(3) { transition-delay: 0.15s; }
.jah-stagger > *:nth-child(4) { transition-delay: 0.2s; }
.jah-stagger > *:nth-child(5) { transition-delay: 0.25s; }
.jah-stagger > *:nth-child(6) { transition-delay: 0.3s; }
.jah-stagger > *:nth-child(7) { transition-delay: 0.35s; }
.jah-stagger > *:nth-child(8) { transition-delay: 0.4s; }

/* Star/particle floating */
.jah-float {
  animation: jah-float 4s ease-in-out infinite;
}

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

.jah-float-delayed {
  animation: jah-float 4s ease-in-out 2s infinite;
}

/* Pulsing glow */
.jah-glow-pulse {
  animation: jah-glow-pulse 2s ease-in-out infinite;
}

@keyframes jah-glow-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(139, 92, 246, 0.3); }
  50% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.6); }
}

/* Scale on hover (for icons etc) */
.jah-scale-hover {
  transition: transform var(--jah-transition-fast);
}

.jah-scale-hover:hover {
  transform: scale(1.1);
}

/* Gradient border effect */
.jah-border-gradient {
  position: relative;
  border: none !important;
}

.jah-border-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--jah-gradient-plum-cyan);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Underline animation for links */
.jah-underline-anim {
  position: relative;
  text-decoration: none;
}

.jah-underline-anim::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--jah-gradient-plum-cyan);
  transition: width var(--jah-transition-base);
  border-radius: 1px;
}

.jah-underline-anim:hover::after {
  width: 100%;
}

/* ==========================================================
   31. RESPONSIVE — TABLET (480px+)
   ========================================================== */

@media (min-width: 480px) {
  .jah-header-logo span {
    display: inline;
  }

  .jah-hero-title {
    font-size: var(--jah-text-4xl);
  }

  .jah-hero-subtitle {
    font-size: var(--jah-text-lg);
  }

  .jah-hero-panels {
    grid-template-columns: 1fr 1fr;
  }

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

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

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

  .jah-footer-badges {
    justify-content: center;
  }

  .jah-cookie-banner-inner {
    flex-direction: row;
    align-items: center;
  }

  .jah-cookie-text {
    flex: 1;
  }

  .jah-cookie-actions {
    flex-shrink: 0;
  }
}

/* ==========================================================
   32. RESPONSIVE — DESKTOP (768px+)
   ========================================================== */

@media (min-width: 768px) {
  .jah-heading-1 {
    font-size: var(--jah-text-4xl);
  }

  .jah-heading-2 {
    font-size: var(--jah-text-3xl);
  }

  .jah-hero {
    padding: var(--jah-space-24) 0 var(--jah-space-16);
    margin-top: 64px;
  }

  .jah-hero-title {
    font-size: var(--jah-text-5xl);
    max-width: 700px;
  }

  .jah-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--jah-space-8);
    align-items: start;
  }

  .jah-hero-panels {
    margin-top: 0;
  }

  .jah-hero-panels .jah-hero-stats {
    justify-content: center;
  }

  .jah-hero-stat {
    text-align: center;
    flex: 1;
  }

  .jah-masonry {
    grid-template-columns: repeat(3, 1fr);
  }

  .jah-section-title {
    font-size: var(--jah-text-3xl);
  }

  .jah-footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }

  .jah-footer__bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .jah-legal-page {
    padding-top: 96px;
  }

  .jah-game-reel {
    padding: var(--jah-space-6);
  }

  .jah-game-reel-grid {
    gap: 8px;
  }

  .jah-memory-grid {
    gap: 12px;
    max-width: 480px;
  }

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

/* ==========================================================
   33. RESPONSIVE — WIDE (1024px+)
   ========================================================== */

@media (min-width: 1024px) {
  .jah-container {
    padding-left: var(--jah-space-8);
    padding-right: var(--jah-space-8);
  }

  .jah-heading-1 {
    font-size: var(--jah-text-5xl);
  }

  .jah-hero-title {
    font-size: 3.5rem;
  }

  .jah-hero-content {
    gap: var(--jah-space-12);
  }

  .jah-masonry {
    grid-template-columns: repeat(4, 1fr);
  }

  .jah-game-hub {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin: 0 auto;
  }

  .jah-game-reel {
    max-width: 600px;
  }

  .jah-game-reel-grid {
    gap: 10px;
  }

  .jah-memory-grid {
    gap: 14px;
    max-width: 520px;
  }

  .jah-about-values {
    grid-template-columns: repeat(4, 1fr);
  }

  .jah-section-lg {
    padding: var(--jah-space-20) 0;
  }

  .jah-age-gate-modal {
    padding: var(--jah-space-10) var(--jah-space-8);
  }
}

/* ==========================================================
   34. RESPONSIVE — MAX (1280px+)
   ========================================================== */

@media (min-width: 1280px) {
  .jah-hero-title {
    font-size: 4rem;
  }

  .jah-hero-content {
    gap: var(--jah-space-16);
  }

  .jah-masonry {
    grid-template-columns: repeat(4, 1fr);
  }

  .jah-game-hub {
    max-width: 900px;
  }

  .jah-section {
    padding: var(--jah-space-16) 0;
  }
}

/* ==========================================================
   35. PRINT STYLES
   ========================================================== */

@media print {
  .jah-header,
  .jah-drawer,
  .jah-drawer-backdrop,
  .jah-age-gate,
  .jah-age-gate-backdrop,
  .jah-cookie-banner,
  .jah-game-reel,
  .jah-memory-grid,
  .jah-game-panel,
  .jah-responsible-bar,
  .jah-btn {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  .jah-legal-page {
    padding-top: 0;
  }

  .jah-legal-content a {
    color: black;
    text-decoration: underline;
  }

  .jah-footer {
    background: none;
    border-top: 1px solid #ccc;
  }
}

/* ==========================================================
   36. ACCESSIBILITY & REDUCED MOTION
   ========================================================== */

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

  .jah-memory-card {
    transform: none !important;
  }

  .jah-memory-card-flipped img {
    display: block;
  }

  .jah-hero-panel-card:hover {
    transform: none;
  }

  .jah-card:hover {
    transform: none;
  }
}

/* High contrast mode adjustments */
@media (prefers-contrast: high) {
  .jah-hero-title-gradient,
  .jah-text-gradient-plum-cyan,
  .jah-text-gradient-peach,
  .jah-shimmer-text,
  .jah-game-credit-amount,
  .jah-stat-number {
    -webkit-text-fill-color: var(--jah-text);
    background: none;
    color: var(--jah-plum-light);
  }

  .jah-hero-panel-card,
  .jah-card,
  .jah-game-hub-card {
    border-width: 2px;
  }
}
