/* ============================================
   1. VARIABLES
   ============================================ */
:root {
  --bg-primary: #020203;
  --bg-secondary: #0a0c12;
  --bg-tertiary: #10121a;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: 20px;

  --pumpkin-start: #ff7a18;
  --pumpkin-end: #ff3d00;
  --purple-start: #7c3aed;
  --purple-end: #a855f7;
  --green-start: #22c55e;
  --green-end: #4ade80;

  --glow-orange: rgba(255, 122, 24, 0.5);
  --glow-purple: rgba(124, 58, 237, 0.5);
  --glow-green: rgba(34, 197, 94, 0.45);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5f5;
  --text-muted: #6b7280;

  --gradient-pumpkin: linear-gradient(135deg, #ff7a18, #ff3d00);
  --gradient-purple: linear-gradient(135deg, #7c3aed, #a855f7);
  --gradient-green: linear-gradient(135deg, #22c55e, #4ade80);
  --gradient-nightmare: linear-gradient(135deg, #ff7a18, #7c3aed, #22c55e);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-btn: 18px;

  --container: 1280px;
  --nav-width: 80px;
  --nav-expanded: 220px;

  --space-section: 120px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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

ul {
  list-style: none;
}

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ============================================
   3. LAYOUT
   ============================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 1024px) {
  body {
    padding-left: var(--nav-width);
  }
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(images/%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 10000;
  opacity: 0.4;
}

/* Ember Canvas */
#ember-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* Cursor Glow */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 24, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}

.cursor-glow.active {
  opacity: 1;
}

/* ============================================
   4. HEADER - GHOST NAV
   ============================================ */
.ghost-nav {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--nav-width);
  height: 100vh;
  z-index: 1000;
  display: none;
  perspective: 800px;
}

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

.ghost-nav__inner {
  width: 100%;
  height: 100%;
  background: rgba(10, 12, 18, 0.85);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0;
  gap: 8px;
  position: relative;
  transform: rotateY(2deg);
  transform-origin: left center;
  transition: transform 0.6s var(--ease-out), width 0.4s var(--ease-out);
  box-shadow:
    4px 0 30px rgba(0, 0, 0, 0.5),
    1px 0 0 rgba(255, 122, 24, 0.1);
}

.ghost-nav:hover .ghost-nav__inner {
  transform: rotateY(0deg);
  width: var(--nav-expanded);
}

.ghost-nav:hover .nav-label {
  opacity: 1;
  transform: translateX(0);
}

.ghost-nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  margin-bottom: 24px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
}

.logo-pumpkin {
  font-size: 28px;
  filter: drop-shadow(0 0 8px var(--glow-orange));
  animation: pumpkinFloat 3s ease-in-out infinite;
}

.logo-text {
  font-size: 16px;
  background: var(--gradient-pumpkin);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transition: opacity 0.3s;
}

.ghost-nav:hover .logo-text {
  opacity: 1;
}

.ghost-nav__links {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: 0 8px;
}

.ghost-nav__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  transition: all 0.3s var(--ease-out);
  position: relative;
  white-space: nowrap;
  overflow: hidden;
}

.ghost-nav__link:hover {
  background: rgba(255, 122, 24, 0.08);
  box-shadow: 0 0 20px rgba(255, 122, 24, 0.1);
}

.ghost-nav__link.active {
  background: rgba(255, 122, 24, 0.12);
  box-shadow:
    inset 0 0 0 1px rgba(255, 122, 24, 0.3),
    0 0 20px rgba(255, 122, 24, 0.1);
}

.ghost-nav__link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--gradient-pumpkin);
  border-radius: 0 4px 4px 0;
}

.nav-icon {
  font-size: 20px;
  min-width: 24px;
  text-align: center;
  transition: filter 0.3s;
}

.ghost-nav__link:hover .nav-icon {
  filter: drop-shadow(0 0 6px var(--glow-orange));
  animation: iconFlicker 0.3s ease-in-out;
}

.nav-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s var(--ease-out);
}

.ghost-nav__cta {
  margin: 16px 8px 8px;
  padding: 12px 16px;
  background: var(--gradient-pumpkin);
  border-radius: var(--radius-btn);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(255, 122, 24, 0.3);
  transition: all 0.3s var(--ease-out);
  position: relative;
}

.ghost-nav__cta:hover {
  box-shadow: 0 0 40px rgba(255, 122, 24, 0.5);
  transform: scale(1.05);
}

.cta-flicker {
  animation: neonFlicker 3s ease-in-out infinite;
}

/* MOBILE NAV */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 1000;
  background: rgba(10, 12, 18, 0.9);
  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: 8px 4px;
  justify-content: space-around;
  box-shadow:
    0 -4px 30px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 122, 24, 0.08);
}

@media (max-width: 1023px) {
  .mobile-nav {
    display: flex;
  }
}

.mobile-nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  transition: all 0.3s;
  font-size: 20px;
}

.mobile-nav__link small {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
}

.mobile-nav__link.active {
  background: rgba(255, 122, 24, 0.12);
}

.mobile-nav__link.active small {
  color: var(--pumpkin-start);
}

/* ============================================
   5. HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(255, 122, 24, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 30% 70%, rgba(124, 58, 237, 0.04) 0%, transparent 60%),
    var(--bg-primary);
}

.hero__fog-layer {
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 120%;
  height: 50%;
  background: linear-gradient(to top, rgba(10, 12, 18, 0.9), transparent);
  animation: fogDrift 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

.hero__fog-layer--2 {
  bottom: -5%;
  left: 10%;
  animation-duration: 25s;
  animation-delay: -10s;
  opacity: 0.6;
}

.hero__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(2, 2, 3, 0.8) 100%);
  pointer-events: none;
  z-index: 3;
}

.hero__depth-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero__pumpkin-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: orbFloat 8s ease-in-out infinite;
}

.hero__pumpkin-orb--1 {
  width: 300px;
  height: 300px;
  background: rgba(255, 122, 24, 0.08);
  top: 15%;
  right: 10%;
  animation-delay: 0s;
}

.hero__pumpkin-orb--2 {
  width: 200px;
  height: 200px;
  background: rgba(124, 58, 237, 0.06);
  top: 60%;
  left: 5%;
  animation-delay: -3s;
}

.hero__pumpkin-orb--3 {
  width: 150px;
  height: 150px;
  background: rgba(34, 197, 94, 0.05);
  bottom: 20%;
  right: 25%;
  animation-delay: -5s;
}

.hero__pumpkin-orb--4 {
  width: 100px;
  height: 100px;
  background: rgba(255, 61, 0, 0.1);
  top: 30%;
  left: 20%;
  animation-delay: -2s;
  animation-duration: 6s;
}

.hero__pumpkin-orb--5 {
  width: 180px;
  height: 180px;
  background: rgba(168, 85, 247, 0.05);
  top: 10%;
  left: 40%;
  animation-delay: -7s;
  animation-duration: 10s;
}

.hero__content {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
}

.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: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
  margin-bottom: 32px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-start);
  box-shadow: 0 0 8px var(--glow-green);
  animation: pulse 2s ease-in-out infinite;
}

.hero__title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

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

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

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

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero__legal {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero__scroll-indicator span {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-wheel {
  width: 3px;
  height: 8px;
  background: var(--pumpkin-start);
  border-radius: 2px;
  animation: scrollWheel 2s ease-in-out infinite;
}

/* ============================================
   6. GAME SECTION
   ============================================ */
.game-section {
  padding: var(--space-section) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--pumpkin-start);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.game-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: visible;
  perspective: 1000px;
}

.game-container__glow {
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-lg);
  background: conic-gradient(from 0deg, var(--pumpkin-start), var(--purple-start), var(--green-start), var(--pumpkin-start));
  opacity: 0.3;
  filter: blur(20px);
  animation: borderGlow 4s linear infinite;
  z-index: -1;
}

.game-container__border {
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: conic-gradient(from 0deg, var(--pumpkin-start), var(--purple-start), var(--green-start), var(--pumpkin-start));
  z-index: 0;
  animation: borderGlow 4s linear infinite;
}

.game-frame {
  position: relative;
  z-index: 1;
  background: var(--bg-secondary);
  border-radius: calc(var(--radius-lg) - 1px);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.game-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.game-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
  position: relative;
  z-index: 2;
}

/* ============================================
   7. FEATURES / CARDS
   ============================================ */
.features {
  padding: var(--space-section) 0;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transition: all 0.5s var(--ease-out);
  transform-style: preserve-3d;
  cursor: default;
}

.feature-card:hover {
  transform: translateY(-8px) rotateX(2deg) rotateY(-2deg);
  border-color: rgba(255, 122, 24, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.feature-card--large {
  grid-column: span 2;
}

.feature-card--wide {
  grid-column: span 3;
}

.feature-card__glow {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

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

.feature-card__glow--orange {
  background: radial-gradient(circle, rgba(255, 122, 24, 0.06) 0%, transparent 60%);
}

.feature-card__glow--purple {
  background: radial-gradient(circle, rgba(124, 58, 237, 0.06) 0%, transparent 60%);
}

.feature-card__glow--green {
  background: radial-gradient(circle, rgba(34, 197, 94, 0.05) 0%, transparent 60%);
}

.feature-card__icon {
  font-size: 40px;
  margin-bottom: 20px;
  display: inline-block;
  animation: ghostFloat 4s ease-in-out infinite;
}

.feature-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card__desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.feature-card__tag {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 100px;
  background: rgba(255, 122, 24, 0.15);
  color: var(--pumpkin-start);
  border: 1px solid rgba(255, 122, 24, 0.3);
}

.feature-card__tag--green {
  background: rgba(34, 197, 94, 0.15);
  color: var(--green-start);
  border-color: rgba(34, 197, 94, 0.3);
}

/* Stats Section */
.stats-section {
  padding: var(--space-section) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  text-align: center;
  padding: 40px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

.stat-card__value {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.stat-card__label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* CTA Section */
.cta-section {
  padding: var(--space-section) 0;
}

.cta-card {
  position: relative;
  text-align: center;
  padding: 80px 40px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.cta-card__glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(255, 122, 24, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-card__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
}

.cta-card__desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 40px;
  position: relative;
}

.cta-card__legal {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 20px;
  position: relative;
}

/* ============================================
   8. FOOTER
   ============================================ */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--glass-border);
  background: var(--bg-secondary);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer__logo {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.footer__logo span {
  background: var(--gradient-pumpkin);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer__tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--pumpkin-start);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 800;
  color: var(--pumpkin-start);
}

.footer__col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__col a {
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.footer__col a:hover {
  color: var(--pumpkin-start);
}

.footer__bottom {
  padding-top: 40px;
  border-top: 1px solid var(--glass-border);
  text-align: center;
}

.footer__bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* Responsible Gaming */
.responsible {
  padding: 80px 0;
}

.responsible__inner {
  display: flex;
  gap: 24px;
  padding: 40px;
  background: var(--glass-bg);
  border: 1px solid rgba(255, 122, 24, 0.15);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

.responsible__icon {
  font-size: 40px;
  flex-shrink: 0;
}

.responsible__content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.responsible__content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.responsible__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.responsible__links a {
  font-size: 0.9rem;
  color: var(--pumpkin-start);
  font-weight: 600;
  transition: opacity 0.3s;
}

.responsible__links a:hover {
  opacity: 0.7;
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-out);
}

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

.modal-overlay[hidden] {
  display: none;
}

.modal-overlay.open[hidden] {
  display: flex;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 560px;
  width: 100%;
  position: relative;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.4s var(--ease-spring);
}

.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.modal__close:hover {
  background: rgba(255, 122, 24, 0.15);
}

.modal__title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.modal__step {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--glass-border);
}

.modal__step:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-pumpkin);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

.modal__step h4 {
  font-weight: 700;
  margin-bottom: 4px;
}

.modal__step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s;
}

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

.btn--primary {
  background: var(--gradient-pumpkin);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 122, 24, 0.25);
}

.btn--primary:hover {
  box-shadow: 0 8px 40px rgba(255, 122, 24, 0.4);
  transform: translateY(-2px);
}

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

.btn--glow {
  animation: buttonGlow 3s ease-in-out infinite;
}

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

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn--small {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.btn--large {
  padding: 18px 36px;
  font-size: 1.1rem;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

.btn__icon {
  font-size: 1.1em;
}

/* Ripple effect */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

/* ============================================
   PAGE CONTENT (Sub-pages)
   ============================================ */
.page-content {
  padding-top: 80px;
  padding-bottom: var(--space-section);
  min-height: 100vh;
}

.page-header {
  text-align: center;
  margin-bottom: 60px;
  padding-top: 40px;
}

.page-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.page-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.content-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(10px);
  margin-bottom: 24px;
}

.content-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.content-card p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.content-card a {
  color: var(--pumpkin-start);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content h2 {
  font-size: 1.25rem;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
}

.legal-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin: 12px 0;
}

.legal-content li {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 4px;
}

/* About Features */
.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.about-feature {
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}

.about-feature__icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.about-feature h3 {
  font-weight: 700;
  margin-bottom: 8px;
}

.about-feature p {
  font-size: 0.9rem;
}

/* Responsible Gaming Facts */
.responsible-facts {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.responsible-fact {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.responsible-fact__icon {
  font-size: 20px;
  flex-shrink: 0;
}

.responsible-fact p {
  margin: 0;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
}

.contact-form-card {
  padding: 48px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info .content-card {
  margin-bottom: 0;
}

.contact-info h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: all 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--pumpkin-start);
  box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.1);
}

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

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form-group select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* ============================================
   9. ANIMATIONS
   ============================================ */
@keyframes pumpkinFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes ghostFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-6px) rotate(2deg); }
  75% { transform: translateY(2px) rotate(-2deg); }
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(15px, -20px) scale(1.05); }
  50% { transform: translate(-10px, 10px) scale(0.95); }
  75% { transform: translate(20px, 15px) scale(1.03); }
}

@keyframes fogDrift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(30px); }
}

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

@keyframes scrollWheel {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(8px); }
}

@keyframes borderGlow {
  0% { filter: blur(20px) hue-rotate(0deg); }
  100% { filter: blur(20px) hue-rotate(360deg); }
}

@keyframes neonFlicker {
  0%, 100% { opacity: 1; }
  92% { opacity: 1; }
  93% { opacity: 0.6; }
  94% { opacity: 1; }
  96% { opacity: 0.4; }
  97% { opacity: 1; }
}

@keyframes iconFlicker {
  0% { opacity: 1; }
  30% { opacity: 0.3; }
  60% { opacity: 1; }
  80% { opacity: 0.5; }
  100% { opacity: 1; }
}

@keyframes buttonGlow {
  0%, 100% { box-shadow: 0 4px 20px rgba(255, 122, 24, 0.25); }
  50% { box-shadow: 0 4px 40px rgba(255, 122, 24, 0.45); }
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Fade-in animations */
.anim-fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s var(--ease-out) forwards;
}

.anim-delay-1 { animation-delay: 0.15s; }
.anim-delay-2 { animation-delay: 0.3s; }
.anim-delay-3 { animation-delay: 0.45s; }
.anim-delay-4 { animation-delay: 0.6s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll reveal */
.anim-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

/* ============================================
   10. UTILITIES + RESPONSIVE
   ============================================ */
@media (max-width: 1023px) {
  :root {
    --space-section: 80px;
  }

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

  .feature-card--large,
  .feature-card--wide {
    grid-column: span 2;
  }

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

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

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

@media (max-width: 767px) {
  :root {
    --space-section: 60px;
  }

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

  .feature-card--large,
  .feature-card--wide {
    grid-column: span 1;
  }

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

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero__scroll-indicator {
    display: none;
  }

  .responsible__inner {
    flex-direction: column;
    padding: 28px;
  }

  .content-card {
    padding: 28px;
  }

  .contact-form-card {
    padding: 28px;
  }

  .cta-card {
    padding: 48px 24px;
  }

  .modal {
    padding: 28px;
  }

  .game-controls {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 1023px) {
  body {
    padding-bottom: 80px;
  }
}

/* Selection */
::selection {
  background: rgba(255, 122, 24, 0.3);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Focus outline */
*:focus-visible {
  outline: 2px solid var(--pumpkin-start);
  outline-offset: 2px;
}