/* Tusok! Tusok! landing. Colours are the game's (lib/app/theme.dart,
   lib/shared/art/ink.dart); Fredoka is the game's font. */
@font-face { font-family: Fredoka; font-weight: 500; font-display: swap; src: url("fonts/Fredoka-500.ttf") format("truetype"); }
@font-face { font-family: Fredoka; font-weight: 600; font-display: swap; src: url("fonts/Fredoka-600.ttf") format("truetype"); }
@font-face { font-family: Fredoka; font-weight: 700; font-display: swap; src: url("fonts/Fredoka-700.ttf") format("truetype"); }

:root {
  --line: #2b1b12;          /* Ink.line: every outline in the game */
  --kahel: #f28c28;         /* kwekOrange */
  --kahel-deep: #c9661a;
  --cream: #fff4e0;
  --paper: #fffbf0;
  --sauce: #7a3e1d;
  --chili: #d7263d;
  --leaf: #3a7d44;
  --go: #4fa35e;
  --kraft: #d9a066;
  --wood: #8b5a3c;
  --wood-dark: #6e4530;
  --night: #1b1730;
  --night-top: #2a2140;
  --night-deep: #120f22;
  --dusk: #6b3f69;
  --body: #4a3a2f;
  --max-w: 1160px;
  --radius: 22px;
  --pop: 0 6px 0 var(--line);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--line);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, .brand, .tag, .pill, .store-badge strong, .stats strong, .chips, .receipt dt, .receipt-head, .salamat, .nav-cta {
  font-family: Fredoka, -apple-system, sans-serif;
}
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.01em; font-weight: 700; }
p { margin: 0; }
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 24px;
  background: rgba(27, 23, 48, 0.88);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  color: var(--cream);
  transition: background 200ms ease, box-shadow 200ms ease;
}
.site-header.is-scrolled { background: rgba(18, 15, 34, 0.94); box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 21px; }
.brand img { border-radius: 9px; }
.site-nav { display: inline-flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 500; }
.site-nav a { color: rgba(255, 244, 224, 0.82); }
.site-nav a:hover { color: #fff; }
.site-nav .nav-cta {
  color: #fff; font-weight: 600; padding: 7px 16px; border-radius: 999px;
  background: var(--kahel); border: 2.5px solid var(--line); box-shadow: 0 3px 0 var(--line);
}
.site-nav .nav-cta:hover { background: #ff9c3d; }

/* ===== Hero: the game's own title scene, in layers =====
   Each layer's place on the 2460×936 scene is in hero-layers.css (generated).
   Parallax goes through `translate` (set by main.js as --px/--py/--sy) so it
   never fights the `transform` animations. Every animation here plays a few
   times and stops: a loop that never ends keeps Chrome painting 60 frames a
   second (measured: half a CPU core on an M5 with everything looping). */
.hero { position: relative; background: var(--night); line-height: 0; overflow: hidden; }
.stage { position: relative; width: 100%; aspect-ratio: 2460 / 936; --px: 0; --py: 0; --sy: 0; }
.ly { position: absolute; display: block; height: auto; max-width: none; }
.ly-street {
  inset: 0; transform: scale(1.045);
  translate: calc(var(--px) * -10px) calc(var(--py) * -5px + var(--sy) * 22%);
}
.ly-street img { width: 100%; height: 100%; }
.ly-counter { translate: 0 calc(var(--sy) * -4%); }
.ly-person { transform-origin: 50% 100%; }
.ly-marites { translate: calc(var(--px) * 7px) calc(var(--py) * 4px + var(--sy) * 10%); animation: rise 0.8s cubic-bezier(0.2, 0.9, 0.3, 1.25) 0.15s both, rock 5.2s ease-in-out 1s 2; }
.ly-lola { translate: calc(var(--px) * 9px) calc(var(--py) * 4px + var(--sy) * 9%); animation: rise 0.8s cubic-bezier(0.2, 0.9, 0.3, 1.25) 0.3s both, laugh 2.8s ease-in-out 1.2s 3; }
.ly-vlogger { translate: calc(var(--px) * 11px) calc(var(--py) * 5px + var(--sy) * 8%); animation: rise 0.8s cubic-bezier(0.2, 0.9, 0.3, 1.25) 0.45s both, sway 3.6s ease-in-out 1.3s 2; }
.ly-title { translate: calc(var(--px) * 22px) calc(var(--py) * 10px + var(--sy) * -40%); opacity: calc(1 - var(--sy) * 1.4); }
.ly-title img { width: 100%; height: auto; transform-origin: 50% 70%; animation: drop 1s cubic-bezier(0.3, 1.4, 0.5, 1) 0.55s both, float 4.5s ease-in-out 1.6s 2; }

@keyframes rise { from { transform: translateY(45%); } }
@keyframes rock { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-1.6deg) translateY(-1%); } }
@keyframes laugh {
  0%, 46%, 100% { transform: none; }
  8% { transform: translateY(-2.4%) rotate(-0.6deg); }
  16% { transform: none; }
  24% { transform: translateY(-1.8%) rotate(0.5deg); }
  32% { transform: none; }
}
@keyframes sway { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(1.4deg) translateY(-1.2%); } 65% { transform: rotate(-1deg); } }
@keyframes drop {
  0% { transform: translateY(-150%) rotate(-8deg) scale(0.9); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: none; }
}
@keyframes float { 0%, 100% { transform: none; } 50% { transform: translateY(-4%) rotate(-1.2deg); } }


/* The counter continues the scene's wooden counter top. */
.counter {
  position: relative;
  padding: 0 24px 72px;
  background:
    repeating-linear-gradient(180deg, transparent 0 46px, rgba(0, 0, 0, 0.06) 46px 48px),
    linear-gradient(180deg, var(--wood) 0%, var(--wood-dark) 100%);
}
.counter-card {
  position: relative; top: -64px; margin: 0 auto -32px;
  max-width: 860px;
  padding: 40px 44px 32px;
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 10px 0 var(--line), 0 30px 60px -20px rgba(0, 0, 0, 0.5);
  text-align: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px 5px 5px; margin-bottom: 18px;
  border-radius: 999px; background: var(--cream); border: 2px solid var(--line);
  font-size: 15px; font-weight: 500;
}
.pill span {
  padding: 2px 10px; border-radius: 999px; background: var(--go); color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.pill:hover { background: #ffe9c2; }
.counter h1 { font-size: clamp(40px, 6.2vw, 68px); margin-bottom: 18px; }
.counter h1 em { font-style: normal; color: var(--kahel); -webkit-text-stroke: 2px var(--line); paint-order: stroke fill; }
.lede { max-width: 600px; margin: 0 auto 28px; color: var(--body); font-size: clamp(17px, 1.5vw, 19px); }

/* ===== Store badges ===== */
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  min-width: 186px; padding: 10px 20px;
  background: var(--line); color: #fff;
  border: 2.5px solid var(--line); border-radius: 14px;
  box-shadow: 0 4px 0 #000;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #000; }
.store-badge:active { transform: translateY(2px); box-shadow: 0 2px 0 #000; }
.store-badge svg { width: 26px; height: 26px; fill: currentColor; flex-shrink: 0; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-badge small { font-size: 10px; opacity: 0.85; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 500; }
.store-badge strong { font-size: 18px; font-weight: 600; }
.store-badge--light { background: var(--cream); color: var(--line); box-shadow: 0 4px 0 var(--line); }
.store-badge--light:hover { box-shadow: 0 6px 0 var(--line); }

.stats {
  list-style: none; margin: 30px 0 0; padding: 22px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  border-top: 2px dashed rgba(43, 27, 18, 0.2);
}
.stats li { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.stats strong { font-size: 32px; font-weight: 700; color: var(--line); line-height: 1.1; }
.stats span { font-size: 14px; color: var(--body); line-height: 1.3; }
.stats strong { font-variant-numeric: tabular-nums; }
.js .stamp { display: inline-block; animation: stamp 0.6s cubic-bezier(0.3, 1.6, 0.5, 1) 1.3s both; }
@keyframes stamp { from { transform: scale(2.2) rotate(-14deg); opacity: 0; } }
.counter-card { animation: card-up 0.9s cubic-bezier(0.2, 0.9, 0.3, 1.1) 0.2s both; }
@keyframes card-up { from { translate: 0 60px; opacity: 0; } }

/* ===== Section basics ===== */
section h2 { font-size: clamp(32px, 4.4vw, 50px); margin: 14px 0 18px; }
.tag {
  display: inline-block; transform: rotate(-2deg);
  padding: 6px 16px; border-radius: 12px;
  background: var(--kahel); color: #fff;
  border: 2.5px solid var(--line); box-shadow: 0 4px 0 var(--line);
  font-size: 17px; font-weight: 600; letter-spacing: 0.01em;
}
.tag--leaf { background: var(--go); }
.tag--chili { background: var(--chili); }
.on-night { color: var(--cream); }

.shot { margin: 0; }
.shot img, .friend img {
  width: 100%; height: auto;
  border-radius: 22px; border: 3px solid var(--line);
  box-shadow: 0 8px 0 var(--line), 0 24px 50px -18px rgba(0, 0, 0, 0.55);
}
.shot figcaption { margin-top: 18px; font-size: 16px; }
.shot figcaption b { font-family: Fredoka, sans-serif; font-weight: 600; font-size: 19px; }

/* ===== Reveal on scroll (main.js adds .is-in) =====
   Uses translate/scale so the rotated tags and receipt keep their transforms. */
.js [data-reveal] {
  opacity: 0; translate: 0 34px;
  transition: opacity 0.7s ease, translate 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), scale 0.7s cubic-bezier(0.3, 1.5, 0.5, 1);
  transition-delay: var(--rd, 0ms);
}
.js [data-reveal="pop"] { translate: 0 10px; scale: 0.82; }
.js [data-reveal="tick"] { translate: -18px 0; }
.js [data-reveal].is-in { opacity: 1; translate: 0 0; scale: 1; }

/* Screenshots lean toward the pointer. */
[data-tilt] { --rx: 0deg; --ry: 0deg; perspective: 1100px; }
.shot[data-tilt] img, .friend[data-tilt] {
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
  will-change: transform;
}
.friend[data-tilt] { transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)); }
.shot--tilt[data-tilt] img { transform: rotateX(var(--rx)) rotateY(var(--ry)) rotate(-2deg); }
[data-tilt].is-tilting img, .friend.is-tilting { transition-duration: 0.12s, 0.3s; }

.untyped { color: transparent; }
.bubble.is-typing span:first-child::after {
  content: ""; display: inline-block; width: 3px; height: 1em; margin-left: 2px; vertical-align: -0.12em;
  background: var(--kahel); animation: caret 0.8s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* Food drifting past (main.js moves them with the scroll as --fy). */
.floaters { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.floaters img {
  position: absolute; left: var(--l); top: var(--t); width: auto; height: var(--sz);
  translate: 0 var(--fy, 0px); rotate: var(--r);
  filter: drop-shadow(0 6px 0 rgba(43, 27, 18, 0.12));
}
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(8deg); } }

/* ===== The order ===== */
.order { position: relative; padding: 104px 0 96px; background: var(--cream); overflow: hidden; }
.order .wrap { position: relative; }
.order-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.order-talk > p { color: var(--body); max-width: 540px; }
.bubble {
  position: relative; margin: 32px 0 0; max-width: 520px;
  padding: 22px 26px;
  background: #fff; border: 3px solid var(--line); border-radius: 26px;
  box-shadow: 0 6px 0 var(--line);
  font-family: Fredoka, sans-serif; font-weight: 600; font-size: clamp(21px, 2.2vw, 26px); line-height: 1.3;
}
.bubble::after {
  content: ""; position: absolute; left: 44px; bottom: -21px;
  width: 28px; height: 28px; background: #fff;
  border-right: 3px solid var(--line); border-bottom: 3px solid var(--line);
  transform: rotate(45deg) skew(10deg, 10deg);
}
.receipt {
  position: relative; transform: rotate(1.5deg);
  padding: 26px 28px 36px;
  background: #fff;
  border: 3px solid var(--line); border-bottom: 0;
  border-radius: 6px 6px 0 0;
  box-shadow: 0 24px 40px -22px rgba(0, 0, 0, 0.45);
}
/* The torn edge, like the game's receipt. */
.receipt::after {
  content: ""; position: absolute; left: -3px; right: -3px; bottom: -14px; height: 16px;
  background:
    linear-gradient(135deg, #fff 33%, transparent 34%) 0 0 / 16px 16px repeat-x,
    linear-gradient(225deg, #fff 33%, transparent 34%) 0 0 / 16px 16px repeat-x;
  filter: drop-shadow(0 3px 0 var(--line));
}
.receipt-head { font-size: 22px; font-weight: 700; margin-bottom: 10px; color: var(--sauce); }
.receipt dl { margin: 0; }
.receipt dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 2px dashed rgba(43, 27, 18, 0.18); }
.receipt dt { font-weight: 600; font-size: 18px; }
.receipt dd { margin: 0; text-align: right; color: var(--body); font-size: 15px; }
.receipt-foot { margin-top: 14px; color: #e8a400; font-size: 18px; letter-spacing: 2px; }
.receipt-foot b { color: var(--leaf); letter-spacing: 0; font-family: Fredoka, sans-serif; margin-left: 6px; }

/* ===== The kawali (three.js, kawali.js) ===== */
.kawali {
  position: relative; padding: 112px 0 104px; color: var(--cream); overflow: hidden;
  background:
    radial-gradient(ellipse 50% 60% at 72% 55%, rgba(242, 140, 40, 0.3), transparent 70%),
    linear-gradient(180deg, var(--night-top) 0%, var(--night) 60%, var(--night-deep) 100%);
}
.kw-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center; }
.kw-copy > p { color: rgba(255, 244, 224, 0.82); max-width: 440px; }
.kw-copy > .kw-more { margin-top: 22px; font-size: 15px; color: rgba(255, 244, 224, 0.6); }
.kw-legend { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.kw-legend li {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 999px;
  background: rgba(255, 244, 224, 0.08); border: 2px solid rgba(255, 244, 224, 0.18);
  font-family: Fredoka, sans-serif; font-weight: 600; font-size: 15px;
}
.kw-legend li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; background: var(--c); border: 2px solid #000; }
.kw-stage {
  position: relative; aspect-ratio: 5 / 4; border-radius: 32px;
  background:
    radial-gradient(ellipse 60% 55% at 50% 52%, rgba(255, 150, 60, 0.28), transparent 70%),
    linear-gradient(180deg, #3a2a4a, #1d1630);
  border: 3px solid #000; box-shadow: 0 10px 0 #000, 0 40px 80px -30px rgba(242, 140, 40, 0.45);
  overflow: hidden; touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
.kw-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; -webkit-tap-highlight-color: transparent; }
.kw-hud { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; gap: 8px; justify-content: space-between; pointer-events: none; z-index: 2; }
.kw-chip {
  padding: 5px 12px; border-radius: 999px; background: var(--cream); color: var(--line);
  border: 2.5px solid #000; box-shadow: 0 3px 0 #000;
  font-family: Fredoka, sans-serif; font-weight: 600; font-size: 15px; line-height: 1.3;
}
.kw-chip b { font-weight: 700; font-variant-numeric: tabular-nums; }
.kw-chip--kita { background: var(--go); color: #fff; margin-right: auto; }
.kw-chip--sunog { background: #3b2a24; color: var(--cream); }
.kw-stick {
  position: absolute; right: 18px; bottom: 18px; z-index: 2; pointer-events: none;
  display: flex; flex-direction: column-reverse; align-items: center; gap: 3px; padding-bottom: 26px;
}
.kw-stick::before {
  content: ""; position: absolute; left: 50%; bottom: 0; top: -8px; width: 5px; translate: -50% 0;
  background: #e8c98a; border: 1.5px solid #000; border-radius: 3px; z-index: -1;
}
.kw-stick i { width: 22px; height: 22px; border-radius: 50%; background: #d9a55b; border: 2.5px solid #000; opacity: 0.15; transition: opacity 0.2s; }
.kw-stick[data-n="1"] i:nth-child(-n+1), .kw-stick[data-n="2"] i:nth-child(-n+2),
.kw-stick[data-n="3"] i:nth-child(-n+3), .kw-stick[data-n="4"] i:nth-child(-n+4) { opacity: 1; }
.kw-stick.kw-bump { animation: bump 0.35s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes bump { 40% { transform: scale(1.18) rotate(-6deg); } }
.kw-pops { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.kw-pop {
  position: absolute; translate: -50% -130%; white-space: nowrap;
  padding: 4px 12px; border-radius: 12px; border: 2.5px solid #000; box-shadow: 0 3px 0 #000;
  font-family: Fredoka, sans-serif; font-weight: 700; font-size: 18px; line-height: 1.2;
  animation: popup 1.1s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}
.kw-pop--hilaw { background: var(--cream); color: var(--line); }
.kw-pop--luto { background: var(--go); color: #fff; }
.kw-pop--toasted { background: var(--kahel); color: #fff; }
.kw-pop--sunog { background: #2a1a12; color: #ffb4a0; }
@keyframes popup {
  0% { transform: scale(0.4) translateY(10px); opacity: 0; }
  18% { transform: scale(1.12); opacity: 1; }
  30% { transform: scale(1); }
  75% { opacity: 1; }
  100% { transform: translateY(-36px); opacity: 0; }
}
.kw-hint, .kw-loading {
  position: absolute; left: 50%; bottom: 18px; translate: -50% 0; margin: 0; z-index: 2; pointer-events: none;
  padding: 6px 16px; border-radius: 999px; background: rgba(18, 15, 34, 0.75); color: var(--cream);
  font-family: Fredoka, sans-serif; font-weight: 600; font-size: 16px; white-space: nowrap;
  transition: opacity 0.4s ease;
}
.kw-hint { opacity: 0; }
.kw-ready .kw-hint { opacity: 1; }
.kw-played .kw-hint, .kw-ready .kw-loading, .kw-nogl .kw-loading, .kw-nogl .kw-hint, .kw-idle .kw-hint { opacity: 0; }
.kw-resume {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 4;
  padding: 10px 22px; border-radius: 999px; cursor: pointer;
  background: var(--kahel); color: #fff; border: 3px solid #000; box-shadow: 0 4px 0 #000;
  font-family: Fredoka, sans-serif; font-weight: 600; font-size: 18px;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.kw-idle .kw-resume { opacity: 1; pointer-events: auto; }
.kw-idle .kw-canvas { filter: saturate(0.7) brightness(0.8); transition: filter 0.4s ease; }
.kw-loading { top: 50%; bottom: auto; translate: -50% -50%; }
.kw-fallback { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kw-nogl .kw-fallback { display: block; }
.kw-nogl .kw-hud, .kw-nogl .kw-stick { display: none; }

/* ===== Menu marquee ===== */
.marquee {
  display: flex; overflow: hidden; margin: 52px calc(50% - 50vw) 0; padding: 8px 0 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track {
  list-style: none; margin: 0; padding: 0 14px 0 0; display: flex; gap: 14px; flex-shrink: 0;
  animation: marquee 46s linear infinite;
}
.marquee .marquee-track { animation-play-state: paused; }
.marquee.is-playing .marquee-track { animation-play-state: running; }
.marquee.is-playing:hover .marquee-track { animation-play-state: paused; }
.marquee-track li {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 18px 6px 8px; border-radius: 999px;
  background: var(--cream); color: var(--line); border: 2.5px solid #000; box-shadow: 0 4px 0 #000;
  font-family: Fredoka, sans-serif; font-weight: 600; font-size: 17px; white-space: nowrap;
}
.marquee-track img { height: 38px; width: auto; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ===== String lights (pure CSS) ===== */
.lights {
  position: absolute; left: 0; right: 0; top: 0; height: 64px; pointer-events: none;
  background:
    radial-gradient(circle 9px at 30px 26px, #ff8a65 98%, transparent) 0 0 / 300px 64px repeat-x,
    radial-gradient(circle 9px at 90px 32px, #7bc67e 98%, transparent) 0 0 / 300px 64px repeat-x,
    radial-gradient(circle 9px at 150px 34px, #5ab0f5 98%, transparent) 0 0 / 300px 64px repeat-x,
    radial-gradient(circle 9px at 210px 32px, #ef5f8f 98%, transparent) 0 0 / 300px 64px repeat-x,
    radial-gradient(circle 9px at 270px 26px, #ffd54f 98%, transparent) 0 0 / 300px 64px repeat-x,
    radial-gradient(circle 30px at 30px 26px, rgba(255, 138, 101, 0.35), transparent) 0 0 / 300px 64px repeat-x,
    radial-gradient(circle 30px at 90px 32px, rgba(123, 198, 126, 0.35), transparent) 0 0 / 300px 64px repeat-x,
    radial-gradient(circle 30px at 150px 34px, rgba(90, 176, 245, 0.35), transparent) 0 0 / 300px 64px repeat-x,
    radial-gradient(circle 30px at 210px 32px, rgba(239, 95, 143, 0.35), transparent) 0 0 / 300px 64px repeat-x,
    radial-gradient(circle 30px at 270px 26px, rgba(255, 213, 79, 0.35), transparent) 0 0 / 300px 64px repeat-x;
}
.lights::before {
  /* The wire, sagging a little between posts. */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 160px 14px at 150px 12px, transparent 96%, rgba(0, 0, 0, 0.6) 97% 99%, transparent 100%) 0 0 / 300px 64px repeat-x;
}

/* ===== Stations (night) ===== */
.stations {
  position: relative; padding: 112px 0 96px; color: var(--cream);
  background:
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(214, 128, 58, 0.22), transparent 70%),
    linear-gradient(180deg, var(--night-top) 0%, var(--night) 55%, var(--night-deep) 100%);
}
.stations .wrap { text-align: center; }
.station-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 44px; text-align: left; }
.stations figcaption { color: rgba(255, 244, 224, 0.82); }
.stations figcaption b { color: #fff; }
.stations .shot img { border-color: #000; box-shadow: 0 8px 0 #000, 0 24px 50px -18px rgba(0, 0, 0, 0.7); }
.chips { list-style: none; margin: 48px auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 820px; }
.chips li {
  padding: 6px 14px; border-radius: 999px;
  background: var(--cream); color: var(--line);
  border: 2px solid #000; box-shadow: 0 3px 0 #000;
  font-weight: 600; font-size: 16px;
}
.note-night { margin-top: 22px; color: rgba(255, 244, 224, 0.75); }

/* ===== Friends ===== */
.friends { position: relative; padding: 104px 0; background: var(--paper); text-align: center; overflow: hidden; }
.friends .wrap { position: relative; }
.friend-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 40px; text-align: left; }
.friend {
  padding: 18px 18px 26px; background: var(--cream);
  border: 3px solid var(--line); border-radius: 28px; box-shadow: var(--pop);
}
.friend img { border-radius: 16px; box-shadow: none; }
.friend-copy { padding: 20px 8px 0; }
.friend h3 { font-size: 28px; margin-bottom: 8px; }
.friend p { color: var(--body); }

/* ===== Story ===== */
.story {
  padding: 104px 0;
  background:
    radial-gradient(ellipse 60% 70% at 15% 50%, rgba(246, 160, 77, 0.25), transparent 70%),
    var(--cream);
}
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.shot--tilt img { transform: rotate(-2deg); }
.story-copy p { color: var(--body); margin-bottom: 14px; }
.trip { margin-top: 20px; display: grid; gap: 10px; }
.trip p {
  margin: 0; padding: 12px 16px; background: #fff;
  border: 2.5px solid var(--line); border-radius: 14px; box-shadow: 0 4px 0 var(--line);
  color: var(--line); font-size: 16px;
}
.trip b { font-family: Fredoka, sans-serif; font-weight: 600; color: var(--sauce); margin-right: 8px; }

/* ===== Grow ===== */
.grow { padding: 104px 0 112px; background: var(--paper); }
.grow-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: center; }
.grow-copy > p { color: var(--body); }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 38px; color: var(--line); }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 26px; height: 26px; display: grid; place-items: center;
  border-radius: 8px; background: var(--go); color: #fff; font-weight: 700; font-size: 15px;
  border: 2px solid var(--line);
}

/* ===== CTA (night) ===== */
.cta {
  position: relative; padding: 140px 0 100px; text-align: center; color: var(--cream);
  background:
    radial-gradient(ellipse 50% 60% at 50% 45%, rgba(214, 128, 58, 0.45), rgba(140, 72, 44, 0.15) 55%, transparent 100%),
    repeating-conic-gradient(from 3deg at 50% 45%, rgba(255, 214, 160, 0.05) 0deg 9deg, transparent 9deg 18deg),
    linear-gradient(180deg, var(--night-top), var(--night-deep));
  overflow: hidden;
}
.cta .lights { top: 46px; }
.cta .wrap { position: relative; }
.awning {
  position: absolute; left: 0; right: 0; top: 0; height: 52px;
  background:
    radial-gradient(circle 40px at 40px 12px, var(--kahel) 97%, transparent 100%) 0 0 / 160px 52px repeat-x,
    radial-gradient(circle 40px at 120px 12px, var(--cream) 97%, transparent 100%) 0 0 / 160px 52px repeat-x,
    linear-gradient(90deg, var(--kahel) 50%, var(--cream) 50%) 0 0 / 160px 14px repeat-x;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.35));
}
.cta-icon { margin: 0 auto 18px; border-radius: 26px; border: 3px solid #000; box-shadow: 0 6px 0 #000; }
.cta h2 { font-size: clamp(44px, 7vw, 84px); margin: 0 0 8px; text-shadow: 0 0 40px rgba(255, 170, 80, 0.45), 0 6px 0 rgba(0, 0, 0, 0.4); }
.cta-sub { font-size: 19px; color: rgba(255, 244, 224, 0.8); margin-bottom: 30px; }
.badges--center { justify-content: center; }
.cta-note { max-width: 520px; margin: 28px auto 0; font-size: 14px; color: rgba(255, 244, 224, 0.6); }
.salamat { margin-top: 44px; font-size: clamp(26px, 3vw, 34px); font-weight: 700; color: #fff; }

/* ===== Footer ===== */
.site-footer { background: var(--night-deep); color: rgba(255, 244, 224, 0.6); padding: 34px 0; font-size: 14px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--cream); font-family: Fredoka, sans-serif; font-weight: 600; }
.footer-brand img { border-radius: 7px; }
.footer-nav { display: inline-flex; gap: 22px; }
.footer-nav a:hover, .footer-fineprint a:hover { color: #fff; }
.footer-fineprint a { text-decoration: underline; text-underline-offset: 2px; }

/* ===== Small screens ===== */
@media (max-width: 900px) {
  .order-grid, .station-grid, .friend-grid, .story-grid, .grow-grid, .kw-grid { grid-template-columns: 1fr; gap: 40px; }
  .kw-stage { aspect-ratio: 1 / 1; }
  .grow-grid figure { order: -1; }
  .receipt { transform: none; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .site-nav a:not(.nav-cta) { display: none; }
  .brand { font-size: 19px; }
  .counter { padding: 0 16px 56px; }
  /* A phone shows the title screen's middle 1688 of the 2460-wide scene. */
  .stage { width: calc(100% * 2460 / 1688); margin-left: calc(-100% * 386 / 1688); }
  .ly-marites { visibility: hidden; }
  .kawali { padding: 88px 0 76px; }
  .kw-stage { border-radius: 24px; margin: 0 -8px; }
  .kw-chip { font-size: 14px; padding: 4px 10px; }
  .floaters img { left: var(--lm, var(--l)); top: var(--tm, var(--t)); height: calc(var(--sz) * 0.7); }
  .marquee-track li { font-size: 15px; }
  .marquee-track img { height: 32px; }
  .counter-card { top: -36px; margin-bottom: -12px; padding: 30px 20px 24px; border-radius: 24px; }
  .stats strong { font-size: 24px; }
  .stats span { font-size: 12.5px; }
  .order, .friends, .story, .grow { padding: 76px 0; }
  .stations { padding: 96px 0 76px; }
  .cta { padding: 124px 0 80px; }
  .store-badge { min-width: 168px; }
  .bubble::after { left: 32px; }
  .receipt dl div { flex-direction: column; gap: 2px; }
  .receipt dd { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .store-badge { transition: none; }
  *, *::before, *::after { animation: none !important; }
  .js [data-reveal] { opacity: 1; translate: none; scale: none; transition: none; }
  .marquee { flex-wrap: wrap; justify-content: center; -webkit-mask-image: none; mask-image: none; margin-left: 0; margin-right: 0; }
  .marquee-track { flex-wrap: wrap; justify-content: center; padding: 0; }
  .marquee-track[aria-hidden] { display: none; }
  .kw-ready .kw-hint { opacity: 1; }
}
