/* ============================================================================
   COSMIC GLUTTON — game micro-site theme
   Cinematic "Neon Cosmic" art direction: deep indigo→violet void, drifting
   stardust, warm amber/orange hero glow (the Glutton), with violet + cyan neon.
   Self-contained, standalone. Animated layers stay viewport-sized (GPU-safe;
   see the 16384px texture lesson) and respect prefers-reduced-motion.
   ============================================================================ */

:root {
  --void:    #06050E;
  --void-2:  #0B0A1C;
  --ink:     #0E0C22;
  --card:    rgba(28, 22, 56, 0.55);
  --card-2:  rgba(36, 28, 70, 0.6);
  --line:    rgba(176, 152, 255, 0.16);
  --line-2:  rgba(176, 152, 255, 0.30);

  --fg:      #F4F1FF;
  --muted:   #B6ADD8;
  --muted-2: #8479B0;

  --amber:   #FF9A2E;     /* the Glutton — primary */
  --amber-2: #FFC24A;
  --amber-d: #F57A10;
  --violet:  #A855F7;
  --magenta: #F45BD6;
  --cyan:    #34E1E8;
  --jade:    #46E5A0;

  --grad-amber: linear-gradient(110deg, #FFCD5B 0%, #FF8A1E 55%, #FF6A2A 100%);
  --grad-neon:  linear-gradient(110deg, var(--cyan) 0%, var(--violet) 55%, var(--magenta) 100%);

  --radius:  18px;
  --shell:   1240px;
  --ease:    cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: 'Orbitron', 'Space Grotesk', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font-body);
  background: var(--void);
  color: var(--fg);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

/* ── Cosmic backdrop (fixed, GPU-safe — viewport-sized layers) ─────────────── */
.cosmos {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(168,85,247,0.22), transparent 60%),
    radial-gradient(ellipse 70% 50% at 12% 18%, rgba(255,138,30,0.14), transparent 55%),
    radial-gradient(ellipse 60% 55% at 90% 30%, rgba(52,225,232,0.12), transparent 55%),
    radial-gradient(ellipse 80% 70% at 50% 110%, rgba(244,91,214,0.12), transparent 60%),
    linear-gradient(180deg, #06050E 0%, #0B0A1C 50%, #06050E 100%);
}
.cosmos::before {                          /* drifting star sheet */
  content: ''; position: absolute; inset: -50%;
  background-image:
    radial-gradient(1.4px 1.4px at 20% 30%, rgba(255,255,255,0.9), transparent),
    radial-gradient(1.2px 1.2px at 70% 60%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.6px 1.6px at 40% 80%, rgba(255,235,200,0.8), transparent),
    radial-gradient(1px 1px at 85% 20%, rgba(200,220,255,0.8), transparent),
    radial-gradient(1.3px 1.3px at 55% 45%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 10% 70%, rgba(255,255,255,0.7), transparent);
  background-size: 420px 420px, 560px 560px, 480px 480px, 600px 600px, 520px 520px, 500px 500px;
  opacity: 0.6; animation: twinkle 7s ease-in-out infinite;
}
@keyframes twinkle { 0%,100% { opacity: 0.45; } 50% { opacity: 0.75; } }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: rgba(255,154,46,0.32); color: #fff; }

.shell { width: min(var(--shell), calc(100% - 2.5rem)); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: 0.01em; }

.amber-text {
  background: var(--grad-amber); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.neon-text {
  background: var(--grad-neon); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ── Eyebrow ──────────────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; font-weight: 600;
  color: var(--amber-2); padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(255,154,46,0.3); background: rgba(255,154,46,0.07);
  box-shadow: 0 0 24px -8px rgba(255,154,46,0.5) inset;
}
.eyebrow.neon { color: var(--cyan); border-color: rgba(52,225,232,0.3); background: rgba(52,225,232,0.06); box-shadow: 0 0 24px -8px rgba(52,225,232,0.5) inset; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: 0.06em;
  padding: 16px 34px; border-radius: 999px; cursor: pointer; border: 1px solid transparent;
  transition: transform .2s var(--ease), box-shadow .3s var(--ease), filter .2s; white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; }
.btn-play {
  color: #2A1400; background: var(--grad-amber);
  box-shadow: 0 10px 34px -8px rgba(255,138,30,0.7), 0 0 0 1px rgba(255,205,91,0.4) inset;
  animation: playpulse 2.6s ease-in-out infinite;
}
.btn-play:hover { transform: translateY(-3px) scale(1.02); filter: brightness(1.08); box-shadow: 0 18px 48px -10px rgba(255,138,30,0.85); }
@keyframes playpulse { 0%,100% { box-shadow: 0 10px 34px -8px rgba(255,138,30,0.7), 0 0 0 1px rgba(255,205,91,0.4) inset; } 50% { box-shadow: 0 10px 46px -6px rgba(255,138,30,0.95), 0 0 0 1px rgba(255,205,91,0.6) inset; } }
.btn-ghost { color: var(--fg); background: rgba(176,152,255,0.06); border-color: var(--line-2); font-size: 15px; padding: 15px 28px; }
.btn-ghost:hover { background: rgba(176,152,255,0.14); border-color: var(--violet); transform: translateY(-2px); }

/* ── Header ───────────────────────────────────────────────────────────────── */
.cg-header { position: fixed; top: 0; left: 0; right: 0; z-index: 60; padding: 18px 0; transition: background .3s, backdrop-filter .3s, border-color .3s; border-bottom: 1px solid transparent; }
.cg-header.is-scrolled { background: rgba(8,7,18,0.72); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); border-bottom-color: var(--line); }
.cg-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cg-brand { display: flex; align-items: center; gap: 13px; }
.cg-brand img { width: 44px; height: 44px; filter: drop-shadow(0 0 14px rgba(255,154,46,0.6)); }
.cg-brand .wm { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: 0.16em; text-transform: uppercase; }
.cg-nav { display: flex; align-items: center; gap: 32px; }
.cg-nav a { font-size: 14px; letter-spacing: 0.04em; color: var(--muted); transition: color .2s, text-shadow .2s; }
.cg-nav a:hover { color: #fff; text-shadow: 0 0 16px rgba(168,85,247,0.8); }
.cg-header .header-cta { display: flex; align-items: center; gap: 14px; }
.cg-header .btn-play { font-size: 13px; padding: 11px 22px; animation: none; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 6px; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 130px 0 80px; overflow: hidden; }
.hero-glow { position: absolute; top: 38%; left: 50%; width: 620px; height: 620px; transform: translate(-50%,-50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(255,154,46,0.42), rgba(168,85,247,0.18) 45%, transparent 70%); filter: blur(30px); z-index: 0; animation: breathe 8s ease-in-out infinite; }
@keyframes breathe { 0%,100% { transform: translate(-50%,-50%) scale(1); opacity: .9; } 50% { transform: translate(-50%,-50%) scale(1.12); opacity: 1; } }
.hero-inner { position: relative; z-index: 2; }
.hero-mascot { width: clamp(150px, 22vw, 240px); margin: 0 auto 8px; filter: drop-shadow(0 14px 40px rgba(255,138,30,0.55)); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-18px) rotate(1.5deg); } }
.hero h1 {
  font-size: clamp(3rem, 11vw, 8.5rem); font-weight: 900; letter-spacing: 0.02em; line-height: 0.92;
  background: linear-gradient(100deg, #FFE08A 0%, #FF9A2E 45%, #FF6A2A 70%, #FFB347 100%);
  background-size: 220% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: 0 0 60px rgba(255,138,30,0.35); animation: shimmer 6s linear infinite; margin-bottom: 18px;
}
@keyframes shimmer { to { background-position: 220% center; } }
.hero .tagline { font-size: clamp(1.05rem, 2.1vw, 1.5rem); color: #E7DEFF; margin-bottom: 8px; font-weight: 500; }
.hero .tagline b { color: var(--amber-2); }
.hero .sub { font-family: var(--font-display); font-size: 12px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 32px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.hero-pills { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.pill { font-family: var(--font-display); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: rgba(176,152,255,0.04); }
.pill b { color: var(--cyan); }

/* ── Sections ─────────────────────────────────────────────────────────────── */
.section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }
.section-head { max-width: 720px; margin: 0 auto clamp(44px, 6vw, 70px); text-align: center; }
.section-head .eyebrow { margin-bottom: 22px; }
.section-head h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: clamp(1.02rem, 1.5vw, 1.2rem); }

/* ── Features ─────────────────────────────────────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card {
  position: relative; padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--card), rgba(14,12,34,0.5)); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; overflow: hidden;
}
.feature-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--grad-amber); opacity: 0; transition: opacity .3s; }
.feature-card:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: 0 30px 60px -30px rgba(168,85,247,0.5); }
.feature-card:hover::before { opacity: 1; }
.feature-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; font-size: 26px;
  background: radial-gradient(circle at 35% 30%, rgba(255,154,46,0.28), rgba(168,85,247,0.18)); border: 1px solid var(--line-2); }
.feature-card h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.18rem; margin-bottom: 9px; letter-spacing: 0; }
.feature-card p { color: var(--muted); font-size: 0.97rem; }

/* ── Planets / worlds ─────────────────────────────────────────────────────── */
.planet-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 26px 18px; }
.planet-card { text-align: center; cursor: default; }
.planet-orb { position: relative; width: 100%; max-width: 160px; aspect-ratio: 1; margin: 0 auto 14px; border-radius: 50%; overflow: hidden;
  border: 1px solid var(--line-2); box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 18px 50px -18px rgba(0,0,0,0.9);
  transition: transform .4s var(--ease), box-shadow .4s; }
.planet-orb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.planet-card:hover .planet-orb { transform: translateY(-6px) scale(1.04); box-shadow: 0 0 28px -4px rgba(168,85,247,0.7), 0 24px 60px -20px rgba(0,0,0,0.9); }
.planet-card:hover .planet-orb img { transform: scale(1.12); }
.planet-orb::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 40px rgba(0,0,0,0.6), inset 0 0 14px rgba(168,85,247,0.25); }
.planet-card .pname { font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; letter-spacing: 0.14em; text-transform: uppercase; }
.planet-card .pno { display: block; font-size: 11px; color: var(--muted-2); letter-spacing: 0.2em; margin-top: 3px; font-family: var(--font-display); }

/* ── Bosses ───────────────────────────────────────────────────────────────── */
.boss-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.boss-card { position: relative; aspect-ratio: 1; border-radius: var(--radius); border: 1px solid var(--line); background: radial-gradient(circle at 50% 40%, rgba(255,154,46,0.10), rgba(14,12,34,0.6)); display: grid; place-items: center; padding: 14px; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.boss-card img { width: 86%; filter: drop-shadow(0 6px 16px rgba(255,154,46,0.4)); transition: transform .4s var(--ease); }
.boss-card:hover { transform: translateY(-5px); border-color: rgba(255,154,46,0.5); box-shadow: 0 0 30px -8px rgba(255,154,46,0.6); }
.boss-card:hover img { transform: scale(1.1) rotate(4deg); }
.boss-card .bn { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; font-family: var(--font-display); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); }

/* ── Enemies (the menu) ───────────────────────────────────────────────────── */
.enemy-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.enemy-card { text-align: center; padding: 24px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); transition: transform .3s var(--ease), border-color .3s; }
.enemy-card:hover { transform: translateY(-5px); border-color: var(--line-2); }
.enemy-card img { width: 96px; height: 96px; object-fit: contain; margin: 0 auto 14px; filter: drop-shadow(0 8px 18px rgba(52,225,232,0.4)); transition: transform .4s var(--ease); }
.enemy-card:hover img { transform: scale(1.12) translateY(-3px); }
.enemy-card h4 { font-family: var(--font-display); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 6px; }
.enemy-card p { font-size: 0.82rem; color: var(--muted-2); }

/* ── Meet the Glutton (moods) ─────────────────────────────────────────────── */
.glutton-feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 70px); align-items: center; }
.glutton-stage { position: relative; display: grid; place-items: center; min-height: 360px; }
.glutton-stage .halo { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255,154,46,0.35), transparent 65%); filter: blur(18px); animation: breathe 7s ease-in-out infinite; }
.glutton-stage .main-mug { position: relative; width: 70%; filter: drop-shadow(0 18px 50px rgba(255,138,30,0.5)); animation: bob 5.5s ease-in-out infinite; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.glutton-stage .main-mug.is-swapping { opacity: 0; transform: scale(.84); }
.glutton-stage .main-mug.pop { animation: facepop .5s var(--ease); }
@keyframes facepop { 0% { transform: scale(.84); } 55% { transform: scale(1.06); } 100% { transform: scale(1); } }
.glutton-text h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; margin-bottom: 18px; }
.glutton-text p { color: var(--muted); font-size: 1.06rem; margin-bottom: 16px; }
.mood-strip { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.mood { text-align: center; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.mood img { width: 60px; height: 60px; border-radius: 14px; border: 1px solid var(--line); background: rgba(176,152,255,0.05); padding: 4px; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.mood:hover img, .mood:focus-visible img { transform: translateY(-4px) scale(1.08); border-color: var(--amber); }
.mood.is-active img { border-color: var(--amber); box-shadow: 0 0 0 2px var(--amber), 0 8px 22px rgba(255,154,46,0.4); transform: translateY(-3px); }
.mood span { display: block; font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); margin-top: 6px; font-family: var(--font-display); transition: color .25s; }
.mood.is-active span { color: var(--amber); }
.mood-hint { font-size: 0.8rem; color: var(--muted-2); margin-top: 14px; letter-spacing: 0.02em; }

/* ── Controls / how to play ───────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { padding: 30px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.step .num { font-family: var(--font-display); font-weight: 800; font-size: 15px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-amber); color: #2A1400; margin-bottom: 18px; }
.step h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.15rem; margin-bottom: 9px; }
.step p { color: var(--muted); font-size: 0.96rem; }
.step kbd { font-family: var(--font-display); font-size: 11px; background: rgba(176,152,255,0.12); border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 8px; color: var(--fg); }

/* ── Key-art gallery ──────────────────────────────────────────────────────── */
.keyart-frame { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 40px 120px -40px rgba(0,0,0,0.95), 0 0 60px -20px rgba(168,85,247,0.4); }
.keyart-frame img { width: 100%; }

/* ── Final CTA ────────────────────────────────────────────────────────────── */
.cta-final { text-align: center; padding: clamp(70px,10vw,130px) 0; }
.cta-card { position: relative; max-width: 880px; margin: 0 auto; padding: clamp(44px,7vw,80px) 32px; border-radius: 30px; overflow: hidden;
  border: 1px solid var(--line-2); background: radial-gradient(ellipse 90% 130% at 50% 0%, rgba(255,154,46,0.2), transparent 55%), var(--ink); }
.cta-card .halo { position: absolute; bottom: -40%; left: 50%; transform: translateX(-50%); width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(168,85,247,0.3), transparent 65%); filter: blur(40px); }
.cta-card > * { position: relative; z-index: 2; }
.cta-card h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900; margin-bottom: 16px; }
.cta-card p { color: var(--muted); font-size: 1.15rem; max-width: 46ch; margin: 0 auto 30px; }
.cta-card .hero-cta { margin-bottom: 0; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.cg-footer { border-top: 1px solid var(--line); padding: 50px 0 40px; }
.cg-footer-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: center; margin-bottom: 30px; }
.cg-footer .cg-brand img { width: 40px; height: 40px; }
.cg-footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.cg-footer-links a { color: var(--muted); font-size: 0.92rem; transition: color .2s; }
.cg-footer-links a:hover { color: var(--amber-2); }
.cg-footer-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted-2); }

/* ── Reveal (small elements only) ─────────────────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, .cosmos::before, .hero-mascot, .hero-glow, .btn-play, .hero h1, .glutton-stage .halo, .glutton-stage .main-mug { animation: none !important; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1040px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .planet-grid { grid-template-columns: repeat(4, 1fr); }
  .boss-grid { grid-template-columns: repeat(4, 1fr); }
  .enemy-grid { grid-template-columns: repeat(3, 1fr); }
  .glutton-feature { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .cg-nav, .cg-header .header-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .cg-nav.is-open { display: flex; position: absolute; top: 80px; left: 16px; right: 16px; flex-direction: column; gap: 0;
    background: rgba(14,12,34,0.97); border: 1px solid var(--line-2); border-radius: 18px; padding: 8px 22px 16px; }
  .cg-nav.is-open a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .feature-grid, .planet-grid, .boss-grid, .enemy-grid { grid-template-columns: repeat(2, 1fr); }
}
