/* ==========================================================
   Evolve: Fitness Quest — site styles
   ========================================================== */

:root {
  --bg: #07050f;
  --bg-2: #0c0919;
  --panel: #110d22;
  --panel-2: #171230;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f5f2ff;
  --muted: #a8a0c9;
  --dim: #726a96;

  --violet: #8b5cf6;
  --lilac: #a78bfa;
  --lavender: #c9bcff;
  --magenta: #d946ef;
  --pink: #f472b6;
  --gold: #fbbf24;
  --green: #4ade80;

  --s-str: #ff6b81;
  --s-car: #4ade80;
  --s-mind: #818cf8;
  --s-nut: #fb923c;
  --s-con: #facc15;

  --grad: linear-gradient(100deg, #c9bcff 0%, #a78bfa 35%, #e879f9 70%, #f9a8d4 100%);
  --grad-btn: linear-gradient(135deg, #b4a3ff 0%, #8b5cf6 55%, #c026d3 100%);

  --radius: 22px;
  --radius-lg: 32px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.02; letter-spacing: -0.035em; margin: 0; font-weight: 800; }
p { margin: 0; }
::selection { background: rgba(167, 139, 250, .45); }
:focus-visible { outline: 2px solid var(--lavender); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }

.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-fill { fill: currentColor; stroke: none; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.grad-text.warm { background-image: linear-gradient(100deg, #fde68a, #fb923c 40%, #f472b6 80%, #c084fc); }
.grad-text.cool { background-image: linear-gradient(100deg, #86efac, #5eead4 40%, #a5b4fc 80%, #e9d5ff); }

.c-green { --c: var(--s-car); }
.c-red { --c: var(--s-str); }
.c-orange { --c: var(--s-nut); }
.c-blue { --c: var(--s-mind); }
.c-yellow { --c: var(--s-con); }

.tag {
  font-style: normal; font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 6px; vertical-align: 2px; margin-left: 6px;
  color: #f5d0fe; background: rgba(217, 70, 239, .16); border: 1px solid rgba(217, 70, 239, .35);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--glass); color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px;
  transition: transform .25s var(--spring), background .2s, border-color .2s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); background: var(--glass-2); border-color: rgba(255, 255, 255, .24); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-light { background: var(--text); color: #120c24; border-color: transparent; }
.btn-light:hover { background: #fff; box-shadow: 0 10px 30px -8px rgba(201, 188, 255, .6); }
.btn-ghost { background: transparent; }
.link-btn { background: none; border: 0; padding: 0; color: var(--lavender); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.link-btn:hover { color: #fff; }

.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 24px 12px 20px; border-radius: 16px;
  background: #fff; color: #0b0716; text-decoration: none;
  box-shadow: 0 18px 40px -14px rgba(167, 139, 250, .7), 0 0 0 1px rgba(255, 255, 255, .5) inset;
  transition: transform .3s var(--spring), box-shadow .3s;
}
.store-btn .ic { width: 28px; height: 28px; }
.store-btn span { display: flex; flex-direction: column; font-family: var(--font-display); font-size: 21px; font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }
.store-btn small { font-family: var(--font-body); font-size: 11px; font-weight: 500; letter-spacing: .01em; opacity: .7; }
.store-btn:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 24px 50px -14px rgba(217, 70, 239, .75), 0 0 0 1px rgba(255, 255, 255, .5) inset; }
.store-btn-lg { padding: 16px 30px 16px 24px; border-radius: 20px; }
.store-btn-lg span { font-size: 25px; }
.store-btn-lg .ic { width: 32px; height: 32px; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 13.5px; color: var(--lavender); font-weight: 500;
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(74, 222, 128, .18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--lilac);
  margin-bottom: 18px;
}
.fine, .section .fine { font-size: 12.5px; color: var(--dim); line-height: 1.5; max-width: none; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
/* Above-the-fold entrance: transform only and pure CSS, so the hero is visible on the very first paint. */
.rise { animation: rise .8s var(--ease) both; }
.hero-copy .rise:nth-child(2) { animation-delay: .04s; }
.hero-copy .rise:nth-child(3) { animation-delay: .08s; }
.hero-copy .rise:nth-child(4) { animation-delay: .12s; }
.hero-copy .rise:nth-child(5) { animation-delay: .16s; }
@keyframes rise { from { transform: translateY(18px); } }

/* ==========================================================
   NAV
   ========================================================== */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; padding: 14px 0; transition: padding .3s var(--ease); }
.nav-inner {
  width: min(1240px, 100% - 24px); margin-inline: auto;
  display: flex; align-items: center; gap: 24px;
  padding: 10px 10px 10px 18px; border-radius: 999px;
  border: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.nav.scrolled { padding: 10px 0; }
.nav.scrolled .nav-inner {
  background: rgba(14, 10, 28, .72);
  border-color: var(--line);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 20px 50px -25px rgba(0, 0, 0, .9);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -.03em; }
.brand img { border-radius: 10px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 6px 18px -4px rgba(139, 92, 246, .7); }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 14.5px; font-weight: 500; padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav-xp { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-lvl { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); letter-spacing: .08em; }
.nav-lvl b { color: var(--text); }
.nav-bar { width: 92px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.nav-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad-btn); box-shadow: 0 0 12px rgba(217, 70, 239, .8); transition: width .15s linear; }
.lvl-toast {
  position: absolute; right: max(24px, calc(50% - 600px)); top: 74px;
  padding: 8px 14px; border-radius: 12px; font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  background: var(--panel-2); border: 1px solid rgba(167, 139, 250, .4); color: var(--lavender);
  box-shadow: 0 10px 30px -10px rgba(139, 92, 246, .8);
  opacity: 0; transform: translateY(-8px) scale(.96); pointer-events: none;
  transition: opacity .3s, transform .4s var(--spring);
}
.lvl-toast.show { opacity: 1; transform: none; }

/* ==========================================================
   HERO
   ========================================================== */
.hero { position: relative; padding: 150px 0 0; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
/* Soft glows are drawn with multi-stop gradients rather than filter: blur(), which is very costly on phone GPUs. */
.aurora { position: absolute; border-radius: 50%; opacity: .55; }
.a1 { width: 760px; height: 760px; left: 46%; top: -260px; background: radial-gradient(closest-side, rgba(124, 58, 237, .95), rgba(124, 58, 237, .5) 40%, rgba(124, 58, 237, .15) 72%, transparent); animation: drift1 18s ease-in-out infinite alternate; }
.a2 { width: 660px; height: 660px; left: -220px; top: 160px; background: radial-gradient(closest-side, rgba(192, 38, 211, .95), rgba(192, 38, 211, .5) 40%, rgba(192, 38, 211, .15) 72%, transparent); opacity: .32; animation: drift2 22s ease-in-out infinite alternate; }
.a3 { width: 560px; height: 560px; right: -180px; top: 400px; background: radial-gradient(closest-side, rgba(37, 99, 235, .95), rgba(37, 99, 235, .5) 40%, rgba(37, 99, 235, .15) 72%, transparent); opacity: .3; animation: drift1 26s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(-80px, 60px) scale(1.1); } }
@keyframes drift2 { to { transform: translate(90px, -50px) scale(1.15); } }
.stars {
  position: absolute; inset: 0; opacity: .55;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 72%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 34%, #e9d5ff 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 56%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 90% 26%, #c4b5fd 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 88%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 54% 90%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 36% 8%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 70% 80%, #f0abfc 50%, transparent 51%);
  background-size: 620px 620px;
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { to { opacity: .25; } }
.grid-floor {
  position: absolute; left: -10%; right: -10%; bottom: 0; height: 360px;
  background-image: linear-gradient(rgba(167, 139, 250, .14) 1px, transparent 1px), linear-gradient(90deg, rgba(167, 139, 250, .14) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(500px) rotateX(62deg); transform-origin: bottom;
  mask-image: linear-gradient(to top, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 85%);
}

.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; min-height: 640px; }
.hero h1 { font-size: clamp(54px, 7.6vw, 108px); margin: 24px 0 24px; letter-spacing: -0.045em; line-height: .95; }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); max-width: 530px; line-height: 1.6; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }
.hero-facts { list-style: none; display: flex; gap: 0; margin: 44px 0 0; padding: 0; border-top: 1px solid var(--line); max-width: 540px; }
.hero-facts li { flex: 1; padding: 18px 12px 0 0; display: flex; flex-direction: column; }
.hero-facts li + li { padding-left: 16px; border-left: 1px solid var(--line); }
.hero-facts b { font-family: var(--font-display); font-size: 32px; line-height: 1; letter-spacing: -.03em; }
.hero-facts span { font-size: 13px; color: var(--dim); margin-top: 6px; }

/* hero visual */
.hero-visual { position: relative; height: 660px; }
.halo { position: absolute; left: 50%; top: 50%; width: 520px; height: 520px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(139, 92, 246, .45), rgba(139, 92, 246, 0) 62%); }
.orbit { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px dashed rgba(201, 188, 255, .2); transform: translate(-50%, -50%); }
.orbit i { position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--lavender); box-shadow: 0 0 14px 3px rgba(201, 188, 255, .8); }
.o1 { width: 470px; height: 470px; animation: spin 26s linear infinite; }
.o2 { width: 620px; height: 620px; border-style: solid; border-color: rgba(201, 188, 255, .07); animation: spin 40s linear infinite reverse; }
.o2 i { background: var(--pink); box-shadow: 0 0 14px 3px rgba(244, 114, 182, .8); }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.phone {
  --pw: 280px;
  position: relative; width: var(--pw); aspect-ratio: 600 / 1304;
  padding: calc(var(--pw) * .035); border-radius: calc(var(--pw) * .16);
  background: linear-gradient(150deg, #3a3158, #14102a 45%, #0b0818);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .14),
    inset 0 0 0 5px #0a0716,
    0 50px 90px -30px rgba(0, 0, 0, .95),
    0 0 90px -10px rgba(139, 92, 246, .35);
}
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: calc(var(--pw) * .13); overflow: hidden; background: #000; }
.phone .screen img, .phone .screen video { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.hero-phone { --pw: 290px; position: absolute; left: 50%; top: 50%; translate: -32% -50%; z-index: 2; }
.hero-mascot { position: absolute; z-index: 3; height: 560px; width: auto; left: -7%; bottom: 0; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .6)); }
.hud {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 12px;
  padding: 11px 16px 11px 11px; border-radius: 18px;
  background: rgba(23, 18, 48, .72); border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .9);
  font-size: 14px; line-height: 1.2;
  animation: bob 6s ease-in-out infinite;
}
.hud span { display: flex; flex-direction: column; }
.hud small { font-size: 11.5px; color: var(--muted); }
.hud b { font-weight: 700; }
.hud-ico, .hud-num { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--violet)) 22%, transparent); color: var(--c, var(--lavender)); }
.hud-num { font-size: 15px; font-weight: 700; background: var(--grad-btn); color: #fff; }
.hud-xp { right: -2%; top: 21%; }
.hud-xp b { color: var(--green); }
.hud-streak { right: 4%; bottom: 17%; animation-delay: -2s; }
.hud-streak img { width: 26px; height: auto; margin: 0 6px; }
.hud-stage { left: 18%; top: 7%; animation-delay: -4s; }
.hud-stats { right: -4%; bottom: 36%; flex-direction: column; align-items: stretch; gap: 6px; padding: 12px 14px; animation-delay: -1s; }
.mini-stat { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: .08em; }
.mini-stat i { order: 2; width: 70px; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .08); position: relative; overflow: hidden; }
.mini-stat i::after { content: ""; position: absolute; inset: 0; width: calc(var(--v) * 100%); background: var(--c); border-radius: inherit; box-shadow: 0 0 8px var(--c); }
@keyframes bob { 50% { transform: translateY(-10px); } }

.marquee { margin-top: 30px; border-block: 1px solid var(--line); background: rgba(12, 9, 25, .6); overflow: hidden; padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; color: var(--dim); padding: 0 24px; display: inline-flex; align-items: center; gap: 48px; white-space: nowrap; }
.marquee-track span::after { content: "✦"; color: var(--violet); font-size: 14px; margin-left: 24px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================
   SECTIONS
   ========================================================== */
.section { position: relative; padding: clamp(90px, 12vw, 150px) 0; }
.section h2 { font-size: clamp(38px, 5.2vw, 68px); margin-bottom: 22px; }
.section h2 em { font-style: italic; font-weight: 500; color: var(--lavender); }
.section p { color: var(--muted); font-size: clamp(16px, 1.25vw, 18.5px); max-width: 560px; }
.center-head { text-align: center; display: flex; flex-direction: column; align-items: center; margin-bottom: 56px; }
.center-head p { margin-inline: auto; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.split-rev .split-copy { order: 2; }

.ticks { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 16px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.ticks li .ic { width: 36px; height: 36px; padding: 8px; border-radius: 11px; background: rgba(167, 139, 250, .12); color: var(--lavender); }
.ticks b { color: var(--text); font-weight: 600; }

/* ---------- quest card ---------- */
.quest-card {
  position: relative; padding: 26px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(31, 24, 62, .9), rgba(16, 12, 34, .95));
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow), 0 0 0 1px rgba(139, 92, 246, .1), 0 0 120px -40px rgba(139, 92, 246, .6);
  overflow: hidden;
}
.quest-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(201, 188, 255, .5), transparent 40%, transparent 60%, rgba(217, 70, 239, .4)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.qc-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.qc-label { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--lilac); font-weight: 700; }
.qc-day { font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: -.03em; line-height: 1.1; }
.qc-streak { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(251, 113, 133, .12); color: #fda4af; border: 1px solid rgba(251, 113, 133, .3); transition: all .4s var(--ease); }
.qc-streak img { filter: grayscale(.8) brightness(.8); transition: filter .4s; }
.qc-streak[data-safe="true"] { background: rgba(251, 191, 36, .12); color: #fde68a; border-color: rgba(251, 191, 36, .4); box-shadow: 0 0 30px -6px rgba(251, 146, 60, .6); }
.qc-streak[data-safe="true"] img { filter: none; animation: flicker 1.2s ease-in-out infinite alternate; }
@keyframes flicker { to { transform: scale(1.12) rotate(-4deg); } }

.quest-list { display: grid; gap: 10px; }
.quest {
  display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 14px;
  width: 100%; text-align: left; padding: 14px 16px; border-radius: 18px;
  background: rgba(255, 255, 255, .035); border: 1px solid var(--line);
  transition: transform .25s var(--spring), background .25s, border-color .25s;
}
.quest:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .06); border-color: var(--line-2); }
.quest:active { transform: scale(.98); }
.q-check { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; transition: all .35s var(--spring); }
.q-check .ic { width: 15px; height: 15px; stroke-width: 3; opacity: 0; transform: scale(.4); transition: all .35s var(--spring); color: #062b12; }
.q-icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.q-text { display: flex; flex-direction: column; line-height: 1.3; }
.q-text b { font-weight: 600; font-size: 16px; transition: color .3s; }
.q-text small { color: var(--dim); font-size: 13px; }
.q-xp { font-size: 13px; font-weight: 700; color: var(--lavender); padding: 6px 10px; border-radius: 10px; background: rgba(167, 139, 250, .1); transition: all .3s; }
.quest.done { background: rgba(74, 222, 128, .07); border-color: rgba(74, 222, 128, .3); cursor: default; }
.quest.done:hover { transform: none; }
.quest.done .q-check { background: var(--green); border-color: var(--green); box-shadow: 0 0 18px rgba(74, 222, 128, .6); }
.quest.done .q-check .ic { opacity: 1; transform: none; }
.quest.done .q-text b { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(74, 222, 128, .6); }
.quest.done .q-xp { color: #062b12; background: var(--green); }

.qc-xp { margin-top: 22px; }
.qc-xp-top { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 9px; }
.qc-xp-top b { color: var(--text); }
.xpbar { position: relative; height: 14px; border-radius: 10px; background: rgba(255, 255, 255, .07); overflow: hidden; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .5); }
.xpbar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--grad-btn); box-shadow: 0 0 18px rgba(217, 70, 239, .7); transition: width .9s var(--spring); }
.xpbar-shine { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); width: 40%; transform: translateX(-120%); animation: shine 3.2s ease-in-out infinite; }
@keyframes shine { 60%, 100% { transform: translateX(300%); } }
.qc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font-size: 14px; color: var(--muted); min-height: 24px; }
.levelup { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; background: radial-gradient(circle, rgba(139, 92, 246, .55), rgba(16, 12, 34, 0) 70%); opacity: 0; }
.levelup span { font-family: var(--font-display); font-weight: 800; font-size: clamp(44px, 6vw, 72px); letter-spacing: -.04em; background: linear-gradient(180deg, #fff, #e9d5ff 40%, #f0abfc); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 30px rgba(217, 70, 239, .8)); transform: scale(.5); }
.levelup.show { animation: lvlFade 1.8s var(--ease) forwards; }
.levelup.show span { animation: lvlPop 1.8s var(--spring) forwards; }
@keyframes lvlFade { 0% { opacity: 0; } 15% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; } }
@keyframes lvlPop { 0% { transform: scale(.4) rotate(-6deg); } 25% { transform: scale(1.08) rotate(2deg); } 40%, 80% { transform: scale(1); } 100% { transform: scale(1.15); } }

.xp-float { position: absolute; z-index: 5; pointer-events: none; font-family: var(--font-mono); font-weight: 700; font-size: 18px; color: var(--green); text-shadow: 0 0 14px rgba(74, 222, 128, .8); animation: floatUp 1.1s var(--ease) forwards; }
@keyframes floatUp { from { opacity: 1; transform: translate(-50%, 0) scale(.8); } 30% { transform: translate(-50%, -18px) scale(1.15); } to { opacity: 0; transform: translate(-50%, -60px) scale(1); } }

/* ---------- journey ---------- */
.section-journey { background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124, 58, 237, .16), transparent 70%); }
.journey-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 26px; }
.region {
  --c: var(--violet);
  position: relative; text-align: left; padding: 16px 16px 14px; border-radius: 20px;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line);
  transition: transform .3s var(--spring), border-color .3s, background .3s;
}
.region:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 50%, transparent); }
.region[aria-selected="true"] { background: color-mix(in srgb, var(--c) 10%, transparent); border-color: color-mix(in srgb, var(--c) 70%, transparent); box-shadow: 0 0 40px -12px var(--c); }
.region-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 8px; margin-bottom: 12px; }
.region-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.region-range { font-family: var(--font-mono); font-size: 10.5px; color: var(--dim); white-space: nowrap; }
.region-dots { display: flex; align-items: center; gap: 5px; }
.region-dots i { flex: 1; height: 5px; border-radius: 4px; background: color-mix(in srgb, var(--c) 30%, rgba(255, 255, 255, .06)); }
.region-boss { width: 34px; height: 34px; flex: none; border-radius: 50%; overflow: hidden; border: 2px solid var(--c); background: #1a1430; margin-left: 4px; box-shadow: 0 0 14px -2px var(--c); }
.region-boss img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transform: scale(1.4); }
.region.cleared .region-boss { filter: grayscale(1); opacity: .7; }
.region.cleared .region-dots i { background: var(--c); }
.region .check { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: #062b12; display: grid; place-items: center; opacity: 0; transform: scale(0); transition: all .4s var(--spring); }
.region .check .ic { width: 14px; height: 14px; stroke-width: 3; }
.region.cleared .check { opacity: 1; transform: none; }

.arena {
  --c: var(--s-car);
  display: grid; grid-template-columns: 1.1fr 1fr; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(160deg, rgba(27, 21, 54, .9), rgba(12, 9, 25, .95));
  border: 1px solid var(--line-2); box-shadow: var(--shadow);
}
.arena-stage { position: relative; min-height: 480px; display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.arena-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--c) 32%, transparent), transparent 60%); transition: background .6s; }
.arena-floor { position: absolute; left: 10%; right: 10%; bottom: 46px; height: 60px; border-radius: 50%; background: radial-gradient(ellipse, color-mix(in srgb, var(--c) 40%, transparent), transparent 70%); filter: blur(6px); z-index: -1; }
.boss-wrap { position: relative; width: 82%; max-width: 440px; transition: transform .5s var(--ease), filter .6s; }
.boss-img { width: 100%; height: 380px; object-fit: contain; filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .55)); animation: idle 3.6s ease-in-out infinite; transition: opacity .3s; }
@keyframes idle { 50% { transform: translateY(-8px) scale(1.01); } }
.boss-wrap.hit { animation: hit .45s ease; }
.boss-wrap.hit .boss-img { filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .55)) brightness(1.8) saturate(.4); }
@keyframes hit { 0% { transform: translateX(0); } 20% { transform: translateX(-18px) rotate(-3deg); } 40% { transform: translateX(14px) rotate(2deg); } 60% { transform: translateX(-8px); } 80% { transform: translateX(4px); } 100% { transform: none; } }
.boss-wrap.dead { filter: grayscale(.85) brightness(.7); transform: rotate(-4deg) translateY(10px); }
.boss-wrap.dead .boss-img { animation: none; }
.boss-wrap.swap .boss-img { opacity: 0; }
.dmg-layer { position: absolute; inset: 0; pointer-events: none; }
.dmg { position: absolute; font-family: var(--font-display); font-weight: 800; font-size: 40px; color: #fff; -webkit-text-stroke: 1.5px rgba(0, 0, 0, .4); text-shadow: 0 0 20px var(--c), 0 4px 0 rgba(0, 0, 0, .35); animation: dmgPop 1s var(--ease) forwards; white-space: nowrap; }
.dmg.crit { color: #fde047; font-size: 52px; }
.dmg small { display: block; font-size: 14px; font-family: var(--font-mono); letter-spacing: .1em; -webkit-text-stroke: 0; text-align: center; }
@keyframes dmgPop { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.5); } 20% { opacity: 1; transform: translate(-50%, -10px) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -70px) scale(1); } }
.slash { position: absolute; width: 220px; height: 6px; border-radius: 6px; background: linear-gradient(90deg, transparent, #fff, transparent); box-shadow: 0 0 20px var(--c), 0 0 40px var(--c); animation: slash .35s ease-out forwards; }
@keyframes slash { from { opacity: 1; clip-path: inset(0 100% 0 0); } 60% { opacity: 1; clip-path: inset(0 0 0 0); } to { opacity: 0; clip-path: inset(0 0 0 100%); } }
.defeated-stamp {
  position: absolute; left: 50%; top: 46%; translate: -50% -50%; rotate: -12deg;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 5vw, 64px); letter-spacing: .02em;
  color: #fde68a; padding: 6px 22px; border: 5px solid #fbbf24; border-radius: 16px;
  text-shadow: 0 0 24px rgba(251, 191, 36, .8); box-shadow: 0 0 40px rgba(251, 191, 36, .45), inset 0 0 30px rgba(251, 191, 36, .3);
  opacity: 0; scale: 2.2; pointer-events: none; transition: opacity .25s, scale .5s var(--spring);
}
.defeated-stamp.show { opacity: 1; scale: 1; }

.arena-info { padding: clamp(26px, 3.5vw, 44px); border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.arena-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; margin-bottom: 12px; }
.arena-region { color: var(--c); letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.arena-reward { color: var(--gold); padding: 5px 10px; border-radius: 9px; background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .25); font-weight: 700; }
.arena-info h3 { font-size: clamp(30px, 3.2vw, 42px); }
.boss-taunt { margin-top: 8px; color: var(--muted); font-style: italic; font-size: 16px; }
.hp { margin: 22px 0 20px; }
.hp-top { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-bottom: 7px; }
.hp-bar { position: relative; height: 16px; border-radius: 10px; background: rgba(0, 0, 0, .45); border: 1px solid var(--line-2); overflow: hidden; }
.hp-bar i, .hp-bar b { position: absolute; inset: 0 auto 0 0; width: 100%; border-radius: inherit; }
.hp-bar b { background: rgba(255, 255, 255, .55); transition: width .9s .25s ease; z-index: 1; }
.hp-bar i { background: linear-gradient(90deg, #ef4444, #f97316 50%, #facc15); z-index: 2; transition: width .25s ease; box-shadow: 0 0 12px rgba(249, 115, 22, .6); }
.req-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.req ul { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.req li { font-size: 13.5px; padding: 7px 12px; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--text); display: inline-flex; align-items: center; gap: 7px; transition: all .4s var(--ease); }
.req li .ic { width: 14px; height: 14px; color: var(--dim); stroke-width: 2.6; }
.req li.met { border-color: rgba(74, 222, 128, .4); background: rgba(74, 222, 128, .08); }
.req li.met .ic { color: var(--green); }
.arena-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 26px 0 16px; }
.btn-attack {
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 85%, #fff), var(--c) 60%, color-mix(in srgb, var(--c) 70%, #000));
  color: #0b0716; border: 0; font-weight: 700; font-size: 16px; padding: 15px 24px;
  box-shadow: 0 14px 34px -12px var(--c), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn-attack:hover { background: linear-gradient(135deg, #fff, var(--c) 60%); box-shadow: 0 18px 40px -10px var(--c), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-attack:disabled { opacity: .45; cursor: default; transform: none; }
.arena .fine { margin-top: auto; }

/* ---------- stats ---------- */
.stats-card {
  padding: 30px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(27, 21, 54, .85), rgba(12, 9, 25, .95));
  border: 1px solid var(--line-2); box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 30px; align-items: center;
}
.radar-wrap { position: relative; }
.radar { width: 100%; height: auto; overflow: visible; }
.radar .grid { fill: none; stroke: rgba(255, 255, 255, .08); }
.radar .axis { stroke: rgba(255, 255, 255, .07); }
.radar .shape { fill: url(#radarFill); stroke: #c4b5fd; stroke-width: 2; stroke-linejoin: round; filter: drop-shadow(0 0 14px rgba(167, 139, 250, .6)); }
.radar .vtx { stroke: #0c0919; stroke-width: 2.5; }
.radar text { font-family: var(--font-mono); font-size: 12.5px; font-weight: 700; letter-spacing: .08em; fill: var(--muted); }
.balance { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 10px; padding: 10px 14px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.balance span { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.balance b { font-family: var(--font-display); font-size: 30px; line-height: 1; letter-spacing: -.03em; text-shadow: 0 0 20px rgba(167, 139, 250, .8); min-width: 2ch; text-align: center; }
.balance small { font-size: 12.5px; color: var(--lavender); white-space: nowrap; }
.stat-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.stat-rows li { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; }
.stat-rows .sn { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.stat-rows .sn i { width: 9px; height: 9px; border-radius: 3px; background: var(--c); box-shadow: 0 0 10px var(--c); }
.stat-rows .sl { font-family: var(--font-mono); font-size: 12px; color: var(--c); font-weight: 700; }
.stat-rows .sb { grid-column: 1 / -1; height: 8px; border-radius: 6px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.stat-rows .sb i { display: block; height: 100%; border-radius: inherit; background: var(--c); box-shadow: 0 0 10px var(--c); transition: width .7s var(--spring); }
.stat-rows li.low .sn::after { content: "focus"; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; color: var(--c); border: 1px solid currentColor; opacity: .85; }
.stat-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.stat-actions button {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); font-weight: 600; font-size: 14.5px;
  transition: transform .25s var(--spring), border-color .2s, background .2s;
}
.stat-actions button .ic { color: var(--c); }
.stat-actions button:hover { transform: translateY(-3px); border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); }
.stat-actions button:active { transform: scale(.95); }

/* ---------- features ---------- */
.section-features { background: linear-gradient(180deg, transparent, rgba(124, 58, 237, .07) 40%, transparent); }
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 0 auto 44px; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); width: fit-content; }
.tabs button {
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px;
  border: 0; background: transparent; color: var(--muted); font-weight: 600; font-size: 15px; overflow: hidden;
  transition: color .25s, background .25s;
}
.tabs button .ic { color: var(--c); }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--text); background: color-mix(in srgb, var(--c) 14%, rgba(255, 255, 255, .05)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent); }
.tabs button i { position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--c); transform: scaleX(0); transform-origin: left; }
.tabs button[aria-selected="true"] i.run { animation: tabRun var(--dur, 7s) linear forwards; }
@keyframes tabRun { to { transform: scaleX(1); } }

.feat-stage { display: grid; grid-template-columns: 1.15fr 1fr; gap: 50px; align-items: center; }
.feat-panels { display: grid; }
.feat-panel { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateX(-16px); transition: opacity .5s var(--ease), transform .5s var(--ease), visibility .5s; }
.feat-panel.active { opacity: 1; visibility: visible; transform: none; }
.feat-panel h3 { font-size: clamp(26px, 2.8vw, 36px); margin-bottom: 26px; max-width: 520px; }
.feat-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feat-list li { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 20px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); transition: transform .3s var(--spring), border-color .3s, background .3s; }
.feat-list li:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 40%, transparent); background: color-mix(in srgb, var(--c) 5%, transparent); }
.fi { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); }
.feat-list li:hover .fi { --c: inherit; }
.feat-list b { display: block; font-size: 16px; font-weight: 650; margin-bottom: 4px; }
.feat-list p { font-size: 14px; line-height: 1.5; color: var(--muted); }
.feat-phone { position: relative; display: grid; place-items: center; }
.feat-phone::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(139, 92, 246, .4), transparent 65%); }
.feat-phone .phone { --pw: 300px; }
.feat-phone .fs { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.feat-phone .fs.active { opacity: 1; transform: none; }
.health-chip { position: absolute; bottom: 30px; left: calc(50% - 220px); display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; background: rgba(23, 18, 48, .85); border: 1px solid var(--line-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 16px 30px -14px #000; animation: bob 6s ease-in-out infinite; }
.health-chip .ic { color: #fb7185; fill: #fb7185; }

/* ---------- fridge ---------- */
.fridge-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.eyebrow .tag { margin-left: 8px; }
.steps { list-style: none; padding: 0; margin: 30px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); display: flex; flex-direction: column; }
.steps li::before { content: "0" counter(s); font-family: var(--font-mono); font-size: 11px; color: var(--dim); margin-bottom: 8px; }
.steps b { font-family: var(--font-display); font-size: 19px; letter-spacing: -.02em; }
.steps span { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.fridge-demo { padding: 22px; border-radius: 24px; background: linear-gradient(180deg, rgba(27, 21, 54, .8), rgba(12, 9, 25, .9)); border: 1px solid var(--line-2); }
.fd-head { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.fd-head b { color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px 6px 8px; border-radius: 999px;
  font-size: 13px; font-weight: 500; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--muted);
  transition: all .25s var(--ease);
}
.chip .ic { width: 15px; height: 15px; padding: 2px; border-radius: 50%; border: 1.5px solid var(--line-2); stroke-width: 3.5; color: transparent; transition: all .25s; }
.chip[aria-pressed="true"] { color: #bbf7d0; border-color: rgba(74, 222, 128, .4); background: rgba(74, 222, 128, .08); }
.chip[aria-pressed="true"] .ic { background: var(--green); border-color: var(--green); color: #062b12; }
.chip:hover { border-color: rgba(255, 255, 255, .3); }
.recipes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 14px; }
.recipe { position: relative; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); transition: all .4s var(--ease); }
.recipe h4 { margin: 0 0 4px; font-family: var(--font-display); font-size: 15.5px; line-height: 1.15; letter-spacing: -.01em; }
.recipe .meta { font-size: 11.5px; color: var(--dim); font-family: var(--font-mono); }
.recipe .macros { display: flex; gap: 10px; margin-top: 10px; font-size: 11px; color: var(--muted); }
.recipe .macros b { display: block; font-size: 13.5px; color: var(--text); font-family: var(--font-mono); }
.recipe .macros .p b { color: #4ade80; } .recipe .macros .c b { color: #60a5fa; } .recipe .macros .f b { color: #fbbf24; }
.recipe .status { margin-top: 10px; font-size: 11.5px; font-weight: 600; color: var(--green); display: flex; align-items: center; gap: 5px; }
.recipe.missing { opacity: .5; filter: saturate(.3); }
.recipe.missing .status { color: #fda4af; }
.recipe.ready { border-color: rgba(74, 222, 128, .35); box-shadow: 0 0 30px -14px rgba(74, 222, 128, .8); }
.fridge-phone { position: relative; display: grid; place-items: center; }
.fridge-phone::before { content: ""; position: absolute; width: 440px; height: 440px; border-radius: 50%; background: radial-gradient(circle, rgba(74, 222, 128, .2), rgba(139, 92, 246, .25) 40%, transparent 68%); }
.fridge-phone .phone { --pw: 300px; }
.scan-tag { position: absolute; top: 14%; right: 2%; display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; font-size: 12px; background: rgba(23, 18, 48, .85); border: 1px solid rgba(74, 222, 128, .35); color: #bbf7d0; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); animation: bob 5s ease-in-out infinite; }
.scan-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 1.4s infinite; box-shadow: 0 0 0 4px rgba(74, 222, 128, .2); }

/* ---------- badges ---------- */
.section-badges { background: radial-gradient(ellipse 70% 50% at 50% 60%, rgba(251, 191, 36, .07), transparent 70%); }
.shelf-meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 14px; padding: 0 6px; gap: 20px; }
.shelf-meta b { color: var(--gold); }
.shelf-desc { color: var(--lavender); text-align: right; min-height: 1.4em; }
.shelf { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 16px; padding: 30px; border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(27, 21, 54, .6), rgba(12, 9, 25, .8)); border: 1px solid var(--line); position: relative; }
.shelf::after { content: ""; position: absolute; left: 30px; right: 30px; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }
.badge {
  position: relative; aspect-ratio: 1; min-width: 0; padding: 6px; border: 0; background: none; border-radius: 20px;
  display: grid; place-items: center; transition: transform .35s var(--spring);
}
.badge img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1) brightness(.45) contrast(1.1); transition: filter .5s var(--ease), transform .5s var(--spring); }
.badge .lock { position: absolute; width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: rgba(12, 9, 25, .85); border: 1px solid var(--line-2); color: var(--muted); transition: opacity .3s, transform .3s; }
.badge:hover { transform: translateY(-6px); }
.badge:hover img { filter: grayscale(.6) brightness(.7); }
.badge.on img { filter: drop-shadow(0 10px 20px rgba(251, 191, 36, .35)); }
.badge.on .lock { opacity: 0; transform: scale(.4); }
.badge.pop img { animation: badgePop .9s var(--spring); }
.badge.on::before { content: ""; position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(circle, rgba(251, 191, 36, .35), transparent 70%); z-index: -1; }
.badge .shine { position: absolute; inset: 0; border-radius: 20px; overflow: hidden; pointer-events: none; }
.badge.pop .shine::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .6), transparent); animation: sweep .9s ease-out; }
@keyframes badgePop { 0% { transform: scale(.6) rotate(-10deg); } 60% { transform: scale(1.15) rotate(4deg); } 100% { transform: none; } }
@keyframes sweep { from { left: -50%; } to { left: 120%; } }

/* ---------- wardrobe ---------- */
.section-wardrobe { background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(124, 58, 237, .14), transparent 70%); }
.toggles { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.seg button { padding: 8px 16px; border-radius: 999px; border: 0; background: none; color: var(--muted); font-size: 14px; font-weight: 600; transition: all .25s; }
.seg button[aria-pressed="true"] { background: var(--text); color: #120c24; }
.podium { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); align-items: end; gap: 14px; max-width: 920px; margin: 0 auto 80px; }
.pod { margin: 0; position: relative; display: flex; flex-direction: column; align-items: center; }
.pod img { height: 360px; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .6)); transition: transform .5s var(--spring), opacity .3s; position: relative; z-index: 2; margin-bottom: -18px; }
.pod:hover img { transform: translateY(-10px) scale(1.03); }
.pod-1 img { height: 430px; }
.pod img.fading { opacity: 0; transform: translateY(10px) scale(.97); }
.pod figcaption { position: relative; z-index: 3; text-align: center; padding: 12px 16px; border-radius: 16px; margin-bottom: 14px; background: rgba(16, 12, 34, .85); border: 1px solid var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; flex-direction: column; align-items: center; }
.pod figcaption b { font-family: var(--font-display); font-size: 18px; letter-spacing: -.02em; line-height: 1.2; }
.pod figcaption small { font-size: 12px; color: var(--muted); }
.rank { font-size: 11px; font-weight: 700; color: var(--gold); letter-spacing: .1em; }
.block { width: 100%; border-radius: 18px 18px 6px 6px; display: grid; place-items: start center; padding-top: 18px; font-family: var(--font-display); font-weight: 800; font-size: 54px; color: rgba(255, 255, 255, .9); text-shadow: 0 4px 20px rgba(0, 0, 0, .4); position: relative; overflow: hidden; }
.block::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .25), transparent 30%); }
.pod-1 .block { height: 150px; background: linear-gradient(180deg, #fbbf24, #b45309); box-shadow: 0 0 60px -10px rgba(251, 191, 36, .6); }
.pod-2 .block { height: 108px; background: linear-gradient(180deg, #cbd5e1, #64748b); }
.pod-3 .block { height: 80px; background: linear-gradient(180deg, #fb923c, #9a3412); }
.crown-glow { position: absolute; top: 4%; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(251, 191, 36, .35), transparent 65%); animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .7; } }

.rack-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.rack-head h3 { font-size: 26px; }
.rack-nav { display: flex; gap: 8px; }
.round { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); display: grid; place-items: center; transition: all .25s; }
.round:hover { background: rgba(255, 255, 255, .1); transform: scale(1.06); }
/* A scroller clips its overflow, so pad it (and pull it back with negative margins)
   to leave room for the hover lift and glow without shifting the layout. */
.rack {
  --bleed: 32px;
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 20px var(--bleed) 64px; margin: -20px calc(var(--bleed) * -1) -44px;
  scroll-padding-inline: var(--bleed);
  scrollbar-width: thin; scrollbar-color: rgba(167, 139, 250, .4) transparent;
}
.suit {
  --c: #a78bfa;
  flex: 0 0 210px; scroll-snap-align: start; position: relative; height: 330px; border-radius: 24px; overflow: hidden;
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--c) 35%, transparent), transparent 70%), linear-gradient(180deg, rgba(27, 21, 54, .9), rgba(12, 9, 25, .95));
  border: 1px solid var(--line); transition: transform .4s var(--spring), border-color .3s, box-shadow .3s;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
}
.suit img { position: absolute; top: 18px; height: 250px; width: auto; max-width: 92%; object-fit: contain; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .5)); transition: transform .5s var(--spring); }
.suit:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c) 60%, transparent); box-shadow: 0 20px 50px -20px var(--c); }
.suit:hover img { transform: scale(1.06) translateY(-4px); }
.suit span { position: relative; z-index: 2; width: 100%; padding: 14px; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -.01em; background: linear-gradient(180deg, transparent, rgba(12, 9, 25, .95) 45%); }

/* ---------- faq ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.faq-grid p a { color: var(--lavender); }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 18px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); transition: background .3s, border-color .3s; }
.faq details[open] { background: rgba(167, 139, 250, .06); border-color: rgba(167, 139, 250, .3); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 600; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .3s var(--ease); color: var(--lavender); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { padding: 0 22px 20px; font-size: 15.5px; max-width: none; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; padding: clamp(100px, 14vw, 170px) 0; text-align: center; border-top: 1px solid var(--line); }
.cta-bg { position: absolute; inset: 0; z-index: -1; }
.cta .a1 { left: 50%; top: 10%; translate: -50% 0; width: 800px; height: 600px; }
.cta .a2 { left: 10%; top: 40%; }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta h2 { font-size: clamp(46px, 7vw, 96px); letter-spacing: -.045em; line-height: .95; margin: 10px 0 22px; }
.cta p { color: var(--muted); font-size: clamp(17px, 1.4vw, 20px); margin-bottom: 36px; }
.dragon { position: relative; width: 190px; border: 0; padding: 0; background: none; border-radius: 30px; transition: transform .4s var(--spring); }
.dragon img { width: 100%; height: auto; filter: drop-shadow(0 20px 40px rgba(139, 92, 246, .55)); animation: hover 4s ease-in-out infinite; }
.dragon:hover { transform: scale(1.05) rotate(-3deg); }
.dragon.wiggle img { animation: wiggle .6s ease; }
@keyframes hover { 50% { transform: translateY(-10px); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-10deg) scale(1.05); } 50% { transform: rotate(8deg) scale(1.08); } 75% { transform: rotate(-4deg); } }
.dragon-bubble { position: absolute; top: 4px; right: -66px; padding: 8px 14px; border-radius: 16px 16px 16px 4px; background: var(--text); color: #120c24; font-weight: 700; font-size: 14px; white-space: nowrap; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .6); transition: transform .3s var(--spring); }
.dragon.wiggle .dragon-bubble { transform: scale(1.12) rotate(3deg); }
.irl { margin-top: 50px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; color: var(--muted); font-size: 15px; }
.irl b { color: var(--text); }
.socials { display: flex; gap: 8px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); transition: all .25s var(--spring); }
.socials a:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .1); border-color: var(--lavender); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0 50px; background: var(--bg-2); }
.footer-inner { display: grid; grid-template-columns: auto 1fr; gap: 20px 40px; align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: flex-end; }
.footer nav a { color: var(--muted); text-decoration: none; font-size: 14.5px; }
.footer nav a:hover { color: var(--text); }
.legal { grid-column: 1 / -1; font-size: 12.5px; color: var(--dim); }

/* ---------- confetti ---------- */
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; min-height: 0; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-facts { width: 100%; }
  .hero-visual { height: 600px; max-width: 620px; width: 100%; margin: 20px auto 0; }
  .split, .fridge-grid, .feat-stage, .faq-grid { grid-template-columns: 1fr; }
  .split-rev .split-copy { order: 0; }
  .feat-phone { order: -1; }
  .health-chip { left: calc(50% - 200px); }
  .arena { grid-template-columns: 1fr; }
  .arena-info { border-left: 0; border-top: 1px solid var(--line); }
  .arena-stage { min-height: 400px; }
  .shelf { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .rack { --bleed: 20px; }
  .shelf::after { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .nav { padding: 10px 0; }
  .nav-inner { gap: 12px; padding: 8px 8px 8px 14px; }
  .nav-bar { width: 56px; }
  .hero { padding-top: 116px; }
  .hero-visual { height: 520px; }
  .hero-phone { --pw: 230px; translate: -40% -50%; }
  .hero-mascot { height: 420px; left: -6%; }
  .hud { padding: 8px 12px 8px 8px; font-size: 12.5px; gap: 9px; }
  .hud-ico, .hud-num { width: 32px; height: 32px; border-radius: 10px; }
  .hud-xp { right: 0; top: 16%; }
  .hud-stage { left: 2%; top: 2%; }
  .hud-stats { display: none; }
  .hud-streak { right: 0; bottom: 12%; }
  .o2 { width: 480px; height: 480px; }
  .o1 { width: 360px; height: 360px; }
  .hero-facts li { padding-right: 6px; }
  .hero-facts li + li { padding-left: 10px; }
  .hero-facts b { font-size: 26px; }
  .hero-facts span { font-size: 11.5px; }
  .marquee-track span { font-size: 18px; }
  .quest-card { padding: 18px; }
  .quest { grid-template-columns: auto 1fr auto; gap: 12px; padding: 12px; }
  .q-icon { display: none; }
  .q-text small { font-size: 12px; }
  .journey-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-inline: -16px; padding-inline: 16px; }
  .region { flex: 0 0 176px; scroll-snap-align: start; }
  .arena-stage { min-height: 320px; }
  .boss-img { height: 270px; }
  .stats-card { grid-template-columns: 1fr; padding: 22px; }
  .tabs { border-radius: 20px; width: 100%; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .tabs button { padding: 10px 14px; font-size: 14px; flex: none; }
  .feat-list { grid-template-columns: 1fr; }
  .feat-phone .phone, .fridge-phone .phone { --pw: 250px; }
  .feat-phone::before, .fridge-phone::before { width: 320px; height: 320px; }
  .health-chip { left: 0; bottom: 10px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .recipes { grid-template-columns: 1fr; }
  .scan-tag { right: 0; }
  .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 18px; gap: 10px; }
  .shelf-meta { flex-direction: column; align-items: flex-start; gap: 4px; }
  .shelf-desc { text-align: left; }
  .podium { gap: 6px; margin-bottom: 60px; }
  .pod img { height: 210px; }
  .pod-1 img { height: 250px; }
  .pod figcaption { padding: 8px 6px; border-radius: 12px; }
  .pod figcaption b { font-size: 13.5px; }
  .pod figcaption small { display: none; }
  .block { font-size: 36px; }
  .block { padding-top: 10px; }
  .pod-1 .block { height: 100px; } .pod-2 .block { height: 76px; } .pod-3 .block { height: 62px; }
  .crown-glow { width: 220px; height: 220px; }
  .rack { --bleed: 16px; }
  .suit { flex-basis: 170px; height: 280px; }
  .suit img { height: 205px; }
  .dragon { width: 150px; }
  .dragon-bubble { right: -40px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer nav { justify-content: flex-start; }
}

@media (max-width: 420px) {
  .nav-xp { display: none; }
  .nav-inner > .btn { margin-left: auto; }
  .lvl-toast { display: none; }
  .hero-visual { height: 470px; }
  .hero-phone { --pw: 205px; }
  .hero-mascot { height: 370px; }
}

/* Phones: drop frosted-glass blurs and always-running decorative loops; they cost GPU time on every frame. */
@media (max-width: 760px) {
  .aurora, .stars, .orbit, .hud, .health-chip, .scan-tag, .crown-glow { animation: none; }
  .pill, .hud, .health-chip, .scan-tag, .pod figcaption, .nav.scrolled .nav-inner { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav.scrolled .nav-inner { background: rgba(14, 10, 28, .94); }
  .hud, .health-chip, .scan-tag { background: rgba(23, 18, 48, .95); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
