/* ============================================================
   食刻 SHIKE · 官网视觉系统
   Day: paper / coral / cocoa   Night: navy / gold / teal
   ============================================================ */

@font-face {
  font-family: "Smiley Sans";
  src: url("../assets/fonts/SmileySans-Oblique.ttf.woff2") format("woff2");
  font-weight: 400;
  font-style: oblique;
  font-display: swap;
}
@font-face {
  font-family: "Press Start 2P";
  src: url("../assets/fonts/PressStart2P.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #fbf3ee;
  --paper-2: #f6e7e1;
  --cocoa: #3b2b27;
  --cocoa-2: #6b554d;
  --coral: #f07e68;
  --coral-deep: #d95c48;
  --peach: #f8cfc4;
  --butter: #ffe3a3;
  --teal: #2fc7b4;
  --white: #fffdfb;
  --navy: #14102e;
  --navy-2: #1d1745;
  --navy-3: #2a2360;
  --gold: #f6c453;
  --gold-deep: #c98f2b;
  --cream: #fff6e0;
  --red: #ff6b6b;
  --blue: #4d96ff;
  --font-display: "Smiley Sans", "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "HarmonyOS Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --font-pixel: "Press Start 2P", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --shadow-hard: 0 4px 0 rgba(59, 43, 39, 0.16), 0 26px 60px -32px rgba(59, 43, 39, 0.35);
  --border: 2px solid var(--cocoa);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--cocoa);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
::selection { background: var(--coral); color: var(--white); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--coral-deep); outline-offset: 4px; }

.container {
  width: min(1240px, calc(100vw - 64px));
  margin-inline: auto;
}

.section {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 100px 0 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.section-no {
  position: absolute;
  top: 26px;
  right: 36px;
  z-index: 2;
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: rgba(59, 43, 39, 0.28);
  pointer-events: none;
}
.quest .section-no { color: rgba(246, 196, 83, 0.5); }

/* typography */
.display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-style: oblique;
  letter-spacing: -0.025em;
  line-height: 1.03;
}
.display-xl { font-size: clamp(52px, 7vw, 104px); }
.display-lg { font-size: clamp(42px, 5.2vw, 76px); }
.line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.line > span {
  display: block;
  transform: translateY(112%);
  transition: transform 1s var(--ease);
}
.is-visible .line > span,
body.is-ready .hero-title .line > span { transform: translateY(0); }
.line:nth-child(2) > span { transition-delay: 0.1s; }
.line:nth-child(3) > span { transition-delay: 0.2s; }

/* 逐字滚动标题 */
.split-title .line { overflow: visible; padding-bottom: 0.08em; }
.split-title .line > span { transform: none; transition: none; }
.split-title .ch {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 0.38em, 0) scale(0.55);
  transition:
    opacity 0.26s var(--ease) calc(var(--ci, 0) * 24ms),
    transform 0.6s var(--spring) calc(var(--ci, 0) * 24ms);
  will-change: opacity, transform;
}
.split-title .ch.is-in { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
#beliefTitle, #whatsTitle { will-change: transform, opacity; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral-deep);
}
.eyebrow .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral);
}
.eyebrow-gold { color: var(--gold); }

.section-sub {
  max-width: 560px;
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.85;
  color: var(--cocoa-2);
}
.micro {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--cocoa-2);
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 14px;
  font-weight: 800;
  color: var(--coral-deep);
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
}
.link-arrow span { transition: transform 0.25s var(--ease); }
.link-arrow:hover span { transform: translateX(6px); }

/* reveal */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.85s var(--ease) var(--d, 0s),
    transform 0.85s var(--ease) var(--d, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }
.stat-card.reveal,
.feature.reveal,
.quest-step.reveal {
  transition:
    opacity 0.65s var(--ease) var(--d, 0s),
    transform 0.85s var(--spring) var(--d, 0s);
}
.stat-card.reveal:not(.is-visible),
.feature.reveal:not(.is-visible),
.quest-step.reveal:not(.is-visible) { transform: translateY(24px) scale(0.96); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .line > span { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

/* buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  padding: 0 28px;
  border: var(--border);
  border-radius: 999px;
  background: var(--white);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease), background 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 5px 0 var(--coral-deep), 0 18px 26px -18px rgba(217, 92, 72, 0.7);
}
.btn-primary:hover { background: #f48b75; transform: translateY(-2px); box-shadow: 0 7px 0 var(--coral-deep), 0 24px 32px -20px rgba(217, 92, 72, 0.75); }
.btn-primary:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--coral-deep); }
.btn-ghost { background: var(--white); color: var(--cocoa); box-shadow: 0 5px 0 rgba(59, 43, 39, 0.16); }
.btn-ghost:hover { transform: translateY(-2px); box-shadow: 0 7px 0 rgba(59, 43, 39, 0.2); }
.btn-ghost:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(59, 43, 39, 0.18); }
.btn-sm { height: 44px; padding: 0 18px; font-size: 13px; }
.btn-lg { height: 64px; padding: 0 38px; font-size: 18px; }
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold-deep);
  box-shadow: 0 5px 0 #8a5b00, 0 18px 30px -18px rgba(246, 196, 83, 0.5);
}
.btn-gold:hover { transform: translateY(-2px); background: #ffd46e; }
.btn-gold:active { transform: translateY(4px); box-shadow: 0 1px 0 #8a5b00; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px 16px 0;
  pointer-events: none;
  transition: padding 0.35s var(--ease);
}
.header-pill {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 60px;
  padding: 0 16px 0 18px;
  background: rgba(255, 253, 251, 0.93);
  border: 1.5px solid var(--cocoa);
  border-radius: 18px;
  box-shadow: 0 18px 36px -30px rgba(59, 43, 39, 0.55);
  backdrop-filter: blur(18px) saturate(1.2);
  transition: height 0.35s var(--ease), background 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.site-header.is-scrolled { padding-top: 9px; }
.site-header.is-scrolled .header-pill { height: 52px; box-shadow: 0 22px 44px -28px rgba(59, 43, 39, 0.65); }
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.brand-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; }
.brand-mark svg { width: 32px; height: 32px; }
.brand-word {
  font-family: var(--font-display);
  font-style: oblique;
  font-size: 25px;
  line-height: 1;
  letter-spacing: 0.01em;
}
.brand-en {
  margin-left: 1px;
  font-family: var(--font-pixel);
  font-size: 7px;
  letter-spacing: 0.12em;
  color: var(--coral-deep);
  transform: translateY(-4px);
}
.nav { display: flex; align-items: center; gap: 2px; }
.nav-link {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--cocoa-2);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.nav-link:hover { background: var(--paper-2); color: var(--cocoa); transform: translateY(-1px); }
.nav-link.is-active { background: var(--cocoa); color: var(--cream); }
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.sound-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(59, 43, 39, 0.3);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.sound-btn:hover { background: var(--paper-2); border-color: var(--cocoa); }
.admin-entry {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px;
  border: 1.5px solid rgba(59, 43, 39, 0.3);
  border-radius: 999px;
  background: rgba(255, 253, 251, 0.45);
  color: var(--cocoa-2);
  font-size: 12px;
  font-weight: 800;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.admin-entry:hover { background: var(--paper-2); border-color: var(--cocoa); color: var(--cocoa); transform: translateY(-1px); }
.admin-entry-icon { width: 17px; height: 17px; display: block; flex-shrink: 0; }
.admin-entry-icon svg { width: 100%; height: 100%; }
.sound-waves { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.sound-waves i { display: block; width: 2px; height: 4px; background: currentColor; border-radius: 1px; transition: height 0.2s; }
.sound-waves i:nth-child(2) { height: 8px; }
.sound-waves i:nth-child(3) { height: 6px; }
.sound-btn[aria-pressed="true"] .sound-waves i { height: 10px; background: var(--coral-deep); animation: soundWave 0.8s ease-in-out infinite alternate; }
.sound-btn[aria-pressed="true"] .sound-waves i:nth-child(2) { animation-delay: 0.2s; }
.sound-btn[aria-pressed="true"] .sound-waves i:nth-child(3) { animation-delay: 0.4s; }
@keyframes soundWave { to { height: 3px; } }
.menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(59, 43, 39, 0.3);
  border-radius: 10px;
  background-color: transparent;
  background-image:
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor);
  background-size: 18px 2px;
  background-repeat: no-repeat;
  background-position: center 11px, center 18px, center 25px;
  cursor: pointer;
  padding: 0;
}
.menu-btn span { display: none; }
.xp-track {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 3px;
  background: rgba(59, 43, 39, 0.1);
  border-radius: 0 0 18px 18px;
  overflow: visible;
}
.xp-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--coral);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s linear;
}
.xp-label {
  position: absolute;
  right: 0;
  bottom: -14px;
  font-family: var(--font-pixel);
  font-size: 6.5px;
  color: var(--cocoa-2);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
/* night header */
.site-header.is-night .header-pill {
  background: rgba(20, 16, 46, 0.94);
  border-color: var(--gold);
  box-shadow: 0 22px 50px -26px #000;
}
.site-header.is-night .brand-word { color: var(--cream); }
.site-header.is-night .brand-en { color: var(--gold); }
.site-header.is-night .nav-link { color: #c9c4e2; }
.site-header.is-night .nav-link:hover { background: rgba(255, 255, 255, 0.08); color: var(--cream); }
.site-header.is-night .nav-link.is-active { background: var(--gold); color: var(--navy); }
.site-header.is-night .sound-btn { border-color: rgba(246, 196, 83, 0.4); color: var(--cream); }
.site-header.is-night .sound-btn:hover { background: rgba(255, 255, 255, 0.08); }
.site-header.is-night .sound-btn[aria-pressed="true"] .sound-waves i { background: var(--gold); }
.site-header.is-night .menu-btn { border-color: rgba(246, 196, 83, 0.4); color: var(--gold); }
.site-header.is-night .admin-entry { border-color: rgba(246, 196, 83, 0.35); background: rgba(255, 255, 255, 0.04); color: var(--cream); }
.site-header.is-night .admin-entry:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--gold); }
.site-header.is-night .xp-track { background: rgba(255, 255, 255, 0.12); }
.site-header.is-night .xp-fill { background: var(--gold); }
.site-header.is-night .xp-label { color: var(--gold); }

/* mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  padding: 22px 24px 30px;
  overflow-y: auto;
  background: var(--paper);
  background-image: radial-gradient(var(--peach) 1.3px, transparent 1.3px);
  background-size: 16px 16px;
  animation: menuIn 0.4s var(--ease);
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-12px); } }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; }
.mobile-menu-head .brand-word { font-size: 34px; }
.mobile-menu-close {
  width: 44px;
  height: 44px;
  border: var(--border);
  border-radius: 50%;
  background: var(--white);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.mobile-nav { display: flex; flex-direction: column; margin-top: 32px; }
.mobile-nav a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1.5px solid rgba(59, 43, 39, 0.16);
  font-family: var(--font-display);
  font-style: oblique;
  font-size: clamp(34px, 9vw, 52px);
  line-height: 1.1;
}
.mobile-nav a em { font-family: var(--font-pixel); font-size: 8px; font-style: normal; color: var(--coral-deep); }
.mobile-menu-foot { margin-top: auto; display: flex; align-items: center; gap: 16px; }
.mobile-menu-foot p { font-size: 12px; color: var(--cocoa-2); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 116px 0 64px;
  background:
    radial-gradient(circle at 82% 18%, rgba(248, 207, 196, 0.55), transparent 34%),
    var(--paper);
}
.halftone {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(var(--peach) 1.35px, transparent 1.35px);
  background-size: 15px 15px;
  opacity: 0.5;
}
.halftone-hero {
  left: auto;
  width: 56%;
  mask-image: radial-gradient(circle at 70% 45%, #000 0, transparent 68%);
  -webkit-mask-image: radial-gradient(circle at 70% 45%, #000 0, transparent 68%);
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 36px;
  flex: 1;
}
.hero-copy { position: relative; z-index: 3; }
.hero-title {
  margin: 16px 0 20px;
  font-family: var(--font-display);
  font-style: oblique;
  font-weight: 400;
  font-size: clamp(50px, 6.4vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.hero-sub {
  max-width: 520px;
  margin: 0;
  font-size: 17px;
  line-height: 1.85;
  color: var(--cocoa-2);
}
.hero-sub-line { display: block; }
.hero-sub-line + .hero-sub-line { margin-top: 2px; }
.hero-belief {
  margin: 18px 0 0;
  padding-left: 14px;
  border-left: 3px solid var(--coral);
  font-size: 14px;
  line-height: 1.8;
  color: var(--cocoa-2);
}
.mascot-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 6px 12px 6px 6px;
  border: 1.5px solid rgba(59, 43, 39, 0.22);
  border-radius: 999px;
  background: rgba(255, 253, 251, 0.62);
  font-size: 12px;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s;
}
.mascot-link:hover { background: var(--white); transform: translateY(-2px); }
.mascot-link b { color: var(--coral-deep); font-weight: 800; }
.mascot-mini { width: 32px; height: 32px; display: inline-grid; place-items: center; flex-shrink: 0; }
.mascot-mini svg { width: 32px; height: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1.5px dashed rgba(59, 43, 39, 0.18);
}
.hero-stat { display: flex; align-items: baseline; gap: 8px; }
.hero-stat strong {
  font-family: var(--font-display);
  font-style: oblique;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1;
  color: var(--cocoa);
}
.hero-stat strong .stat-num { font-weight: inherit; font-variant-numeric: tabular-nums; }
.hero-stat strong em {
  display: inline-block;
  font-size: 0.45em;
  font-style: normal;
  margin-left: 2px;
  color: var(--coral-deep);
}
.hero-stat span { font-size: 12px; color: var(--cocoa-2); }

/* hero visual */
.hero-visual {
  position: relative;
  height: min(60vh, 560px);
  min-height: 430px;
  perspective: 1200px;
  will-change: transform;
}
.hero-blob {
  position: absolute;
  left: 10%;
  top: 8%;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 46% 54% 58% 42% / 44% 42% 58% 56%;
  background: var(--peach);
  transform: rotate(-8deg) translate3d(calc(var(--mx, 0) * -16px), calc(var(--my, 0) * -10px), 0);
  box-shadow: inset -20px -30px 60px rgba(217, 92, 72, 0.14);
  transition: transform 0.45s var(--ease);
}
.hero-blob::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: radial-gradient(rgba(255, 253, 251, 0.55) 2px, transparent 2px);
  background-size: 18px 18px;
  opacity: 0.55;
}
.hero-orbit {
  position: absolute;
  border: 1.5px dashed rgba(59, 43, 39, 0.22);
  border-radius: 50%;
  pointer-events: none;
}
.orbit-a { width: 86%; aspect-ratio: 1; left: 7%; top: 4%; animation: orbit 40s linear infinite; }
.orbit-b { width: 64%; aspect-ratio: 1; left: 18%; top: 15%; animation: orbit 28s linear infinite reverse; }
@keyframes orbit { to { transform: rotate(360deg); } }
.phone {
  position: absolute;
  width: clamp(166px, 16vw, 204px);
  aspect-ratio: 390 / 800;
  padding: 7px;
  border: 2px solid var(--cocoa);
  border-radius: 30px;
  background: var(--navy);
  box-shadow: 0 22px 44px -26px rgba(59, 43, 39, 0.6), 0 4px 0 rgba(59, 43, 39, 0.14);
  overflow: hidden;
  will-change: transform;
  transition: transform 0.35s var(--ease);
}
.phone-a { left: 4%; top: 9%; transform: translate3d(calc(var(--mx, 0) * 14px), calc(var(--my, 0) * 9px), 0) rotate(-7deg); z-index: 2; }
.phone-b { left: 33%; top: 0; transform: translate3d(calc(var(--mx, 0) * 8px), calc(var(--my, 0) * 6px), 0) rotate(1.5deg); z-index: 3; }
.phone-c { right: 0; top: 13%; transform: translate3d(calc(var(--mx, 0) * 18px), calc(var(--my, 0) * 12px), 0) rotate(7.5deg); z-index: 1; }
.phone-notch {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 34%;
  height: 9px;
  border-radius: 99px;
  background: #07051a;
  transform: translateX(-50%);
  z-index: 4;
}
.phone-screen {
  position: relative;
  height: 100%;
  padding: 24px 12px 12px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 12%, rgba(246, 196, 83, 0.12), transparent 30%),
    linear-gradient(180deg, #1c1652 0%, #0d0a2a 100%);
  color: var(--cream);
  overflow: hidden;
}
.phone-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.5) 0.7px, transparent 0.7px);
  background-size: 22px 22px;
  opacity: 0.5;
  pointer-events: none;
}
.phone-glare {
  position: absolute;
  inset: 7px;
  border-radius: 24px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.16), transparent 34%);
  pointer-events: none;
}
.mini-top { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 2; }
.mini-brand { font-family: var(--font-display); font-style: oblique; font-size: 13px; }
.mini-lv { font-family: var(--font-pixel); font-size: 6px; color: var(--gold); }
.mini-greet { margin-top: 12px; font-size: 12px; font-weight: 700; position: relative; z-index: 2; }
.mini-xp { margin-top: 7px; height: 5px; background: rgba(255, 255, 255, 0.12); position: relative; z-index: 2; }
.mini-xp span { display: block; height: 100%; background: var(--gold); }
.mini-xp em { position: absolute; right: 0; top: 7px; font-family: var(--font-pixel); font-size: 5px; color: var(--gold); font-style: normal; }
.mini-ring { position: relative; width: 128px; height: 128px; margin: 26px auto 12px; z-index: 2; }
.mini-ring svg { width: 100%; height: 100%; }
.mini-ring-copy { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mini-ring-copy strong { font-family: var(--font-display); font-style: oblique; font-size: 30px; line-height: 1; }
.mini-ring-copy span { font-family: var(--font-pixel); font-size: 5px; color: var(--gold); margin-top: 4px; }
.mini-ring-copy em { margin-top: 7px; padding: 3px 7px; border: 1px solid rgba(246, 196, 83, 0.5); font-size: 6px; font-style: normal; color: var(--gold); }
.mini-bars { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 7px; font-size: 7px; }
.mini-bars > div { display: grid; grid-template-columns: 32px 1fr 42px; align-items: center; gap: 5px; }
.mini-bars em { font-style: normal; color: #a8afd8; text-align: right; }
.mini-bars i { display: block; height: 5px; background: rgba(255, 255, 255, 0.1); }
.mini-bars b { display: block; height: 100%; background: var(--gold); }
.mini-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 14px; position: relative; z-index: 2; }
.mini-actions span { padding: 8px 4px; border: 1px solid rgba(246, 196, 83, 0.6); background: rgba(246, 196, 83, 0.08); font-size: 7px; text-align: center; }
.mini-actions span:last-child { background: var(--blue); border-color: var(--blue); }

.camera-screen { display: flex; flex-direction: column; }
.camera-top { display: flex; justify-content: space-between; font-size: 8px; color: var(--gold); position: relative; z-index: 2; }
.camera-frame {
  position: relative;
  flex: 1;
  margin: 18px 0 12px;
  border: 1px solid rgba(246, 196, 83, 0.35);
  background: linear-gradient(180deg, #241b57, #0b0822);
  overflow: hidden;
}
.camera-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 0.8px, transparent 0.8px);
  background-size: 14px 14px;
}
.camera-corner { position: absolute; width: 16px; height: 16px; border-color: var(--gold); border-style: solid; z-index: 3; }
.camera-corner.tl { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.camera-corner.tr { top: 8px; right: 8px; border-width: 2px 2px 0 0; }
.camera-corner.bl { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; }
.camera-corner.br { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }
.camera-dish { position: absolute; left: 50%; top: 46%; width: 86px; height: 86px; transform: translate(-50%, -50%); }
.camera-scan {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 12%;
  height: 2px;
  background: var(--gold);
  box-shadow: 0 0 12px 2px rgba(246, 196, 83, 0.65);
  animation: scan 2.8s ease-in-out infinite;
}
@keyframes scan { 0%, 100% { top: 12%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 92% { top: 84%; opacity: 0; } }
.camera-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 3;
  padding: 4px 6px;
  background: var(--gold);
  color: var(--navy);
  font-size: 6px;
  font-weight: 800;
}
.camera-copy { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 3px; }
.camera-copy strong { font-size: 10px; }
.camera-copy span { font-size: 7px; color: #a8afd8; }
.camera-shutter { width: 30px; height: 30px; border: 2px solid var(--cream); border-radius: 50%; margin: 10px auto 0; position: relative; z-index: 2; }
.camera-shutter::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--coral); }

.report-screen { display: flex; flex-direction: column; }
.report-top { display: flex; justify-content: space-between; font-size: 8px; color: var(--gold); position: relative; z-index: 2; }
.report-top em { font-family: var(--font-pixel); font-size: 6px; font-style: normal; }
.report-score { margin-top: 18px; position: relative; z-index: 2; }
.report-score strong { font-family: var(--font-display); font-style: oblique; font-size: 54px; line-height: 0.9; color: var(--gold); }
.report-score span { display: block; font-size: 7px; color: #a8afd8; margin-top: 4px; }
.report-chart { display: flex; align-items: flex-end; gap: 4px; height: 70px; margin-top: 14px; padding-top: 6px; border-bottom: 1px solid rgba(246, 196, 83, 0.3); position: relative; z-index: 2; }
.report-chart i { flex: 1; height: var(--h); background: linear-gradient(180deg, var(--gold), rgba(246, 196, 83, 0.2)); }
.report-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; position: relative; z-index: 2; }
.report-tags span { padding: 3px 5px; border: 1px solid rgba(47, 224, 200, 0.45); color: var(--teal); font-size: 6px; }
.report-badge { margin-top: auto; padding: 6px; border: 1px solid var(--gold); background: rgba(246, 196, 83, 0.08); color: var(--gold); font-size: 6px; text-align: center; position: relative; z-index: 2; }

.hero-mascot {
  position: absolute;
  right: -4%;
  bottom: 1%;
  width: clamp(120px, 15vw, 180px);
  z-index: 5;
  filter: drop-shadow(0 18px 18px rgba(59, 43, 39, 0.22));
  animation: mascotBob 2.8s steps(2, end) infinite;
  transform-origin: 50% 92%;
}
.hero-mascot svg, .cta-mascot svg { width: 100%; height: auto; }
@keyframes mascotBob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-7px) rotate(1deg); } }
.float-icon {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 52px;
  height: 52px;
  z-index: 0;
  animation: floatIcon 5s ease-in-out infinite alternate;
  animation-delay: calc(var(--x) * 0.1);
  filter: drop-shadow(0 8px 8px rgba(59, 43, 39, 0.12));
}
.float-icon svg { width: 100%; height: 100%; }
@keyframes floatIcon { to { transform: translateY(-12px) rotate(5deg); } }
.spark { position: absolute; width: 9px; height: 9px; background: var(--gold); z-index: 0; animation: twinkle 2.6s steps(2, end) infinite; }
.sp-1 { left: 46%; top: 3%; }
.sp-2 { right: 22%; top: 42%; animation-delay: 0.7s; }
.sp-3 { left: 2%; top: 45%; animation-delay: 1.3s; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(0.5); } 50% { opacity: 1; transform: scale(1); } }

.scroll-hint {
  position: absolute;
  right: 28px;
  bottom: 96px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--cocoa-2);
}
.scroll-hint i {
  width: 1.5px;
  height: 26px;
  background: var(--cocoa-2);
  animation: hintDrop 1.8s var(--ease) infinite;
  transform-origin: top;
}
@keyframes hintDrop { 0% { transform: scaleY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ============================================================
   BELIEF
   ============================================================ */
.belief { background: linear-gradient(180deg, var(--paper) 0%, #fdf8f4 100%); }
.watermark {
  position: absolute;
  left: -2%;
  top: 10%;
  z-index: 0;
  font-family: var(--font-display);
  font-style: oblique;
  font-size: clamp(90px, 14vw, 220px);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: rgba(59, 43, 39, 0.045);
  white-space: nowrap;
  transform: rotate(-4deg);
  pointer-events: none;
}
.belief-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
}
.belief-title .display { margin: 18px 0 24px; }
.belief-sign { margin: 0; font-size: 13px; letter-spacing: 0.08em; color: var(--coral-deep); font-weight: 700; }
.belief-title .eyebrow, .belief-sign { transition: opacity 0.35s var(--ease); }
.belief-title.is-handoff .eyebrow,
.belief-title.is-handoff .belief-sign { opacity: 0; }
.belief-body { display: flex; flex-direction: column; }
.belief-lines p { margin: 0 0 5px; font-size: clamp(16px, 1.35vw, 20px); line-height: 1.85; }
.belief-gap { margin-top: 20px !important; color: var(--cocoa-2); }
.belief-visual { position: relative; height: 266px; margin-top: 24px; will-change: transform; }
.tray {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72%;
  height: 160px;
  border: 3px solid var(--cocoa);
  border-radius: 26px;
  background: linear-gradient(180deg, #f1e1d7, #dfc5b7);
  box-shadow: 0 8px 0 rgba(59, 43, 39, 0.14), 0 26px 50px -34px rgba(59, 43, 39, 0.45);
  transform: rotate(-3deg);
  overflow: hidden;
}
.tray::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1.5px dashed rgba(59, 43, 39, 0.22);
  border-radius: 18px;
}
.tray-plate {
  position: absolute;
  left: 10%;
  top: 22%;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--cocoa);
  box-shadow: inset 0 0 0 7px #f2e6dc;
}
.tray-food { position: absolute; width: 42px; height: 42px; }
.tf-1 { left: 13%; top: 30%; }
.tf-2 { left: 22.5%; top: 38%; }
.tf-3 { right: 25%; top: 30%; }
.tf-4 { right: 12%; bottom: 16%; }
.tray-steam { position: absolute; right: 26%; top: 14%; width: 26px; height: 26px; opacity: 0.75; }
.tray-steam::before, .tray-steam::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 18px;
  border-radius: 99px;
  background: rgba(255, 253, 251, 0.8);
  filter: blur(3px);
  animation: steam 3s ease-in-out infinite;
}
.tray-steam::after { left: 12px; animation-delay: 1.2s; }
@keyframes steam { 0% { transform: translateY(10px) scaleY(0.6); opacity: 0; } 40% { opacity: 0.9; } 100% { transform: translateY(-14px) scaleY(1.2); opacity: 0; } }
.float-card {
  position: absolute;
  z-index: 3;
  padding: 12px 14px;
  border: var(--border);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-hard);
  animation: floatCard 5.5s ease-in-out infinite alternate;
}
@keyframes floatCard { to { transform: translateY(-10px) rotate(1deg); } }
.card-ring { right: 5%; top: 0; width: 178px; text-align: center; }
.card-ring .mini-ring { width: 84px; height: 84px; margin: 0 auto 6px; }
.card-ring .mini-ring-copy strong { font-size: 19px; color: var(--cocoa); font-variant-numeric: tabular-nums; }
.card-ring .mini-ring-copy span { font-size: 6.5px; margin-top: 2px; color: var(--coral-deep); }
.card-ring .ring-progress { transition: stroke-dashoffset 3s var(--ease); }
.card-ring > em { display: block; font-style: normal; font-size: 10px; letter-spacing: 0.06em; color: var(--cocoa-2); }
.card-report { right: 0; top: 57%; display: flex; align-items: center; gap: 10px; animation-delay: 0.8s; }
.card-report .card-icon, .card-scale .card-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--paper-2); }
.card-report strong, .card-scale strong { display: block; font-size: 11px; }
.card-report em, .card-scale em { display: block; font-size: 9px; font-style: normal; color: var(--coral-deep); }
.card-scale { left: 0; top: 6px; bottom: auto; display: flex; align-items: center; gap: 10px; animation-delay: 1.5s; }
.mascot-walker {
  position: absolute;
  left: -70px;
  bottom: 22px;
  z-index: 3;
  width: 40px;
  height: 40px;
  animation: walkAcross 22s linear infinite;
  opacity: 0.9;
}
.mascot-walker svg { width: 100%; height: 100%; }
@keyframes walkAcross { to { transform: translateX(calc(100vw + 140px)); } }

/* ============================================================
   WHAT'S NEW
   ============================================================ */
.whats-new {
  justify-content: space-between;
  padding: 92px 0 18px;
  background: var(--paper);
}
.marquee-zone { overflow: hidden; padding: 18px 0 8px; transform: rotate(-1.2deg) scale(1.02); }
.marquee-row { overflow: hidden; padding: 7px 0; }
.marquee { display: flex; width: max-content; will-change: transform; animation: marquee 52s linear infinite; }
.row-b .marquee { animation-direction: reverse; animation-duration: 64s; }
.marquee:hover { animation-play-state: paused; }
.marquee-zone.is-paused .marquee,
.menu-ticker.is-paused .menu-ticker-track { animation-play-state: paused; }
.marquee-set { display: flex; gap: 14px; padding-right: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 196px;
  padding: 9px 18px 9px 9px;
  border: 1.5px solid var(--cocoa);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 4px 0 rgba(59, 43, 39, 0.12);
  transform: rotate(var(--r, 0deg));
  transition: transform 0.25s var(--spring), box-shadow 0.25s;
}
.marquee-item:hover { transform: translateY(-6px) rotate(0) scale(1.04); box-shadow: 0 10px 0 rgba(59, 43, 39, 0.1); }
.marquee-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 13px; background: var(--tile, var(--peach)); flex-shrink: 0; }
.marquee-icon svg { width: 42px; height: 42px; }
.marquee-copy { display: flex; flex-direction: column; gap: 2px; }
.marquee-copy strong { font-size: 13px; line-height: 1.2; }
.marquee-copy span { font-size: 10px; color: var(--cocoa-2); }
.whats-copy { position: relative; z-index: 2; max-width: 820px; margin: auto; text-align: center; padding: 24px 0 34px; }
.whats-copy .eyebrow { justify-content: center; }
.whats-copy .display { margin: 16px 0 18px; }
.whats-copy .section-sub { margin-inline: auto; }
.whats-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 24px; }
.menu-ticker {
  position: relative;
  z-index: 3;
  overflow: hidden;
  padding: 9px 0;
  background: var(--coral);
  color: var(--white);
  transform: rotate(-1.3deg) scale(1.02);
  border-top: 2px solid var(--cocoa);
  border-bottom: 2px solid var(--cocoa);
}
.menu-ticker-track { display: flex; width: max-content; gap: 28px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; animation: marquee 38s linear infinite; }
.menu-ticker-track span { white-space: nowrap; }

/* ============================================================
   QUEST / PIXEL
   ============================================================ */
.quest {
  background:
    radial-gradient(2px 2px at 12% 22%, rgba(246, 196, 83, 0.85), transparent),
    radial-gradient(2px 2px at 28% 68%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(2px 2px at 52% 18%, rgba(246, 196, 83, 0.55), transparent),
    radial-gradient(2px 2px at 74% 78%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(2px 2px at 90% 28%, rgba(246, 196, 83, 0.7), transparent),
    linear-gradient(180deg, #191447 0%, #14102e 45%, #0b0822 100%);
  color: var(--cream);
  justify-content: flex-start;
  padding: 0;
  min-height: 180svh;
  overflow: visible;
}
.quest::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.35) 0.7px, transparent 0.7px);
  background-size: 34px 34px;
  opacity: 0.3;
  pointer-events: none;
}
.quest-sticky {
  position: sticky;
  top: 0;
  z-index: 2;
  width: 100%;
  min-height: 100svh;
  padding: 88px 0 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.quest-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}
.quest-title { margin-top: 12px; color: var(--cream); }
.quest-intro {
  max-width: 400px;
  margin: 0 0 4px;
  text-align: right;
  font-size: 14px;
  line-height: 1.85;
  color: #b9b4d6;
}
.battle-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 326px;
  gap: 18px;
  align-items: stretch;
}
.crt {
  position: relative;
  padding: 6px;
  border: 3px solid var(--gold);
  border-radius: 5px;
  background: #090617;
  box-shadow: 0 0 0 2px #000, 7px 7px 0 #000, 0 30px 70px -30px rgba(246, 196, 83, 0.3);
}
.crt-inner {
  position: relative;
  height: clamp(290px, 45vh, 452px);
  overflow: hidden;
  border: 2px solid #000;
  background: #120d35;
  image-rendering: pixelated;
}
.crt-label {
  display: flex;
  justify-content: space-between;
  padding: 5px 2px 0;
  font-family: var(--font-pixel);
  font-size: 6px;
  letter-spacing: 0.12em;
  color: var(--gold);
}
.scene-stars { position: absolute; inset: 0; background: radial-gradient(1.5px 1.5px at 14% 18%, #ffe9a8, transparent), radial-gradient(1.5px 1.5px at 36% 12%, #fff, transparent), radial-gradient(1.5px 1.5px at 66% 22%, #f6c453, transparent), radial-gradient(1.5px 1.5px at 86% 14%, #fff, transparent), radial-gradient(1.5px 1.5px at 48% 34%, rgba(255, 255, 255, 0.6), transparent); background-size: 100% 100%; }
.scene-windows { position: absolute; left: 7%; top: 12%; display: flex; gap: 20px; opacity: 0.85; }
.scene-windows i { width: 56px; height: 42px; background: linear-gradient(180deg, #ffcf7a, #df8c3a); border: 2px solid #3a1d12; box-shadow: inset 0 0 0 3px rgba(58, 29, 18, 0.35); position: relative; }
.scene-windows i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 47%, #3a1d12 47% 53%, transparent 53%), linear-gradient(180deg, transparent 47%, #3a1d12 47% 53%, transparent 53%); }
.scene-counter { position: absolute; left: 0; right: 0; bottom: 16%; height: 30%; background: linear-gradient(180deg, #512c3b 0%, #2b1728 100%); border-top: 3px solid #b57a3c; box-shadow: inset 0 4px 0 rgba(255, 217, 145, 0.25); }
.scene-counter::before { content: ""; position: absolute; left: 6%; right: 6%; top: 18%; height: 45%; background: repeating-linear-gradient(90deg, rgba(255, 207, 122, 0.18) 0 3px, transparent 3px 14px); }
.scene-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 16%; background: repeating-linear-gradient(90deg, #1c1338 0 26px, #17102f 26px 52px); border-top: 2px solid #3b2a5e; }
.scene-steam { position: absolute; left: 30%; bottom: 38%; display: flex; gap: 16px; opacity: 0.5; }
.scene-steam i { width: 9px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, 0.45); filter: blur(5px); animation: sceneSteam 4s ease-in-out infinite; }
.scene-steam i:nth-child(2) { animation-delay: 1.2s; }
.scene-steam i:nth-child(3) { animation-delay: 2.3s; }
@keyframes sceneSteam { 0% { transform: translateY(12px) scaleY(0.6); opacity: 0; } 40% { opacity: 0.7; } 100% { transform: translateY(-30px) scaleY(1.2); opacity: 0; } }

.hud-top {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 9px;
  letter-spacing: 0.04em;
  color: var(--gold);
  text-shadow: 1px 1px 0 #000;
}
.hud-boss { color: #ffb3a6; }
.hud-boss b { font-family: var(--font-pixel); font-size: 6px; color: var(--red); margin-left: 5px; }
.boss-hp {
  position: absolute;
  right: 14px;
  top: 26px;
  width: 33%;
  height: 7px;
  border: 1.5px solid var(--gold);
  background: #000;
  padding: 1px;
}
.boss-hp span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #ff8b73, #d02d2d); transition: width 0.55s var(--ease); }
.fighter { position: absolute; z-index: 3; }
.fighter svg { width: 100%; height: auto; }
.boss { right: 12%; bottom: 24%; width: clamp(120px, 16vw, 200px); animation: bossFloat 3.4s ease-in-out infinite; transform-origin: 50% 80%; }
@keyframes bossFloat { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
.boss.is-hit { animation: bossHit 0.4s steps(2, end) 2; }
@keyframes bossHit { 0%, 100% { transform: translateX(0); filter: none; } 25% { transform: translateX(-8px); filter: brightness(2); } 75% { transform: translateX(8px); filter: brightness(1.6); } }
.player { left: 13%; bottom: 19%; width: clamp(82px, 9vw, 124px); animation: playerIdle 2.2s steps(2, end) infinite; transform-origin: 50% 90%; }
@keyframes playerIdle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.player.is-attacking { animation: playerAttack 0.45s var(--ease); }
@keyframes playerAttack { 0% { transform: translateX(0) rotate(0); } 45% { transform: translateX(90px) rotate(8deg); } 55% { transform: translateX(90px) rotate(8deg); } 100% { transform: translateX(0) rotate(0); } }
.battle-log {
  position: absolute;
  left: 14px;
  top: 100px;
  z-index: 4;
  width: 38%;
  padding: 7px 9px;
  border-left: 2px solid var(--teal);
  background: rgba(8, 6, 24, 0.55);
  font-size: 9.5px;
  line-height: 1.65;
  color: #bff7ea;
  white-space: pre-line;
  pointer-events: none;
}
.battle-log::before {
  content: "BATTLE LOG";
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-pixel);
  font-size: 5px;
  letter-spacing: 0.12em;
  color: var(--gold);
}
.battle-log b { color: var(--gold); font-weight: 700; }
.damage-layer { position: absolute; inset: 0; z-index: 8; pointer-events: none; overflow: hidden; }
.damage-number {
  position: absolute;
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--gold);
  text-shadow: 2px 2px 0 #000;
  animation: damageUp 0.9s var(--ease) forwards;
}
@keyframes damageUp { 0% { opacity: 0; transform: translateY(10px) scale(0.7); } 20% { opacity: 1; transform: translateY(0) scale(1.1); } 100% { opacity: 0; transform: translateY(-42px) scale(1); } }
.hud-bottom {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  z-index: 6;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.player-plate {
  width: 228px;
  padding: 6px 8px;
  border: 1px solid rgba(246, 196, 83, 0.45);
  background: rgba(0, 0, 0, 0.46);
  font-size: 8px;
}
.plate-name { display: flex; justify-content: space-between; align-items: baseline; }
.plate-name strong { font-size: 9px; }
.plate-name span { font-family: var(--font-pixel); font-size: 5px; color: var(--gold); }
.xp-track-dark { position: static; height: 5px; margin: 4px 0 3px; background: rgba(255, 255, 255, 0.12); border-radius: 0; }
.xp-track-dark span { display: block; width: 42%; height: 100%; background: var(--teal); transition: width 0.4s var(--ease); }
.player-plate em { font-family: var(--font-pixel); font-size: 5px; font-style: normal; color: #b9b4d6; }
.skills { display: flex; gap: 5px; }
.skill {
  width: 70px;
  height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1.5px solid rgba(246, 196, 83, 0.55);
  background: rgba(20, 16, 46, 0.92);
  color: var(--cream);
  font-size: 7px;
  cursor: pointer;
  transition: transform 0.12s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.skill i { width: 17px; height: 17px; display: block; }
.skill i svg { width: 100%; height: 100%; }
.skill:hover { background: rgba(246, 196, 83, 0.12); }
.skill:active { transform: translateY(2px); }
.skill.is-active { background: var(--gold); color: var(--navy); border-color: #fff3c4; box-shadow: 0 0 22px rgba(246, 196, 83, 0.55); transform: translateY(-3px); }
.skill.is-active i svg * { fill: var(--navy) !important; }
.victory {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 5, 20, 0.82);
  backdrop-filter: blur(4px);
}
.victory.is-show { animation: victoryIn 0.5s var(--ease); }
@keyframes victoryIn { from { opacity: 0; } }
.victory-inner {
  width: min(500px, 92%);
  padding: 20px 24px;
  border: 2px solid var(--gold);
  background: linear-gradient(180deg, #201952, #120d35);
  text-align: center;
  box-shadow: 0 0 0 2px #000, 6px 6px 0 #000, 0 0 60px rgba(246, 196, 83, 0.3);
}
.victory-kicker { font-family: var(--font-pixel); font-size: 14px; color: var(--gold); letter-spacing: 0.08em; }
.victory-inner > strong { display: block; margin: 12px 0; font-family: var(--font-display); font-style: oblique; font-size: clamp(22px, 2.4vw, 32px); color: var(--cream); line-height: 1.1; }
.victory-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 12px 0; }
.victory-stats span { padding: 7px 3px; border: 1px solid rgba(47, 224, 200, 0.3); font-size: 8px; color: #bff7ea; }
.victory-stats b { display: block; font-family: var(--font-pixel); font-size: 12px; color: var(--teal); margin-bottom: 4px; }
.victory-inner > em { display: block; font-size: 9px; font-style: normal; color: var(--gold); }
.scanlines {
  position: absolute;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, transparent 0 2px, rgba(0, 0, 0, 0.16) 2px 4px);
  opacity: 0.55;
  mix-blend-mode: multiply;
}
.scanlines::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -20%;
  height: 20%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.09), transparent);
  animation: crtScan 7s linear infinite;
}
@keyframes crtScan { to { top: 110%; } }

.quest-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(246, 196, 83, 0.28);
  background: rgba(255, 255, 255, 0.035);
}
.quest-meter { font-size: 9px; color: var(--gold); }
.quest-meter > span { font-family: var(--font-pixel); font-size: 6px; letter-spacing: 0.08em; }
.meter-track { height: 6px; margin: 6px 0; border: 1px solid rgba(246, 196, 83, 0.4); background: #000; padding: 1px; }
.meter-track i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--teal), var(--gold)); transition: width 0.4s var(--ease); }
.quest-meter em { font-size: 8px; font-style: normal; color: #b9b4d6; }
.quest-steps { display: flex; flex-direction: column; }
.quest-step { display: flex; gap: 10px; padding: 11px 0; border-top: 1px dashed rgba(246, 196, 83, 0.2); }
.quest-step b { font-family: var(--font-pixel); font-size: 9px; color: var(--gold); line-height: 1.8; }
.quest-step div { display: flex; flex-direction: column; gap: 3px; }
.quest-step strong { font-size: 15px; color: var(--cream); }
.quest-step span { font-size: 11.5px; line-height: 1.7; color: #c3bedb; }
.quest-step em { font-size: 9.5px; font-style: normal; color: var(--gold); }
.quest-replay { margin-top: auto; width: 100%; }
.quest-foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 4px;
  font-size: 10px;
  color: #b9b4d6;
}
.quest-foot p { margin: 0; color: var(--cream); }
.quest-foot span { color: var(--gold); }

/* ============================================================
   STATS
   ============================================================ */
.stats { background: var(--paper); }
.stats-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.stats-copy .display { margin: 16px 0 18px; }
.stats-board {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: auto auto;
  gap: 14px;
  will-change: transform;
}
.stat-card {
  position: relative;
  padding: 16px;
  border: 2px solid var(--gold);
  border-radius: 18px;
  background:
    radial-gradient(circle at 85% 10%, rgba(246, 196, 83, 0.13), transparent 32%),
    linear-gradient(180deg, #1d1750, #100c2c);
  color: var(--cream);
  box-shadow: 0 6px 0 rgba(59, 43, 39, 0.14);
  overflow: hidden;
}
.stat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.28) 0.6px, transparent 0.6px);
  background-size: 20px 20px;
  opacity: 0.35;
  pointer-events: none;
}
.stat-card-head { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.stat-card-head span { font-size: 11px; color: #b9b4d6; }
.stat-card-head em { font-family: var(--font-pixel); font-size: 5.5px; font-style: normal; color: var(--gold); }
.intake-card { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; }
.bars-card { grid-column: 2; grid-row: 1; }
.insight-card { grid-column: 1; grid-row: 2; }
.big-ring { position: relative; width: min(240px, 80%); aspect-ratio: 1; margin: 8px auto 4px; z-index: 2; }
.big-ring svg { width: 100%; height: 100%; transform: rotate(0deg); }
.big-ring .ring-progress { transition: stroke-dashoffset 3s var(--ease); }
.big-ring-copy { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.big-ring-copy strong { font-family: var(--font-display); font-style: oblique; font-size: clamp(44px, 4vw, 60px); line-height: 0.9; font-variant-numeric: tabular-nums; }
.big-ring-copy > span { font-family: var(--font-pixel); font-size: 7px; color: var(--gold); margin-top: 6px; }
.big-ring-copy em { margin-top: 12px; padding: 4px 9px; border: 1px solid rgba(246, 196, 83, 0.5); font-size: 8px; font-style: normal; color: #b9b4d6; }
.big-ring-copy em b { color: var(--gold); font-variant-numeric: tabular-nums; }
.intake-foot { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 10px; border-top: 1px dashed rgba(246, 196, 83, 0.25); font-size: 8px; color: #b9b4d6; }
.intake-foot b { font-weight: inherit; font-variant-numeric: tabular-nums; }
.nutrient-bars { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 11px; margin-top: 14px; }
.nbar > div { display: flex; justify-content: space-between; align-items: baseline; font-size: 9px; }
.nbar > div span { color: #d8d4ea; }
.nbar > div em { font-style: normal; color: var(--cream); font-size: 10px; }
.nbar > div em b { font-weight: inherit; font-variant-numeric: tabular-nums; }
.nbar > div em small { font-size: 7px; color: #9a94bd; }
.nbar > i { display: block; height: 7px; margin: 4px 0 3px; background: rgba(255, 255, 255, 0.1); }
.nbar > i b { display: block; width: 0; height: 100%; background: var(--c); transition: width 3s var(--ease); }
.nbar:nth-child(2) > i b { transition-delay: 0.1s; }
.nbar:nth-child(3) > i b { transition-delay: 0.2s; }
.nbar:nth-child(4) > i b { transition-delay: 0.3s; }
.stats-board.is-visible .nbar > i b { width: var(--w); }
.nbar > strong { font-size: 7px; font-weight: 400; color: #9a94bd; }
.nbar > strong.is-good { color: var(--teal); }
.insight-card {
  background: linear-gradient(135deg, var(--butter), #ffd37e);
  border-color: var(--cocoa);
  color: var(--cocoa);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.insight-card::after { display: none; }
.insight-stamp {
  position: absolute;
  right: 12px;
  top: 10px;
  padding: 3px 7px;
  border: 1.5px solid var(--coral-deep);
  color: var(--coral-deep);
  font-family: var(--font-pixel);
  font-size: 6px;
  transform: rotate(6deg);
}
.insight-card p { position: relative; z-index: 2; margin: 0; font-size: clamp(14px, 1.5vw, 18px); line-height: 1.55; font-weight: 700; }
.insight-card p b { color: var(--coral-deep); }
.insight-card > em { position: relative; z-index: 2; margin-top: 8px; font-size: 8px; font-style: normal; color: rgba(59, 43, 39, 0.62); }
.scale-card {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border-color: var(--cocoa);
  color: var(--cocoa);
}
.scale-card::after { display: none; }
.scale-icon { width: 48px; height: 48px; flex-shrink: 0; }
.scale-icon svg { width: 100%; height: 100%; }
.scale-card strong { display: block; font-size: 12px; }
.scale-card p { margin: 3px 0 4px; font-size: 9px; line-height: 1.5; color: var(--cocoa-2); }
.scale-card em { font-size: 9px; font-style: normal; font-weight: 800; color: var(--coral-deep); }

@keyframes valuePop {
  0% { transform: scale(1); }
  38% { transform: scale(1.07); }
  72% { transform: scale(0.985); }
  100% { transform: scale(1); }
}
.is-value-pop { animation: valuePop 0.55s var(--spring); }

/* ============================================================
   LEADERBOARD
   ============================================================ */
.leaderboard { background: linear-gradient(180deg, var(--paper) 0%, #f9e9e2 100%); }
.halftone-rank {
  left: auto;
  width: 45%;
  opacity: 0.55;
  mask-image: radial-gradient(circle at 70% 50%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 70% 50%, #000, transparent 70%);
}
.rank-wrap { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 22px; }
.rank-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.rank-head .display { margin-top: 12px; }
.rank-head .section-sub { text-align: right; margin: 0; }
.podium {
  display: grid;
  grid-template-columns: 1fr 1.12fr 1fr;
  gap: 14px;
  align-items: end;
  width: min(900px, 100%);
  margin: 6px auto 0;
}
.podium-card {
  position: relative;
  padding: 20px 14px 0;
  border: var(--border);
  border-radius: 22px 22px 8px 8px;
  background: var(--white);
  box-shadow: 0 7px 0 rgba(59, 43, 39, 0.14), 0 30px 50px -36px rgba(59, 43, 39, 0.4);
  text-align: center;
  opacity: 0;
  transform: translateY(56px);
  transition: transform 0.85s var(--spring) var(--d, 0s), opacity 0.5s var(--d, 0s);
}
.podium.is-visible .podium-card { opacity: 1; transform: none; }
.podium-card.first { background: linear-gradient(180deg, #fff8e7, #ffe3a3); padding-top: 28px; }
.podium-card.second { background: linear-gradient(180deg, #fffdfb, #f3e6df); }
.podium-card.third { background: linear-gradient(180deg, #fff3ec, #f8d6c9); }
.podium-card > strong { display: block; font-size: 13px; margin-top: 4px; }
.podium-meta { display: block; font-size: 10px; color: var(--cocoa-2); margin-top: 2px; }
.podium-card > em { display: inline-block; margin-top: 6px; padding: 2px 8px; border: 1px solid var(--cocoa); border-radius: 999px; font-size: 9px; font-style: normal; font-weight: 800; }
.avatar {
  width: clamp(60px, 6vw, 84px);
  aspect-ratio: 1;
  margin: 0 auto;
  border: 2px solid var(--cocoa);
  border-radius: 18px;
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 4px 0 rgba(59, 43, 39, 0.12);
}
.avatar svg { width: 100%; height: 100%; }
.medal {
  position: absolute;
  top: -28px;
  left: 50%;
  width: 56px;
  height: 56px;
  transform: translateX(-50%);
  color: var(--gold);
  filter: drop-shadow(0 4px 0 rgba(59, 43, 39, 0.18));
  z-index: 2;
}
.medal svg { width: 100%; height: 100%; }
.medal-silver { color: #b9c2cc; }
.medal-bronze { color: #c98f2b; }
.podium-base {
  margin: 14px -14px 0;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 0 0 6px 6px;
  background: var(--cocoa);
  color: var(--cream);
}
.podium-base b { font-family: var(--font-display); font-style: oblique; font-size: 34px; line-height: 1; }
.rank-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.rank-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rank-chips span { padding: 5px 10px; border: 1.5px solid rgba(59, 43, 39, 0.35); border-radius: 999px; font-size: 10px; font-weight: 700; }
.rank-note { margin: 0; font-size: 9px; line-height: 1.6; color: var(--cocoa-2); }
.rank-bottom .link-arrow { margin: 0; font-size: 11px; white-space: nowrap; }

/* ============================================================
   CANTEEN
   ============================================================ */
.canteen { background: #fffdfb; }
.canteen-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}
.canteen-copy .display { margin: 14px 0 16px; }
.canteen-features { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.feature { display: flex; align-items: flex-start; gap: 12px; }
.feature-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--cocoa);
  border-radius: 13px;
  background: var(--paper-2);
  box-shadow: 0 3px 0 rgba(59, 43, 39, 0.1);
}
.feature-icon svg { width: 32px; height: 32px; image-rendering: pixelated; }
.feature strong { display: block; font-size: 13px; }
.feature > div > span { display: block; font-size: 10px; line-height: 1.65; color: var(--cocoa-2); }
.canteen-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.canteen-actions .micro { margin: 0; }
.dashboard { transform: rotate(1.2deg); transition: transform 0.5s var(--ease); }
.dashboard:hover { transform: rotate(0); }
.dash-window {
  border: 2px solid var(--cocoa);
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 8px 0 rgba(59, 43, 39, 0.16), 0 34px 60px -36px rgba(59, 43, 39, 0.45);
}
.dash-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: var(--cocoa);
  color: var(--cream);
  font-size: 9px;
}
.dots { display: flex; gap: 4px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.dots i:nth-child(2) { background: var(--gold); }
.dots i:nth-child(3) { background: var(--teal); }
.dash-title { font-weight: 700; }
.dash-school { margin-left: auto; opacity: 0.6; font-size: 8px; }
.dash-tabs { display: flex; gap: 16px; padding: 8px 14px 0; background: var(--white); border-bottom: 1px solid rgba(59, 43, 39, 0.12); font-size: 9px; color: var(--cocoa-2); }
.dash-tabs span { padding-bottom: 6px; border-bottom: 2px solid transparent; }
.dash-tabs .is-active { color: var(--cocoa); border-color: var(--coral); font-weight: 800; }
.dash-body {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 8px;
  padding: 10px;
  background: #f7ebe4;
}
.dash-card { background: var(--white); border: 1px solid rgba(59, 43, 39, 0.16); border-radius: 10px; padding: 9px; }
.dash-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.dash-card-head strong { font-size: 9px; }
.dash-card-head em { font-size: 7px; font-style: normal; color: var(--cocoa-2); }
.dash-chart { grid-row: span 2; overflow: hidden; }
.chart-bars { display: flex; align-items: stretch; gap: 6px; height: 148px; margin-top: 8px; }
.chart-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; }
.chart-bar { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.chart-bar i { width: 100%; height: var(--h); min-height: 14px; background: linear-gradient(180deg, var(--coral), #f7b7a5); border-radius: 3px 3px 0 0; transform: scaleY(0); transform-origin: bottom; transition: transform 0.9s var(--ease); }
.dashboard.is-visible .chart-bar i { transform: scaleY(1); }
.chart-col:nth-child(2) .chart-bar i { transition-delay: 0.06s; background: linear-gradient(180deg, #f5b45c, #ffe3a3); }
.chart-col:nth-child(3) .chart-bar i { transition-delay: 0.12s; }
.chart-col:nth-child(4) .chart-bar i { transition-delay: 0.18s; background: linear-gradient(180deg, #5ecbb9, #b9f3e9); }
.chart-col:nth-child(5) .chart-bar i { transition-delay: 0.24s; background: linear-gradient(180deg, #f5b45c, #ffe3a3); }
.chart-col:nth-child(6) .chart-bar i { transition-delay: 0.3s; background: linear-gradient(180deg, #9cc8f5, #d9ecff); }
.chart-food { width: 20px; height: 20px; opacity: 0.92; }
.chart-food svg { width: 100%; height: 100%; }
.chart-col > em { font-style: normal; font-size: 8px; line-height: 1; color: var(--cocoa-2); white-space: nowrap; }
.window-row { display: grid; grid-template-columns: 58px 1fr 28px; align-items: center; gap: 6px; margin-top: 8px; font-size: 7px; }
.window-row i { display: block; height: 5px; background: var(--paper-2); }
.window-row i b { display: block; height: 100%; background: var(--coral); }
.window-row em { font-style: normal; text-align: right; color: var(--cocoa-2); font-variant-numeric: tabular-nums; }
.window-note { margin-top: 8px; padding-top: 6px; border-top: 1px dashed rgba(59, 43, 39, 0.16); font-size: 7px; color: var(--cocoa-2); }
.window-note b { color: var(--coral-deep); font-variant-numeric: tabular-nums; }
.dash-roles { display: flex; flex-direction: column; gap: 6px; }
.role-chips { display: flex; gap: 4px; margin-top: 4px; }
.role-chips span { padding: 2px 6px; border: 1px solid var(--cocoa); font-size: 6px; }
.role-chips .is-gold { background: var(--butter); }
.role-line { display: flex; align-items: center; gap: 5px; font-size: 7px; color: var(--cocoa-2); }
.role-line i { width: 5px; height: 5px; background: var(--teal); }
.role-line b { margin-left: auto; color: var(--cocoa); }
.dash-kpi { display: flex; flex-direction: column; justify-content: center; background: var(--cocoa); color: var(--cream); border-color: var(--cocoa); }
.dash-kpi span { font-size: 8px; color: #d8c8bf; }
.dash-kpi strong { font-family: var(--font-pixel); font-size: 10px; color: var(--gold); margin: 5px 0 3px; }
.dash-kpi em { font-size: 7px; font-style: normal; color: var(--teal); }
.deploy-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 12px 0;
  border-top: 1.5px dashed rgba(59, 43, 39, 0.18);
  border-bottom: 1.5px dashed rgba(59, 43, 39, 0.18);
  font-size: 10px;
  font-weight: 700;
  color: var(--cocoa-2);
}
.deploy-strip i { width: 4px; height: 4px; background: var(--coral); border-radius: 50%; }

/* ============================================================
   CTA + FOOTER
   ============================================================ */
.cta {
  background:
    radial-gradient(circle at 20% 20%, rgba(248, 207, 196, 0.5), transparent 34%),
    var(--paper);
  padding-bottom: 0;
  justify-content: space-between;
}
.halftone-cta { width: 42%; left: auto; right: 0; opacity: 0.5; mask-image: radial-gradient(circle at 70% 50%, #000, transparent 70%); -webkit-mask-image: radial-gradient(circle at 70% 50%, #000, transparent 70%); }
.cta-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 280px 260px;
  align-items: center;
  gap: 36px;
  flex: 1;
  padding: 20px 0;
}
.cta-copy .display { margin: 16px 0 16px; }
.cta-copy .btn { margin-top: 24px; }
.qr-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px;
  border: var(--border);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-hard);
  transform: rotate(2deg);
  transition: transform 0.4s var(--spring);
}
.qr-panel:hover { transform: rotate(0) translateY(-4px); }
.qr-panel strong { font-size: 12px; }
.qr-panel > span { font-size: 8px; color: var(--cocoa-2); }
.qr {
  display: grid;
  grid-template-columns: repeat(21, 1fr);
  gap: 2px;
  width: 100%;
  max-width: 210px;
  aspect-ratio: 1;
  padding: 9px;
  background: var(--white);
  border: 2px solid var(--cocoa);
  position: relative;
}
.qr i { display: block; background: transparent; }
.qr i.on { background: var(--cocoa); }
.qr i.logo { background: var(--coral); }
.qr-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 23%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 2px solid var(--cocoa);
  box-shadow: 0 0 0 3px var(--white);
}
.qr-logo svg { width: 72%; height: 72%; }
.cta-mascot {
  width: 100%;
  max-width: 260px;
  justify-self: center;
  animation: mascotBob 2.8s steps(2, end) infinite;
  filter: drop-shadow(0 22px 20px rgba(59, 43, 39, 0.18));
}
.cta-note {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-top: 1.5px dashed rgba(59, 43, 39, 0.18);
  font-size: 9px;
  color: var(--cocoa-2);
}
.footer {
  position: relative;
  z-index: 2;
  margin-top: 12px;
  padding: 34px 0 16px;
  background: var(--cocoa);
  color: var(--cream);
  border-radius: 30px 30px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.7fr 0.7fr 0.7fr 0.7fr; gap: 24px; }
.footer-logo { display: flex; align-items: center; gap: 8px; }
.footer-logo .brand-mark svg { width: 30px; height: 30px; }
.footer-logo strong { font-family: var(--font-display); font-style: oblique; font-size: 26px; font-weight: 400; }
.footer-brand p { margin: 8px 0 4px; font-size: 12px; color: #e7d9cf; }
.footer-brand em { font-size: 9px; font-style: normal; color: #a89184; }
.footer-col { display: flex; flex-direction: column; gap: 5px; font-size: 10px; }
.footer-col > strong { margin-bottom: 4px; font-size: 11px; color: var(--gold); }
.footer-col a { color: #d8c8bf; transition: color 0.2s, transform 0.2s; }
.footer-col a:hover { color: var(--cream); transform: translateX(2px); }
.footer-col > span { color: #a89184; font-size: 9px; }
.footer-qr { align-items: flex-start; }
.footer-qr .mini-qr { width: 64px; height: 64px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 12px; border-top: 1px solid rgba(255, 246, 224, 0.14); font-size: 8px; color: #a89184; }
.mini-qr { width: 70px; height: 70px; display: grid; grid-template-columns: repeat(21, 1fr); gap: 1px; padding: 5px; background: var(--white); border: 1.5px solid var(--cocoa); }
.mini-qr i { display: block; background: transparent; }
.mini-qr i.on { background: var(--cocoa); }

/* ============================================================
   BOOT / DITHER / CURSOR / MODAL / TOAST
   ============================================================ */
.boot {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: var(--paper);
  background-image: radial-gradient(var(--peach) 1.3px, transparent 1.3px);
  background-size: 16px 16px;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.boot.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-inner { width: min(360px, calc(100vw - 48px)); text-align: center; }
.boot-logo { font-family: var(--font-display); font-style: oblique; font-size: 64px; line-height: 1; }
.boot-logo span { display: block; margin-top: 8px; font-family: var(--font-pixel); font-size: 7px; letter-spacing: 0.24em; color: var(--coral-deep); }
.boot-bar { height: 12px; margin: 28px 0 10px; border: 2px solid var(--cocoa); background: var(--white); padding: 2px; }
.boot-bar span { display: block; width: 0; height: 100%; background: var(--coral); transition: width 0.12s linear; }
.boot-status { display: flex; justify-content: space-between; font-family: var(--font-pixel); font-size: 7px; letter-spacing: 0.08em; }
.boot-status b { color: var(--coral-deep); }
.boot-tip { margin: 26px 0 0; font-size: 10px; color: var(--cocoa-2); }
.confetti { position: fixed; inset: 0; z-index: 150; width: 100%; height: 100%; pointer-events: none; }
.cursor-follower {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 250;
  width: 22px;
  height: 22px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s;
}
.cursor-follower.is-active { opacity: 1; }
.cursor-follower svg { width: 100%; height: 100%; }
.cursor-crumb { position: fixed; z-index: 249; width: 4px; height: 4px; background: var(--coral); pointer-events: none; animation: crumb 0.6s var(--ease) forwards; }
@keyframes crumb { to { opacity: 0; transform: translateY(8px) scale(0.2); } }

body.modal-open { overflow: hidden; }
.mascot-svg .mascot-spoon { transform-origin: 27px 24px; animation: spoonSwing 3.6s steps(2, end) infinite; }
@keyframes spoonSwing { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-7deg); } }
.mascot-svg .mascot-steam { animation: mascotSteam 3.2s steps(2, end) infinite; }
@keyframes mascotSteam { 0%, 100% { transform: translateY(0); opacity: 0.55; } 50% { transform: translateY(-3px); opacity: 1; } }
.boss-svg .boss-eye { animation: eyePulse 2.2s steps(2, end) infinite; }
@keyframes eyePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
.is-golden svg { filter: drop-shadow(0 0 9px rgba(246, 196, 83, 0.9)) saturate(1.35) brightness(1.12); }

.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20, 16, 46, 0.55); backdrop-filter: blur(8px); }
.modal-card {
  position: relative;
  z-index: 2;
  width: min(380px, 100%);
  padding: 26px 28px 24px;
  border: var(--border);
  border-radius: 26px;
  background: var(--paper);
  box-shadow: 0 10px 0 rgba(59, 43, 39, 0.16), 0 50px 100px -40px #000;
  text-align: center;
  animation: modalIn 0.4s var(--spring);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(0.96); } }
.modal-close { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border: 1.5px solid rgba(59, 43, 39, 0.3); border-radius: 50%; background: var(--white); font-size: 20px; line-height: 1; cursor: pointer; }
.modal-qr-wrap { display: flex; justify-content: center; margin-bottom: 14px; }
.modal-qr-wrap .qr { max-width: 190px; }
.modal-card h2 { margin: 0; font-family: var(--font-display); font-style: oblique; font-size: 38px; font-weight: 400; line-height: 1; }
.modal-card > p { margin: 8px 0 0; font-size: 12px; color: var(--cocoa-2); }
.modal-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; list-style: none; padding: 0; margin: 16px 0 12px; }
.modal-steps li { padding: 7px 4px; border: 1.5px solid rgba(59, 43, 39, 0.25); border-radius: 10px; font-size: 9px; }
.modal-steps b { display: block; font-family: var(--font-pixel); font-size: 7px; color: var(--coral-deep); margin-bottom: 3px; }
.modal-card > em { display: block; font-size: 9px; font-style: normal; color: var(--cocoa-2); }
.modal-card > small { display: block; margin-top: 6px; font-size: 8px; color: rgba(59, 43, 39, 0.45); }
.toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  z-index: 260;
  padding: 10px 18px;
  border: 2px solid var(--gold);
  border-radius: 999px;
  background: var(--navy);
  color: var(--cream);
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 0 0 2px #000, 4px 4px 0 #000;
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity 0.25s, transform 0.25s var(--spring);
  pointer-events: none;
  white-space: nowrap;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.mobile-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 95;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 10px 16px;
  border: var(--border);
  border-radius: 18px;
  background: rgba(255, 253, 251, 0.95);
  box-shadow: 0 8px 0 rgba(59, 43, 39, 0.14), 0 20px 40px -20px rgba(59, 43, 39, 0.4);
  backdrop-filter: blur(12px);
  transform: translateY(120%);
  transition: transform 0.4s var(--spring);
}
.mobile-cta.is-show { transform: none; }
.mobile-cta div { display: flex; flex-direction: column; }
.mobile-cta strong { font-family: var(--font-pixel); font-size: 7px; color: var(--coral-deep); }
.mobile-cta span { font-size: 10px; color: var(--cocoa-2); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .nav-link { padding: 7px 9px; font-size: 12.5px; }
  .brand-en { display: none; }
  .hero-visual { min-height: 400px; }
  .phone { width: clamp(168px, 17vw, 205px); }
  .battle-shell { grid-template-columns: minmax(0, 1fr) 292px; }
  .skills .skill { width: 62px; }
  .cta-grid { grid-template-columns: 1fr 250px 210px; gap: 24px; }
  .footer-grid { grid-template-columns: 1.4fr 0.8fr 0.8fr 0.8fr 0.6fr; }
}
@media (max-width: 960px) {
  .nav, .header-actions > .btn, .xp-label { display: none; }
  .menu-btn { display: flex; }
  .header-actions { margin-left: auto; }
  .admin-entry { width: 36px; padding: 0; justify-content: center; }
  .admin-entry-text { display: none; }
  .header-pill { gap: 10px; }
  .hero { padding-top: 104px; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-copy { text-align: left; }
  .hero-sub { max-width: 620px; }
  .hero-visual { height: 430px; min-height: 0; width: min(560px, 100%); margin: 0 auto; }
  .hero-stats { margin-top: 18px; }
  .section { min-height: auto; padding: 92px 0 92px; }
  .cta { padding-bottom: 0; }
  .belief-grid, .stats-grid, .canteen-grid { grid-template-columns: 1fr; }
  .belief-title .display { max-width: 560px; }
  .belief-body { margin-top: 10px; }
  .belief-visual { max-width: 560px; }
  .whats-copy { padding-top: 16px; }
  .quest { min-height: auto; padding: 86px 0 40px; overflow: hidden; }
  .quest-sticky { position: static; min-height: 0; padding: 0; }
  .battle-shell { grid-template-columns: 1fr; }
  .quest-side { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .quest-steps { flex: 1; }
  .quest-step { flex: 1; min-width: 180px; border-top: 0; border-left: 1px dashed rgba(246, 196, 83, 0.2); padding: 0 0 0 10px; }
  .quest-replay { width: auto; margin-left: auto; }
  .stats-board { grid-template-columns: 1fr 1fr; }
  .intake-card { grid-row: span 2; }
  .podium { max-width: 760px; }
  .rank-head { align-items: flex-start; flex-direction: column; gap: 14px; }
  .rank-head .section-sub { text-align: left; }
  .rank-bottom { flex-wrap: wrap; }
  .rank-note { flex: 1; min-width: 240px; }
  .dashboard { max-width: 700px; margin: 8px auto 0; }
  .cta { padding-bottom: 0; }
  .cta-grid { grid-template-columns: 1fr 240px; }
  .cta-mascot { display: none; }
  .footer-grid { grid-template-columns: 1.4fr 0.7fr 0.7fr 0.7fr; }
  .footer-qr { display: none; }
  .mobile-cta {
    display: flex;
    left: auto;
    right: 12px;
    bottom: 12px;
    width: auto;
    padding: 8px 9px 8px 14px;
    gap: 10px;
    border-radius: 999px;
  }
  .mobile-cta div span { display: none; }
  .mobile-cta div strong { font-size: 7px; }
  .mobile-cta .btn { height: 40px; padding: 0 16px; font-size: 12px; }
  .scroll-hint { display: none; }
  .section-no { top: 18px; right: 20px; }
}
@media (max-width: 680px) {
  .container { width: calc(100vw - 32px); }
  .site-header { padding: 10px 10px 0; }
  .header-pill { height: 56px; border-radius: 16px; padding: 0 10px 0 12px; }
  .brand-word { font-size: 23px; }
  .brand-mark, .brand-mark svg { width: 28px; height: 28px; }
  .sound-btn { width: 34px; height: 34px; }
  .admin-entry { width: 34px; height: 34px; }
  .hero { padding: 90px 0 30px; }
  .hero-title { font-size: clamp(44px, 12vw, 64px); }
  .hero-sub { font-size: 15px; }
  .hero-belief { font-size: 13px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { height: 340px; }
  .hero-blob { left: 4%; top: 3%; width: 92%; }
  .phone { width: 42vw; max-width: 172px; border-radius: 24px; }
  .phone-a { left: 0; top: 8%; }
  .phone-b { left: 28%; top: 0; }
  .phone-c { right: 0; top: 14%; }
  .phone-screen { padding: 20px 9px 9px; border-radius: 19px; }
  .mini-ring { width: 86px; height: 86px; margin: 16px auto 8px; }
  .mini-ring-copy strong { font-size: 22px; }
  .mini-bars { gap: 4px; font-size: 6px; }
  .mini-bars > div { grid-template-columns: 26px 1fr 34px; }
  .mini-actions span { padding: 6px 3px; }
  .hero-mascot { width: 96px; right: -3%; bottom: 0; }
  .float-icon { display: none; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 14px; }
  .hero-stat strong { font-size: 30px; }
  .belief-visual { height: 250px; }
  .tray { left: 12%; width: 74%; height: 145px; }
  .tray-plate { width: 88px; height: 88px; }
  .tray-food { width: 34px; height: 34px; }
  .tf-1 { left: 14%; top: 30%; }
  .tf-2 { left: 28%; top: 42%; }
  .card-ring { width: 134px; right: 0; top: 0; }
  .card-report { left: 0; right: auto; top: auto; bottom: 4px; }
  .card-scale { display: none; }
  .watermark { top: 16%; font-size: 82px; }
  .marquee-zone { transform: rotate(-1deg) scale(1.04); }
  .marquee-item { min-width: 170px; padding: 7px 12px 7px 7px; }
  .marquee-icon { width: 46px; height: 46px; }
  .marquee-icon svg { width: 36px; height: 36px; }
  .marquee-copy strong { font-size: 12px; }
  .whats-copy .display { font-size: clamp(40px, 11vw, 58px); }
  .menu-ticker { transform: rotate(-1.5deg) scale(1.04); }
  .quest-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .quest-intro { text-align: left; }
  .quest-title { font-size: clamp(38px, 10vw, 54px); }
  .crt-inner { height: 300px; }
  .boss { right: 4%; width: 105px; }
  .player { left: 7%; bottom: 26%; width: 68px; }
  .battle-log { left: 8px; top: 78px; width: 56%; font-size: 7.5px; min-height: 52px; }
  .hud-top { left: 8px; right: 8px; font-size: 7px; }
  .boss-hp { top: 24px; right: 8px; width: 38%; }
  .hud-bottom { left: 7px; right: 7px; bottom: 7px; gap: 6px; }
  .player-plate { width: 140px; padding: 4px 5px; }
  .plate-name strong { font-size: 7px; }
  .skills { gap: 3px; }
  .skill { width: 48px; height: 40px; font-size: 6px; border-width: 1px; }
  .skill i { width: 13px; height: 13px; }
  .quest-side { padding: 10px; }
  .quest-steps { display: none; }
  .quest-replay { width: 100%; }
  .quest-foot { flex-direction: column; gap: 4px; }
  .stats-board { grid-template-columns: 1fr; }
  .intake-card, .bars-card, .insight-card, .scale-card { grid-column: auto; grid-row: auto; }
  .intake-card { grid-row: auto; }
  .big-ring { width: 210px; }
  .podium { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .podium-card { padding: 16px 6px 0; border-radius: 16px 16px 6px 6px; }
  .podium-card.first { padding-top: 24px; }
  .podium-card > strong { font-size: 9px; }
  .podium-meta { font-size: 7px; }
  .podium-card > em { font-size: 7px; padding: 1px 5px; }
  .podium-base { margin: 10px -6px 0; height: 40px; }
  .podium-base b { font-size: 25px; }
  .avatar { width: 48px; border-radius: 12px; }
  .medal { width: 40px; height: 40px; top: -20px; }
  .rank-chips span { font-size: 8px; }
  .rank-note { font-size: 8px; }
  .canteen-actions { align-items: flex-start; flex-direction: column; }
  .chart-bars { height: 118px; }
  .dash-body { grid-template-columns: 1fr; }
  .dash-chart { grid-row: auto; }
  .dash-kpi { display: none; }
  .dash-windows, .dash-roles { display: none; }
  .deploy-strip { gap: 6px; font-size: 8px; }
  .cta-grid { grid-template-columns: 1fr; gap: 26px; }
  .qr-panel { max-width: 260px; justify-self: center; transform: none; }
  .cta-note { flex-direction: column; gap: 3px; }
  .footer { border-radius: 22px 22px 0 0; padding-top: 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .footer-brand { grid-column: span 2; }
  .footer-bottom { flex-direction: column; gap: 3px; }
  .boot-logo { font-size: 52px; }
  .toast { bottom: 92px; max-width: calc(100vw - 40px); white-space: normal; text-align: center; }
}
@media (max-width: 380px) {
  .hero-visual { height: 300px; }
  .phone { width: 43vw; }
  .mini-ring { width: 74px; height: 74px; }
  .skills .skill { width: 43px; font-size: 5.5px; }
}
@media (hover: none), (pointer: coarse) {
  .cursor-follower, .cursor-crumb { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee, .menu-ticker-track, .mascot-walker, .hero-mascot, .cta-mascot, .boss, .player, .float-icon, .float-card, .scanlines::after, .camera-scan, .scene-steam i, .tray-steam::before, .tray-steam::after, .sound-btn[aria-pressed="true"] .sound-waves i { animation: none !important; }
  .boot { display: none; }
  .reveal { opacity: 1; transform: none; }
  .line > span { transform: none; }
  .split-title .ch { opacity: 1 !important; transform: none !important; }
  #beliefTitle, #whatsTitle { transform: none !important; opacity: 1 !important; }
  .chart-bar i, .nbar > i b, .ring-progress, .xp-fill { transition: none !important; }
}
