/* ============================================================
   Jollibee — Joy, Served Extra Crispy
   Chapter-scroll composition · chunky rounded type · spring motion
   ============================================================ */

@font-face {
  font-family: 'Baloo 2';
  src: url('../assets/fonts/baloo2-latinext.woff2') format('woff2');
  font-weight: 400 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Baloo 2';
  src: url('../assets/fonts/baloo2-latin.woff2') format('woff2');
  font-weight: 400 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  src: url('../assets/fonts/nunito-latinext.woff2') format('woff2');
  font-weight: 400 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  src: url('../assets/fonts/nunito-latin.woff2') format('woff2');
  font-weight: 400 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --red: #e31837;
  --red-deep: #b5102b;
  --red-dark: #8c0d22;
  --yellow: #ffc72c;
  --yellow-soft: #ffd95e;
  --cream: #fff6e9;
  --brown: #54271a;
  --white: #ffffff;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --bounce: cubic-bezier(.68, -0.4, .27, 1.4);
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow-pop: 0 10px 0 rgba(0,0,0,.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Nunito', system-ui, sans-serif;
  background: var(--cream);
  color: var(--brown);
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: inherit; }

.display {
  font-family: 'Baloo 2', 'Nunito', sans-serif;
  font-weight: 800;
  line-height: .95;
  letter-spacing: -0.01em;
  margin: 0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  padding: .8rem 1.7rem;
  border: none; border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 6px 0 rgba(0,0,0,.18);
  transform: translateY(0);
  transition: transform .25s var(--spring), box-shadow .25s var(--spring), background .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 10px 0 rgba(0,0,0,.16); }
.btn:active { transform: translateY(3px) scale(.96); box-shadow: 0 2px 0 rgba(0,0,0,.2); }
.btn-yellow { background: var(--yellow); color: var(--brown); }
.btn-yellow:hover { background: var(--yellow-soft); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-deep); }
.btn-ghost { background: rgba(255,255,255,.16); color: var(--white); outline: 3px solid rgba(255,255,255,.55); }
.btn-big { font-size: 1.25rem; padding: 1rem 2.4rem; }
.btn-small { font-size: .95rem; padding: .55rem 1.2rem; box-shadow: 0 4px 0 rgba(0,0,0,.18); }

/* ---------- confetti + toast ---------- */
#confetti-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 999;
}
#toast-zone {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  z-index: 1000; display: flex; flex-direction: column; gap: 10px; align-items: center;
  pointer-events: none;
}
.toast {
  background: var(--brown); color: var(--cream);
  font-family: 'Baloo 2', sans-serif; font-weight: 700;
  padding: .8rem 1.4rem; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  animation: toast-in .5s var(--spring) both;
  display: flex; align-items: center; gap: .6rem;
  max-width: min(90vw, 480px); text-align: center;
}
.toast.toast-out { animation: toast-out .4s ease-in both; }
@keyframes toast-in { from { transform: translateY(60px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toast-out { to { transform: translateY(40px) scale(.8); opacity: 0; } }

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 500;
  display: flex; align-items: center; gap: 1rem;
  padding: .55rem clamp(1rem, 4vw, 2.5rem);
  background: var(--red);
  border-bottom: 4px solid var(--red-dark);
}
.brand img { display: block; filter: drop-shadow(0 3px 0 rgba(0,0,0,.18)); }
.mainnav { display: flex; gap: .2rem; margin-left: auto; }
.mainnav a {
  font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: .98rem;
  color: var(--cream); text-decoration: none;
  padding: .45rem .8rem; border-radius: 999px;
  transition: background .2s, transform .25s var(--spring);
}
.mainnav a:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }
.mainnav a.active { background: var(--yellow); color: var(--brown); }
.topbar-actions { display: flex; align-items: center; gap: .6rem; }
.sticker-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1rem;
  background: var(--red-deep); color: var(--yellow);
  border: none; border-radius: 999px; padding: .55rem 1rem;
  cursor: pointer; box-shadow: inset 0 -3px 0 rgba(0,0,0,.25);
  transition: transform .25s var(--spring);
}
.sticker-pill:hover { transform: scale(1.06) rotate(-2deg); }
.sticker-pill.bump { animation: pill-bump .6s var(--spring); }
@keyframes pill-bump { 30% { transform: scale(1.25) rotate(4deg); } }
.burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: .6rem;
}
.burger span { display: block; width: 26px; height: 4px; background: var(--cream); border-radius: 4px; transition: .3s var(--spring); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- chapters ---------- */
.chapter {
  position: relative;
  min-height: 92vh;
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1.2rem, 5vw, 4rem);
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
.chapter-head { text-align: center; max-width: 780px; margin: 0 auto clamp(2rem, 4vw, 3.5rem); }
.chapter-no {
  font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: .95rem;
  letter-spacing: .22em; text-transform: uppercase;
  display: inline-block; padding: .35rem 1rem; border-radius: 999px;
  background: rgba(0,0,0,.12); margin: 0 0 .9rem;
}
.chapter-head .display { font-size: clamp(2.4rem, 6vw, 4.2rem); }
.chapter-sub { font-size: clamp(1.05rem, 2vw, 1.25rem); font-weight: 600; opacity: .85; margin: 1rem 0 0; }
.chapter { scroll-margin-top: 76px; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(46px) scale(.97); }
.reveal.in { opacity: 1; transform: none; transition: opacity .5s ease, transform .7s var(--spring); }

/* ---------- HERO ---------- */
.chapter-hero {
  background: var(--red);
  color: var(--white);
  min-height: calc(100vh - 64px);
  justify-content: center;
}
.sunburst {
  position: absolute; inset: -40%;
  background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.07) 0 9deg, transparent 9deg 18deg);
  animation: sun-spin 80s linear infinite;
  pointer-events: none;
}
@keyframes sun-spin { to { transform: rotate(360deg); } }
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1rem, 4vw, 3rem);
  align-items: center; max-width: 1200px; margin: 0 auto; width: 100%;
}
.eyebrow {
  font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--yellow); text-transform: uppercase; letter-spacing: .18em; margin: 0 0 .8rem;
}
.hero-copy .display { font-size: clamp(3rem, 8.5vw, 6.4rem); text-shadow: 0 6px 0 rgba(0,0,0,.15); }
.hero-copy .highlight { color: var(--yellow); display: inline-block; transform: rotate(-1.5deg); }
.lede { font-size: clamp(1.05rem, 1.8vw, 1.3rem); font-weight: 600; line-height: 1.55; max-width: 34rem; margin: 1.4rem 0 0; opacity: .95; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-note { font-family: 'Baloo 2', sans-serif; font-weight: 700; opacity: .8; margin-top: 1.4rem; }
.pop-in { opacity: 0; animation: pop-in .8s var(--spring) forwards; }
.pop-in:nth-child(1) { animation-delay: .05s; } .pop-in:nth-child(2) { animation-delay: .15s; }
.pop-in:nth-child(3) { animation-delay: .3s; } .pop-in:nth-child(4) { animation-delay: .45s; }
.pop-in:nth-child(5) { animation-delay: .6s; }
@keyframes pop-in { from { opacity: 0; transform: translateY(40px) scale(.85); } to { opacity: 1; transform: none; } }

.hero-stage { position: relative; display: grid; place-items: center; min-height: 320px; }
.hero-mascot {
  width: min(100%, 460px);
  filter: drop-shadow(0 22px 0 rgba(0,0,0,.14));
  animation: mascot-bob 4.5s ease-in-out infinite;
}
@keyframes mascot-bob { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-22px) rotate(2deg); } }
.floaty { position: absolute; filter: drop-shadow(0 10px 14px rgba(0,0,0,.25)); }
.floaty-1 { width: 34%; top: 2%; right: -4%; animation: float-a 6s ease-in-out infinite; }
.floaty-2 { width: 30%; bottom: 4%; left: -6%; animation: float-b 7s ease-in-out infinite; }
.floaty-3 { width: 24%; bottom: -2%; right: 6%; animation: float-a 5.2s ease-in-out infinite reverse; }
@keyframes float-a { 0%,100% { transform: translateY(0) rotate(6deg); } 50% { transform: translateY(-18px) rotate(-3deg); } }
@keyframes float-b { 0%,100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-14px) rotate(4deg); } }
.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 34px; height: 56px; border-radius: 999px; border: 3px solid rgba(255,255,255,.7);
  display: flex; justify-content: center; padding-top: 8px;
}
.scroll-hint-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); animation: hint-drop 1.6s var(--bounce) infinite; }
@keyframes hint-drop { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(24px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- ticker ---------- */
.ticker { background: var(--yellow); overflow: hidden; padding: .7rem 0; border-block: 4px solid var(--brown); }
.ticker-track { display: flex; gap: 2.2rem; width: max-content; animation: ticker 22s linear infinite; }
.ticker-track span {
  font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.35rem;
  color: var(--brown); white-space: nowrap; letter-spacing: .06em;
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- MENU character select ---------- */
.chapter-menu { background: var(--cream); }
.select-layout { display: grid; grid-template-columns: 1.4fr .9fr; gap: clamp(1.2rem, 3vw, 2.5rem); max-width: 1200px; margin: 0 auto; width: 100%; align-items: start; }
.fighter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.7rem, 1.6vw, 1.2rem); }
.fighter {
  position: relative; border: none; cursor: pointer;
  background: var(--white); border-radius: var(--radius-md);
  padding: .8rem .6rem 1rem;
  box-shadow: var(--shadow-pop);
  transition: transform .3s var(--spring), box-shadow .3s var(--spring), background .2s;
  font-family: 'Baloo 2', sans-serif;
  -webkit-tap-highlight-color: transparent;
}
.fighter:hover { transform: translateY(-8px) rotate(-1.5deg) scale(1.04); box-shadow: 0 16px 0 rgba(0,0,0,.12); }
.fighter:active { transform: translateY(2px) scale(.95); box-shadow: 0 3px 0 rgba(0,0,0,.15); }
.fighter img { width: 100%; aspect-ratio: 1; object-fit: contain; pointer-events: none; }
.fighter-name { display: block; font-weight: 800; font-size: clamp(.85rem, 1.4vw, 1.02rem); color: var(--brown); margin-top: .4rem; }
.fighter.sel { background: var(--red); outline: 4px solid var(--yellow); transform: translateY(-6px) scale(1.05); }
.fighter.sel .fighter-name { color: var(--white); }
.fighter .vs { position: absolute; top: -8px; right: -8px; background: var(--yellow); color: var(--brown); font-size: .7rem; font-weight: 800; padding: .2rem .55rem; border-radius: 999px; opacity: 0; transform: scale(0); transition: .3s var(--spring); }
.fighter.sel .vs { opacity: 1; transform: scale(1) rotate(8deg); }

.scout-panel {
  position: sticky; top: 86px;
  background: var(--brown); color: var(--cream);
  border-radius: var(--radius-lg); padding: clamp(1.2rem, 2.5vw, 2rem);
  box-shadow: var(--shadow-pop);
  min-height: 420px;
}
.scout-empty { text-align: center; padding: 3rem 1rem; font-family: 'Baloo 2', sans-serif; font-size: 1.2rem; }
.scout-empty-bee { font-size: 3.4rem; animation: mascot-bob 3s ease-in-out infinite; }
.scout-card h3 { font-family: 'Baloo 2', sans-serif; font-size: 1.9rem; margin: .6rem 0 0; color: var(--yellow); }
.scout-img-wrap { background: radial-gradient(circle at 50% 42%, var(--yellow-soft), var(--yellow)); border-radius: 50%; width: 190px; height: 190px; margin: 0 auto; display: grid; place-items: center; box-shadow: inset 0 -8px 0 rgba(0,0,0,.12); }
.scout-img-wrap img { width: 82%; height: 82%; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0,0,0,.25)); animation: scout-in .55s var(--spring); }
@keyframes scout-in { from { transform: scale(.3) rotate(-14deg); opacity: 0; } }
.scout-tag { font-family: 'Baloo 2', sans-serif; font-weight: 700; opacity: .85; margin: .1rem 0 1rem; }
.stat { display: grid; grid-template-columns: 96px 1fr 42px; align-items: center; gap: .6rem; margin: .5rem 0; }
.stat-label { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: .95rem; }
.stat-bar { height: 16px; background: rgba(255,255,255,.16); border-radius: 999px; overflow: hidden; }
.stat-fill { height: 100%; width: 0; border-radius: 999px; background: var(--yellow); transition: width .8s var(--spring); }
.stat[data-stat="sarap"] .stat-fill { background: var(--red); }
.stat-num { font-family: 'Baloo 2', sans-serif; font-weight: 800; text-align: right; }
.scout-blurb { font-size: .98rem; line-height: 1.5; opacity: .9; margin: 1rem 0 1.2rem; }

/* ---------- QUIZ ---------- */
.chapter-quiz { background: var(--yellow); }
.quiz-machine {
  max-width: 760px; margin: 0 auto; width: 100%;
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop); overflow: hidden;
}
.quiz-meter { position: relative; height: 34px; background: var(--cream); border-bottom: 4px solid var(--brown); }
.quiz-meter-fill { height: 100%; width: 0; background: repeating-linear-gradient(-45deg, var(--red) 0 18px, var(--red-deep) 18px 36px); transition: width .7s var(--spring); }
.quiz-meter-label { position: absolute; inset: 0; display: grid; place-items: center; font-family: 'Baloo 2', sans-serif; font-weight: 800; letter-spacing: .2em; font-size: .8rem; color: var(--brown); mix-blend-mode: multiply; }
.quiz-body { padding: clamp(1.4rem, 4vw, 2.6rem); }
.quiz-big { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.1rem); text-align: center; margin: 0 0 1.4rem; }
.quiz-step { text-align: center; }
.quiz-q { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 0 0 1.4rem; }
.quiz-opts { display: grid; gap: .8rem; }
.quiz-opt {
  display: flex; align-items: center; gap: 1rem; text-align: left;
  background: var(--cream); border: 4px solid transparent; border-radius: var(--radius-md);
  padding: 1rem 1.2rem; cursor: pointer;
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--brown);
  transition: transform .3s var(--spring), border-color .2s, background .2s;
}
.quiz-opt:hover { transform: translateX(8px) scale(1.02); border-color: var(--yellow); background: #fff; }
.quiz-opt:active { transform: scale(.97); }
.quiz-opt .opt-emoji { font-size: 1.9rem; }
.quiz-thinking { display: grid; place-items: center; gap: 1rem; padding: 2.5rem 0; }
.quiz-thinking .think-bee { font-size: 3rem; animation: think-spin 1s var(--bounce) infinite; }
@keyframes think-spin { 0% { transform: rotate(-12deg) scale(1); } 50% { transform: rotate(12deg) scale(1.25); } 100% { transform: rotate(-12deg) scale(1); } }
.quiz-result { text-align: center; }
.quiz-result-img { width: 210px; height: 210px; object-fit: contain; animation: scout-in .6s var(--spring); }
.quiz-persona { display: inline-block; background: var(--red); color: var(--white); font-family: 'Baloo 2', sans-serif; font-weight: 800; padding: .3rem 1.1rem; border-radius: 999px; transform: rotate(-2deg); margin-bottom: .6rem; }
.quiz-result h3 { font-family: 'Baloo 2', sans-serif; font-size: 1.9rem; margin: .2rem 0 .4rem; }
.quiz-result p { max-width: 30rem; margin: 0 auto 1.2rem; font-weight: 600; }
.quiz-again { background: none; border: none; cursor: pointer; color: var(--red); font-family: 'Baloo 2', sans-serif; font-weight: 800; text-decoration: underline; font-size: 1rem; margin-top: .8rem; }

/* ---------- GAME ---------- */
.chapter-game { background: var(--red-deep); color: var(--white); }
.chapter-game .chapter-no { background: rgba(255,255,255,.15); }
.game-shell { max-width: 860px; margin: 0 auto; width: 100%; }
.game-hud { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; margin-bottom: 1rem; }
.hud-chip {
  font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 1.05rem;
  background: var(--red-dark); padding: .45rem 1.1rem; border-radius: 999px;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.3);
}
.hud-chip strong { color: var(--yellow); font-size: 1.2rem; margin-left: .3rem; }
.hud-joy { display: flex; align-items: center; gap: .5rem; font-family: 'Baloo 2', sans-serif; font-weight: 800; }
.hud-joy-bar { width: 150px; height: 16px; background: rgba(0,0,0,.3); border-radius: 999px; overflow: hidden; }
#hud-joy-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--yellow), #fff07a); border-radius: 999px; transition: width .4s var(--spring); }
.game-canvas-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-pop); border: 5px solid var(--yellow); }
#game-canvas { display: block; width: 100%; height: auto; background: #fff; touch-action: none; }
.game-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .8rem; text-align: center; padding: 1.5rem;
  background: rgba(84, 39, 26, .82); backdrop-filter: blur(3px);
  transition: opacity .35s ease, transform .35s var(--spring);
}
.game-overlay.hidden { opacity: 0; pointer-events: none; transform: scale(1.1); }
.game-overlay-title { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; color: var(--yellow); }
.game-overlay-sub { margin: 0; font-weight: 600; max-width: 26rem; }
.dpad {
  display: none;
  grid-template-areas: ". up ." "left . right" ". down .";
  gap: .5rem; justify-content: center; margin-top: 1.1rem;
}
.dpad-btn {
  width: 62px; height: 62px; border-radius: 20px; border: none;
  background: var(--yellow); color: var(--brown);
  font-size: 1.4rem; font-weight: 900; cursor: pointer;
  box-shadow: 0 5px 0 rgba(0,0,0,.25);
  transition: transform .15s var(--spring), box-shadow .15s;
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.dpad-btn:active, .dpad-btn.pressed { transform: translateY(4px) scale(.92); box-shadow: 0 1px 0 rgba(0,0,0,.25); background: var(--yellow-soft); }
.dpad-up { grid-area: up; } .dpad-left { grid-area: left; } .dpad-right { grid-area: right; } .dpad-down { grid-area: down; }
.game-hint { text-align: center; font-weight: 600; opacity: .9; margin-top: 1.1rem; }
kbd {
  font-family: 'Baloo 2', sans-serif; font-weight: 800; background: var(--red-dark);
  border-radius: 8px; padding: .15rem .5rem; margin: 0 .15rem; box-shadow: 0 3px 0 rgba(0,0,0,.35);
}

/* ---------- PROMOS ---------- */
.chapter-promos { background: var(--cream); }
.promo-rail-wrap { position: relative; max-width: 1240px; margin: 0 auto; }
.promo-rail {
  display: flex; gap: 1.4rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 1rem .5rem 1.6rem; scrollbar-width: none;
}
.promo-rail::-webkit-scrollbar { display: none; }
.promo-card {
  flex: 0 0 clamp(240px, 30vw, 320px); scroll-snap-align: center;
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-pop);
  transition: transform .35s var(--spring), box-shadow .35s var(--spring);
  cursor: pointer;
}
.promo-card:hover { transform: translateY(-10px) rotate(-1deg); box-shadow: 0 18px 0 rgba(0,0,0,.1); }
.promo-card img { width: 100%; aspect-ratio: 4/4.6; object-fit: cover; display: block; }
.promo-card-body { padding: 1.1rem 1.3rem 1.4rem; }
.promo-card-body h3 { font-family: 'Baloo 2', sans-serif; font-size: 1.3rem; margin: 0 0 .3rem; }
.promo-card-body p { margin: 0; font-weight: 600; font-size: .95rem; opacity: .85; }
.promo-tag { display: inline-block; background: var(--yellow); color: var(--brown); font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; padding: .25rem .8rem; border-radius: 999px; margin-bottom: .6rem; }
.rail-btn {
  position: absolute; top: 42%; z-index: 2;
  width: 54px; height: 54px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--red); color: var(--white); font-size: 1.2rem;
  box-shadow: 0 6px 0 rgba(0,0,0,.2);
  transition: transform .25s var(--spring);
}
.rail-btn:hover { transform: scale(1.12); }
.rail-btn:active { transform: scale(.9); }
.rail-prev { left: -8px; } .rail-next { right: -8px; }

/* ---------- NUMBERS ---------- */
.chapter-numbers { background: var(--red); color: var(--white); }
.chapter-numbers .chapter-no { background: rgba(255,255,255,.15); }
.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.9rem, 2vw, 1.6rem); max-width: 1100px; margin: 0 auto clamp(2rem, 4vw, 3rem); width: 100%; }
.counter-card {
  background: var(--red-deep); border-radius: var(--radius-lg);
  padding: clamp(1.2rem, 3vw, 2rem) 1rem; text-align: center;
  box-shadow: inset 0 -6px 0 rgba(0,0,0,.2);
  transition: transform .3s var(--spring);
}
.counter-card:hover { transform: translateY(-6px) scale(1.03); }
.counter-num { display: block; font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.6rem); color: var(--yellow); }
.counter-label { font-weight: 700; font-size: .95rem; opacity: .9; }
.charts { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.2rem, 3vw, 2.4rem); max-width: 1100px; margin: 0 auto; width: 100%; }
.chart-card { background: var(--cream); color: var(--brown); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow-pop); }
.chart-card h3 { font-family: 'Baloo 2', sans-serif; font-size: 1.5rem; margin: 0 0 1.2rem; }
.chart-foot { font-size: .82rem; opacity: .65; margin: 1rem 0 0; font-style: italic; }
.sarap-bars { display: grid; gap: .9rem; }
.sarap-bar-row { display: grid; grid-template-columns: 132px 1fr 46px; align-items: center; gap: .7rem; }
.sarap-bar-row .sb-label { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: .95rem; }
.sb-track { height: 22px; background: rgba(0,0,0,.08); border-radius: 999px; overflow: hidden; }
.sb-fill { height: 100%; width: 0; border-radius: 999px; background: var(--red); transition: width 1s var(--spring); }
.sarap-bar-row:nth-child(2) .sb-fill { background: #f2901e; }
.sarap-bar-row:nth-child(3) .sb-fill { background: var(--yellow); }
.sarap-bar-row:nth-child(4) .sb-fill { background: #8ac926; }
.sarap-bar-row:nth-child(5) .sb-fill { background: var(--brown); }
.sb-num { font-family: 'Baloo 2', sans-serif; font-weight: 800; text-align: right; }
.donut-wrap { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
#donut { width: 190px; height: 190px; flex: none; }
#donut circle.seg { fill: none; stroke-width: 26; transition: stroke-dasharray 1.1s var(--spring); }
.donut-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-weight: 700; font-size: .95rem; }
.donut-legend li { display: flex; align-items: center; gap: .55rem; }
.donut-legend .dot { width: 14px; height: 14px; border-radius: 5px; flex: none; }

/* ---------- HERITAGE ---------- */
.chapter-heritage { background: var(--cream); }
.journey { position: relative; max-width: 860px; margin: 0 auto; width: 100%; }
.journey-path { position: absolute; left: 50%; top: 0; transform: translateX(-50%); height: 100%; width: 120px; }
#journey-line { stroke: var(--red); }
.journey-stops { position: relative; display: grid; gap: clamp(2.5rem, 6vw, 4rem); padding: 1rem 0; }
.stop {
  position: relative; width: min(46%, 380px);
  background: var(--white); border-radius: var(--radius-lg); padding: 1.3rem 1.5rem;
  box-shadow: var(--shadow-pop);
}
.stop:nth-child(odd) { justify-self: start; text-align: right; transform: rotate(-1.2deg); }
.stop:nth-child(even) { justify-self: end; transform: rotate(1.2deg); }
.stop-year {
  display: inline-block; background: var(--yellow); color: var(--brown);
  font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.15rem;
  padding: .25rem 1rem; border-radius: 999px; margin-bottom: .5rem;
  box-shadow: 0 3px 0 rgba(0,0,0,.12);
}
.stop h3 { font-family: 'Baloo 2', sans-serif; font-size: 1.45rem; margin: 0 0 .35rem; color: var(--red); }
.stop p { margin: 0; font-weight: 600; font-size: .98rem; line-height: 1.5; }
.stop-pin {
  position: absolute; top: 50%; width: 30px; height: 30px; border-radius: 50%;
  background: var(--red); border: 5px solid var(--yellow);
  box-shadow: 0 4px 0 rgba(0,0,0,.15); transform: translateY(-50%);
}
.stop:nth-child(odd) .stop-pin { right: calc(-8.7% - 15px); }
.stop:nth-child(even) .stop-pin { left: calc(-8.7% - 15px); }
.heritage-photo { max-width: 640px; margin: clamp(2.5rem, 5vw, 4rem) auto 0; text-align: center; }
.heritage-photo img { border-radius: var(--radius-lg); box-shadow: var(--shadow-pop); border: 6px solid var(--white); transform: rotate(-1.5deg); }
.heritage-photo figcaption { font-family: 'Baloo 2', sans-serif; font-weight: 700; margin-top: 1rem; opacity: .8; }

/* ---------- STORES ---------- */
.chapter-stores { background: var(--yellow); }
.store-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(1.2rem, 3vw, 2.4rem); max-width: 1150px; margin: 0 auto; width: 100%; align-items: start; }
.store-search-card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(1.3rem, 3vw, 2rem); box-shadow: var(--shadow-pop); }
.store-label { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.25rem; display: block; margin-bottom: .8rem; }
.store-search-row { display: flex; gap: .7rem; }
#store-search {
  flex: 1; font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 1.05rem;
  padding: .8rem 1.2rem; border-radius: 999px; border: 3px solid var(--cream);
  background: var(--cream); color: var(--brown); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
#store-search:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(227,24,55,.15); }
.store-results { margin-top: 1.4rem; display: grid; gap: .8rem; }
.store-idle img { border-radius: var(--radius-md); width: 100%; max-height: 260px; object-fit: cover; }
.store-idle p { font-weight: 600; opacity: .75; margin: .8rem 0 0; }
.store-hit {
  display: flex; align-items: center; gap: 1rem;
  background: var(--cream); border-radius: var(--radius-md); padding: .9rem 1.1rem;
  animation: hit-in .45s var(--spring) both;
}
@keyframes hit-in { from { transform: translateX(-24px) scale(.95); opacity: 0; } }
.store-hit .hit-flag { font-size: 1.7rem; }
.store-hit h4 { font-family: 'Baloo 2', sans-serif; font-size: 1.1rem; margin: 0; }
.store-hit p { margin: 0; font-size: .9rem; font-weight: 600; opacity: .75; }
.store-hit .hit-tag { margin-left: auto; background: var(--red); color: #fff; font-family: 'Baloo 2', sans-serif; font-size: .75rem; font-weight: 800; padding: .25rem .7rem; border-radius: 999px; white-space: nowrap; }
.store-empty { text-align: center; padding: 1.6rem 1rem; font-weight: 700; }
.store-empty .empty-bee { font-size: 2.8rem; display: block; animation: mascot-bob 2.5s ease-in-out infinite; }
.delivery-card {
  background: var(--red); color: var(--white); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow-pop); text-align: center;
}
.delivery-card h3 { font-family: 'Baloo 2', sans-serif; font-size: 1.6rem; margin: 0 0 .8rem; }
.delivery-card p { font-weight: 600; opacity: .95; }
.delivery-hotline {
  font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: clamp(2.6rem, 5vw, 3.6rem);
  color: var(--yellow); margin: .4rem 0; text-shadow: 0 5px 0 rgba(0,0,0,.18);
  cursor: pointer; transition: transform .3s var(--spring); display: inline-block;
}
.delivery-hotline:hover { transform: scale(1.08) rotate(-2deg); }
.badge-row { display: flex; gap: .8rem; justify-content: center; margin: 1.2rem 0; flex-wrap: wrap; }
.badge-row img { height: 46px; width: auto; border-radius: 10px; transition: transform .25s var(--spring); }
.badge-row img:hover { transform: translateY(-4px) scale(1.05); }

/* ---------- FOOTER ---------- */
.chapter-footer { background: var(--red-dark); color: var(--cream); min-height: 70vh; }
.footer-inner { max-width: 1150px; margin: 0 auto; width: 100%; display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.footer-joy .display { font-size: clamp(2.6rem, 5.5vw, 4rem); color: var(--yellow); margin-bottom: .8rem; }
.footer-joy > p { font-weight: 600; font-size: 1.1rem; max-width: 26rem; }
.footer-mascot { width: 150px; animation: mascot-bob 5s ease-in-out infinite; }
.newsletter { display: flex; gap: .7rem; margin-top: 1.4rem; flex-wrap: wrap; }
#newsletter-email {
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 1rem;
  padding: .8rem 1.3rem; border-radius: 999px; border: 3px solid transparent;
  background: var(--cream); color: var(--brown); outline: none; min-width: 240px;
}
#newsletter-email:focus { border-color: var(--yellow); }
#newsletter-email.shake { animation: shake .45s var(--bounce); border-color: var(--red); }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-8px) rotate(-1deg); } 60% { transform: translateX(8px) rotate(1deg); } }
.newsletter-msg { font-family: 'Baloo 2', sans-serif; font-weight: 700; min-height: 1.4rem; margin-top: .7rem; color: var(--yellow); }
.footer-links { display: grid; gap: 1.2rem; justify-items: start; }
.footer-links > img { background: var(--cream); border-radius: 14px; padding: 8px 14px; width: auto; height: 52px; }
.footer-links nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-links nav a { font-family: 'Baloo 2', sans-serif; font-weight: 700; text-decoration: none; opacity: .9; transition: opacity .2s, transform .25s var(--spring); }
.footer-links nav a:hover { opacity: 1; transform: translateY(-3px); color: var(--yellow); }
.footer-fine { font-size: .85rem; opacity: .6; max-width: 30rem; line-height: 1.5; }
.footer-fine a { color: var(--yellow); }

/* ---------- STICKER BOOK ---------- */
.sticker-book {
  border: none; border-radius: var(--radius-lg); padding: 0;
  width: min(92vw, 620px); background: var(--cream); color: var(--brown);
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
.sticker-book::backdrop { background: rgba(84,39,26,.6); backdrop-filter: blur(3px); }
.sticker-book[open] { animation: book-in .45s var(--spring); }
@keyframes book-in { from { transform: translateY(60px) scale(.8); opacity: 0; } }
.sticker-book-head { display: flex; align-items: center; justify-content: space-between; background: var(--red); color: #fff; padding: 1.1rem 1.5rem; }
.sticker-book-head h2 { font-family: 'Baloo 2', sans-serif; margin: 0; font-size: 1.5rem; }
.sticker-close { background: rgba(255,255,255,.2); border: none; color: #fff; width: 40px; height: 40px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; transition: transform .25s var(--spring); }
.sticker-close:hover { transform: rotate(90deg) scale(1.1); }
.sticker-progress { font-family: 'Baloo 2', sans-serif; font-weight: 800; text-align: center; padding: 1rem 1.5rem 0; margin: 0; font-size: 1.1rem; }
.sticker-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 1.4rem 1.5rem 1.8rem; }
.sticker-cell {
  background: var(--white); border-radius: var(--radius-md); padding: 1rem .6rem;
  text-align: center; box-shadow: 0 5px 0 rgba(0,0,0,.1);
  transition: transform .3s var(--spring);
}
.sticker-cell .st-emoji { font-size: 2.3rem; display: block; filter: grayscale(1); opacity: .3; transform: scale(.85); transition: .4s var(--spring); }
.sticker-cell .st-name { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: .9rem; display: block; margin-top: .4rem; }
.sticker-cell .st-how { font-size: .75rem; font-weight: 600; opacity: .6; display: block; margin-top: .15rem; }
.sticker-cell.unlocked { background: var(--yellow); }
.sticker-cell.unlocked .st-emoji { filter: none; opacity: 1; transform: scale(1) rotate(-6deg); }
.sticker-cell.unlocked:hover { transform: rotate(2deg) scale(1.05); }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .fighter-grid { grid-template-columns: repeat(3, 1fr); }
  .select-layout { grid-template-columns: 1fr; }
  .scout-panel { position: static; min-height: 0; }
  .charts { grid-template-columns: 1fr; }
  .store-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .mainnav {
    position: fixed; inset: 64px 0 auto 0; z-index: 490;
    flex-direction: column; gap: .3rem;
    background: var(--red); padding: 1rem 1.2rem 1.6rem;
    border-bottom: 4px solid var(--red-dark);
    transform: translateY(-130%); transition: transform .45s var(--spring);
  }
  .mainnav.open { transform: translateY(0); }
  .mainnav a { font-size: 1.15rem; padding: .7rem 1rem; }
  .burger { display: flex; }
  .topbar .btn-small { display: none; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 2; }
  .hero-stage { order: 1; min-height: 220px; }
  .hero-mascot { width: min(64vw, 300px); }
  .hero-ctas { justify-content: center; }
  .lede { margin-inline: auto; }
  .counters { grid-template-columns: repeat(2, 1fr); }
  .dpad { display: grid; }
  .stop:nth-child(odd) .stop-pin { right: calc(-9.5% - 15px); }
  .stop:nth-child(even) .stop-pin { left: calc(-9.5% - 15px); }
}
@media (max-width: 560px) {
  .fighter-grid { grid-template-columns: repeat(2, 1fr); }
  .chapter { min-height: 0; padding-block: 4rem; }
  .chapter-hero { min-height: calc(100vh - 64px); }
  .store-search-row { flex-direction: column; }
  .store-search-row .btn { width: 100%; }
  .stop { width: 100%; }
  .journey-path { left: 14px; transform: none; width: 40px; }
  .stop:nth-child(odd), .stop:nth-child(even) { justify-self: stretch; text-align: left; transform: none; margin-left: 46px; }
  .stop:nth-child(odd) .stop-pin, .stop:nth-child(even) .stop-pin { left: -46px; right: auto; }
  .sticker-grid { grid-template-columns: repeat(2, 1fr); }
  .rail-prev { left: 2px; } .rail-next { right: 2px; }
  .stat { grid-template-columns: 84px 1fr 38px; }
  .sarap-bar-row { grid-template-columns: 104px 1fr 40px; }
  .dpad-btn { width: 66px; height: 66px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .sunburst, .ticker-track { animation: none; }
}
