
/* ============================================================
   GEMLIGHT EMPRESS — Design tokens
   Signature element: the "Coronation Line" — a faceted gem-cut
   divider (clip-path chevrons) recurring between every section,
   standing in for a kingdom's border on a map.
   ============================================================ */
:root{
  --royal-purple:#6B46FF;
  --sapphire:#3B82F6;
  --emerald:#22C55E;
  --gold:#F5C542;
  --bg-soft:#FDFBF5;
  --midnight:#101C44;

  --purple-rgb:107,70,255;
  --sapphire-rgb:59,130,246;
  --emerald-rgb:34,197,94;
  --gold-rgb:245,197,66;
  --midnight-rgb:16,28,68;

  --ink: var(--midnight);
  --ink-soft: #4A5580;
  --surface: #FFFDF9;
  --surface-glass: rgba(255,255,255,0.55);
  --surface-glass-border: rgba(255,255,255,0.75);
  --page-bg: var(--bg-soft);

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

  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;

  --shadow-glow-purple: 0 8px 40px -8px rgba(var(--purple-rgb),0.35);
  --shadow-glow-gold: 0 8px 30px -6px rgba(var(--gold-rgb),0.45);
  --shadow-soft: 0 20px 60px -20px rgba(16,28,68,0.25);

  --ease-royal: cubic-bezier(.22,1,.36,1);
}

[data-theme="dark"]{
  --ink:#F3F0FF;
  --ink-soft:#B9C0E8;
  --surface: #17224F;
  --surface-glass: rgba(23,34,79,0.55);
  --surface-glass-border: rgba(255,255,255,0.12);
  --page-bg: #0B1230;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; overflow-x:hidden; width:100%; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

body{
  margin:0;
  font-family:var(--font-body);
  background:var(--page-bg);
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  transition:background .5s var(--ease-royal), color .5s var(--ease-royal);
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3,h4{ font-family:var(--font-display); margin:0; letter-spacing:.01em; }

/* ---------- Cycling color showcase for select headings ---------- */
#about .section-title, #why .section-title, #explore-circle .section-title, .legal-content .section-title{
  animation:titleColorCycle 24s ease-in-out infinite;
}
@keyframes titleColorCycle{
  0%{   color:#6B46FF; text-shadow:0 0 24px rgba(107,70,255,.8), 0 0 50px rgba(107,70,255,.5); }
  8%{   color:#E63946; text-shadow:0 0 24px rgba(230,57,70,.8), 0 0 50px rgba(230,57,70,.5); }
  17%{   color:#F5C542; text-shadow:0 0 24px rgba(245,197,66,.8), 0 0 50px rgba(245,197,66,.5); }
  25%{   color:#22C55E; text-shadow:0 0 24px rgba(34,197,94,.8), 0 0 50px rgba(34,197,94,.5); }
  33%{   color:#3B82F6; text-shadow:0 0 24px rgba(59,130,246,.8), 0 0 50px rgba(59,130,246,.5); }
  42%{   color:#EC4899; text-shadow:0 0 24px rgba(236,72,153,.8), 0 0 50px rgba(236,72,153,.5); }
  50%{   color:#F97316; text-shadow:0 0 24px rgba(249,115,22,.8), 0 0 50px rgba(249,115,22,.5); }
  58%{   color:#14B8A6; text-shadow:0 0 24px rgba(20,184,166,.8), 0 0 50px rgba(20,184,166,.5); }
  67%{   color:#A855F7; text-shadow:0 0 24px rgba(168,85,247,.8), 0 0 50px rgba(168,85,247,.5); }
  75%{   color:#EF4444; text-shadow:0 0 24px rgba(239,68,68,.8), 0 0 50px rgba(239,68,68,.5); }
  83%{   color:#06B6D4; text-shadow:0 0 24px rgba(6,182,212,.8), 0 0 50px rgba(6,182,212,.5); }
  92%{   color:#D946EF; text-shadow:0 0 24px rgba(217,70,239,.8), 0 0 50px rgba(217,70,239,.5); }
  100%{   color:#6B46FF; text-shadow:0 0 24px rgba(107,70,255,.8), 0 0 50px rgba(107,70,255,.5); }
}
@media (prefers-reduced-motion: reduce){
  #about .section-title, #why .section-title, #explore-circle .section-title, .legal-content .section-title{
    animation:none; color:var(--ink); text-shadow:none;
  }
}
p{ font-family:var(--font-body); color:#000; }
p{ margin:0; }
button{ font-family:inherit; cursor:pointer; }

.container{ width:min(1200px, 92vw); margin-inline:auto; }
.eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--font-alt); font-size:.8rem; letter-spacing:.22em; text-transform:uppercase;
  color:var(--royal-purple);
}
[data-theme="dark"] .eyebrow{ color:#B79CFF; }
.eyebrow::before{
  content:""; width:26px; height:2px; background:linear-gradient(90deg, var(--gold), transparent);
}

:focus-visible{ outline:3px solid var(--gold); outline-offset:3px; border-radius:6px; }

/* ---------- Coronation Line divider (signature) ---------- */
.coronation-line{
  width:100%; height:34px;
  --c1: var(--royal-purple); --c2: var(--sapphire);
  background:
    linear-gradient(135deg, var(--c1) 25%, transparent 25.5%) 0 0,
    linear-gradient(-135deg, var(--c2) 25%, transparent 25.5%) 0 0;
  background-size:34px 34px;
  background-color:transparent;
  opacity:.35;
  position:relative;
}

/* ---------- Skip link ---------- */
.skip-link{
  position:absolute; left:-999px; top:0; background:var(--midnight); color:#fff; padding:12px 20px; z-index:999; border-radius:0 0 10px 0;
}
.skip-link:focus{ left:0; }

/* ============ NAV ============ */
.site-nav{
  position:fixed; top:0; left:0; right:0; z-index:200;
  padding:16px 0;
  transition:background .4s var(--ease-royal), backdrop-filter .4s, box-shadow .4s, padding .3s;
}
.site-nav.scrolled{
  background:var(--surface-glass);
  backdrop-filter:blur(18px) saturate(160%);
  -webkit-backdrop-filter:blur(18px) saturate(160%);
  box-shadow:0 8px 32px -12px rgba(16,28,68,0.18);
  padding:10px 0;
  border-bottom:1px solid var(--surface-glass-border);
}
.nav-inner{ display:flex; align-items:center; justify-content:space-between; gap:20px; }
.brand{ display:flex; align-items:center; gap:14px; font-family:var(--font-display); font-weight:700; font-size:1.12rem; color:var(--ink); }
.brand-badge{
  width:96px; height:96px; overflow:hidden; flex:none;
}
.brand-badge img{ width:100%; height:100%; object-fit:contain; }
.nav-links{ display:flex; align-items:center; gap:34px; list-style:none; margin:0 0 0 auto; padding:0; }
.nav-links a{
  font-size:.92rem; font-weight:500; color:#000; position:relative; padding:4px 0;
  transition:color .3s;
}
.nav-links a::after{
  content:""; position:absolute; left:0; bottom:-2px; width:0; height:2px;
  background:linear-gradient(90deg,var(--gold),var(--royal-purple)); transition:width .35s var(--ease-royal);
}
.nav-links a:hover, .nav-links a:focus-visible, .nav-links a.active{ color:var(--royal-purple); }
.nav-links a:hover::after, .nav-links a:focus-visible::after, .nav-links a.active::after{ width:100%; }
[data-theme="dark"] .nav-links a:hover, [data-theme="dark"] .nav-links a.active{ color:var(--gold); }

.nav-actions{ display:flex; align-items:center; gap:14px; }
.theme-toggle{
  width:42px; height:42px; border-radius:50%; border:1px solid var(--surface-glass-border);
  background:var(--surface-glass); backdrop-filter:blur(10px); display:flex; align-items:center; justify-content:center;
  transition:transform .35s var(--ease-royal), box-shadow .35s;
}
.theme-toggle:hover{ transform:rotate(20deg) scale(1.08); box-shadow:var(--shadow-glow-gold); }
.theme-toggle svg{ width:19px; height:19px; }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:13px 28px; border-radius:999px; font-weight:600; font-size:.92rem; border:none;
  transition:transform .35s var(--ease-royal), box-shadow .35s var(--ease-royal), background .35s;
  white-space:nowrap;
}
.btn-primary{
  background:linear-gradient(120deg, var(--royal-purple), var(--sapphire));
  color:#fff; box-shadow:var(--shadow-glow-purple);
}
.btn-primary:hover{ transform:translateY(-3px); box-shadow:0 16px 45px -10px rgba(var(--purple-rgb),.55); }
.play-crowns-btn{
  display:inline-block; width:min(420px, 100%);
  padding-left:56px;
  filter:drop-shadow(0 10px 26px rgba(0,0,0,.35));
  transition:transform .3s var(--ease-royal), filter .3s var(--ease-royal);
}
.play-crowns-btn img{ width:100%; height:auto; display:block; }
.play-crowns-btn:hover{ transform:translateY(-4px) scale(1.03); filter:drop-shadow(0 16px 34px rgba(34,120,70,.5)); }
.btn-secondary{
  background:var(--surface-glass); color:var(--ink); border:1px solid var(--surface-glass-border); backdrop-filter:blur(10px);
}
.btn-secondary:hover{ transform:translateY(-3px); border-color:var(--gold); box-shadow:var(--shadow-glow-gold); }
.btn-gold{
  background:linear-gradient(120deg,var(--gold),#ffdd88); color:var(--midnight); box-shadow:var(--shadow-glow-gold);
}
.btn-gold:hover{ transform:translateY(-3px); }
.btn-ghost-light{
  background:rgba(255,255,255,.12); color:#fff; border:1px solid rgba(255,255,255,.4); backdrop-filter:blur(10px);
}
.btn-ghost-light:hover{ transform:translateY(-3px); background:rgba(255,255,255,.2); }

.hamburger{
  display:none; width:48px; height:48px; border-radius:12px; border:1px solid var(--surface-glass-border);
  background:var(--surface-glass); align-items:center; justify-content:center; flex-direction:column; gap:5px;
}
.hamburger span{ width:20px; height:2px; background:var(--ink); border-radius:2px; transition:transform .3s, opacity .3s; }
.hamburger.open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2){ opacity:0; }
.hamburger.open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

.mobile-menu{
  position:fixed; inset:0 0 auto 0; top:0; z-index:190;
  background:var(--page-bg); padding:100px 8vw 40px; transform:translateY(-110%);
  transition:transform .45s var(--ease-royal); display:flex; flex-direction:column; gap:26px;
}
.mobile-menu.open{ transform:translateY(0); }
.mobile-menu a{ font-family:var(--font-display); font-size:1.4rem; color:var(--ink); }
.mobile-menu .btn{ margin-top:10px; align-self:flex-start; }

/* ============ HERO (key-art banner) ============ */
.hero{
  position:relative; aspect-ratio:16/9; width:100%; display:flex; align-items:flex-end; justify-content:center; overflow:visible;
  padding-top:clamp(90px, 14vw, 120px); padding-bottom:clamp(50px, 9vw, 90px);
  background-image:url('assets/banner.png');
  background-size:cover; background-position:center;
}

.hero-inner{ position:relative; z-index:5; max-width:640px; margin-inline:auto; text-align:center; }
.hero-copy .eyebrow{ margin-bottom:18px; color:var(--royal-purple); }
.hero-copy .eyebrow::before{ background:linear-gradient(90deg, var(--gold), transparent); }
.hero-title{
  font-size:clamp(1.7rem, 6.4vw, 4.6rem); line-height:1.04; font-weight:800; color:#fff;
  white-space:nowrap;
  text-shadow:0 0 14px rgba(var(--purple-rgb),.85), 0 0 34px rgba(var(--purple-rgb),.55), 0 4px 14px rgba(0,0,0,.4);
}
.hero-tagline{
  font-family:serif, var(--font-alt); font-style:italic; font-weight:400; font-size:clamp(1.3rem,2.6vw,2rem); color:#fff;
  margin-top:10px;
  letter-spacing:.02em;
  text-shadow:0 0 14px rgba(var(--purple-rgb),.85), 0 0 34px rgba(var(--purple-rgb),.55), 0 4px 14px rgba(0,0,0,.4);
}
.hero-desc{
  margin-top:22px; max-width:52ch; font-size:1.05rem; line-height:1.75; color:var(--ink-soft);
}

/* Small page hero (used on Games page) */
.page-hero{
  position:relative; padding:150px 0 90px; overflow:hidden;
  background:var(--page-bg);
}
.page-hero .container{ position:relative; z-index:2; text-align:center; }
.page-hero .eyebrow{ justify-content:center; color:var(--royal-purple); }
.page-hero .eyebrow::before{ display:none; }
.page-hero h1{ color:var(--ink); font-size:clamp(2.3rem,5vw,3.6rem); margin-top:14px; }
.page-hero .hero-tagline{ justify-content:center; display:block; text-align:center; color:#fff; }
.page-hero p.lede{ color:#000; max-width:56ch; margin:18px auto 0; font-size:1.05rem; line-height:1.75; }
.hero-ctas{ display:flex; flex-wrap:wrap; gap:16px; margin-top:36px; }

.scroll-cue{
  position:absolute; bottom:26px; left:50%; transform:translateX(-50%); z-index:5;
  display:flex; flex-direction:column; align-items:center; gap:8px; color:rgba(255,255,255,.8); font-size:.78rem;
  letter-spacing:.15em; text-transform:uppercase;
}
.scroll-cue .stem{ width:1px; height:34px; background:linear-gradient(var(--gold), transparent); animation:scrollCue 2s ease-in-out infinite; }
@keyframes scrollCue{ 0%{ transform:scaleY(.4); opacity:.4; } 50%{ transform:scaleY(1); opacity:1; } 100%{ transform:scaleY(.4); opacity:.4; } }

.floaty{ animation:floaty 6s ease-in-out infinite; }
.floaty-slow{ animation:floaty 9s ease-in-out infinite; }
.floaty-rev{ animation:floaty 7s ease-in-out infinite reverse; }
@keyframes floaty{ 0%,100%{ transform:translateY(0px); } 50%{ transform:translateY(-16px); } }


/* ============ SECTION SHELL ============ */
section{ position:relative; padding:120px 0; }
#why{ padding-bottom:40px; }
#our-games{ padding-top:40px; }
#explore-circle .section-lede{ margin-top:8px; }
#games-grid{ padding-top:150px; }
.section-head{ max-width:700px; margin-bottom:56px; }
.section-head.center{ max-width:640px; margin-inline:auto; text-align:center; }
.section-head.center .eyebrow{ justify-content:center; }
.section-title{ font-size:clamp(2rem,4vw,2.9rem); margin-top:14px; }
.section-lede{ margin-top:16px; color:#000; font-size:1.05rem; line-height:1.75; max-width:60ch; }
.section-head.center .section-lede{ margin-inline:auto; }

.reveal{ opacity:0; transform:translateY(36px); transition:opacity .9s var(--ease-royal), transform .9s var(--ease-royal); }
.reveal.in-view{ opacity:1; transform:translateY(0); }
.reveal-scale{ opacity:0; transform:scale(.92); transition:opacity .8s var(--ease-royal), transform .8s var(--ease-royal); }
.reveal-scale.in-view{ opacity:1; transform:scale(1); }

/* ============ ABOUT ============ */
.about{ overflow:hidden; }
.about-grid{ display:grid; grid-template-columns:.95fr 1.05fr; gap:64px; align-items:center; }
.about-art{
  position:relative;
  display:flex; align-items:center; justify-content:center;
}
.about-logo{
  width:80%; max-width:380px; object-fit:contain;
  filter:drop-shadow(0 24px 50px rgba(var(--purple-rgb),.35));
  transform:scale(.7); opacity:0;
  transition:transform 1s var(--ease-royal), opacity 1s var(--ease-royal);
}
.about-art.reveal-scale.in-view .about-logo{ transform:scale(1); opacity:1; }
.about-logo.loop{ animation:logoBreathe 3.4s ease-in-out infinite; }
@keyframes logoBreathe{ 0%,100%{ transform:scale(1); } 50%{ transform:scale(1.12); } }
@media (prefers-reduced-motion: reduce){
  .about-logo.loop{ animation:none; }
}
.about-copy p{ color:#000; font-size:1.05rem; line-height:1.85; margin-top:18px; }
.about-stats-row{ display:flex; gap:36px; margin-top:34px; flex-wrap:wrap; }
.about-stat b{ display:block; font-family:var(--font-display); font-size:1.7rem; color:var(--royal-purple); }
[data-theme="dark"] .about-stat b{ color:#B79CFF; }
.about-stat span{ font-size:.82rem; color:var(--ink-soft); }

/* ============ VISION / MISSION ============ */
.vm-grid{ display:grid; grid-template-columns:1fr 1fr; gap:32px; }
.glass-card{
  background:var(--surface-glass); border:1px solid var(--surface-glass-border);
  backdrop-filter:blur(16px) saturate(140%); -webkit-backdrop-filter:blur(16px) saturate(140%);
  border-radius:var(--radius-lg); padding:40px; box-shadow:var(--shadow-soft);
  position:relative; overflow:hidden;
}
.glass-card::before{
  content:""; position:absolute; top:-40%; right:-30%; width:60%; height:120%;
  background:radial-gradient(circle, rgba(var(--gold-rgb),.25), transparent 65%); pointer-events:none;
}
.glass-card h3{ font-size:1.4rem; display:flex; align-items:center; gap:12px; }
.glass-card h3 .ic{ width:34px; height:34px; flex:none; }
.glass-card p, .glass-card li{ color:var(--ink-soft); line-height:1.8; }
.vm-list{ list-style:none; margin:18px 0 0; padding:0; display:flex; flex-direction:column; gap:12px; }
.vm-list li{ display:flex; gap:12px; align-items:flex-start; }
.vm-list li::before{
  content:""; width:8px; height:8px; margin-top:8px; flex:none; border-radius:2px;
  background:linear-gradient(135deg, var(--gold), var(--royal-purple)); transform:rotate(45deg);
}

/* ============ GAMES (grid + cards shared with games.html) ============ */
#games-grid{ padding-inline:4vw; }
.games-grid{ display:grid; grid-template-columns:repeat(4, 1fr); gap:26px; }
.games-grid.teaser{ grid-template-columns:repeat(3, 1fr); }
.game-card{
  border-radius:var(--radius-md); overflow:hidden; position:relative;
  background:var(--surface); border:1px solid var(--surface-glass-border);
  box-shadow:0 14px 40px -18px rgba(16,28,68,.3);
  transition:transform .5s var(--ease-royal), box-shadow .5s var(--ease-royal);
}
.game-card:hover{ transform:translateY(-10px); box-shadow:0 26px 60px -18px rgba(var(--purple-rgb),.45); }
.game-cover{ aspect-ratio:3/2; position:relative; overflow:hidden; background:var(--surface); }
.game-cover svg{ width:100%; height:100%; transition:transform .7s var(--ease-royal); }
.game-card:hover .game-cover svg{ transform:scale(1.08); }
.game-video{
  position:absolute; inset:0; width:100%; height:100%; object-fit:contain; z-index:1;
  opacity:1; transform:scale(1.1);
  clip-path:inset(0 100% 0 0);
  transition:clip-path 1.5s cubic-bezier(.65,0,.35,1), transform 1.7s var(--ease-royal);
}
.game-video.active{ clip-path:inset(0 0 0 0); transform:scale(1); z-index:2; }
.game-video.exiting{ clip-path:inset(0 0 0 100%); transform:scale(1.1); z-index:1; }
.game-card:hover .game-video.active{ transform:scale(1.06); }
@media (prefers-reduced-motion: reduce){
  .game-video{ transition:opacity .4s; clip-path:none !important; transform:none !important; opacity:0; }
  .game-video.active{ opacity:1; }
}
.game-card::after{
  content:""; position:absolute; inset:0; border-radius:var(--radius-md); padding:1px;
  background:linear-gradient(135deg, rgba(var(--gold-rgb),0), rgba(var(--gold-rgb),0));
  -webkit-mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude; pointer-events:none; transition:background .5s;
}
.game-card:hover::after{ background:linear-gradient(135deg, rgba(var(--gold-rgb),.9), rgba(var(--purple-rgb),.9)); }
.game-body{ padding:22px; }
.game-body h3{ font-size:1.15rem; }
.slice-logo-heading{
  position:relative; z-index:1;
  width:min(400px, 100%); height:auto;
  filter:drop-shadow(0 20px 40px rgba(var(--purple-rgb),.35));
  transform:scale(.7); opacity:0;
  transition:transform 1s var(--ease-royal), opacity 1s var(--ease-royal);
}
.slice-logo-heading.in-view{ opacity:1; transform:scale(1); }
.slice-logo-heading.loop{ animation:logoBreathe 3.4s ease-in-out infinite; }
.slice-logo-heading.card-size{ width:min(200px, 100%); margin-bottom:4px; opacity:1; transform:none; filter:none; }
.game-body p{ margin-top:8px; color:#000; font-size:.9rem; line-height:1.6; min-height:44px; }
.game-play{
  margin-top:16px; display:inline-flex; align-items:center; gap:8px; font-weight:600; font-size:.88rem; color:var(--royal-purple);
}
[data-theme="dark"] .game-play{ color:#B79CFF; }
.game-play svg{ width:16px; height:16px; transition:transform .3s var(--ease-royal); }
.game-card:hover .game-play svg{ transform:translateX(4px); }
.badge-soon{
  position:absolute; top:14px; right:14px; z-index:2; background:rgba(var(--midnight-rgb),.75); color:#fff;
  font-size:.68rem; letter-spacing:.1em; text-transform:uppercase; padding:6px 12px; border-radius:999px; backdrop-filter:blur(6px);
}
.games-cta{ text-align:center; margin-top:48px; }

/* ============ WHY CHOOSE US ============ */
.why-marquee{
  overflow-x:hidden; overflow-y:visible; width:100%;
  padding:16px 0 24px;
  -webkit-mask-image:linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image:linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.why-track{ display:flex; gap:26px; width:max-content; animation:whyScroll 28s linear infinite; }
.why-marquee:hover .why-track{ animation-play-state:paused; }
@keyframes whyScroll{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }
@media (prefers-reduced-motion: reduce){
  .why-track{ animation:none; }
}
.why-card{
  width:260px; flex:none; border-radius:var(--radius-md); overflow:hidden; text-align:left;
  background:var(--surface); border:1px solid var(--surface-glass-border);
  transition:transform .45s var(--ease-royal), box-shadow .45s var(--ease-royal), border-color .45s;
}
.why-card:hover{ transform:translateY(-8px); box-shadow:var(--shadow-glow-purple); border-color:rgba(var(--purple-rgb),.5); }
.why-icon{ width:100%; aspect-ratio:1/1; overflow:hidden; }
.why-icon img{ width:100%; height:100%; object-fit:cover; display:block; }
.why-card p{ margin:18px 22px 26px; color:#000; font-family:var(--font-body); font-size:.95rem; line-height:1.65; }

/* ============ STATS ============ */
.stats-section{
  background:linear-gradient(120deg, var(--midnight), #1B2A63 55%, var(--royal-purple));
  color:#fff; overflow:hidden; position:relative;
}
.stats-section .eyebrow{ color:var(--gold); }
.stats-section .eyebrow::before{ background:linear-gradient(90deg,var(--gold),transparent); }
.stats-section .section-title{ color:#fff; }
.stats-section .section-lede{ color:rgba(255,255,255,.72); }
.stats-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; margin-top:20px; }
.stat-card{
  padding:34px 22px; border-radius:var(--radius-md); text-align:center;
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.14); backdrop-filter:blur(8px);
}
.stat-num{ font-family:var(--font-display); font-size:clamp(2.1rem,4vw,2.8rem); color:var(--gold); }
.stat-label{ margin-top:8px; font-size:.85rem; letter-spacing:.05em; color:rgba(255,255,255,.75); }
.stats-glow{
  position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(50% 60% at 20% 20%, rgba(var(--emerald-rgb),.18), transparent 60%),
             radial-gradient(50% 60% at 85% 80%, rgba(var(--gold-rgb),.18), transparent 60%);
}

/* ============ DOWNLOAD ============ */
.download-section{ overflow:visible; }
.download-grid{ display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center; }
.download-art{ position:relative; display:flex; align-items:center; justify-content:center; }
.game-icon-showcase{ position:relative; z-index:1; }
.download-badges{ display:flex; gap:16px; margin-top:30px; margin-left:18px; flex-wrap:wrap; }
.store-badge{
  display:flex; align-items:center; gap:12px; padding:13px 22px; border-radius:16px;
  background:var(--midnight); color:#fff; transition:transform .35s var(--ease-royal), box-shadow .35s;
}
.store-badge:hover{ transform:translateY(-4px); box-shadow:var(--shadow-glow-purple); }
.store-badge.disabled{ opacity:.55; cursor:not-allowed; }
.store-badge svg{ width:26px; height:26px; }
.store-badge .sb-text{ display:flex; flex-direction:column; line-height:1.25; }
.store-badge .sb-text small{ font-size:.65rem; letter-spacing:.08em; text-transform:uppercase; opacity:.75; }
.store-badge .sb-text strong{ font-size:1.02rem; font-family:var(--font-alt); }
.download-art svg{ width:100%; filter:drop-shadow(0 26px 55px rgba(var(--purple-rgb),.3)); }
.game-icon-showcase{
  width:min(300px, 60%); margin-inline:auto; border-radius:34px;
  filter:drop-shadow(0 26px 55px rgba(var(--purple-rgb),.3));
  opacity:0; transform:translateX(140px) scale(1.18);
  transition:opacity 1.1s var(--ease-royal), transform 1.1s var(--ease-royal), filter .5s var(--ease-royal);
}
.game-icon-showcase.in-view{ opacity:1; transform:translateX(0) scale(1); }
.game-icon-showcase.in-view:hover{
  transform:translateX(0) translateY(-10px) scale(1.05);
  filter:drop-shadow(0 30px 60px rgba(var(--purple-rgb),.4)) drop-shadow(0 0 40px rgba(var(--purple-rgb),.5));
}
@media (prefers-reduced-motion: reduce){
  .game-icon-showcase{ transition:opacity .4s; }
}

/* ============ CONTACT ============ */
.contact-grid{ display:grid; grid-template-columns:.85fr 1.15fr; gap:48px; }
.contact-info-card{ padding:38px; }
.contact-row{ display:flex; align-items:center; gap:14px; margin-top:20px; }
.contact-row .ic-wrap{
  width:44px; height:44px; border-radius:12px; display:flex; align-items:center; justify-content:center; flex:none;
  background:linear-gradient(135deg, rgba(var(--purple-rgb),.15), rgba(var(--sapphire-rgb),.18));
}
.contact-row .ic-wrap svg{ width:20px; height:20px; }
.social-row{ display:flex; gap:12px; margin-top:26px; }
.social-btn{
  width:42px; height:42px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:var(--surface-glass); border:1px solid var(--surface-glass-border);
  transition:transform .35s var(--ease-royal), background .35s;
}
.social-btn:hover{ transform:translateY(-4px) scale(1.05); background:linear-gradient(135deg,var(--royal-purple),var(--sapphire)); color:#fff; }
.social-btn svg{ width:18px; height:18px; }

.contact-form{ padding:38px; display:flex; flex-direction:column; gap:18px; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.field{ display:flex; flex-direction:column; gap:8px; }
.field label{ font-size:.82rem; font-weight:600; color:var(--ink-soft); }
.field-hint{ font-size:.82rem; color:var(--ink-soft); margin:-2px 0 0; }
.field input, .field textarea{
  border-radius:14px; border:1px solid var(--surface-glass-border); background:rgba(255,255,255,.6);
  padding:13px 16px; font-family:inherit; font-size:.94rem; color:var(--ink); transition:border-color .3s, box-shadow .3s;
}
[data-theme="dark"] .field input, [data-theme="dark"] .field textarea{ background:rgba(255,255,255,.05); color:var(--ink); }
.field input:focus, .field textarea:focus{ border-color:var(--royal-purple); box-shadow:0 0 0 4px rgba(var(--purple-rgb),.15); outline:none; }
.field textarea{ resize:vertical; min-height:120px; }
.form-note{ font-size:.8rem; color:var(--ink-soft); }
.form-success{
  display:none; align-items:center; gap:10px; padding:14px 18px; border-radius:14px;
  background:rgba(var(--emerald-rgb),.12); color:#178A45; font-size:.9rem; font-weight:500;
}
[data-theme="dark"] .form-success{ color:#6EE7A6; }
.form-success.show{ display:flex; }

/* ============ EXPLORE CROWN'S CIRCLE ============ */

/* ============ TERMS ACCEPTANCE MODAL ============ */
.terms-modal{
  position:fixed; inset:0; z-index:10000; display:flex; align-items:center; justify-content:center;
  padding:20px; background:rgba(11,18,48,.72); backdrop-filter:blur(6px);
  opacity:0; visibility:hidden; transition:opacity .4s var(--ease-royal), visibility .4s var(--ease-royal);
}
.terms-modal.show{ opacity:1; visibility:visible; }
.terms-modal-card{
  max-width:320px; width:100%; text-align:center; padding:26px 22px;
  background:var(--surface); border-radius:var(--radius-md); border:1px solid var(--surface-glass-border);
  box-shadow:0 14px 40px -18px rgba(16,28,68,.3);
  transform:scale(.9) translateY(20px); transition:transform .4s var(--ease-royal);
}
.terms-modal.show .terms-modal-card{ transform:scale(1) translateY(0); }
.terms-modal .terms-modal-logo{ width:56px; height:56px; margin:0 auto 12px; }
.terms-modal-card h2{ font-size:1.1rem; color:var(--ink); }
.terms-modal-card p{ margin-top:10px; color:var(--ink-soft); font-size:.85rem; line-height:1.6; }
.terms-modal-card a{ color:var(--royal-purple); text-decoration:underline; }
.terms-modal-card .btn{ margin-top:18px; width:100%; justify-content:center; padding:11px 22px; font-size:.85rem; }

/* ============ LEGAL / SUPPORT PAGES ============ */
.support-form{
  display:flex; flex-direction:column; gap:20px; margin-top:32px;
  padding:28px; border-radius:20px; border:2px solid rgba(var(--purple-rgb),.25); background:rgba(255,255,255,.5);
  box-shadow:0 10px 34px -14px rgba(var(--purple-rgb),.35);
}
.support-form .field input, .support-form .field textarea{
  width:100%; padding:13px 16px; border-radius:12px; border:2px solid rgba(var(--purple-rgb),.3);
  background:#fff; color:var(--ink); font-family:var(--font-body); font-size:.95rem; resize:vertical;
}
.support-form .field input[type="file"]{ padding:10px; border-style:dashed; }
.support-form .btn{ align-self:flex-start; }
.form-status-message{
  text-align:left; margin-top:16px; color:var(--emerald); font-weight:600;
  opacity:0; max-height:0; overflow:hidden; transition:opacity .4s, max-height .4s;
}
.form-status-message.show{ opacity:1; max-height:60px; }
.legal-page{ padding-top:160px; padding-bottom:100px; }
.legal-content{ max-width:760px; }
.legal-content .eyebrow{ margin-bottom:16px; }
.legal-content .section-title{ font-size:clamp(2rem,4vw,2.8rem); }
.legal-updated{ margin-top:10px; color:var(--ink-soft); font-size:.85rem; font-style:italic; }
.legal-notice{
  margin-top:24px; padding:16px 20px; border-radius:14px; background:rgba(var(--gold-rgb),.12);
  border:1px solid rgba(var(--gold-rgb),.35); font-size:.88rem; color:var(--ink-soft); line-height:1.7;
}
.legal-content > p{ margin-top:20px; line-height:1.8; }
.legal-content h2{ margin-top:44px; font-size:1.35rem; color:var(--royal-purple); }
.legal-content h3{ margin-top:28px; font-size:1.08rem; color:var(--ink); }
.legal-content h2 + p, .legal-content h3 + p{ margin-top:12px; }
.legal-content ul{ margin-top:14px; padding-left:22px; line-height:1.8; }
.legal-content li{ margin-top:8px; }
.legal-content a{ color:#2563EB; text-decoration:underline; text-underline-offset:2px; }
.legal-content a:hover{ color:var(--gold); }
@media (max-width:640px){
  .legal-page{ padding-top:130px; }
}

/* ============ FOOTER ============ */
.site-footer{ background:var(--midnight); color:rgba(255,255,255,.85); padding:70px 0 30px; position:relative; overflow:hidden; }
.footer-grid-v2{ display:grid; grid-template-columns:minmax(0,340px) auto auto auto; gap:26px; align-items:start; text-align:left; padding-inline:4vw; }
.footer-brand{ display:flex; align-items:center; gap:12px; font-family:var(--font-display); font-size:1.2rem; color:#fff; }
.footer-brand-text{ display:flex; flex-direction:column; }
.footer-tagline{ margin-top:2px; color:var(--gold); font-family:var(--font-alt); font-size:.95rem; text-align:left; }
.footer-desc{ margin-top:14px; color:rgba(255,255,255,.6); font-size:.88rem; line-height:1.7; max-width:38ch; }
.footer-col-center{ display:flex; justify-content:center; padding-top:6px; }
.footer-col-legal{ display:flex; justify-content:center; padding-top:6px; }
.footer-links{ display:flex; flex-direction:column; gap:14px; list-style:none; margin:0; padding:0; }
.footer-links a{ color:rgba(255,255,255,.75); font-size:.9rem; text-decoration:none; transition:color .25s; }
.footer-links a:hover, .footer-links a:focus-visible{ color:var(--gold); }
.footer-col-right{ display:flex; flex-direction:column; align-items:flex-start; padding-top:6px; }
.footer-social{ display:flex; gap:14px; }
.footer-social-label{ font-family:var(--font-alt); font-size:.85rem; color:rgba(255,255,255,.75); margin-bottom:12px; }
.footer-social a{
  width:48px; height:48px; border-radius:50%; flex:none;
  display:flex; align-items:center; justify-content:center; color:#fff;
  box-shadow:0 4px 14px -4px rgba(0,0,0,.5);
  transition:transform .25s, box-shadow .25s, filter .25s;
}
.footer-social a[aria-label*="Facebook"]{ background:#1877F2; }
.footer-social a[aria-label*="Instagram"]{
  background:radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.footer-social a:hover, .footer-social a:focus-visible{ transform:translateY(-3px); filter:brightness(1.12); box-shadow:0 10px 24px -6px rgba(0,0,0,.6); }
.footer-social svg{ width:20px; height:20px; }
.footer-bottom{ display:flex; justify-content:center; align-items:center; padding-top:26px; flex-wrap:wrap; gap:14px; border-top:1px solid rgba(255,255,255,.12); margin-top:40px; }
.footer-bottom p{ font-size:.8rem; color:rgba(255,255,255,.5); }

@media (max-width:900px){
  .footer-grid-v2{ grid-template-columns:1fr; text-align:center; justify-items:center; }
  .footer-col-center, .footer-col-legal, .footer-col-right{ justify-content:center; align-items:center; }
  .footer-desc{ margin-inline:auto; }
  .footer-brand{ flex-direction:column; }
}

/* ============ RESPONSIVE ============ */
@media (max-width:1080px){
  .games-grid{ grid-template-columns:repeat(2,1fr); }
  .games-grid.teaser{ grid-template-columns:repeat(2,1fr); }
  .stats-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:900px){
  .nav-links{ display:none; }
  .hamburger{ display:flex; }
  .about-grid, .vm-grid, .download-grid, .contact-grid{ grid-template-columns:1fr; }
  .about-art{ order:-1; max-width:340px; margin:0 auto 20px; }
  .form-row{ grid-template-columns:1fr; }
}
@media (max-width:900px){
  /* Mobile-only: center play button */
  .download-badges{ justify-content:center; margin-left:0; }
  .play-crowns-btn{ padding-left:0; }

  /* Mobile-only: tighten gaps between sections */
  #about{ padding-bottom:6px; }
  #why{ padding-top:6px; padding-bottom:6px; }
  #explore-circle{ padding-top:6px; padding-bottom:6px; }
  #our-games{ padding-top:6px; }

  /* Mobile-only: keep SK icon zoom within the viewport */
  .game-icon-showcase{ transform:translateX(12px) scale(1.02); }
  .game-icon-showcase.in-view:hover{ transform:translateX(0) translateY(-4px) scale(1.01); }
}
@media (max-width:640px){
  section{ padding:88px 0; }
  .games-grid{ grid-template-columns:1fr; }
  .games-grid.teaser{ grid-template-columns:1fr; }
  .why-card{ width:210px; }
  .stats-grid{ grid-template-columns:1fr 1fr; }
  .about-stats-row{ gap:22px; }
  .page-hero{ padding:120px 0 60px; }
}
@media (max-width:480px){
  .btn{ width:100%; }
  .hero-ctas{ flex-direction:column; }
  .download-badges{ flex-direction:column; align-items:center; }
  .brand-badge{ width:64px; height:64px; }
  .section-title{ font-size:clamp(1.7rem,7vw,2.2rem); }
}
@media (max-width:360px){
  .container{ width:94vw; }
  .hero-title{ font-size:clamp(1.35rem,8.2vw,2.6rem); }
  .nav-inner{ gap:10px; }
}
@media (max-width:320px){
  .hero-title{ font-size:clamp(1.15rem,7.6vw,2.6rem); }
}
@media (min-width:1600px){
  .container{ width:min(1320px, 88vw); }
}

/* ---------- Page transition loader (shown when navigating between pages) ---------- */
.page-transition{
  position:fixed; inset:0; z-index:9999;
  background:var(--page-bg);
  display:flex; align-items:center; justify-content:center;
  opacity:1; visibility:visible;
  perspective:900px;
  transition:opacity .4s var(--ease-royal), visibility .4s var(--ease-royal);
}
.page-transition.hide{ opacity:0; visibility:hidden; pointer-events:none; }
.page-transition img{
  width:130px; height:130px; object-fit:contain;
  animation:logoFlipGrow 1.6s ease-in-out infinite;
}
@keyframes logoFlipGrow{
  0%{   transform:rotateY(0deg) scale(1); }
  30%{  transform:rotateY(360deg) scale(1); }
  60%{  transform:rotateY(720deg) scale(1); }
  75%{  transform:rotateY(720deg) scale(1.3); }
  85%{  transform:rotateY(720deg) scale(1.05); }
  100%{ transform:rotateY(720deg) scale(1.3); }
}
@media (prefers-reduced-motion: reduce){
  .page-transition img{ animation:none; }
}
