/* ==========================================
   ARLEXOSTUDI.LIFE — FESTIVE WINTER MAGIC UI
   Production-Ready Social Casino Platform
   ========================================== */

/* --- CSS VARIABLES --- */
:root {
  /* Backgrounds */
  --bg-primary: #020617;
  --bg-secondary: #0f172a;
  --bg-layer: #111827;

  /* Glass UI */
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-blur: 20px;
  --glass-border: rgba(255, 255, 255, 0.15);

  /* Gradients */
  --christmas-red: linear-gradient(135deg, #ef4444, #dc2626);
  --festive-green: linear-gradient(135deg, #22c55e, #16a34a);
  --gold-light: linear-gradient(135deg, #facc15, #fbbf24);
  --ice-blue: linear-gradient(135deg, #38bdf8, #60a5fa);

  /* Solid Colors */
  --red: #ef4444;
  --red-dark: #dc2626;
  --green: #22c55e;
  --green-dark: #16a34a;
  --gold: #facc15;
  --gold-dark: #fbbf24;
  --ice: #38bdf8;
  --ice-dark: #60a5fa;
  --white: #ffffff;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --container-max: 1280px;
  --container-padding: clamp(16px, 5vw, 40px);
  --section-spacing: clamp(40px, 8vw, 120px);
  --card-gap: clamp(16px, 3vw, 32px);

  /* Borders */
  --radius-sm: 12px;
  --radius-md: 22px;
  --radius-lg: 28px;
  --radius-xl: 35px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s ease;
  --transition-slow: 0.6s ease;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

iframe {
  border: none;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

p {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* --- LAYOUT SYSTEM --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.container-narrow {
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section {
  padding-top: var(--section-spacing);
  padding-bottom: var(--section-spacing);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(32px, 5vw, 64px);
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  margin-bottom: 16px;
  background: var(--gold-light);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* --- GLOBAL SNOWFALL --- */
.snowfall {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.snowflake {
  position: absolute;
  top: -10px;
  color: #fff;
  font-size: 1rem;
  opacity: 0;
  animation: snowfallAnim linear infinite;
  user-select: none;
}

.snowflake:nth-child(1) { left: 5%; animation-duration: 10s; animation-delay: 0s; font-size: 0.8rem; }
.snowflake:nth-child(2) { left: 15%; animation-duration: 13s; animation-delay: 1s; font-size: 1.2rem; }
.snowflake:nth-child(3) { left: 25%; animation-duration: 11s; animation-delay: 2s; font-size: 0.6rem; }
.snowflake:nth-child(4) { left: 35%; animation-duration: 14s; animation-delay: 0.5s; font-size: 1rem; }
.snowflake:nth-child(5) { left: 45%; animation-duration: 9s; animation-delay: 3s; font-size: 0.9rem; }
.snowflake:nth-child(6) { left: 55%; animation-duration: 12s; animation-delay: 1.5s; font-size: 1.1rem; }
.snowflake:nth-child(7) { left: 65%; animation-duration: 15s; animation-delay: 2.5s; font-size: 0.7rem; }
.snowflake:nth-child(8) { left: 75%; animation-duration: 10s; animation-delay: 4s; font-size: 1.3rem; }
.snowflake:nth-child(9) { left: 85%; animation-duration: 11s; animation-delay: 0.8s; font-size: 0.5rem; }
.snowflake:nth-child(10) { left: 93%; animation-duration: 13s; animation-delay: 3.5s; font-size: 1rem; }

@keyframes snowfallAnim {
  0% {
    transform: translateY(0) rotate(0deg) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(100vh) rotate(360deg) translateX(30px);
    opacity: 0;
  }
}

/* --- HEADER / NAVBAR --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 12px var(--container-padding);
  transition: var(--transition-medium);
}

.header.scrolled {
  padding: 8px var(--container-padding);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 12px 24px;
  position: relative;
}

/* Christmas Lights on navbar */
.navbar::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 40px;
  right: 40px;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    #ef4444 0px, #ef4444 8px,
    transparent 8px, transparent 16px,
    #22c55e 16px, #22c55e 24px,
    transparent 24px, transparent 32px,
    #facc15 32px, #facc15 40px,
    transparent 40px, transparent 48px,
    #38bdf8 48px, #38bdf8 56px,
    transparent 56px, transparent 64px
  );
  border-radius: 4px;
  animation: lightsFlicker 3s ease-in-out infinite;
}

@keyframes lightsFlicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-icon {
  font-size: 1.6rem;
  animation: glowPulse 2s ease-in-out infinite;
}

.logo-text {
  background: var(--gold-light);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes glowPulse {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(250, 204, 21, 0.6)); }
  50% { filter: drop-shadow(0 0 20px rgba(250, 204, 21, 0.9)); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
}

.nav-links a {
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-light);
  transition: width var(--transition-medium);
  border-radius: 2px;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--gold-light);
  color: #000 !important;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: clamp(0.8rem, 1.5vw, 0.9rem);
  transition: var(--transition-fast);
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.3);
  animation: ctaGlow 2s ease-in-out infinite;
  white-space: nowrap;
  flex-shrink: 0;
  -webkit-text-fill-color: #000;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(250, 204, 21, 0.5);
}

@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(250, 204, 21, 0.3); }
  50% { box-shadow: 0 0 35px rgba(250, 204, 21, 0.5); }
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(2, 6, 23, 0.97);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-medium);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  padding: 8px 20px;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--gold);
}

.mobile-menu .nav-cta {
  margin-top: 16px;
  padding: 14px 40px;
  font-size: 1rem;
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 100px;
  padding-bottom: var(--section-spacing);
}

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

/* Gradient sky */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 20%, rgba(56, 189, 248, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 30% 70%, rgba(239, 68, 68, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 70% 60%, rgba(34, 197, 94, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, #020617 0%, #0a1628 30%, #0f172a 60%, #020617 100%);
}

/* Stars */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 15%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 25% 35%, rgba(255,255,255,0.4), transparent),
    radial-gradient(2px 2px at 40% 10%, rgba(250,204,21,0.5), transparent),
    radial-gradient(1px 1px at 55% 25%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 70% 40%, rgba(255,255,255,0.3), transparent),
    radial-gradient(2px 2px at 85% 15%, rgba(56,189,248,0.4), transparent),
    radial-gradient(1px 1px at 90% 30%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 15% 50%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 60% 5%, rgba(250,204,21,0.4), transparent),
    radial-gradient(1px 1px at 35% 55%, rgba(255,255,255,0.4), transparent);
  animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* Village silhouette */
.hero-village {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 35%;
  z-index: 1;
  overflow: hidden;
}

.village-silhouette {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.building {
  position: absolute;
  bottom: 0;
  background: #0a0f1a;
  border-radius: 4px 4px 0 0;
}

.building::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 100%;
  border-left: solid transparent;
  border-right: solid transparent;
  border-bottom: solid #0a0f1a;
}

.building-1 { left: 2%; width: 6%; height: 55%; }
.building-1::before { border-left-width: 15px; border-right-width: 15px; border-bottom-width: 20px; }
.building-2 { left: 10%; width: 8%; height: 70%; }
.building-2::before { border-left-width: 20px; border-right-width: 20px; border-bottom-width: 25px; }
.building-3 { left: 20%; width: 5%; height: 45%; }
.building-3::before { border-left-width: 12px; border-right-width: 12px; border-bottom-width: 18px; }
.building-4 { left: 28%; width: 7%; height: 60%; }
.building-4::before { border-left-width: 18px; border-right-width: 18px; border-bottom-width: 22px; }
.building-5 { left: 38%; width: 10%; height: 80%; }
.building-5::before { border-left-width: 24px; border-right-width: 24px; border-bottom-width: 30px; }
.building-6 { left: 50%; width: 6%; height: 50%; }
.building-6::before { border-left-width: 15px; border-right-width: 15px; border-bottom-width: 20px; }
.building-7 { left: 58%; width: 9%; height: 65%; }
.building-7::before { border-left-width: 22px; border-right-width: 22px; border-bottom-width: 26px; }
.building-8 { left: 70%; width: 5%; height: 40%; }
.building-8::before { border-left-width: 12px; border-right-width: 12px; border-bottom-width: 16px; }
.building-9 { left: 78%; width: 8%; height: 72%; }
.building-9::before { border-left-width: 20px; border-right-width: 20px; border-bottom-width: 24px; }
.building-10 { left: 88%; width: 7%; height: 55%; }
.building-10::before { border-left-width: 17px; border-right-width: 17px; border-bottom-width: 22px; }

/* Glowing windows */
.window {
  position: absolute;
  width: 30%;
  height: 8%;
  background: rgba(250, 204, 21, 0.6);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.4), 0 0 20px rgba(250, 204, 21, 0.2);
  animation: windowGlow 3s ease-in-out infinite alternate;
}

@keyframes windowGlow {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Snow ground */
.snow-ground {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
  border-radius: 50% 50% 0 0;
}

/* Sleigh */
.sleigh {
  position: absolute;
  top: 15%;
  right: -100px;
  font-size: clamp(1.5rem, 4vw, 3rem);
  animation: sleighFly 20s linear infinite;
  z-index: 2;
  filter: drop-shadow(0 0 15px rgba(250, 204, 21, 0.5));
}

@keyframes sleighFly {
  0% { transform: translateX(0) translateY(0); right: -100px; }
  50% { transform: translateX(-50vw) translateY(-20px); }
  100% { transform: translateX(-120vw) translateY(10px); }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  width: 100%;
  max-width: 800px;
  padding: 0 var(--container-padding);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: clamp(0.75rem, 1.5vw, 0.9rem);
  color: var(--gold);
  margin-bottom: 24px;
  animation: fadeInDown 0.8s ease forwards;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.hero h1 .highlight {
  background: var(--gold-light);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h1 .highlight-red {
  background: var(--christmas-red);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2.2vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.4s;
  opacity: 0;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.6s;
  opacity: 0;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: clamp(0.85rem, 1.8vw, 1rem);
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
  text-align: center;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.15), transparent);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  pointer-events: none;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:active {
  transform: translateY(0) scale(0.97);
}

.btn-red {
  background: var(--christmas-red);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}

.btn-red:hover {
  box-shadow: 0 8px 30px rgba(239, 68, 68, 0.6);
}

.btn-green {
  background: var(--festive-green);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
}

.btn-green:hover {
  box-shadow: 0 8px 30px rgba(34, 197, 94, 0.6);
}

.btn-gold {
  background: var(--gold-light);
  color: #000;
  box-shadow: 0 4px 20px rgba(250, 204, 21, 0.4);
}

.btn-gold:hover {
  box-shadow: 0 8px 30px rgba(250, 204, 21, 0.6);
}

.btn-ice {
  background: var(--ice-blue);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.4);
}

.btn-ice:hover {
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.6);
}

.btn-outline {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.1);
}

/* --- GAME SECTION --- */
.game-section {
  background: var(--bg-secondary);
  position: relative;
}

.game-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.game-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow:
    0 0 40px rgba(239, 68, 68, 0.08),
    0 0 80px rgba(250, 204, 21, 0.05);
  position: relative;
}

.game-panel::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(239,68,68,0.3), rgba(250,204,21,0.3), rgba(34,197,94,0.3));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

.game-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: clamp(16px, 3vw, 24px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.game-title-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.game-title-area .game-icon {
  font-size: 1.6rem;
}

.game-title-area h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-family: var(--font-heading);
}

.game-panel-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.game-panel-actions .btn {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.game-iframe-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  background: #000;
}

.game-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.game-info {
  padding: clamp(16px, 3vw, 24px);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.game-info p {
  color: var(--text-secondary);
  font-size: clamp(0.85rem, 1.8vw, 0.95rem);
  line-height: 1.7;
}

.game-info .legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-sm);
  font-size: clamp(0.75rem, 1.5vw, 0.85rem);
  color: var(--red);
}

/* --- FEATURE CARDS --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--card-gap);
}

.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px);
  text-align: center;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  transition: var(--transition-medium);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  opacity: 0;
  transition: var(--transition-medium);
}

.feature-card:nth-child(1)::before { background: var(--christmas-red); }
.feature-card:nth-child(2)::before { background: var(--gold-light); }
.feature-card:nth-child(3)::before { background: var(--ice-blue); }
.feature-card:nth-child(4)::before { background: var(--festive-green); }

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,255,255,0.25);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.8rem;
  margin-bottom: 20px;
  position: relative;
}

.feature-card:nth-child(1) .feature-icon { background: rgba(239, 68, 68, 0.15); }
.feature-card:nth-child(2) .feature-icon { background: rgba(250, 204, 21, 0.15); }
.feature-card:nth-child(3) .feature-icon { background: rgba(56, 189, 248, 0.15); }
.feature-card:nth-child(4) .feature-icon { background: rgba(34, 197, 94, 0.15); }

.feature-card h3 {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 12px;
  font-family: var(--font-heading);
}

.feature-card p {
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Sparkle on hover */
.feature-card .sparkle {
  position: absolute;
  top: 20%;
  right: 15%;
  font-size: 0.8rem;
  opacity: 0;
  transition: var(--transition-medium);
  animation: sparkleAnim 1.5s ease-in-out infinite;
}

.feature-card:hover .sparkle {
  opacity: 1;
}

@keyframes sparkleAnim {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.5; }
  50% { transform: scale(1.3) rotate(180deg); opacity: 1; }
}

/* --- HOW IT WORKS --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
  position: relative;
}

.step-card {
  text-align: center;
  padding: clamp(24px, 4vw, 40px);
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 auto 20px;
  position: relative;
}

.step-card:nth-child(1) .step-number {
  background: var(--christmas-red);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.step-card:nth-child(2) .step-number {
  background: var(--gold-light);
  color: #000;
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.3);
}

.step-card:nth-child(3) .step-number {
  background: var(--festive-green);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}

.step-card h3 {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 12px;
  font-family: var(--font-heading);
}

.step-card p {
  color: var(--text-secondary);
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  line-height: 1.6;
}

/* --- CTA BANNER --- */
.cta-banner {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 6vw, 64px);
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 20% 80%, rgba(239, 68, 68, 0.1), transparent),
    radial-gradient(ellipse 60% 60% at 80% 20%, rgba(34, 197, 94, 0.1), transparent);
  pointer-events: none;
}

.cta-banner h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-banner p {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.cta-banner .hero-buttons {
  position: relative;
  z-index: 1;
  animation: none;
  opacity: 1;
}

/* --- FOOTER --- */
.footer {
  background: var(--bg-layer);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: var(--section-spacing);
  padding-bottom: 0;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
  margin-bottom: clamp(32px, 5vw, 60px);
}

.footer-brand .logo {
  margin-bottom: 16px;
  font-size: 1.3rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.footer-social a:hover {
  background: rgba(250, 204, 21, 0.15);
  border-color: rgba(250, 204, 21, 0.4);
  transform: translateY(-2px);
}

.footer-links h4 {
  font-family: var(--font-heading);
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-links a {
  display: block;
  color: var(--text-secondary);
  font-size: clamp(0.8rem, 1.4vw, 0.9rem);
  padding: 4px 0;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--gold);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: clamp(0.75rem, 1.3vw, 0.85rem);
}

.footer-legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-legal a {
  color: var(--text-muted);
  font-size: clamp(0.75rem, 1.3vw, 0.85rem);
  transition: var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--gold);
}

/* Legal disclaimer in footer */
.footer-disclaimer {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: clamp(24px, 4vw, 40px);
  text-align: center;
}

.footer-disclaimer p {
  color: var(--text-secondary);
  font-size: clamp(0.75rem, 1.4vw, 0.85rem);
  line-height: 1.6;
}

.footer-disclaimer strong {
  color: var(--red);
}

/* --- PAGE CONTENT (for inner pages) --- */
.page-hero {
  padding-top: 120px;
  padding-bottom: clamp(40px, 6vw, 80px);
  text-align: center;
  position: relative;
  background:
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(56, 189, 248, 0.06) 0%, transparent 60%),
    var(--bg-secondary);
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 16px;
}

.page-hero p {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.page-content {
  padding-top: var(--section-spacing);
  padding-bottom: var(--section-spacing);
}

.page-content .content-block {
  margin-bottom: clamp(32px, 5vw, 48px);
}

.page-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 16px;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

.page-content h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  margin-bottom: 12px;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

.page-content p {
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.page-content ul {
  margin-bottom: 16px;
  padding-left: 20px;
}

.page-content ul li {
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  color: var(--text-secondary);
  line-height: 1.8;
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
}

.page-content ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.7rem;
  top: 5px;
}

/* --- CONTACT FORM --- */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  transition: var(--transition-fast);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.15);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* --- ABOUT PAGE SPECIFIC --- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--card-gap);
  align-items: center;
}

.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(4rem, 10vw, 8rem);
  min-height: 200px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
  margin-top: clamp(32px, 5vw, 60px);
}

.stat-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 32px);
  text-align: center;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.stat-card .stat-value {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  background: var(--gold-light);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat-card .stat-label {
  color: var(--text-secondary);
  font-size: clamp(0.8rem, 1.4vw, 0.9rem);
}

/* --- RESPONSIBLE GAMING --- */
.rg-principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--card-gap);
  margin-top: clamp(24px, 4vw, 40px);
}

.rg-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 32px);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.rg-card .rg-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.rg-card h3 {
  font-size: clamp(1rem, 2vw, 1.15rem);
  margin-bottom: 10px;
  font-family: var(--font-heading);
}

.rg-card p {
  color: var(--text-secondary);
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  line-height: 1.6;
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Float animation for decorative elements */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

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

/* --- UTILITIES --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-gold { color: var(--gold); }
.text-red { color: var(--red); }
.text-green { color: var(--green); }
.text-ice { color: var(--ice); }
.text-muted { color: var(--text-muted); }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.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;
}

/* --- RESPONSIVE --- */

/* Tablet */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .about-visual {
    order: -1;
  }
}

/* Mobile Large */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 320px;
  }

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

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

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
  }

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

  .rg-principles {
    grid-template-columns: 1fr;
  }

  .game-panel-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .game-panel-actions {
    width: 100%;
  }

  .game-panel-actions .btn {
    flex: 1;
    min-width: 0;
  }

  .btn {
    width: 100%;
  }

  .sleigh {
    display: none;
  }
}

/* Mobile Small */
@media (max-width: 480px) {
  .navbar {
    padding: 10px 16px;
  }

  .logo {
    font-size: 1rem;
  }

  .hero {
    padding-top: 80px;
    padding-bottom: 40px;
  }

  .cta-banner {
    padding: 24px 16px;
  }
}

/* Ultra-wide */
@media (min-width: 1600px) {
  :root {
    --container-max: 1400px;
  }
}

/* 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;
  }

  .snowfall {
    display: none;
  }
}

/* Print */
@media print {
  .header, .snowfall, .sleigh, .footer-social {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}