/* ========================================
   JOYENGINEAVENUE.XYZ — MODERN WILD WEST LUXURY
   Design System & Complete Styles
   ======================================== */

/* --- CSS Variables --- */
:root {
  --deep-desert-night: #1a120b;
  --burnt-brown: #2c1b12;
  --ridge-brown: #3d2618;
  --glass-bg: rgba(255, 244, 230, 0.06);
  --glass-border: rgba(255, 200, 150, 0.15);
  --glass-blur: 18px;
  --gold-start: #fbbf24;
  --gold-end: #f59e0b;
  --gold-gradient: linear-gradient(135deg, #fbbf24, #f59e0b);
  --clay-start: #c2410c;
  --clay-end: #ea580c;
  --clay-gradient: linear-gradient(135deg, #c2410c, #ea580c);
  --sunset-glow: #fb923c;
  --gold-glow: rgba(251, 191, 36, 0.45);
  --orange-glow: rgba(234, 88, 12, 0.35);
  --text-primary: #fef3e2;
  --text-secondary: rgba(254, 243, 226, 0.7);
  --text-muted: rgba(254, 243, 226, 0.45);
  --max-width: 1300px;
  --section-gap-desktop: 130px;
  --section-gap-tablet: 90px;
  --section-gap-mobile: 60px;
  --radius-rough: 12px;
  --radius-button: 10px;
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --header-height: 82px;
  --header-height-compact: 62px;
}

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

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

body {
  font-family: 'Inter', 'Roboto', sans-serif;
  background: var(--deep-desert-night);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, #1a120b 0%, #2c1b12 40%, #3d2618 100%);
  z-index: -2;
}

body::after {
  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");
  z-index: -1;
  pointer-events: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

ul { list-style: none; }

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

button, input, textarea {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cinzel', 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); letter-spacing: 0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: 0.015em; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--text-secondary);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: var(--section-gap-desktop) 0;
  position: relative;
}

/* --- Utility --- */
.text-gold {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

/* --- Button System --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-button);
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition-bounce);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: 0.6s;
}

.btn:hover::before {
  left: 120%;
}

.btn-gold {
  background: var(--gold-gradient);
  color: #1a120b;
  box-shadow: 0 4px 20px var(--gold-glow), 0 2px 8px rgba(0,0,0,0.3);
}

.btn-gold:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 35px var(--gold-glow), 0 4px 15px rgba(0,0,0,0.4);
}

.btn-gold:active {
  transform: translateY(1px) scale(0.98);
}

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

.btn-outline:hover {
  border-color: var(--sunset-glow);
  background: rgba(251, 146, 60, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 6px 25px var(--orange-glow);
}

.btn-outline:active {
  transform: translateY(1px);
}

@keyframes goldPulse {
  0%, 100% { box-shadow: 0 4px 20px var(--gold-glow); }
  50% { box-shadow: 0 4px 40px var(--gold-glow), 0 0 60px rgba(251,191,36,0.2); }
}

.btn-pulse {
  animation: goldPulse 2.5s ease-in-out infinite;
}

/* ========================================
   HEADER — Floating Glass Ridge Nav
   ======================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  height: var(--header-height);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.site-header.compact {
  height: var(--header-height-compact);
}

/* Animated top gold accent line */
.site-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-start) 20%, var(--gold-end) 50%, var(--gold-start) 80%, transparent 100%);
  background-size: 200% 100%;
  animation: headerGoldLine 4s ease-in-out infinite;
  z-index: 10;
  opacity: 0.8;
}

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

.header-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(26,18,11,0.95) 0%, rgba(44,27,18,0.88) 100%);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  z-index: -1;
  border-bottom: 1px solid rgba(251, 191, 36, 0.08);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.site-header.compact .header-bg {
  background: linear-gradient(180deg, rgba(26,18,11,0.98) 0%, rgba(44,27,18,0.95) 100%);
  border-bottom-color: rgba(251, 191, 36, 0.12);
}

.header-bg::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(251,191,36,0.15), rgba(234,88,12,0.1), transparent);
}

.header-curve {
  position: absolute;
  bottom: -15px; left: 0; width: 100%;
  z-index: -1;
  opacity: 0.6;
  transition: opacity 0.5s ease;
}

.site-header.compact .header-curve {
  opacity: 0;
}

.header-curve svg {
  display: block;
  width: 100%;
  height: 20px;
  fill: rgba(26,18,11,0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  transition: var(--transition-smooth);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
}

.logo:hover .logo-badge {
  transform: rotate(-6deg) scale(1.08);
  box-shadow: 0 4px 24px var(--gold-glow);
}

.logo:hover .logo-text {
  letter-spacing: 0.08em;
}

.logo-badge {
  width: 44px; height: 44px;
  background: var(--gold-gradient);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  box-shadow: 0 3px 15px var(--gold-glow);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.logo-badge::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(255,255,255,0.3), transparent, transparent);
  animation: badgeSpin 4s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.logo:hover .logo-badge::before {
  opacity: 1;
}

@keyframes badgeSpin {
  to { transform: rotate(360deg); }
}

.site-header.compact .logo-badge {
  width: 36px; height: 36px;
  border-radius: 8px;
}

.logo-badge svg {
  width: 26px; height: 26px;
  fill: #1a120b;
  position: relative;
  z-index: 1;
}

.site-header.compact .logo-badge svg {
  width: 22px; height: 22px;
}

.logo-text {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.site-header.compact .logo-text {
  font-size: 1.05rem;
}

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 244, 230, 0.04);
  border: 1px solid rgba(255, 200, 150, 0.08);
  border-radius: 50px;
  padding: 5px 6px;
  backdrop-filter: blur(10px);
}

.nav-link {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 18px;
  border-radius: 50px;
  transition: all 0.35s ease;
}

.nav-link::after {
  display: none;
}

.nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  background: linear-gradient(135deg, rgba(251,191,36,0.15), rgba(245,158,11,0.08));
  border: 1px solid rgba(251, 191, 36, 0.2);
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: -1;
}

.nav-link:hover {
  color: var(--gold-start);
}

.nav-link:hover::before {
  opacity: 1;
  transform: scale(1);
}

.nav-link.active {
  color: #1a120b;
  font-weight: 700;
}

.nav-link.active::before {
  opacity: 1;
  transform: scale(1);
  background: var(--gold-gradient);
  border-color: transparent;
  box-shadow: 0 2px 12px rgba(251, 191, 36, 0.3);
}

.header-cta {
  padding: 10px 24px;
  font-size: 0.82rem;
  border-radius: 50px;
  position: relative;
}

.header-cta::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 52px;
  background: var(--gold-gradient);
  z-index: -1;
  opacity: 0;
  filter: blur(8px);
  transition: opacity 0.3s ease;
}

.header-cta:hover::after {
  opacity: 0.5;
}

/* Dust Particles in Header */
.header-dust {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.dust-particle {
  position: absolute;
  width: 2px; height: 2px;
  background: rgba(251, 191, 36, 0.25);
  border-radius: 50%;
  animation: dustFloat linear infinite;
}

@keyframes dustFloat {
  0% { transform: translateX(0) translateY(0); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(150px) translateY(-20px); opacity: 0; }
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 10;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 244, 230, 0.04);
  border: 1px solid rgba(255, 200, 150, 0.1);
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.2);
}

.menu-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--gold-start);
  border-radius: 2px;
  transition: var(--transition-smooth);
  transform-origin: center;
}

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

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

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

/* Mobile Nav */
.mobile-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, #1a120b 0%, #2c1b12 50%, #3d2618 100%);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

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

.mobile-overlay .nav-link {
  font-size: 1.3rem;
  color: var(--text-primary);
  padding: 12px 32px;
  border-radius: 12px;
  background: transparent;
  border: none;
}

.mobile-overlay .nav-link::before {
  border-radius: 12px;
}

.mobile-overlay .nav-link.active {
  color: #1a120b;
}

.mobile-overlay .nav-link.active::before {
  border-radius: 12px;
}

/* ========================================
   HERO — Buffalo Frontier Cinema
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: -3;
}

.hero-bg-image {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  animation: heroZoom 25s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background:
    linear-gradient(180deg, rgba(26,18,11,0.7) 0%, rgba(26,18,11,0.3) 40%, rgba(26,18,11,0.6) 80%, rgba(26,18,11,0.95) 100%),
    radial-gradient(ellipse at 50% 20%, rgba(251,191,36,0.1) 0%, transparent 60%);
  z-index: -2;
}

/* Light Rays */
.hero-rays {
  position: absolute;
  top: 0; left: 50%; width: 120%; height: 100%;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.ray {
  position: absolute;
  top: -10%;
  width: 3px;
  height: 60%;
  background: linear-gradient(180deg, rgba(251,191,36,0.15), transparent);
  transform-origin: top center;
  animation: rayShimmer 4s ease-in-out infinite alternate;
}

.ray:nth-child(1) { left: 20%; transform: rotate(-15deg); animation-delay: 0s; }
.ray:nth-child(2) { left: 35%; transform: rotate(-5deg); animation-delay: 0.8s; width: 2px; }
.ray:nth-child(3) { left: 50%; transform: rotate(2deg); animation-delay: 1.6s; }
.ray:nth-child(4) { left: 65%; transform: rotate(10deg); animation-delay: 0.4s; width: 2px; }
.ray:nth-child(5) { left: 80%; transform: rotate(18deg); animation-delay: 1.2s; }

@keyframes rayShimmer {
  0% { opacity: 0.3; }
  100% { opacity: 0.7; }
}

/* Dust Particles */
.particle-container {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.4);
  animation: particleDrift linear infinite;
}

@keyframes particleDrift {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate(var(--dx, 100px), var(--dy, -200px)) scale(0.5); opacity: 0; }
}

/* Cloud Layer */
.hero-clouds {
  position: absolute;
  top: 0; left: 0; width: 200%; height: 40%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.12;
  animation: cloudMove 60s linear infinite;
}

@keyframes cloudMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 850px;
  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: 50px;
  backdrop-filter: blur(12px);
  margin-bottom: 28px;
  font-size: 0.85rem;
  color: var(--sunset-glow);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.hero-badge-icon {
  font-size: 1.2rem;
}

.hero-title {
  margin-bottom: 24px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.hero-title .highlight {
  display: block;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 10px var(--gold-glow));
}

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

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.hero-legal {
  font-size: 0.75rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.5;
  padding: 12px 20px;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  border: 1px solid rgba(255,200,150,0.08);
}

/* Hero bottom fade */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; width: 100%; height: 150px;
  background: linear-gradient(transparent, var(--deep-desert-night));
  z-index: 1;
}

/* ========================================
   GAME SECTION — Centerpiece
   ======================================== */
.game-section {
  position: relative;
}

.game-section::before {
  content: '';
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(251,191,36,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.game-header {
  text-align: center;
  margin-bottom: 50px;
}

.game-header h2 {
  margin-bottom: 12px;
}

.game-header p {
  max-width: 550px;
  margin: 0 auto;
}

.game-frame-wrapper {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(60,36,20,0.8), rgba(30,18,10,0.9));
  border: 2px solid rgba(251, 191, 36, 0.3);
  box-shadow:
    0 0 40px var(--gold-glow),
    0 20px 60px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,200,150,0.1);
  transition: var(--transition-smooth);
}

.game-frame-wrapper:hover {
  box-shadow:
    0 0 60px var(--gold-glow),
    0 24px 70px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,200,150,0.15);
  transform: scale(1.005);
}

/* Wooden Frame Accent */
.game-frame-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: linear-gradient(135deg, rgba(60,36,20,0.6), rgba(44,27,18,0.8));
  border-bottom: 1px solid rgba(251,191,36,0.15);
}

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

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

.game-title-bar h3 {
  font-size: 1.1rem;
  margin: 0;
}

.game-controls {
  display: flex;
  gap: 10px;
}

.game-control-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.game-control-btn:hover {
  background: rgba(251,191,36,0.15);
  border-color: var(--gold-start);
  color: var(--gold-start);
}

.game-iframe-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #0a0705;
}

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

.game-loading {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: linear-gradient(135deg, #1a120b, #2c1b12);
  z-index: 2;
  transition: opacity 0.5s ease;
}

.game-loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-spinner {
  width: 48px; height: 48px;
  border: 3px solid rgba(251,191,36,0.2);
  border-top-color: var(--gold-start);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.loading-text {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  color: var(--sunset-glow);
  letter-spacing: 0.1em;
}

/* Shimmer effect */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.game-shimmer {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent 30%, rgba(251,191,36,0.05) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.game-info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: linear-gradient(135deg, rgba(60,36,20,0.6), rgba(44,27,18,0.8));
  border-top: 1px solid rgba(251,191,36,0.15);
  flex-wrap: wrap;
  gap: 10px;
}

.game-info-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.how-to-play-btn {
  padding: 8px 18px;
  font-size: 0.8rem;
}

/* How to Play Modal */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

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

.modal-content {
  background: linear-gradient(135deg, #2c1b12, #1a120b);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  max-width: 560px;
  width: 100%;
  padding: 40px;
  position: relative;
  transform: translateY(30px) scale(0.95);
  transition: var(--transition-bounce);
}

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

.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);
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  background: rgba(234,88,12,0.2);
  border-color: var(--clay-end);
  color: var(--text-primary);
}

.modal-content h3 {
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.modal-content ol {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-content ol li {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

.modal-content ol li strong {
  color: var(--sunset-glow);
}

/* ========================================
   FEATURES SECTION — Story Cards
   ======================================== */
.features-section {
  position: relative;
}

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

.features-header h2 { margin-bottom: 12px; }
.features-header p { max-width: 500px; margin: 0 auto; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-rough);
  padding: 36px 30px;
  backdrop-filter: blur(var(--glass-blur));
  position: relative;
  overflow: hidden;
  transition: var(--transition-bounce);
}

.feature-card::before {
  content: '';
  position: absolute;
  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.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(images/%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(251,191,36,0.2), transparent 40%, transparent 60%, rgba(234,88,12,0.15));
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: -1;
}

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

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

/* Offset grid */
.feature-card:nth-child(2) { transform: translateY(30px); }
.feature-card:nth-child(2):hover { transform: translateY(22px); }
.feature-card:nth-child(4) { transform: translateY(30px); }
.feature-card:nth-child(4):hover { transform: translateY(22px); }

.feature-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.feature-icon.gold-icon {
  background: linear-gradient(135deg, rgba(251,191,36,0.15), rgba(245,158,11,0.08));
  border: 1px solid rgba(251,191,36,0.2);
}

.feature-icon.clay-icon {
  background: linear-gradient(135deg, rgba(194,65,12,0.15), rgba(234,88,12,0.08));
  border: 1px solid rgba(234,88,12,0.2);
}

.feature-card h4 {
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ========================================
   STORY / IMAGE SECTIONS — Frontier World
   ======================================== */
.story-section {
  position: relative;
}

.story-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 100px;
}

.story-block:last-child { margin-bottom: 0; }

.story-block.reverse { direction: rtl; }
.story-block.reverse > * { direction: ltr; }

.story-image-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.story-image-wrap img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 16px;
  transition: var(--transition-smooth);
}

.story-image-wrap:hover img {
  transform: scale(1.04);
}

.story-image-wrap::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  pointer-events: none;
}

.story-image-glow {
  position: absolute;
  bottom: -20px; left: 20px; right: 20px;
  height: 40px;
  background: var(--gold-glow);
  filter: blur(30px);
  border-radius: 50%;
  opacity: 0.4;
}

.story-text h2 {
  margin-bottom: 16px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.story-text p {
  margin-bottom: 24px;
  line-height: 1.75;
}

.story-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.story-tag.gold {
  background: rgba(251,191,36,0.12);
  color: var(--gold-start);
  border: 1px solid rgba(251,191,36,0.2);
}

.story-tag.clay {
  background: rgba(234,88,12,0.12);
  color: var(--sunset-glow);
  border: 1px solid rgba(234,88,12,0.2);
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  position: relative;
  text-align: center;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(251,191,36,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 40px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  backdrop-filter: blur(var(--glass-blur));
}

.cta-box h2 { margin-bottom: 16px; }
.cta-box p { max-width: 500px; margin: 0 auto 30px; }

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  position: relative;
  padding: 80px 0 0;
  border-top: 1px solid rgba(255,200,150,0.08);
}

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

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 280px;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.9rem;
  color: var(--sunset-glow);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

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

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-legal {
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,200,150,0.06);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 30px;
}

.footer-legal p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: center;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(234,88,12,0.15);
  border: 1px solid rgba(234,88,12,0.3);
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--sunset-glow);
}

/* ========================================
   ANIMATIONS — Scroll Reveal
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* Cursor Glow */
.cursor-glow {
  position: fixed;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251,191,36,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: left 0.15s ease, top 0.15s ease;
  display: none;
}

/* ========================================
   PAGE-SPECIFIC — About, Contact, Terms, etc.
   ======================================== */
.page-hero {
  padding-top: calc(var(--header-height) + 80px);
  padding-bottom: 80px;
  text-align: center;
  position: relative;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; width: 100%; height: 80px;
  background: linear-gradient(transparent, var(--deep-desert-night));
}

.page-hero h1 {
  margin-bottom: 16px;
}

.page-hero p {
  max-width: 550px;
  margin: 0 auto;
}

.page-content {
  padding: 80px 0 var(--section-gap-desktop);
}

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

.page-content h2 {
  font-size: 1.6rem;
  margin: 40px 0 16px;
}

.page-content h3 {
  font-size: 1.2rem;
  margin: 30px 0 12px;
}

.page-content p {
  margin-bottom: 16px;
  line-height: 1.8;
}

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

.page-content ul li {
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.7;
  list-style: disc;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea {
  padding: 14px 18px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-rough);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold-start);
  box-shadow: 0 0 20px rgba(251,191,36,0.15);
}

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

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  section {
    padding: var(--section-gap-tablet) 0;
  }

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

  .story-block {
    gap: 40px;
    margin-bottom: 70px;
  }

  .main-nav {
    gap: 4px;
    padding: 4px 5px;
  }

  .nav-link {
    padding: 7px 14px;
    font-size: 0.78rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
    --header-height-compact: 56px;
  }

  section {
    padding: var(--section-gap-mobile) 0;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav, .header-cta {
    display: none;
  }

  .mobile-overlay {
    display: flex;
  }

  .header-inner {
    padding: 0 20px;
  }

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

  .feature-card:nth-child(2),
  .feature-card:nth-child(4) {
    transform: translateY(0);
  }

  .feature-card:nth-child(2):hover,
  .feature-card:nth-child(4):hover {
    transform: translateY(-8px);
  }

  .story-block,
  .story-block.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 30px;
    margin-bottom: 60px;
  }

  .story-image-wrap img {
    height: 260px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  .game-frame-top,
  .game-info-bar {
    padding: 12px 16px;
  }

  .cta-box {
    padding: 40px 24px;
  }

  .page-hero {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 60px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .header-inner {
    padding: 0 16px;
  }

  .logo-text {
    font-size: 0.95rem;
  }

  .feature-card {
    padding: 28px 22px;
  }
}

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