/* 開工吧！社畜人生！— 事前預約落地頁
   Lagoon Glass (the app's HUD) + the sticker logo's pop colours + pixel details. */
:root {
  --ink: #12344d;
  --ink-2: #1d4a66;
  --muted: #5b7488;
  --line: rgba(18, 52, 77, 0.12);
  --glass: rgba(255, 255, 255, 0.74);
  --glass-strong: rgba(255, 255, 255, 0.92);
  --blur: blur(18px) saturate(1.5);
  --lagoon: #087c8c;
  --lagoon-bright: #0fa3b5;
  --shallow: #e1f5f7;
  --sea: #4aa5cf;
  --sea-deep: #1478ad;
  --sun: #ffc53d;
  --sun-deep: #e09a12;
  --sun-ink: #4a3300;
  --coral: #ff7a6b;
  --pink: #ff8fb1;
  --grass: #8fd14f;
  --stamp: #e2412f;
  --sand: #fff6e0;
  --paper: #fffdf7;
  --font-display: 'Huninn', 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
  --font-body: 'Noto Sans TC', 'Microsoft JhengHei', 'PingFang TC', sans-serif;
  --font-num: 'Outfit', 'Noto Sans TC', sans-serif;
  --font-pixel: 'Silkscreen', 'Outfit', monospace;
  --out: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --shadow-panel: 0 18px 44px rgba(10, 50, 80, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  --shadow-float: 0 6px 16px rgba(10, 50, 80, 0.14);
  --cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 32 32'%3E%3Cpath d='M4 2 L4 26 L10.5 20 L15 29.5 L19.5 27.5 L15.2 18.4 L24 18 Z' fill='%23fff' stroke='%2312344D' stroke-width='2.4' stroke-linejoin='round'/%3E%3C/svg%3E") 4 2, auto;
  --hud-h: 64px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hud-h) + 20px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; overflow-x: hidden;
  font-family: var(--font-body); color: var(--ink); line-height: 1.7;
  background: var(--paper);
  cursor: var(--cursor);
}
a, button, summary, label { cursor: var(--cursor); }
img, video, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
::selection { background: var(--sun); color: var(--sun-ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  --face: #fff; --edge: #c5d6e0; --txt: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border: 0; border-radius: 16px; text-decoration: none;
  font-family: var(--font-display); font-size: 17px; line-height: 1.1; color: var(--txt);
  background: var(--face);
  box-shadow: 0 5px 0 var(--edge), 0 10px 18px rgba(10, 50, 80, 0.2);
  transform: translateY(0);
  transition: transform 0.12s var(--out), box-shadow 0.12s var(--out), filter 0.2s;
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.btn::after { /* glossy top highlight, like the sticker plate */
  content: ''; position: absolute; left: 10px; right: 10px; top: 4px; height: 38%;
  border-radius: 12px 12px 30px 30px; background: linear-gradient(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--edge), 0 14px 22px rgba(10, 50, 80, 0.24); filter: saturate(1.08); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--edge), 0 4px 8px rgba(10, 50, 80, 0.2); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn-sun { --face: var(--sun); --edge: var(--sun-deep); --txt: var(--sun-ink); }
.btn-glass { --face: rgba(255, 255, 255, 0.86); --edge: rgba(18, 52, 77, 0.22); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.btn-sm { padding: 8px 16px; font-size: 15px; border-radius: 12px; box-shadow: 0 4px 0 var(--edge), 0 8px 14px rgba(10, 50, 80, 0.16); }
.btn-lg { padding: 16px 30px; font-size: 21px; border-radius: 20px; }
.btn-lg small { display: block; font-family: var(--font-pixel); font-size: 10px; letter-spacing: 0.12em; opacity: 0.7; }
.btn-lg:has(small) { flex-direction: column; gap: 4px; padding-top: 13px; padding-bottom: 11px; }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------- HUD nav */
.hud {
  position: fixed; z-index: 50; top: 12px; left: 50%; translate: -50% 0;
  width: min(1180px, calc(100% - 24px)); height: var(--hud-h);
  display: flex; align-items: center; gap: 18px; padding: 0 12px 0 14px;
  background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 20px; box-shadow: var(--shadow-panel);
  animation: hud-in 0.8s 0.2s var(--out) both;
}
@keyframes hud-in { from { transform: translateY(-140%); } }
.hud-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-size: 18px; white-space: nowrap; }
.hud-brand img { width: 36px; height: 36px; transition: transform 0.3s var(--spring); }
.hud-brand:hover img { transform: rotate(-12deg) scale(1.12); }
.hud-brand b { font-weight: 400; color: var(--coral); }
.hud-links { display: flex; gap: 2px; margin: 0 auto; }
.hud-links a {
  position: relative; padding: 8px 12px; border-radius: 10px; text-decoration: none; font-weight: 700; font-size: 15px; color: var(--ink-2);
  transition: background 0.2s, color 0.2s;
}
.hud-links a:hover { background: rgba(8, 124, 140, 0.1); color: var(--lagoon); }
.hud-links a.on { color: var(--lagoon); }
.hud-links a.on::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 6px; height: 6px; margin-left: -3px; background: var(--sun); box-shadow: 0 0 0 2px var(--ink); }
.hud-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.hud-links + .hud-right { margin-left: 0; }
.hud-sfx {
  width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 12px;
  background: rgba(18, 52, 77, 0.07); color: var(--ink-2); transition: background 0.2s;
}
.hud-sfx:hover { background: rgba(8, 124, 140, 0.14); }
.hud-sfx svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hud-sfx .spk { fill: currentColor; }
.hud-sfx .on { display: none; }
.hud-sfx[aria-pressed='true'] { color: var(--lagoon); }
.hud-sfx[aria-pressed='true'] .on { display: block; }
.hud-sfx[aria-pressed='true'] .off { display: none; }
.hud-exp {
  position: absolute; left: 18px; right: 18px; bottom: -9px; height: 14px; display: flex; align-items: center; gap: 6px;
  pointer-events: none;
}
.hud-exp span { font-family: var(--font-pixel); font-size: 9px; color: #fff; background: var(--ink); padding: 0 5px; border-radius: 4px; line-height: 14px; }
.hud-exp i {
  /* empty slots; the fill is whole blocks (JS rounds the width to a block), never a stretched bar */
  flex: 1; height: 8px; position: relative;
  background: repeating-linear-gradient(90deg, rgba(18, 52, 77, 0.16) 0 10px, transparent 10px 12px);
}
.hud-exp i::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 0px);
  background: repeating-linear-gradient(90deg, var(--grass) 0 10px, transparent 10px 12px);
}
.hud-exp i::after { /* the newest block flashes in */
  content: ''; position: absolute; top: -1px; bottom: -1px; left: calc(var(--w, 0px) - 12px); width: 10px;
  background: #e4ffbf; box-shadow: 0 0 6px rgba(143, 209, 79, 0.9); opacity: 0;
}
.hud-exp i.tick::after { animation: exp-tick 0.35s ease-out; }
@keyframes exp-tick { from { opacity: 1; transform: scaleY(1.6); } to { opacity: 0; transform: none; } }

/* ---------------------------------------------------------------- reveals */
[data-reveal] { --d: 0s; }
.js [data-reveal] { opacity: 0; }
.js [data-reveal].in { opacity: 1; animation: rv-up 0.8s var(--d) var(--out) both; }
.js [data-reveal='pop'].in { animation: rv-pop 0.75s var(--d) both; }
.js [data-reveal='left'].in { animation: rv-left 0.9s var(--d) var(--out) both; }
.js [data-reveal='right'].in { animation: rv-right 0.9s var(--d) var(--out) both; }
@keyframes rv-up { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes rv-left { from { opacity: 0; transform: translateX(-60px) rotate(-2deg); } to { opacity: 1; transform: none; } }
@keyframes rv-right { from { opacity: 0; transform: translateX(60px) rotate(2deg); } to { opacity: 1; transform: none; } }
@keyframes rv-pop {
  0% { opacity: 0; transform: scale(0.6); animation-timing-function: cubic-bezier(0.2, 0.7, 0.3, 1); }
  40% { opacity: 1; transform: scale(1.05, 0.95); animation-timing-function: ease-in-out; }
  65% { transform: scale(0.98, 1.02); }
  100% { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- section heads */
section { position: relative; }
.sec-head { max-width: 760px; margin: 0 auto 48px; padding: 0 20px; text-align: center; }
.kicker {
  display: inline-block; font-family: var(--font-pixel); font-size: 12px; letter-spacing: 0.14em;
  color: #fff; background: var(--ink); padding: 4px 12px 3px; border-radius: 6px;
  box-shadow: 3px 3px 0 var(--sun);
}
.sec-head h2, .reserve-pitch h2 {
  margin: 18px 0 10px; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(30px, 5.2vw, 54px); line-height: 1.2; letter-spacing: 0.02em;
}
.sec-head h2 em, .reserve-pitch h2 em {
  font-style: normal; white-space: nowrap; color: var(--lagoon);
  background: linear-gradient(transparent 62%, rgba(255, 197, 61, 0.55) 62%, rgba(255, 197, 61, 0.55) 92%, transparent 92%);
}
.sec-head p { margin: 0; color: var(--muted); font-size: 17px; }
.sec-head.light h2, .sec-head.light p { color: #fff; }
.sec-head.light h2 em { color: var(--sun); background: none; }

/* ---------------------------------------------------------------- hero */
.hero {
  min-height: max(680px, 100svh); display: grid; place-items: center; overflow: hidden;
  padding: calc(var(--hud-h) + 40px) 16px 120px; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; background: var(--sea); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.6s; }
.hero-video.fade { opacity: 0.25; }
.hero-tint {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 46% at 50% 44%, rgba(168, 236, 250, 0.6) 0%, rgba(67, 188, 228, 0.36) 52%, rgba(20, 120, 173, 0) 100%),
    linear-gradient(180deg, rgba(20, 120, 173, 0.38) 0%, rgba(20, 120, 173, 0.08) 40%, rgba(20, 120, 173, 0.14) 72%, rgba(255, 253, 247, 0.9) 100%);
}
.hero-rays {
  position: absolute; left: 50%; top: 42%; width: 240vmax; height: 240vmax; margin: -120vmax 0 0 -120vmax;
  background: repeating-conic-gradient(rgba(255, 255, 255, 0.2) 0deg 8deg, transparent 8deg 16deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 4%, transparent 40%); mask-image: radial-gradient(closest-side, #000 4%, transparent 40%);
  animation: rays-in 1s 0.1s ease-out both, spin 60s linear infinite;
}
@keyframes rays-in { from { opacity: 0; scale: 0.5; } }
@keyframes spin { to { rotate: 360deg; } }
.hero-dots {
  position: absolute; inset: 0; opacity: 0.6;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 1.6px, transparent 2.2px) 0 0 / 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000, transparent 70%); mask-image: radial-gradient(ellipse at 50% 40%, #000, transparent 70%);
}
.hero-inner { position: relative; z-index: 1; width: 100%; max-width: 1100px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
  font-weight: 700; font-size: 15px; color: var(--ink); background: var(--glass-strong); box-shadow: var(--shadow-float);
}
.blink { width: 10px; height: 10px; border-radius: 50%; background: var(--stamp); box-shadow: 0 0 0 0 rgba(226, 65, 47, 0.6); animation: blink 1.4s infinite; }
@keyframes blink { 0% { box-shadow: 0 0 0 0 rgba(226, 65, 47, 0.6); } 70% { box-shadow: 0 0 0 10px rgba(226, 65, 47, 0); } 100% { box-shadow: 0 0 0 0 rgba(226, 65, 47, 0); } }

/* the sticker logo assembling itself (same parts + choreography as the app's start-up intro) */
.logo-stage { position: relative; width: min(100%, 980px); aspect-ratio: 2000 / 667; margin: 6px 0 0; font-size: 0; }
.logo-fallback { width: 100%; height: auto; }
.logo-art { position: absolute; inset: 0; }
.logo-art .lp { position: absolute; }
.lp .in { position: relative; width: 100%; height: 100%; }
.lp .in > img { display: block; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }
.lp .shine {
  position: absolute; inset: 0; pointer-events: none; -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.85) 50%, transparent 58%) 100% 0 / 250% 100% no-repeat;
}
.logo-shake { position: absolute; inset: 0; }
.logo-stage.go .logo-shake { animation: st-shake 0.34s 2.21s linear both; }
.logo-ring {
  position: absolute; left: 82.5%; top: 60%; width: 18%; aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; border: 6px solid #fff; opacity: 0;
}
.logo-stage.go .logo-ring { animation: st-ring 0.6s 2.21s var(--out) both; }
@keyframes st-shake {
  0%, 100% { transform: none; }
  15% { transform: translate(-1.4%, 2%) rotate(-0.8deg); }
  35% { transform: translate(1.2%, -1.6%) rotate(0.6deg); }
  55% { transform: translate(-0.7%, 1%); }
  75% { transform: translate(0.4%, -0.6%); }
}
@keyframes st-ring { 0% { transform: scale(0.4); opacity: 0; } 8% { opacity: 1; } 100% { transform: scale(2.6); opacity: 0; border-width: 1px; } }
.logo-stage:not(.go) .lp .in { opacity: 0; }
.go .plate .in { animation: st-jelly 0.8s 0.15s both; }
.go .line1 .in { animation: st-drop 0.66s 0.55s both; transform-origin: 50% 100%; }
.go .line2 .in { animation: st-swing 0.72s 0.9s both; transform-origin: 0% 100%; }
.go .bar .in { animation: st-grow 0.55s 1.25s both; transform-origin: 0% 50%; }
.go .arrow .in { animation: st-reveal 0.6s 1.42s both; transform-origin: 20% 80%; }
.go .clock .in { animation: st-fly-tl 0.72s 1.3s both; }
.go .mug .in { animation: st-hop 0.75s 1.45s both; transform-origin: 50% 100%; }
.go .papers .in { animation: st-slide 0.65s 1.55s both; }
.go .notesL .in { animation: st-flutter-l 0.9s 1.6s both; }
.go .noteR .in { animation: st-flutter-r 0.9s 1.72s both; }
.go .stamp .in { animation: st-slam 0.34s 1.99s both; }
@keyframes st-jelly {
  0% { transform: scale(0); animation-timing-function: cubic-bezier(0.2, 0.7, 0.3, 1); }
  30% { transform: scale(1.16, 0.82); animation-timing-function: ease-in-out; }
  48% { transform: scale(0.9, 1.1); animation-timing-function: ease-in-out; }
  64% { transform: scale(1.05, 0.96); animation-timing-function: ease-in-out; }
  82% { transform: scale(0.985, 1.015); }
  100% { transform: none; }
}
@keyframes st-drop {
  0% { transform: translateY(-190%) rotate(-8deg); opacity: 0; animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45); }
  10% { opacity: 1; }
  50% { transform: translateY(0) scale(1.1, 0.8); animation-timing-function: ease-out; }
  70% { transform: translateY(-9%) scale(0.96, 1.05); animation-timing-function: ease-in; }
  86% { transform: translateY(0) scale(1.03, 0.97); }
  100% { transform: none; opacity: 1; }
}
@keyframes st-swing {
  0% { transform: translateX(-130%) rotate(-28deg) scale(0.6); opacity: 0; animation-timing-function: cubic-bezier(0.2, 0.8, 0.3, 1); }
  20% { opacity: 1; }
  58% { transform: translateX(3%) rotate(5deg) scale(1.05); animation-timing-function: ease-in-out; }
  80% { transform: rotate(-2deg) scale(0.99); }
  100% { transform: none; opacity: 1; }
}
@keyframes st-grow {
  0% { transform: scaleX(0) scaleY(0.6); animation-timing-function: cubic-bezier(0.2, 0.8, 0.3, 1); }
  65% { transform: scaleX(1.05) scaleY(1.08); }
  100% { transform: none; }
}
@keyframes st-reveal {
  0% { clip-path: inset(0 100% 0 0); animation-timing-function: cubic-bezier(0.5, 0, 0.3, 1); }
  70% { clip-path: inset(-20% -20% -20% -20%); transform: scale(1); }
  85% { transform: scale(1.1) rotate(-3deg); }
  100% { clip-path: inset(-20% -20% -20% -20%); transform: none; }
}
@keyframes st-fly-tl {
  0% { transform: translate(-110%, -130%) rotate(-70deg) scale(0.4); opacity: 0; animation-timing-function: cubic-bezier(0.2, 0.8, 0.3, 1); }
  25% { opacity: 1; }
  60% { transform: rotate(12deg) scale(1.06); animation-timing-function: ease-in-out; }
  82% { transform: rotate(-5deg) scale(0.98); }
  100% { transform: none; opacity: 1; }
}
@keyframes st-hop {
  0% { transform: translateY(170%) scale(0.7); opacity: 0; animation-timing-function: cubic-bezier(0.2, 0.8, 0.4, 1); }
  20% { opacity: 1; }
  50% { transform: translateY(-14%) scale(0.96, 1.06); animation-timing-function: ease-in; }
  68% { transform: translateY(0) scale(1.08, 0.88); animation-timing-function: ease-out; }
  85% { transform: scale(0.98, 1.03); }
  100% { transform: none; opacity: 1; }
}
@keyframes st-slide {
  0% { transform: translateX(170%) rotate(30deg); opacity: 0; animation-timing-function: cubic-bezier(0.2, 0.8, 0.3, 1); }
  20% { opacity: 1; }
  62% { transform: translateX(-8%) rotate(-7deg); }
  84% { transform: translateX(2%) rotate(2deg); }
  100% { transform: none; opacity: 1; }
}
@keyframes st-flutter-l {
  0% { transform: translate(-70%, -170%) rotate(80deg); opacity: 0; animation-timing-function: ease-out; }
  20% { opacity: 1; }
  48% { transform: translate(-14%, -30%) rotate(-24deg); animation-timing-function: ease-in-out; }
  74% { transform: translate(2%, 5%) rotate(9deg); }
  100% { transform: none; opacity: 1; }
}
@keyframes st-flutter-r {
  0% { transform: translate(80%, -180%) rotate(-80deg); opacity: 0; animation-timing-function: ease-out; }
  20% { opacity: 1; }
  48% { transform: translate(12%, -28%) rotate(22deg); animation-timing-function: ease-in-out; }
  74% { transform: translate(-2%, 5%) rotate(-8deg); }
  100% { transform: none; opacity: 1; }
}
@keyframes st-slam {
  0% { transform: translateY(-50%) rotate(-28deg) scale(2.8); opacity: 0; animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45); }
  62% { transform: scale(0.88, 0.94); opacity: 1; animation-timing-function: ease-out; }
  82% { transform: scale(1.06); }
  100% { transform: none; opacity: 1; }
}
/* idle life once landed — on the img so it doesn't fight the entrance */
.go .clock .in > img { transform-origin: 50% 75%; animation: st-ringing 0.55s 2s both, st-ringing 0.55s 6s both; }
.go.ring-loop .clock .in > img { animation: st-ringing 0.55s both; }
@keyframes st-ringing {
  0%, 100% { transform: none; }
  10% { transform: rotate(10deg); } 20% { transform: rotate(-10deg); } 30% { transform: rotate(8deg); }
  40% { transform: rotate(-7deg); } 52% { transform: rotate(5deg); } 64% { transform: rotate(-3deg); } 80% { transform: rotate(1.5deg); }
}
.go .mug .in > img { transform-origin: 50% 100%; animation: st-bob 1.5s 2.25s ease-in-out infinite alternate; }
@keyframes st-bob { to { transform: translateY(-5%) rotate(-3deg); } }
.go .papers .in > img, .go .noteR .in > img { animation: st-sway 1.7s 2.3s ease-in-out infinite alternate; }
.go .notesL .in > img { animation: st-sway 2s 2.4s ease-in-out infinite alternate-reverse; }
@keyframes st-sway { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
.go .arrow .in > img { transform-origin: 15% 85%; animation: st-pulse 0.8s 2.2s ease-in-out infinite alternate; }
@keyframes st-pulse { to { transform: scale(1.06) rotate(-2deg); } }
.go .stamp .in > img { transform-origin: 40% 90%; }
.stamp .in { cursor: var(--cursor); }
.go .stamp.thump .in > img { animation: st-thump 0.4s both; }
@keyframes st-thump {
  0%, 100% { transform: none; }
  40% { transform: translateY(-16%) rotate(-10deg); animation-timing-function: ease-in; }
  65% { transform: translateY(2%) scale(1.06, 0.9); }
}
.go .line1 .in > img { animation: st-float 2.2s 2.4s ease-in-out infinite alternate both; }
.go .line2 .in > img { animation: st-float 2.2s 2.7s ease-in-out infinite alternate both; }
.go .line1 .in > .shine { animation: st-float 2.2s 2.4s ease-in-out infinite alternate both, st-shine 0.75s 2.85s ease-in-out both; }
.go .line2 .in > .shine { animation: st-float 2.2s 2.7s ease-in-out infinite alternate both, st-shine 0.75s 3s ease-in-out both; }
.go.reshine .line1 .in > .shine, .go.reshine .line2 .in > .shine { animation: st-float 2.2s ease-in-out infinite alternate both, st-shine 0.75s ease-in-out both; }
@keyframes st-float { from { translate: 0 0; } to { translate: 0 -2.5%; } }
@keyframes st-shine { from { background-position: 100% 0; } to { background-position: 0% 0; } }
.spark {
  position: absolute; overflow: visible; translate: -50% -50%; scale: 0;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.9));
}
.go .spark { animation: spark 1.1s ease-in-out infinite both; }
@keyframes spark { 0%, 100% { scale: 0; rotate: 0deg; } 45% { scale: 1; rotate: 45deg; } 70% { scale: 0.2; rotate: 80deg; } }

.hero-tag {
  margin: 6px 0 28px; padding: 8px 24px 9px; border-radius: 12px; rotate: -1.5deg;
  font-family: var(--font-display); font-size: clamp(19px, 2.6vw, 28px); line-height: 1.35; letter-spacing: 0.05em;
  color: #fff; background: var(--ink); box-shadow: 5px 5px 0 rgba(255, 197, 61, 0.95), 0 14px 30px rgba(10, 40, 70, 0.35);
  animation: tag-in 0.8s 2.5s var(--out) both;
}
.hero-tag em { font-style: normal; color: var(--sun); }
@keyframes tag-in { from { opacity: 0; transform: translateY(14px); letter-spacing: 0.4em; } }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; animation: tag-in 0.8s 2.75s var(--out) both; }
.hero-cta .btn-sun { animation: nudge 3.2s 4s ease-in-out infinite; }
@keyframes nudge { 0%, 86%, 100% { rotate: 0deg; } 89% { rotate: -4deg; } 92% { rotate: 4deg; } 95% { rotate: -2deg; } }
.hero-count {
  margin: 22px 0 0; padding: 6px 16px; border-radius: 999px; font-weight: 700; color: var(--ink);
  background: rgba(255, 255, 255, 0.8); box-shadow: var(--shadow-float);
  animation: tag-in 0.8s 3s var(--out) both;
}
.hero-count b { font-size: 20px; color: var(--lagoon); margin: 0 2px; }
.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-decoration: none; font-family: var(--font-pixel); font-size: 11px; letter-spacing: 0.2em; color: var(--ink);
  animation: tag-in 0.8s 3.2s var(--out) both;
}
.scroll-hint svg { width: 22px; height: 22px; fill: var(--ink); animation: hop 1.2s ease-in-out infinite; }
@keyframes hop { 50% { transform: translateY(6px); } }

/* clouds */
.sky { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.cloud { position: absolute; width: 160px; height: 70px; image-rendering: pixelated; filter: drop-shadow(0 10px 0 rgba(18, 52, 77, 0.08)); animation: drift linear infinite; }
.c1 { top: 16%; width: 190px; height: 84px; animation-duration: 70s; animation-delay: -20s; }
.c2 { top: 58%; width: 130px; height: 58px; animation-duration: 55s; animation-delay: -42s; opacity: 0.9; }
.c3 { top: 30%; width: 110px; height: 48px; animation-duration: 85s; animation-delay: -5s; opacity: 0.8; }
.c4 { top: 74%; width: 220px; height: 96px; animation-duration: 95s; animation-delay: -60s; }
@keyframes drift { from { transform: translateX(-260px); } to { transform: translateX(calc(100vw + 260px)); } }

/* ---------------------------------------------------------------- tapes */
.tapes { position: relative; z-index: 3; height: 150px; margin: -80px 0 -30px; overflow: hidden; pointer-events: none; }
.tape { position: absolute; left: -5%; width: 110%; overflow: hidden; padding: 12px 0; box-shadow: 0 10px 24px rgba(10, 50, 80, 0.22); }
.tape-ink { top: 40px; rotate: -3deg; background: var(--ink); color: #fff; }
.tape-sun { top: 64px; rotate: 2deg; background: var(--sun); color: var(--sun-ink); }
.tape-ink::before, .tape-sun::before { content: ''; position: absolute; inset: 4px 0; border-top: 2px dashed rgba(255, 255, 255, 0.25); border-bottom: 2px dashed rgba(255, 255, 255, 0.25); pointer-events: none; }
.tape-sun::before { border-color: rgba(74, 51, 0, 0.2); }
.tape-track { display: flex; width: max-content; gap: 22px; align-items: center; animation: marquee 30s linear infinite; font-family: var(--font-display); font-size: 22px; white-space: nowrap; }
.tape-track.rev { animation-direction: reverse; animation-duration: 36s; font-family: var(--font-pixel); font-size: 18px; }
.tape-track i { font-style: normal; color: var(--sun); }
.tape-sun .tape-track i { color: var(--coral); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- story */
.story { padding: 110px 20px 90px; background: var(--paper); overflow: hidden; }
.story-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; }
.slant {
  display: inline-block; margin: 0 0 28px; padding: 10px 22px 12px; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(22px, 3vw, 34px); line-height: 1.25; color: #fff; rotate: -3deg; border-radius: 6px;
  box-shadow: 6px 6px 0 rgba(18, 52, 77, 0.18);
}
.slant em { font-style: normal; color: var(--sun); }
.slant-ink { background: var(--ink); }
.slant-lagoon { background: var(--lagoon); rotate: 2deg; }
.terms { position: relative; height: 330px; }
.term {
  position: absolute; width: 62%; min-width: 220px; border-radius: 12px; overflow: hidden;
  background: #0f2536; color: #b6d7e6; font-family: Consolas, Menlo, monospace; font-size: 13px; line-height: 1.6;
  box-shadow: 0 14px 30px rgba(10, 30, 50, 0.3); animation: jitter 2.4s ease-in-out infinite;
}
.term header { display: flex; align-items: center; gap: 6px; padding: 7px 10px; background: #1b3a50; font-size: 11px; color: #8fb3c7; }
.term header i { width: 9px; height: 9px; border-radius: 50%; background: #ff6b5b; }
.term header i:nth-child(2) { background: #ffc53d; }
.term header i:nth-child(3) { background: #5fd38d; }
.term header span { margin-left: 6px; }
.term p { margin: 0; padding: 10px 12px 14px; }
.term b { color: var(--sun); font-weight: 700; }
.caret { display: inline-block; width: 8px; height: 14px; margin-left: 3px; vertical-align: -2px; background: #b6d7e6; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.t1 { left: 0; top: 0; rotate: -4deg; }
.t2 { right: 0; top: 40px; rotate: 3deg; animation-delay: -0.6s; }
.t3 { left: 8%; top: 150px; rotate: 2deg; animation-delay: -1.2s; }
.t3 p { color: #ff9f93; }
.t4 { right: 4%; top: 200px; rotate: -3deg; animation-delay: -1.8s; }
@keyframes jitter { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(2px, -3px); } 50% { transform: translate(-2px, 2px); } 75% { transform: translate(3px, 1px); } }
.sweat { position: absolute; right: -4px; top: -16px; font-size: 40px; animation: hop 0.9s ease-in-out infinite; }
.story-note { margin: 20px 0 0; color: var(--muted); font-size: 16px; }
.story-arrow svg { width: 64px; height: 64px; fill: var(--sun); filter: drop-shadow(4px 4px 0 var(--ink)); animation: push 1s ease-in-out infinite; }
@keyframes push { 50% { transform: translateX(10px); } }
.story-after { text-align: right; }
.postcard {
  margin: 0; padding: 12px 12px 0; background: #fff; border-radius: 16px; rotate: 1.5deg;
  box-shadow: 0 22px 44px rgba(10, 50, 80, 0.22); transition: rotate 0.4s var(--spring), transform 0.4s var(--spring);
  text-align: left;
}
.postcard:hover { rotate: 0deg; transform: scale(1.02); }
.postcard img { width: 100%; height: auto; border-radius: 10px; }
.postcard figcaption { position: relative; padding: 14px 6px 16px; color: var(--ink-2); font-size: 15px; }
.pc-stamp {
  position: absolute; right: 8px; top: -30px; padding: 6px 12px; border: 3px solid var(--stamp); border-radius: 8px;
  font-family: var(--font-display); color: var(--stamp); background: rgba(255, 255, 255, 0.9); rotate: 8deg;
}

/* ---------------------------------------------------------------- road divider */
.road {
  position: relative; height: 56px; overflow: hidden;
  background:
    linear-gradient(90deg, var(--sun) 0 40px, transparent 40px 70px) 0 50% / 70px 4px repeat-x,
    linear-gradient(#a59fc9, #a59fc9) 0 0 / 100% 6px no-repeat,
    linear-gradient(#a59fc9, #a59fc9) 0 100% / 100% 6px no-repeat,
    #c9c3e6;
}
.car { position: absolute; width: 66px; height: 36px; image-rendering: pixelated; animation: drive linear infinite; }
.car-a { top: 2px; animation-duration: 9s; }
.car-b { top: 2px; animation-duration: 13s; animation-delay: -6s; }
.car-c { bottom: 2px; animation-duration: 11s; animation-delay: -3s; animation-name: drive-back; }
@keyframes drive { from { left: -80px; } to { left: 100%; } }
@keyframes drive-back { from { left: 100%; transform: scaleX(-1); } to { left: -80px; transform: scaleX(-1); } }

/* ---------------------------------------------------------------- demo */
.demo {
  padding: 110px 20px 120px; overflow: hidden;
  background:
    radial-gradient(circle, rgba(8, 124, 140, 0.12) 1.5px, transparent 2px) 0 0 / 24px 24px,
    linear-gradient(180deg, #e9f7fa, var(--shallow));
}
.demo-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
/* desktop: a vertical level map — stage tiles on a little road, the current stage gets a card */
.levels { position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.levels::before {
  content: ''; position: absolute; left: 33px; top: 34px; bottom: 34px; width: 10px; border-radius: 6px;
  background: linear-gradient(180deg, var(--sun) 0 10px, transparent 10px 18px) 50% 0 / 2px 18px repeat-y, #c9c3e6;
  box-shadow: inset -2px 0 0 #a59fc9;
}
.level {
  position: relative; width: 100%; display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 12px;
  padding: 8px 14px 8px 8px; border: 2px solid transparent; border-radius: 18px; text-align: left; background: none;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.level:hover { background: rgba(255, 255, 255, 0.65); }
.level .lv {
  position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px;
  font-family: var(--font-pixel); font-size: 18px; color: var(--lagoon); background: #fff;
  border: 3px solid #fff; box-shadow: var(--shadow-float);
  transition: background 0.2s, color 0.2s, transform 0.3s var(--spring);
}
.level:hover .lv { transform: scale(1.06); }
.level b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 19px; line-height: 1.3; color: var(--ink-2); }
.level small { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; }
.level .bar { position: absolute; left: 76px; right: 16px; bottom: 7px; height: 4px; border-radius: 4px; transform-origin: 0 50%; transform: scaleX(0); background: var(--sun); display: none; }
.level.on { background: #fff; border-color: var(--ink); box-shadow: 5px 5px 0 var(--sun); }
.level.on b { color: var(--ink); }
.level.on .bar { display: block; }
.level.on .lv { background: var(--ink); color: var(--sun); border-color: var(--ink); transform: rotate(-6deg) scale(1.08); }
.level.done .lv { background: #e3f4d2; color: #3e7d1a; }
.level.done .lv::after { content: '✓'; position: absolute; right: -8px; top: -8px; width: 20px; height: 20px; border-radius: 50%; background: var(--grass); color: #fff; font-family: var(--font-body); font-size: 12px; display: grid; place-items: center; border: 2px solid #fff; }

.monitor { position: relative; border-radius: 22px; background: var(--glass-strong); box-shadow: var(--shadow-panel), 0 0 0 1px rgba(255, 255, 255, 0.9); overflow: hidden; }
.monitor-bar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.lights { display: flex; gap: 6px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff6b5b; }
.lights i:nth-child(2) { background: var(--sun); }
.lights i:nth-child(3) { background: #5fd38d; }
.monitor-title { flex: 1; text-align: center; font-family: var(--font-display); font-size: 15px; color: var(--muted); }
.rec { display: flex; align-items: center; gap: 6px; font-family: var(--font-pixel); font-size: 12px; color: var(--stamp); }
.rec i { width: 9px; height: 9px; border-radius: 50%; background: var(--stamp); animation: caret 1.2s steps(1) infinite; }
.screen { position: relative; aspect-ratio: 16 / 9; background: var(--sea); overflow: hidden; }
.screen video { width: 100%; height: 100%; object-fit: cover; }
.screen-tag {
  position: absolute; left: 14px; top: 14px; padding: 4px 10px 3px; border-radius: 6px;
  font-family: var(--font-pixel); font-size: 13px; color: var(--sun); background: rgba(18, 52, 77, 0.88);
  pointer-events: none;
}
.screen-play {
  position: absolute; right: 14px; bottom: 14px; width: 46px; height: 46px; display: grid; place-items: center;
  border: 0; border-radius: 14px; background: rgba(255, 255, 255, 0.88); box-shadow: var(--shadow-float);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0.85; transition: opacity 0.2s, transform 0.2s var(--spring);
}
.screen-play:hover { opacity: 1; transform: scale(1.08); }
.screen-play svg { width: 22px; height: 22px; fill: var(--ink); }
.screen-play .i-play { display: none; }
.screen.paused .screen-play .i-play { display: block; }
.screen.paused .screen-play .i-pause { display: none; }
/* diagonal navy/teal wipe between stages — same as the promo video's transitions */
.wipe { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.wipe i { position: absolute; top: -10%; bottom: -10%; width: 80%; left: 110%; transform: skewX(-18deg); }
.wipe i:first-child { background: var(--ink); }
.wipe i:last-child { background: var(--lagoon); }
.wipe.go i:first-child { animation: wipe 0.62s cubic-bezier(0.7, 0, 0.3, 1) both; }
.wipe.go i:last-child { animation: wipe 0.62s 0.07s cubic-bezier(0.7, 0, 0.3, 1) both; }
@keyframes wipe { from { left: 110%; } to { left: -100%; } }
.monitor-foot { display: flex; align-items: center; gap: 20px; padding: 18px 22px 20px; }
.step-text { flex: 1; min-width: 0; }
.step-text h3 { margin: 0 0 2px; font-family: var(--font-display); font-weight: 400; font-size: 24px; }
.step-text p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.step-text.swap { animation: rv-up 0.5s var(--out) both; }
.step-nav { display: flex; align-items: center; gap: 10px; }
.step-count { font-family: var(--font-pixel); font-size: 14px; color: var(--muted); min-width: 40px; text-align: center; }
.step-count b { color: var(--ink); font-weight: 700; }
.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 12px;
  background: var(--shallow); box-shadow: 0 3px 0 rgba(8, 124, 140, 0.25); transition: transform 0.12s, box-shadow 0.12s;
}
.icon-btn:hover { background: #d2eef2; }
.icon-btn:active { transform: translateY(3px); box-shadow: none; }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--lagoon); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- features */
.features { padding: 110px 20px 120px; background: var(--paper); }
.bento { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; padding: 24px 24px 26px; border-radius: 22px; background: #fff;
  border: 1px solid var(--line); box-shadow: 0 2px 0 rgba(18, 52, 77, 0.06), 0 14px 30px rgba(10, 50, 80, 0.07);
  transition: transform 0.35s var(--spring), box-shadow 0.35s;
}
.card:hover { transform: translateY(-6px) rotate(-0.4deg); box-shadow: 0 2px 0 rgba(18, 52, 77, 0.06), 0 24px 40px rgba(10, 50, 80, 0.14); }
.card::before { /* pixel corner notch */
  content: ''; position: absolute; right: 16px; top: 16px; width: 12px; height: 12px;
  background: conic-gradient(var(--sun) 0 25%, transparent 0 50%, var(--sun) 0 75%, transparent 0) 0 0 / 6px 6px;
  opacity: 0.8;
}
.card h3 { margin: 10px 0 8px; font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.35; }
.card p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--lagoon); background: var(--shallow); }
.card-ico { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; margin-bottom: 14px; transition: transform 0.4s var(--spring); }
.card:hover .card-ico { transform: rotate(-10deg) scale(1.1); }
.card-ico svg { width: 30px; height: 30px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico-sun { background: #fff1c9; } .ico-sun svg { stroke: #b07400; }
.ico-lagoon { background: var(--shallow); } .ico-lagoon svg { stroke: var(--lagoon); }
.ico-coral { background: #ffe3de; } .ico-coral svg { stroke: #d24d3c; }
.ico-ink { background: #e3ebf2; } .ico-ink svg { stroke: var(--ink); }
.chips { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 2px 9px; border-radius: 8px; font-size: 12.5px; font-weight: 700; background: #f1f5f8; color: var(--ink-2); }
.card-idle { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; padding: 0; overflow: hidden; background: var(--ink); color: #fff; border: 0; }
.card-idle::before { display: none; }
.card-idle .card-media { position: relative; flex: 1; min-height: 260px; overflow: hidden; }
.card-idle video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-idle .card-body { padding: 22px 26px 26px; }
.card-idle .tag { background: var(--sun); color: var(--sun-ink); }
.card-idle h3 { font-size: 28px; }
.card-idle p { color: #c8dbe7; }
.live { position: absolute; left: 14px; top: 14px; display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 6px; font-family: var(--font-pixel); font-size: 12px; background: rgba(18, 52, 77, 0.85); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #5fd38d; animation: caret 1.2s steps(1) infinite; }

/* ---------------------------------------------------------------- buildings */
.buildings {
  padding: 110px 0 100px; overflow: hidden;
  background:
    linear-gradient(180deg, var(--paper) 0, transparent 120px),
    radial-gradient(circle, rgba(116, 189, 53, 0.25) 1.5px, transparent 2px) 0 0 / 22px 22px,
    #eef8df;
}
.bldg-grid { max-width: 1180px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.bldg {
  position: relative; padding: 18px 20px 22px; border-radius: 22px; background: #fff; text-align: center;
  box-shadow: 0 6px 0 rgba(116, 189, 53, 0.35), 0 16px 30px rgba(40, 80, 30, 0.1);
  transform-style: preserve-3d; transition: transform 0.2s ease-out, box-shadow 0.3s;
  will-change: transform;
}
.bldg-pic { position: relative; height: 200px; display: grid; place-items: center; }
.bldg-pic::before { /* island patch under the lot */
  content: ''; position: absolute; left: 50%; bottom: 8px; width: 74%; height: 34%; translate: -50% 0;
  border-radius: 50%; background: radial-gradient(ellipse, rgba(143, 209, 79, 0.55), rgba(143, 209, 79, 0) 70%);
}
.bldg-pic img { position: relative; width: 192px; height: 192px; image-rendering: pixelated; transition: transform 0.4s var(--spring); animation: idle-bob 3s ease-in-out infinite; }
.bldg:nth-child(2n) .bldg-pic img { animation-delay: -1.5s; }
.bldg:hover .bldg-pic img { transform: translateY(-10px) scale(1.12); }
@keyframes idle-bob { 50% { translate: 0 -4px; } }
.bldg .cat { position: absolute; left: 16px; top: 16px; padding: 3px 10px; border-radius: 8px; font-size: 13px; font-weight: 700; color: #fff; background: var(--c, var(--lagoon)); }
.bldg .lvl { position: absolute; right: 16px; top: 18px; font-family: var(--font-pixel); font-size: 11px; color: var(--muted); }
.bldg h3 { margin: 4px 0 6px; font-family: var(--font-display); font-weight: 400; font-size: 24px; }
.bldg p { margin: 0; font-size: 15px; color: var(--ink-2); }
.bldg .new { position: absolute; right: -8px; top: -10px; padding: 4px 10px; border-radius: 8px; font-family: var(--font-pixel); font-size: 12px; color: #fff; background: var(--stamp); rotate: 8deg; box-shadow: 0 4px 0 #a52a1c; animation: nudge 2.4s ease-in-out infinite; }
.puff { position: absolute; width: 10px; height: 10px; background: #fff; pointer-events: none; image-rendering: pixelated; box-shadow: 0 0 0 2px rgba(18, 52, 77, 0.1); animation: puff 0.7s var(--out) forwards; }
@keyframes puff { to { transform: translate(var(--x), var(--y)) scale(0.2); opacity: 0; } }
.decor-belt { margin-top: 56px; padding: 14px 0; background: rgba(255, 255, 255, 0.7); border-top: 2px dashed rgba(116, 189, 53, 0.5); border-bottom: 2px dashed rgba(116, 189, 53, 0.5); overflow: hidden; }
.decor-track { display: flex; width: max-content; gap: 10px; animation: marquee 60s linear infinite; }
.decor-belt:hover .decor-track { animation-play-state: paused; }
.decor { width: 108px; flex: none; text-align: center; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.decor img { width: 96px; height: 96px; margin: 0 auto; image-rendering: pixelated; transition: transform 0.3s var(--spring); }
.decor:hover img { transform: translateY(-6px) scale(1.15); }

/* ---------------------------------------------------------------- count (punch clock) */
.count {
  padding: 110px 20px 130px; overflow: hidden; color: #fff;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.12) 1.5px, transparent 2px) 0 0 / 26px 26px,
    radial-gradient(ellipse at 50% 0%, #43bce4 0%, var(--sea-deep) 70%);
}
.clock-wrap { display: grid; place-items: center; padding-top: 110px; }
.punch {
  position: relative; width: min(640px, 100%); padding: 64px 30px 26px; border: 0; border-radius: 40px 40px 24px 24px;
  color: var(--ink); text-align: center;
  background: linear-gradient(180deg, #fffaf0, #f4e6c6);
  box-shadow: 0 10px 0 #d6bf91, 0 34px 60px rgba(5, 30, 60, 0.4), inset 0 2px 0 #fff, inset 0 -6px 0 rgba(160, 120, 60, 0.12);
  transform-origin: 50% 100%;
}
.punch:hover { filter: brightness(1.02); }
.punch.punching { animation: punch-squash 0.6s both; }
@keyframes punch-squash {
  0%, 100% { transform: none; }
  32% { transform: scale(1.03, 0.94); }
  48% { transform: scale(0.98, 1.04) translateY(-4px); }
  66% { transform: scale(1.01, 0.99); }
}
.punch-head { position: absolute; left: 30px; right: 30px; top: 22px; display: flex; align-items: center; justify-content: space-between; }
.punch-brand { font-family: var(--font-pixel); font-size: 13px; letter-spacing: 0.16em; color: var(--muted); }
.punch-led { width: 14px; height: 14px; border-radius: 50%; background: #5fd38d; box-shadow: 0 0 0 3px rgba(95, 211, 141, 0.25), 0 0 12px #5fd38d; }
.punching .punch-led { animation: led 0.6s steps(2) 2; }
@keyframes led { 50% { background: var(--stamp); box-shadow: 0 0 0 3px rgba(226, 65, 47, 0.25), 0 0 14px var(--stamp); } }
.punch-slot { position: absolute; left: 50%; top: 0; width: 150px; height: 14px; translate: -50% -50%; border-radius: 8px; background: var(--ink); box-shadow: inset 0 3px 0 #061a28, 0 2px 0 #fff; z-index: 2; }
/* the time card sticks out of the slot; overflow clips it at the machine's top edge */
.punch-cardbox { position: absolute; left: 50%; bottom: 100%; width: 140px; height: 130px; translate: -50% 0; overflow: hidden; pointer-events: none; }
.punch-card {
  position: absolute; left: 13px; right: 13px; top: 6px; height: 150px; padding: 10px 10px 0; border-radius: 6px 6px 0 0;
  background: repeating-linear-gradient(180deg, transparent 0 17px, rgba(8, 124, 140, 0.18) 17px 18px) 0 34px / 100% 100% no-repeat, #fffdf6;
  box-shadow: 0 -2px 10px rgba(5, 30, 60, 0.2); text-align: left;
  animation: card-idle 2.4s ease-in-out infinite;
}
.punch-card em { display: block; font-style: normal; font-family: var(--font-display); font-size: 15px; color: var(--ink); }
.punch-card i { display: block; height: 18px; }
.punch-card b { position: absolute; right: 8px; top: 40px; padding: 1px 6px; border: 2px solid var(--stamp); border-radius: 4px; font-family: var(--font-pixel); font-size: 10px; color: var(--stamp); rotate: -8deg; opacity: 0; }
.punching .punch-card { animation: card-punch 0.75s both; }
.punching .punch-card b { animation: card-ink 0.75s both; }
@keyframes card-idle { 50% { translate: 0 6px; } }
@keyframes card-punch { 0% { translate: 0 0; } 30%, 45% { translate: 0 92px; } 100% { translate: 0 0; } }
@keyframes card-ink { 0%, 40% { opacity: 0; scale: 1.6; } 55%, 100% { opacity: 1; scale: 1; } }
.odo {
  display: inline-flex; align-items: flex-end; gap: 6px; padding: 14px 16px; border-radius: 20px;
  background: var(--ink); box-shadow: inset 0 5px 0 rgba(0, 0, 0, 0.3), 0 2px 0 #fff;
  font-family: var(--font-num); font-weight: 900; font-size: clamp(38px, 9vw, 92px); line-height: 1;
}
.odo-d {
  position: relative; width: 0.72em; height: 1.2em; overflow: hidden; border-radius: 12px;
  background: linear-gradient(180deg, #24597a 0 50%, #1d4a66 50% 100%); color: var(--sun);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.12);
}
.odo-d::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: rgba(0, 0, 0, 0.35); }
.odo-d.lead { color: rgba(255, 197, 61, 0.25); }
.odo-s { display: block; transition: transform 1.8s cubic-bezier(0.2, 0.9, 0.25, 1.04); }
.odo-s i { display: block; height: 1.2em; line-height: 1.2em; font-style: normal; text-align: center; }
.odo-c { color: var(--sun); width: 0.24em; line-height: 0.9; }
.punch-unit { display: block; margin-top: 16px; font-family: var(--font-display); font-size: clamp(18px, 2.4vw, 24px); }
.punch-feet { position: absolute; left: 60px; right: 60px; bottom: -22px; display: flex; justify-content: space-between; }
.punch-feet i { width: 54px; height: 14px; border-radius: 0 0 10px 10px; background: #c8ae7d; }

.crowd { position: relative; max-width: 860px; margin: 64px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 6px; }
.w { position: relative; display: block; width: 24px; height: 36px; opacity: 0; }
.w svg { width: 100%; height: 100%; image-rendering: pixelated; filter: drop-shadow(0 3px 0 rgba(5, 30, 60, 0.25)); }
.crowd.in .w { animation: w-in 0.5s var(--d) var(--spring) both, w-bob var(--b) calc(var(--d) + 0.5s) steps(2) infinite alternate; }
@keyframes w-in { from { opacity: 0; transform: translateY(24px) scale(0.4); } to { opacity: 1; transform: none; } }
@keyframes w-bob { to { translate: 0 -3px; } }
.w.you { position: absolute; left: 50%; top: 100%; width: 30px; height: 45px; margin: 42px 0 0 -15px; }
.w.you::before {
  content: '你'; position: absolute; left: 50%; bottom: calc(100% + 6px); translate: -50% 0; padding: 1px 8px; border-radius: 8px;
  font-family: var(--font-display); font-size: 14px; white-space: nowrap; color: var(--sun-ink); background: var(--sun);
  box-shadow: 0 3px 0 var(--sun-deep);
}
.count-cta { margin-top: 116px; text-align: center; }

/* ---------------------------------------------------------------- reserve */
.reserve {
  padding: 30px 20px 120px;
  background:
    linear-gradient(180deg, var(--sea-deep) 0, var(--sea) 30%, #9fdcf0 70%, var(--paper) 100%);
}
.reserve-card {
  position: relative; max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.1fr;
  border-radius: 30px; background: var(--glass-strong); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  box-shadow: 0 30px 70px rgba(10, 50, 80, 0.3), inset 0 1px 0 #fff;
}
.reserve-card.shake { animation: st-shake 0.36s linear; }
.reserve-pitch {
  position: relative; padding: 48px 44px; border-radius: 30px 0 0 30px; overflow: hidden;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 1.5px, transparent 2px) 0 0 / 22px 22px, linear-gradient(160deg, #0a8b9b, var(--lagoon) 50%, #066776);
  color: #fff;
}
.reserve-pitch h2 { color: #fff; margin-top: 20px; }
.reserve-pitch h2 em { color: var(--sun); background: none; }
.perks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; position: relative; z-index: 1; }
.perks li { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 17px; }
.perks b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-family: var(--font-pixel); font-size: 13px; color: var(--ink); background: var(--sun); }
.pitch-stamp { position: absolute; right: -10px; bottom: -14px; width: 150px; rotate: 14deg; animation: idle-bob 2.6s ease-in-out infinite; }
.pitch-clock { position: absolute; right: 120px; bottom: 30px; width: 96px; rotate: -12deg; opacity: 0.95; animation: st-ringing 0.6s 1.5s infinite; animation-duration: 3.4s; }
.reserve-form { position: relative; padding: 40px 44px 36px; display: flex; flex-direction: column; gap: 18px; }
.community-entry { justify-content: center; }
.community-status { align-self: flex-start; padding: 6px 12px; border-radius: 8px; background: var(--lagoon); color: #fff; font-weight: 700; }
.community-entry h3 { margin: 0; font-family: var(--font-display); font-size: clamp(26px, 3vw, 34px); font-weight: 400; }
.community-entry p { margin: 0; color: var(--ink-2); line-height: 1.8; }
.community-entry .community-note { font-size: 14px; }
.field { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field legend { font-weight: 900; font-size: 15px; padding: 0; margin-bottom: 8px; }
.field legend small { font-weight: 500; color: var(--muted); }
.field input[type='email'] {
  height: 54px; padding: 0 18px; border-radius: 14px; border: 2px solid rgba(18, 52, 77, 0.14); background: #fff;
  font-size: 17px; transition: border-color 0.2s, box-shadow 0.2s; cursor: text;
}
.field input[type='email']:focus { outline: none; border-color: var(--lagoon); box-shadow: 0 0 0 4px rgba(8, 124, 140, 0.15); }
.field.bad input { border-color: var(--stamp); animation: no 0.35s; }
@keyframes no { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
.err { display: none; font-style: normal; font-size: 13px; font-weight: 700; color: var(--stamp); }
.bad > .err, .err.show { display: block; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: #eef3f6; }
.seg label, .pills label { position: relative; }
.seg input, .pills input, .check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: block; padding: 10px 6px; border-radius: 11px; text-align: center; font-weight: 700; font-size: 15px; color: var(--muted); transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.seg input:checked + span { background: #fff; color: var(--lagoon); box-shadow: 0 2px 8px rgba(10, 50, 80, 0.12); }
.seg input:focus-visible + span, .pills input:focus-visible + span, .check input:focus-visible + span::before { outline: 3px solid var(--sun); outline-offset: 2px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills span { display: block; padding: 7px 14px; border-radius: 999px; border: 2px solid rgba(18, 52, 77, 0.14); font-weight: 700; font-size: 14px; color: var(--ink-2); background: #fff; transition: all 0.2s var(--spring); }
.pills input:checked + span { border-color: var(--lagoon); background: var(--lagoon); color: #fff; transform: scale(1.05); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.check span::before {
  content: ''; flex: none; display: inline-block; width: 22px; height: 22px; margin: 1px 10px 0 0; vertical-align: -5px;
  border-radius: 7px; border: 2px solid rgba(18, 52, 77, 0.25); background: #fff center / 14px no-repeat; transition: all 0.2s;
}
.check span { display: block; padding-left: 32px; text-indent: -32px; }
.check input:checked + span::before { background-color: var(--lagoon); border-color: var(--lagoon); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12 5 5 9-10' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.form-note { margin: -6px 0 0; font-size: 13px; color: var(--muted); text-align: center; min-height: 1em; }
.reserve-form.sending .btn { pointer-events: none; filter: saturate(0.6); }
/* Scope the reservation overlay: completed demo tabs also use the .done state. */
#done {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 32px; border-radius: 0 30px 30px 0;
  background: radial-gradient(circle, rgba(8, 124, 140, 0.08) 1.5px, transparent 2px) 0 0 / 22px 22px, #fff;
}
#done[hidden] { display: none; }
#done h3 { margin: 18px 0 6px; font-family: var(--font-display); font-weight: 400; font-size: 30px; }
#done p { margin: 0 0 16px; color: var(--ink-2); }
.share { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ink-stamp {
  width: 170px; height: 170px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 7px double var(--stamp); color: var(--stamp); rotate: -12deg;
  font-family: var(--font-display); font-size: 42px; line-height: 1.1;
  background: radial-gradient(circle, rgba(226, 65, 47, 0.06), transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 30% 40%, #000 60%, rgba(0, 0, 0, 0.75) 61%, #000 66%);
  mask-image: radial-gradient(circle at 30% 40%, #000 60%, rgba(0, 0, 0, 0.75) 61%, #000 66%);
}
.ink-stamp small { font-family: var(--font-pixel); font-size: 13px; letter-spacing: 0.1em; margin-top: 6px; }
#done.go .ink-stamp { animation: st-slam 0.4s both; }
#done.go h3, #done.go p, #done.go .share { animation: rv-up 0.6s 0.35s var(--out) both; }

/* ---------------------------------------------------------------- faq */
.faq { padding: 100px 20px 120px; background: var(--paper); }
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: 18px; background: #fff; border: 2px solid var(--line); box-shadow: 0 4px 0 rgba(18, 52, 77, 0.06); transition: border-color 0.2s; }
.faq details[open] { border-color: var(--ink); box-shadow: 4px 4px 0 var(--sun); }
.faq summary {
  list-style: none; display: flex; align-items: center; gap: 14px; padding: 18px 22px;
  font-family: var(--font-display); font-size: 19px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: 'Q'; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; font-family: var(--font-pixel); font-size: 14px; color: var(--sun); background: var(--ink); }
.faq summary::after { content: '+'; margin-left: auto; font-family: var(--font-num); font-size: 26px; font-weight: 700; color: var(--lagoon); transition: rotate 0.3s var(--spring); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: 0; padding: 0 24px 22px 68px; color: var(--ink-2); }
.faq details[open] p { animation: rv-up 0.4s var(--out) both; }

/* ---------------------------------------------------------------- footer */
.foot {
  position: relative; overflow: hidden; padding: 80px 20px 100px; text-align: center; color: #fff;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 1.5px, transparent 2px) 0 0 / 26px 26px, linear-gradient(180deg, var(--sea), var(--sea-deep));
}
.foot-sea { position: absolute; inset: 0; pointer-events: none; }
.c5 { top: 18%; animation-duration: 60s; animation-delay: -10s; }
.c6 { top: 62%; width: 120px; height: 52px; animation-duration: 75s; animation-delay: -40s; }
.foot-logo { position: relative; width: min(560px, 90%); height: auto; margin: 0 auto 28px; filter: drop-shadow(0 18px 30px rgba(10, 40, 70, 0.35)); animation: idle-bob 3.4s ease-in-out infinite; }
.foot .btn { position: relative; }
.foot-copy { position: relative; margin: 36px 0 0; font-size: 13px; opacity: 0.8; }

.dock-cta { display: none; }

/* ---------------------------------------------------------------- trailer */
.trailer { width: min(1100px, 94vw); padding: 0; border: 0; background: transparent; overflow: visible; }
.trailer::backdrop { background: rgba(10, 30, 50, 0.72); backdrop-filter: blur(6px); }
.trailer[open] .trailer-box { animation: rv-pop 0.5s both; }
.trailer-box { position: relative; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.trailer video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.trailer-close {
  position: absolute; z-index: 2; right: 12px; top: 12px; width: 40px; height: 40px; border: 0; border-radius: 12px;
  background: rgba(255, 255, 255, 0.9); color: var(--ink); font-size: 18px; font-weight: 900;
}

/* ---------------------------------------------------------------- toast / confetti / click ripple */
.toast {
  position: fixed; z-index: 80; left: 50%; bottom: 28px; translate: -50% 0; padding: 12px 20px; border-radius: 14px;
  font-weight: 700; color: #fff; background: var(--ink); box-shadow: 0 12px 30px rgba(10, 30, 50, 0.35);
  opacity: 0; transform: translateY(20px); transition: opacity 0.3s, transform 0.4s var(--spring); pointer-events: none;
}
.toast.show { opacity: 1; transform: none; }
.confetti { position: fixed; inset: 0; z-index: 90; width: 100%; height: 100%; pointer-events: none; image-rendering: pixelated; }
.ripple {
  position: fixed; z-index: 95; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; pointer-events: none;
  border: 4px solid var(--sun); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7); animation: rip 0.55s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}
.ripple.b { border-color: var(--lagoon); animation-duration: 0.75s; animation-delay: 0.06s; opacity: 0; }
@keyframes rip { 0% { transform: scale(0.4); opacity: 1; } 100% { transform: scale(3.4); opacity: 0; } }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .hud-links a { padding: 8px 8px; font-size: 14px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card-idle { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 960px) {
  .hud-links { display: none; }
  .hud .hud-right { margin-left: auto; }
  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .story-after { text-align: left; }
  .story-arrow { justify-self: center; rotate: 90deg; }
  .demo-grid { grid-template-columns: 1fr; }
  /* level map: all 7 stages in one row on a little road, nothing scrolls or squeezes */
  .levels { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; margin: 0 0 6px; }
  .levels::before {
    content: ''; position: absolute; left: 7%; right: 7%; top: 21px; bottom: auto; width: auto; height: 10px; border-radius: 6px;
    background: linear-gradient(90deg, var(--sun) 0 10px, transparent 10px 18px) 0 50% / 18px 2px repeat-x, #c9c3e6;
    box-shadow: inset 0 -2px 0 #a59fc9;
  }
  .levels li { display: flex; justify-content: center; min-width: 0; }
  .level {
    width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 0 0 4px; border: 0; background: none; box-shadow: none; overflow: visible; text-align: center;
  }
  .level:hover, .level.on { transform: none; background: none; box-shadow: none; }
  .level .lv { width: 52px; height: 52px; font-size: 16px; }
  .level:hover .lv { transform: translateY(-3px); }
  .level.on .lv { transform: translateY(-4px) rotate(-6deg) scale(1.12); }
  .level.done .lv { background: #e3f4d2; color: #3e7d1a; }
  .level > span:not(.lv) { width: 100%; }
  .level b { font-size: 14px; white-space: nowrap; color: var(--muted); }
  .level.on b { color: var(--ink); }
  .level small, .level .bar, .level.on .bar { display: none; }
  .bldg-grid { grid-template-columns: repeat(2, 1fr); }
  .reserve-card { grid-template-columns: 1fr; }
  .reserve-pitch { border-radius: 30px 30px 0 0; padding: 36px 28px 110px; }
  #done { border-radius: 0 0 30px 30px; }
}
@media (max-width: 640px) {
  :root { --hud-h: 56px; }
  .hud { top: 8px; width: calc(100% - 16px); gap: 8px; padding: 0 8px 0 10px; border-radius: 16px; }
  .hud-brand span { display: none; }
  .hud-right .btn { padding: 8px 12px; }
  .hero { padding-bottom: 110px; }
  .hero-chip { font-size: 13px; }
  .logo-stage { width: 124%; margin-top: 0; }
  .hero-tag { font-size: 16px; letter-spacing: 0.02em; margin-top: 0; padding: 7px 14px 8px; }
  .hero-tag em { white-space: nowrap; }
  .hero-cta { flex-direction: column; align-items: stretch; width: 100%; max-width: 340px; }
  .btn-lg { font-size: 19px; padding: 14px 22px; }
  .tapes { height: 120px; margin-top: -60px; }
  .tape-track { font-size: 17px; }
  .tape-track.rev { font-size: 14px; }
  .terms { height: 300px; }
  .term { width: 78%; font-size: 12px; }
  .story, .demo, .features, .count, .reserve, .faq { padding-top: 80px; padding-bottom: 90px; }
  .sec-head { margin-bottom: 34px; padding: 0; }
  .sec-head p { font-size: 15.5px; }
  .levels::before { top: 17px; }
  .level .lv { width: 40px; height: 40px; font-size: 13px; border-width: 2px; }
  .level b { display: none; }
  .monitor-foot { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; }
  .step-nav { justify-content: space-between; }
  .bento { grid-template-columns: 1fr; }
  .card-idle { grid-column: auto; }
  .bldg-grid { grid-template-columns: 1fr; padding: 0 16px; }
  .punch { padding: 56px 16px 22px; border-radius: 30px 30px 20px 20px; }
  .punch-head { left: 18px; right: 18px; top: 18px; }
  .odo { gap: 4px; padding: 10px; border-radius: 14px; }
  .odo-d { border-radius: 8px; }
  .crowd { gap: 8px 4px; }
  .reserve { padding-left: 12px; padding-right: 12px; }
  .reserve-pitch { padding: 30px 22px 100px; }
  .pitch-stamp { width: 110px; }
  .pitch-clock { width: 72px; right: 96px; bottom: 22px; }
  .reserve-form { padding: 26px 20px 28px; }
  .seg span { font-size: 14px; padding: 9px 2px; }
  .faq summary { font-size: 17px; padding: 16px; gap: 10px; }
  .faq details p { padding: 0 18px 18px 18px; }
  .dock-cta {
    position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 8px;
    transform: translateY(160%); transition: transform 0.4s var(--spring);
  }
  .dock-cta b { font-size: 14px; padding: 1px 8px; border-radius: 8px; background: rgba(74, 51, 0, 0.12); }
  .dock-cta.show { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; }
  .cloud, .car { display: none; }
}
.reservation-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); pointer-events: none; }
.count-status { color: #fff; text-align: center; min-height: 1.5em; margin: .75rem 0; }
#count[data-unavailable] .odo { visibility: hidden; }
