/* =============================================
   PRIMOGAMEPASSAGE — KUNG FU TEMPLE TECH
   Premium Social Casino Design System — V2
   ============================================= */

/* --- VARIABLES --- */
:root {
  --bg-primary: #0a0a05;
  --bg-secondary: #1c1c0c;
  --bg-tertiary: #14140a;
  --glass: rgba(255,255,255,0.05);
  --glass-border: rgba(255,255,255,0.08);
  --glass-hover: rgba(255,255,255,0.08);
  --glass-blur: 18px;

  --fire: linear-gradient(135deg, #f97316, #f59e0b);
  --fire-start: #f97316;
  --fire-end: #f59e0b;
  --jade: linear-gradient(135deg, #22c55e, #4ade80);
  --jade-start: #22c55e;
  --jade-end: #4ade80;
  --purple: linear-gradient(135deg, #7c3aed, #c084fc);
  --purple-start: #7c3aed;
  --purple-end: #c084fc;

  --glow-fire: rgba(249,115,22,0.45);
  --glow-jade: rgba(34,197,94,0.35);
  --glow-purple: rgba(124,58,237,0.35);

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

  --font-display: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;

  --max-width: 1280px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --space-section: 120px;
  --header-height: 80px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* --- 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: var(--font-body);
  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, ol { list-style: none; }

img, svg, video, iframe {
  display: block;
  max-width: 100%;
}

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

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

@media (max-width: 640px) {
  .container { padding: 0 16px; }
}

/* --- CURSOR GLOW --- */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(249,115,22,0.08) 0%, transparent 70%);
  transition: opacity 0.3s;
  opacity: 0;
  will-change: left, top;
}

@media (hover: hover) {
  .cursor-glow.active { opacity: 1; }
}

/* --- PARTICLES --- */
.particles-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

/* --- HEADER --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  transition: var(--transition);
}

.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10,10,5,0.7);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}

.header.scrolled::before {
  background: rgba(10,10,5,0.92);
  border-bottom-color: rgba(249,115,22,0.15);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
  flex-shrink: 0;
}

.logo-icon {
  position: relative;
  animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  background: var(--fire);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-desktop { flex: 1; display: flex; justify-content: center; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text-primary);
  background: var(--glass);
  transform: translateY(-1px);
}

.nav-link.active {
  color: var(--text-primary);
  background: rgba(249,115,22,0.15);
  box-shadow: 0 0 20px rgba(249,115,22,0.1);
}

.nav-icon { font-size: 0.85rem; }

.btn-header-cta {
  flex-shrink: 0;
  padding: 10px 24px !important;
  font-size: 0.9rem !important;
}

/* MOBILE TOGGLE */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 10;
  padding: 8px;
}

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

@media (max-width: 768px) {
  .nav-desktop, .btn-header-cta { display: none; }
  .mobile-menu-toggle { display: flex; }
}

/* --- MOBILE MENU --- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  visibility: hidden;
}

.mobile-menu.open {
  pointer-events: auto;
  visibility: visible;
}

.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  transition: opacity 0.3s;
}

.mobile-menu.open .mobile-menu-backdrop { opacity: 1; }

.mobile-menu-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 300px;
  max-width: 80vw;
  background: var(--bg-secondary);
  border-left: 1px solid var(--glass-border);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 24px;
}

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

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.mobile-menu-close {
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
  padding: 4px;
}

.mobile-menu-close:hover { color: var(--text-primary); }

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-link {
  display: block;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--text-primary);
  background: rgba(249,115,22,0.1);
}

.mobile-menu-cta {
  margin-top: auto;
  text-align: center;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  border: none;
  text-decoration: none;
}

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

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

.btn-fire {
  background: var(--fire);
  color: #fff;
  box-shadow: 0 4px 24px rgba(249,115,22,0.3);
}

.btn-fire:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(249,115,22,0.5);
}

.btn-fire::before {
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
}

.btn-fire:hover::before { opacity: 1; }

.btn-jade {
  background: var(--jade);
  color: #fff;
  box-shadow: 0 4px 24px rgba(34,197,94,0.3);
}

.btn-jade:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(34,197,94,0.5);
}

.btn-purple {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 4px 24px rgba(124,58,237,0.3);
}

.btn-purple:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124,58,237,0.5);
}

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

.btn-glass:hover {
  background: var(--glass-hover);
  transform: translateY(-2px);
  border-color: rgba(249,115,22,0.3);
  box-shadow: 0 4px 20px rgba(249,115,22,0.15);
}

.btn-lg { padding: 16px 36px; font-size: 1.05rem; border-radius: 22px; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; border-radius: 14px; }
.btn-full { width: 100%; }

.btn-icon { font-size: 1.1em; }

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(249,115,22,0.3); }
  50% { box-shadow: 0 4px 40px rgba(249,115,22,0.6); }
}

.btn-fire { animation: btnPulse 3s ease-in-out infinite; }
.btn-fire:hover { animation: none; }

/* --- TEXT UTILITIES --- */
.text-gradient-fire {
  background: var(--fire);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--header-height) + 40px) 0 60px;
}

/* HERO BG */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.temple-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 80%, rgba(249,115,22,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 20%, rgba(124,58,237,0.06) 0%, transparent 40%),
    radial-gradient(ellipse at 80% 30%, rgba(34,197,94,0.04) 0%, transparent 40%),
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

.temple-bg::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 300px;
  background:
    linear-gradient(180deg, transparent 0%, rgba(10,10,5,0.9) 100%);
}

.temple-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 250px;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(249,115,22,0.06) 0%, transparent 70%);
}

/* TEMPLE SILHOUETTE */
.temple-silhouette {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1400px;
  height: 350px;
  z-index: 1;
  pointer-events: none;
}

.temple-silhouette svg {
  width: 100%;
  height: 100%;
}

/* LANTERNS */
.lantern {
  position: absolute;
  font-size: 2.5rem;
  z-index: 2;
  filter: drop-shadow(0 0 20px rgba(249,115,22,0.6));
}

.lantern-1 {
  top: 12%;
  left: 10%;
  animation: lanternSway1 4s ease-in-out infinite, lanternGlow 2s ease-in-out infinite;
}

.lantern-2 {
  top: 8%;
  right: 12%;
  animation: lanternSway2 5s ease-in-out infinite, lanternGlow 2.5s ease-in-out infinite;
}

.lantern-3 {
  top: 20%;
  left: 25%;
  font-size: 1.8rem;
  animation: lanternSway1 4.5s ease-in-out infinite 0.5s, lanternGlow 3s ease-in-out infinite;
}

.lantern-4 {
  top: 15%;
  right: 28%;
  font-size: 1.8rem;
  animation: lanternSway2 3.5s ease-in-out infinite 1s, lanternGlow 2.8s ease-in-out infinite;
}

.lantern-5 {
  top: 6%;
  left: 45%;
  font-size: 2rem;
  animation: lanternSway1 5.5s ease-in-out infinite 0.3s, lanternGlow 3.2s ease-in-out infinite;
}

.lantern-6 {
  top: 25%;
  right: 8%;
  font-size: 1.5rem;
  animation: lanternSway2 4.2s ease-in-out infinite 0.8s, lanternGlow 2.3s ease-in-out infinite;
}

@keyframes lanternSway1 {
  0%, 100% { transform: rotate(-3deg) translateX(0); }
  50% { transform: rotate(3deg) translateX(8px); }
}

@keyframes lanternSway2 {
  0%, 100% { transform: rotate(2deg) translateX(0); }
  50% { transform: rotate(-2deg) translateX(-6px); }
}

@keyframes lanternGlow {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(249,115,22,0.6)); }
  50% { filter: drop-shadow(0 0 35px rgba(249,115,22,0.9)); }
}

/* TORCH FIRES */
.torch-container {
  position: absolute;
  bottom: 15%;
  z-index: 3;
  pointer-events: none;
}

.torch-left {
  left: 8%;
}

.torch-right {
  right: 8%;
}

.torch-flame {
  width: 20px;
  height: 40px;
  position: relative;
}

.torch-flame::before,
.torch-flame::after {
  content: '';
  position: absolute;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  animation: torchFlicker 0.8s ease-in-out infinite alternate;
}

.torch-flame::before {
  width: 20px;
  height: 35px;
  bottom: 0;
  left: 0;
  background: radial-gradient(ellipse at 50% 90%, #f97316 0%, #f59e0b 40%, transparent 70%);
  box-shadow: 0 0 20px rgba(249,115,22,0.8), 0 0 40px rgba(249,115,22,0.4);
}

.torch-flame::after {
  width: 12px;
  height: 25px;
  bottom: 2px;
  left: 4px;
  background: radial-gradient(ellipse at 50% 90%, #fbbf24 0%, #f97316 50%, transparent 70%);
  animation-delay: 0.15s;
}

@keyframes torchFlicker {
  0% { transform: scaleY(1) scaleX(1) translateY(0); }
  25% { transform: scaleY(1.1) scaleX(0.9) translateY(-2px); }
  50% { transform: scaleY(0.95) scaleX(1.05) translateY(1px); }
  75% { transform: scaleY(1.08) scaleX(0.95) translateY(-1px); }
  100% { transform: scaleY(1.02) scaleX(1.02) translateY(-3px); }
}

.torch-base {
  width: 8px;
  height: 60px;
  background: linear-gradient(180deg, #78350f, #451a03);
  margin: 0 auto;
  border-radius: 2px;
}

.torch-mount {
  width: 24px;
  height: 12px;
  background: linear-gradient(180deg, #92400e, #78350f);
  margin: 0 auto;
  border-radius: 3px 3px 0 0;
}

/* MIST */
.mist {
  position: absolute;
  width: 100%;
  height: 200px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.02) 30%,
    rgba(255,255,255,0.03) 50%,
    rgba(255,255,255,0.02) 70%,
    transparent 100%
  );
  z-index: 1;
}

.mist-1 {
  bottom: 10%;
  animation: mistDrift 20s linear infinite;
}

.mist-2 {
  bottom: 25%;
  animation: mistDrift 25s linear infinite reverse;
  opacity: 0.6;
}

.mist-3 {
  bottom: 5%;
  animation: mistDrift 18s linear infinite 5s;
  opacity: 0.4;
  height: 120px;
}

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

/* KITES */
.kites-container {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.kite {
  position: absolute;
  font-size: 2rem;
  opacity: 0.7;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  filter: drop-shadow(0 0 8px rgba(249,115,22,0.3));
}

.kite-1 {
  top: 10%;
  left: 15%;
  animation: kiteFloat1 8s ease-in-out infinite;
}

.kite-2 {
  top: 18%;
  right: 20%;
  font-size: 1.5rem;
  animation: kiteFloat2 10s ease-in-out infinite 1s;
}

.kite-3 {
  top: 8%;
  left: 55%;
  font-size: 1.8rem;
  opacity: 0.5;
  animation: kiteFloat3 12s ease-in-out infinite 2s;
}

.kite-string {
  position: absolute;
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, rgba(255,255,255,0.15), transparent);
  top: 100%;
  left: 50%;
  transform-origin: top center;
  animation: kiteStringWave 3s ease-in-out infinite;
}

@keyframes kiteFloat1 {
  0%, 100% { transform: translate(0, 0) rotate(-5deg); }
  25% { transform: translate(15px, -10px) rotate(3deg); }
  50% { transform: translate(-5px, -20px) rotate(-8deg); }
  75% { transform: translate(10px, -5px) rotate(2deg); }
}

@keyframes kiteFloat2 {
  0%, 100% { transform: translate(0, 0) rotate(3deg); }
  33% { transform: translate(-20px, -15px) rotate(-5deg); }
  66% { transform: translate(10px, -8px) rotate(6deg); }
}

@keyframes kiteFloat3 {
  0%, 100% { transform: translate(0, 0) rotate(-2deg); }
  50% { transform: translate(-15px, -25px) rotate(4deg); }
}

@keyframes kiteStringWave {
  0%, 100% { transform: rotate(2deg); }
  50% { transform: rotate(-2deg); }
}

/* FIGHTERS */
.hero-arena {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 280px;
  z-index: 5;
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero-arena { width: 360px; height: 200px; bottom: 12%; }
}

@media (max-width: 480px) {
  .hero-arena { width: 280px; height: 160px; bottom: 14%; }
}

.fighter {
  position: absolute;
  bottom: 0;
  transition: transform 0.1s ease-out;
}

.fighter-left {
  left: 5%;
  animation: fighterLeftMove 4s ease-in-out infinite;
}

.fighter-right {
  right: 5%;
  animation: fighterRightMove 4s ease-in-out infinite;
}

.fighter-body {
  position: relative;
  width: 70px;
  height: 120px;
}

.fighter-head {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.fighter-torso {
  width: 24px;
  height: 36px;
  border-radius: 6px;
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
}

/* Fighter headband */
.fighter-headband {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 4px;
  border-radius: 2px;
}

.fighter-left .fighter-headband {
  background: var(--fire);
  box-shadow: 0 0 8px var(--glow-fire);
}

.fighter-right .fighter-headband {
  background: var(--jade);
  box-shadow: 0 0 8px var(--glow-jade);
}

/* Headband tails */
.fighter-headband::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 0;
  width: 12px;
  height: 3px;
  border-radius: 2px;
  background: inherit;
  animation: headbandFlow 2s ease-in-out infinite;
}

@keyframes headbandFlow {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  50% { transform: rotate(15deg) translateY(2px); }
}

.fighter-arm-front,
.fighter-arm-back {
  width: 9px;
  height: 34px;
  border-radius: 5px;
  position: absolute;
  top: 30px;
  transform-origin: top center;
}

.fighter-leg-front,
.fighter-leg-back {
  width: 10px;
  height: 40px;
  border-radius: 5px;
  position: absolute;
  top: 64px;
  transform-origin: top center;
}

/* Fighter Left Colors */
.fighter-left .fighter-head {
  background: linear-gradient(135deg, #fbbf24, #f97316);
  box-shadow: 0 0 16px var(--glow-fire), 0 0 32px rgba(249,115,22,0.2);
}
.fighter-left .fighter-torso {
  background: linear-gradient(180deg, #f97316, #ea580c);
  box-shadow: 0 0 8px rgba(249,115,22,0.3);
}
.fighter-left .fighter-arm-front { background: linear-gradient(180deg, #f97316, #dc2626); left: 8px; }
.fighter-left .fighter-arm-back { background: linear-gradient(180deg, #c2410c, #991b1b); right: 8px; }
.fighter-left .fighter-leg-front { background: linear-gradient(180deg, #9a3412, #7c2d12); left: 18px; }
.fighter-left .fighter-leg-back { background: linear-gradient(180deg, #7c2d12, #451a03); right: 18px; }

/* Fighter Right Colors */
.fighter-right .fighter-head {
  background: linear-gradient(135deg, #4ade80, #22c55e);
  box-shadow: 0 0 16px var(--glow-jade), 0 0 32px rgba(34,197,94,0.2);
}
.fighter-right .fighter-torso {
  background: linear-gradient(180deg, #22c55e, #16a34a);
  box-shadow: 0 0 8px rgba(34,197,94,0.3);
}
.fighter-right .fighter-arm-front { background: linear-gradient(180deg, #22c55e, #15803d); right: 8px; }
.fighter-right .fighter-arm-back { background: linear-gradient(180deg, #15803d, #166534); left: 8px; }
.fighter-right .fighter-leg-front { background: linear-gradient(180deg, #166534, #14532d); right: 18px; }
.fighter-right .fighter-leg-back { background: linear-gradient(180deg, #14532d, #052e16); left: 18px; }

.fighter-right .fighter-body {
  transform: scaleX(-1);
}

/* Fighter movement animations */
@keyframes fighterLeftMove {
  0%, 100% { transform: translateX(0) translateY(0); }
  10% { transform: translateX(20px) translateY(-15px); }
  20% { transform: translateX(50px) translateY(-40px); }
  30% { transform: translateX(60px) translateY(-60px); }
  40% { transform: translateX(40px) translateY(-30px); }
  50% { transform: translateX(30px) translateY(0); }
  60% { transform: translateX(10px) translateY(-20px); }
  70% { transform: translateX(0) translateY(-50px); }
  80% { transform: translateX(-10px) translateY(-70px); }
  90% { transform: translateX(-5px) translateY(-20px); }
}

@keyframes fighterRightMove {
  0%, 100% { transform: translateX(0) translateY(0); }
  10% { transform: translateX(-15px) translateY(-20px); }
  20% { transform: translateX(-30px) translateY(-50px); }
  30% { transform: translateX(-50px) translateY(-35px); }
  40% { transform: translateX(-60px) translateY(-65px); }
  50% { transform: translateX(-40px) translateY(-15px); }
  60% { transform: translateX(-20px) translateY(-45px); }
  70% { transform: translateX(-10px) translateY(-55px); }
  80% { transform: translateX(5px) translateY(-30px); }
  90% { transform: translateX(0) translateY(-10px); }
}

/* FIGHTER ARM ANIMATIONS */
.fighter-left .fighter-arm-front {
  animation: punchLeft 4s ease-in-out infinite;
}

.fighter-right .fighter-arm-front {
  animation: punchRight 4s ease-in-out infinite;
}

.fighter-left .fighter-leg-front {
  animation: kickLeft 4s ease-in-out infinite;
}

.fighter-right .fighter-leg-front {
  animation: kickRight 4s ease-in-out infinite;
}

@keyframes punchLeft {
  0%, 100% { transform: rotate(10deg); }
  15% { transform: rotate(-100deg) scaleY(1.1); }
  20% { transform: rotate(-85deg); }
  35% { transform: rotate(15deg); }
  50% { transform: rotate(-5deg); }
  65% { transform: rotate(-95deg) scaleY(1.05); }
  70% { transform: rotate(-70deg); }
  85% { transform: rotate(10deg); }
}

@keyframes punchRight {
  0%, 100% { transform: rotate(-10deg); }
  10% { transform: rotate(-5deg); }
  25% { transform: rotate(95deg) scaleY(1.1); }
  30% { transform: rotate(80deg); }
  45% { transform: rotate(-10deg); }
  60% { transform: rotate(100deg) scaleY(1.05); }
  65% { transform: rotate(75deg); }
  80% { transform: rotate(-5deg); }
}

@keyframes kickLeft {
  0%, 100% { transform: rotate(5deg); }
  30% { transform: rotate(-70deg) scaleY(1.05); }
  40% { transform: rotate(-30deg); }
  70% { transform: rotate(-80deg) scaleY(1.1); }
  80% { transform: rotate(-20deg); }
}

@keyframes kickRight {
  0%, 100% { transform: rotate(-5deg); }
  20% { transform: rotate(75deg) scaleY(1.1); }
  30% { transform: rotate(25deg); }
  55% { transform: rotate(80deg) scaleY(1.05); }
  65% { transform: rotate(30deg); }
}

.fighter-shadow {
  width: 55px;
  height: 10px;
  background: rgba(0,0,0,0.4);
  border-radius: 50%;
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  filter: blur(4px);
  animation: shadowPulse 4s ease-in-out infinite;
}

@keyframes shadowPulse {
  0%, 50%, 100% { opacity: 0.4; transform: translateX(-50%) scaleX(1); }
  25%, 75% { opacity: 0.15; transform: translateX(-50%) scaleX(0.6); }
}

/* Chi Energy aura */
.fighter-chi {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  animation: chiPulse 4s ease-in-out infinite;
}

.fighter-left .fighter-chi {
  background: radial-gradient(circle, rgba(249,115,22,0.2) 0%, transparent 70%);
  box-shadow: 0 0 30px rgba(249,115,22,0.15);
}

.fighter-right .fighter-chi {
  background: radial-gradient(circle, rgba(34,197,94,0.2) 0%, transparent 70%);
  box-shadow: 0 0 30px rgba(34,197,94,0.15);
}

@keyframes chiPulse {
  0%, 60%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  20%, 40% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
  30% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.5); }
}

/* SPARKS */
.sparks-container {
  position: absolute;
  left: 50%;
  top: 35%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  z-index: 6;
}

.spark {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 10px #f97316, 0 0 20px #f59e0b, 0 0 30px rgba(249,115,22,0.5);
  opacity: 0;
  left: 50%;
  top: 50%;
}

.spark-1 { animation: sparkBurst 4s ease-out infinite 0.3s; }
.spark-2 { animation: sparkBurst2 4s ease-out infinite 0.35s; }
.spark-3 { animation: sparkBurst3 4s ease-out infinite 0.4s; }
.spark-4 { animation: sparkBurst4 4s ease-out infinite 0.32s; }
.spark-5 { animation: sparkBurst5 4s ease-out infinite 0.38s; }
.spark-6 { animation: sparkBurst6 4s ease-out infinite 0.42s; }
.spark-7 { animation: sparkBurst7 4s ease-out infinite 0.28s; }
.spark-8 { animation: sparkBurst8 4s ease-out infinite 0.45s; }

@keyframes sparkBurst {
  0%, 18% { opacity: 0; transform: translate(0,0) scale(1); }
  20% { opacity: 1; transform: translate(0,0) scale(1.5); }
  35% { opacity: 0; transform: translate(-30px, -40px) scale(0); }
  100% { opacity: 0; }
}

@keyframes sparkBurst2 {
  0%, 18% { opacity: 0; transform: translate(0,0) scale(1); }
  20% { opacity: 1; transform: translate(0,0) scale(1.3); }
  35% { opacity: 0; transform: translate(35px, -25px) scale(0); }
  100% { opacity: 0; }
}

@keyframes sparkBurst3 {
  0%, 18% { opacity: 0; transform: translate(0,0) scale(1); }
  20% { opacity: 1; }
  35% { opacity: 0; transform: translate(-20px, 20px) scale(0); }
  100% { opacity: 0; }
}

@keyframes sparkBurst4 {
  0%, 48% { opacity: 0; transform: translate(0,0) scale(1); }
  50% { opacity: 1; transform: translate(0,0) scale(1.5); }
  65% { opacity: 0; transform: translate(25px, -35px) scale(0); }
  100% { opacity: 0; }
}

@keyframes sparkBurst5 {
  0%, 48% { opacity: 0; transform: translate(0,0) scale(1); }
  50% { opacity: 1; }
  65% { opacity: 0; transform: translate(-28px, -15px) scale(0); }
  100% { opacity: 0; }
}

@keyframes sparkBurst6 {
  0%, 48% { opacity: 0; transform: translate(0,0) scale(1); }
  50% { opacity: 1; }
  65% { opacity: 0; transform: translate(15px, 25px) scale(0); }
  100% { opacity: 0; }
}

@keyframes sparkBurst7 {
  0%, 70% { opacity: 0; transform: translate(0,0) scale(1); }
  72% { opacity: 1; transform: translate(0,0) scale(1.8); }
  85% { opacity: 0; transform: translate(-35px, -20px) scale(0); }
  100% { opacity: 0; }
}

@keyframes sparkBurst8 {
  0%, 70% { opacity: 0; transform: translate(0,0) scale(1); }
  72% { opacity: 1; }
  85% { opacity: 0; transform: translate(20px, -40px) scale(0); }
  100% { opacity: 0; }
}

/* Impact flash */
.impact-flash {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(249,115,22,0.2) 30%, transparent 70%);
  opacity: 0;
  animation: impactFlash 4s ease-out infinite;
  pointer-events: none;
}

@keyframes impactFlash {
  0%, 18% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
  20% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  30% { opacity: 0; transform: translate(-50%, -50%) scale(2); }
  48% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.2); }
  60% { opacity: 0; transform: translate(-50%, -50%) scale(2.5); }
  70% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
  72% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.8); }
  82% { opacity: 0; transform: translate(-50%, -50%) scale(2); }
  100% { opacity: 0; }
}

/* BLOSSOMS */
.blossoms {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
}

.blossom {
  position: absolute;
  font-size: 1rem;
  opacity: 0;
  animation: blossomFall linear infinite;
}

@keyframes blossomFall {
  0% {
    transform: translateY(-10vh) translateX(0) rotate(0);
    opacity: 0;
  }
  5% { opacity: 0.8; }
  95% { opacity: 0.8; }
  100% {
    transform: translateY(105vh) translateX(80px) rotate(720deg);
    opacity: 0;
  }
}

/* SMOKE PARTICLES */
.smoke-container {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.smoke-particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  opacity: 0;
  animation: smokeRise linear infinite;
}

@keyframes smokeRise {
  0% { opacity: 0; transform: translateY(0) scale(0.5); }
  20% { opacity: 0.6; }
  80% { opacity: 0.2; }
  100% { opacity: 0; transform: translateY(-200px) scale(2); }
}

/* DUST PARTICLES in arena */
.dust-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}

.dust-particle {
  position: absolute;
  bottom: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(249,115,22,0.3);
  opacity: 0;
  animation: dustKick 4s ease-out infinite;
}

@keyframes dustKick {
  0%, 15% { opacity: 0; transform: translate(0, 0); }
  20% { opacity: 0.8; }
  40% { opacity: 0; transform: translate(var(--dust-x, 20px), var(--dust-y, -30px)); }
  100% { opacity: 0; }
}

/* HERO CONTENT */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  backdrop-filter: blur(8px);
  margin-bottom: 24px;
  animation: badgeGlow 3s ease-in-out infinite;
}

@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(249,115,22,0); }
  50% { box-shadow: 0 0 20px rgba(249,115,22,0.15); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  text-shadow: 0 0 60px rgba(249,115,22,0.15);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.6;
}

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

.hero-legal {
  font-size: 0.75rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.5;
}

/* SCROLL INDICATOR */
.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--fire-start), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; height: 30px; }
  50% { opacity: 1; height: 40px; }
}

/* --- SECTION COMMON --- */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto;
}

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

.game-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249,115,22,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.game-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  max-width: 960px;
  margin: 0 auto;
}

.game-card-border {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 2px;
  background: linear-gradient(135deg, var(--fire-start), var(--jade-start), var(--purple-start), var(--fire-end));
  background-size: 400% 400%;
  animation: borderGradient 6s ease-in-out infinite;
  -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;
}

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

.game-card-inner {
  position: relative;
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 4px;
}

.game-iframe-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: calc(var(--radius-xl) - 4px);
  overflow: hidden;
  background: #000;
}

.game-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: calc(var(--radius-xl) - 4px);
}

.game-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,5,0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: var(--transition-slow);
  border-radius: calc(var(--radius-xl) - 4px);
}

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

.game-overlay-content {
  text-align: center;
}

.game-overlay-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  animation: overlayIconPulse 2s ease-in-out infinite;
}

@keyframes overlayIconPulse {
  0%, 100% { transform: scale(1) rotate(0); }
  25% { transform: scale(1.1) rotate(-5deg); }
  75% { transform: scale(1.05) rotate(5deg); }
}

.game-overlay-content h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 8px;
  text-shadow: 0 0 30px rgba(249,115,22,0.3);
}

.game-overlay-content p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.game-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 16px;
}

/* --- FEATURES SECTION --- */
.features-section {
  padding: var(--space-section) 0;
  position: relative;
}

.features-section::before {
  content: '';
  position: absolute;
  top: 20%;
  right: -200px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.feature-card {
  grid-column: span 6;
  position: relative;
  padding: 40px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(var(--glass-blur));
  transition: var(--transition);
  overflow: hidden;
  animation-delay: var(--delay, 0s);
}

.feature-card-lg {
  grid-column: span 7;
}

.feature-card-lg + .feature-card { grid-column: span 5; }
.feature-card + .feature-card-lg { grid-column: span 5; }
.feature-card:nth-child(3) { grid-column: span 5; }
.feature-card:nth-child(4) { grid-column: span 7; }

@media (max-width: 768px) {
  .feature-card,
  .feature-card-lg,
  .feature-card-lg + .feature-card,
  .feature-card + .feature-card-lg,
  .feature-card:nth-child(3),
  .feature-card:nth-child(4) {
    grid-column: span 12;
  }
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249,115,22,0.3);
  background: var(--glass-hover);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  position: relative;
  transition: var(--transition);
}

.feature-icon-fire { background: rgba(249,115,22,0.15); box-shadow: 0 0 20px rgba(249,115,22,0.1); }
.feature-icon-jade { background: rgba(34,197,94,0.15); box-shadow: 0 0 20px rgba(34,197,94,0.1); }
.feature-icon-purple { background: rgba(124,58,237,0.15); box-shadow: 0 0 20px rgba(124,58,237,0.1); }

.feature-card:hover .feature-icon {
  transform: scale(1.15) rotate(8deg);
}

.feature-card:hover .feature-icon-fire { box-shadow: 0 0 30px rgba(249,115,22,0.3); }
.feature-card:hover .feature-icon-jade { box-shadow: 0 0 30px rgba(34,197,94,0.3); }
.feature-card:hover .feature-icon-purple { box-shadow: 0 0 30px rgba(124,58,237,0.3); }

.feature-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

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

.feature-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  top: -100px;
  right: -100px;
  filter: blur(80px);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.feature-glow-fire { background: var(--glow-fire); }
.feature-glow-jade { background: var(--glow-jade); }
.feature-glow-purple { background: var(--glow-purple); }

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

/* --- STATS SECTION --- */
.stats-section {
  padding: var(--space-section) 0;
  position: relative;
}

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

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
}

.stat-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(var(--glass-blur));
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--fire);
  opacity: 0;
  transition: opacity 0.3s;
}

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

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249,115,22,0.3);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  background: var(--fire);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat-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);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(var(--glass-blur));
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(135deg, rgba(249,115,22,0.3), transparent, rgba(34,197,94,0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.cta-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(249,115,22,0.12) 0%, transparent 70%);
  pointer-events: none;
  animation: ctaGlowPulse 4s ease-in-out infinite;
}

@keyframes ctaGlowPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 32px;
  position: relative;
  z-index: 1;
}

.cta-card .btn {
  position: relative;
  z-index: 1;
}

/* --- MODAL --- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  visibility: hidden;
  padding: 24px;
}

.modal.open {
  pointer-events: auto;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  opacity: 0;
  transition: opacity 0.3s;
}

.modal.open .modal-backdrop { opacity: 1; }

.modal-content {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
  padding: 8px;
  border-radius: 8px;
}

.modal-close:hover {
  color: var(--text-primary);
  background: var(--glass);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 24px;
}

.modal-body { margin-bottom: 20px; }

.how-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.how-step:last-child { margin-bottom: 0; }

.how-step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--fire);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
}

.how-step h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.how-step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.modal-legal {
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--glass-border);
  padding-top: 16px;
  margin-top: 16px;
}

/* --- FOOTER --- */
.footer {
  padding: 60px 0 0;
  border-top: 1px solid var(--glass-border);
  background: var(--bg-secondary);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: var(--fire);
  filter: blur(1px);
}

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

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

.footer-brand { max-width: 350px; }

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.6;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

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

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--text-primary);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding: 24px 0;
  text-align: center;
}

.footer-legal {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- PAGE CONTENT --- */
.page-content {
  padding-top: var(--header-height);
  min-height: 80vh;
}

.page-hero {
  padding: 80px 0 40px;
  text-align: center;
  position: relative;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(249,115,22,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-inner { max-width: 700px; margin: 0 auto; position: relative; }

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 16px;
}

.page-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.page-section {
  padding: 40px 0 var(--space-section);
}

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

.content-card:hover {
  border-color: rgba(249,115,22,0.15);
}

.content-card:last-child { margin-bottom: 0; }

.content-card h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

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

.content-card p:last-child { margin-bottom: 0; }

.content-list {
  list-style: none;
  padding: 0;
}

.content-list li {
  padding: 8px 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal-content h2 {
  margin-top: 32px;
  font-size: 1.3rem;
}

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

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

.legal-content ul li {
  color: var(--text-muted);
  line-height: 1.8;
  padding: 2px 0;
}

.legal-content a {
  color: var(--fire-start);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover { color: var(--fire-end); }

/* VALUES GRID */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}

@media (max-width: 640px) {
  .values-grid { grid-template-columns: 1fr; }
}

.value-item {
  padding: 28px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.value-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--fire);
  transition: height 0.3s;
  border-radius: 0 2px 2px 0;
}

.value-item:hover::before {
  height: 100%;
}

.value-item:hover {
  transform: translateY(-2px);
  border-color: rgba(249,115,22,0.2);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

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

.value-item h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.value-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* --- CONTACT --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

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

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

.form-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--fire-start);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
  background: rgba(255,255,255,0.06);
}

.form-input::placeholder { color: var(--text-muted); }

.form-select {
  cursor: pointer;
  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 d='M6 8L1 3h10z' fill='%236b7280'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

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

.form-success {
  text-align: center;
  padding: 40px;
}

.form-success-icon { font-size: 3rem; margin-bottom: 16px; }
.form-success h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 8px; }
.form-success p { color: var(--text-muted); }

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

.contact-method {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--glass-border);
}

.contact-method:last-child { border-bottom: none; padding-bottom: 0; }
.contact-method:first-of-type { padding-top: 0; }

.contact-method-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(249,115,22,0.1);
  border-radius: 12px;
}

.contact-method h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-method p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* --- ANIMATIONS --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: var(--delay, 0s);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(249,115,22,0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(249,115,22,0.5); }

/* --- SELECTION --- */
::selection {
  background: rgba(249,115,22,0.3);
  color: var(--text-primary);
}

/* --- FOCUS VISIBLE --- */
*:focus-visible {
  outline: 2px solid var(--fire-start);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- RESPONSIVE UTILITIES --- */
@media (max-width: 640px) {
  .content-card { padding: 24px; }
  .cta-card { padding: 48px 24px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 280px; }
  .game-controls { flex-direction: column; align-items: center; }
  .torch-container { display: none; }
  .kites-container { display: none; }
  .temple-silhouette { height: 200px; }
}

@media (max-width: 768px) {
  .lantern-3, .lantern-4, .lantern-5, .lantern-6 { display: none; }
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
  html { scroll-behavior: auto; }
}