/* Megrum LP redesign prototype (brief-002, 2026-12-03)
   10 sections read top to bottom (about 7.8 phone screens), no pinned scroll. Each section that moves plays a short
   loop of its own: lp.js marks at most two visible sections .is-live, every other loop stays paused, and with
   prefers-reduced-motion nothing moves and each picture rests on its clearest frame (the base style below). */

@font-face { font-family: "Megrum Maru"; font-weight: 700; font-display: swap; src: url(/fonts/maru-700.woff2) format("woff2"); }
@font-face { font-family: "Megrum Maru"; font-weight: 900; font-display: swap; src: url(/fonts/maru-900.woff2) format("woff2"); }
@font-face { font-family: "Megrum Latin"; font-weight: 800; font-display: swap; src: url(/fonts/latin-800.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --rainbow: linear-gradient(90deg, #22d3ee, #3b82f6, #8b5cf6, #ec4899, #fb7185, #fbbf24);
  --paper: #f6fbff;
  --ink: #0b1b4d;
  --ink-soft: #5a6890;
  --ink-body: #2c3b66;
  --cyan: #19b8e6;
  --sky: #8fd6ff;
  --mint: #a6f3d9;
  --orchid: #f9b8e8;
  --butter: #ffe996;
  /* Megrum Maru / Megrum Latin are subsets (re-made 2026-12-04 from the text of index.html, embed.html, their scripts and
     the OGP): a character added later falls back to a rounded gothic until the fonts are subset again */
  --maru: "Megrum Maru", "Hiragino Maru Gothic ProN", "Rounded Mplus 1c", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --latin: "Megrum Latin", "Avenir Next", "Helvetica Neue", sans-serif;
  /* the app screens inside the phones use the iPhone's own font */
  --sys: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  --app-ink: #092043;
  --app-cyan: #00cff1;
  --app-cyan-top: #2be3f4;
  --app-cyan-bottom: #00b5ec;
  --gl: max(18px, env(safe-area-inset-left, 0px));
  --gr: max(18px, env(safe-area-inset-right, 0px));
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 60px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--maru); font-weight: 700; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, summary, th, td { word-break: auto-phrase; overflow-wrap: anywhere; line-break: strict; }
:focus-visible { outline: 3px solid #3b82f6; outline-offset: 3px; }
.ph { display: inline-block; }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic.f { fill: currentColor; stroke: none; }
.rb { background: var(--rainbow); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* m.js reads these marks (one at the top of every section) once lp.js sets html.snapon */
.snap { position: absolute; left: 0; top: 0; width: 1px; height: 1px; pointer-events: none; }

/* ---------- header ---------- */
.hud { position: fixed; z-index: 60; left: 0; right: 0; top: 0; padding: 10px var(--gr) 14px var(--gl); display: flex; align-items: center; gap: 8px; background: linear-gradient(180deg, rgba(246,251,255,.97) 68%, rgba(246,251,255,0)); pointer-events: none; }
.hud > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 6px; margin-right: auto; font: 800 16px/1 var(--latin); text-decoration: none; letter-spacing: -.02em; }
.brand img { width: 34px; height: 20px; object-fit: contain; }
.get, .follow { text-decoration: none; font-weight: 900; font-size: 13px; line-height: 1; padding: 10px 16px; border-radius: 999px; white-space: nowrap; }
.get { background: linear-gradient(180deg, #5fd8f7, var(--cyan)); color: #fff; box-shadow: 0 0 0 2px #b8efff inset, 0 3px 0 #0d93bd, 0 8px 16px rgba(25,184,230,.3); }
.follow { background: #fff; color: var(--ink); box-shadow: 0 0 0 1.5px #d6e2f0 inset, 0 4px 12px rgba(11,27,77,.08); }

/* ---------- shared section frame ---------- */
.sec { position: relative; padding: 48px var(--gr) 44px var(--gl); overflow-x: clip; }
.sec > .in { position: relative; max-width: 1000px; margin: 0 auto; }
.h2 { margin: 0; text-align: center; font: 900 clamp(24px, 6.6vw, 42px)/1.34 var(--maru); letter-spacing: -.02em; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.was, .now { display: block; width: max-content; margin: 0 auto 8px; padding: 4px 14px; border-radius: 999px; font-size: 13px; font-weight: 900; line-height: 1.5; }
.was { background: #dde4ef; color: #6b7794; }
.now { background: #fff; color: var(--ink); border: 2px solid transparent; background-image: linear-gradient(#fff, #fff), var(--rainbow); background-origin: border-box; background-clip: padding-box, border-box; }

/* ---------- store button, QR, iPhone-only note (hero and closing) ---------- */
.cta { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.store { display: inline-flex; align-items: center; gap: 10px; border-radius: 14px; padding: 11px 22px 11px 14px; text-decoration: none; background: #000; color: #fff; position: relative; text-align: left; isolation: isolate; }
.store::before { content: ""; position: absolute; inset: -4px; border-radius: 18px; background: var(--rainbow); z-index: -1; filter: blur(12px); opacity: .75; }
.store::after { content: ""; position: absolute; inset: 0; border-radius: 14px; background: #000; z-index: -1; }
.store b { display: block; font-size: 17px; font-weight: 900; line-height: 1.15; }
.store small { display: block; font-size: 10.5px; line-height: 1.3; opacity: .85; }
.store i { width: 28px; height: 28px; border-radius: 8px; background: var(--rainbow); flex: none; }
.qrbox { display: none; align-items: center; gap: 14px; padding: 12px 20px 12px 12px; border-radius: 22px; background: #fff; box-shadow: 0 12px 32px rgba(11,27,77,.12); text-align: left; font-size: 14px; font-weight: 900; line-height: 1.5; }
.qrbox .qr { position: relative; flex: none; }
.qrbox img { width: 112px; height: 112px; border-radius: 8px; }
.qrbox .qr::after { content: ""; position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px; background: url(/lp/mark.webp) center / contain no-repeat; }
.droid { margin: 0; font-size: 12.5px; font-weight: 900; color: var(--ink-soft); }
/* a computer: the QR code next to the button; Android: the note becomes the message */
@media (min-width: 768px) { html.is-desktop .qrbox { display: flex; } }
html.is-android .droid { padding: 10px 20px; border-radius: 999px; background: #fff; box-shadow: 0 8px 22px rgba(11,27,77,.1); color: var(--ink); font-size: 15px; }

/* ---------- section loops ----------
   lp.js adds html.loops (motion allowed) and .is-live on at most two sections in view. Every moving part carries .a
   and its own keyframes; the base styles are the resting picture used with reduced motion. */
.loops [data-loop] .a { animation-duration: var(--dur, 5s); animation-iteration-count: infinite; animation-fill-mode: both; animation-timing-function: cubic-bezier(.3,.7,.3,1); animation-play-state: paused; }
.loops [data-loop].is-live .a { animation-play-state: running; }
@media (prefers-reduced-motion: reduce) { [data-loop] .a { animation: none !important; } }

/* =====================================================================
   1. hero
   ===================================================================== */
.hero { --dur: 5s; overflow: hidden; padding-top: 64px; padding-bottom: 30px; background:
  radial-gradient(60vmax 40vmax at 0% 0%, rgba(143,214,255,.75), transparent 62%),
  radial-gradient(50vmax 40vmax at 100% 30%, rgba(166,243,217,.6), transparent 60%),
  radial-gradient(50vmax 40vmax at 0% 100%, rgba(249,184,232,.55), transparent 60%),
  radial-gradient(50vmax 36vmax at 100% 100%, rgba(255,233,150,.6), transparent 60%), var(--paper); }
.hero-in { position: relative; max-width: 1080px; margin: 0 auto; display: grid; grid-template-areas: "copy" "phone" "cta"; justify-items: center; text-align: center; }
.hero-copy { grid-area: copy; }
.kicker { display: inline-block; margin: 0 0 8px; padding: 5px 14px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1.5px #d4e6f7 inset, 0 6px 16px rgba(11,27,77,.07); font-size: 14px; font-weight: 900; line-height: 1.5; color: var(--ink-body); }
.hero h1 { margin: 0; font: 900 clamp(29px, 8.4vw, 62px)/1.24 var(--maru); letter-spacing: -.035em; }
.lead { margin: 6px 0 0; font-size: clamp(15px, 4.1vw, 21px); font-weight: 900; line-height: 1.5; color: var(--ink-body); }
.hero-cta { grid-area: cta; margin-top: 2px; }

/* the phone: the 1.0.3 home is laid out at the iPhone's own 393 × 852 pt and scaled by --s */
.hero-phone { grid-area: phone; --s: .7; --bz: calc(9px * var(--s) + 3px); margin: 12px -48px 0; padding: 4px 48px 0; height: calc(724px * var(--s) + var(--bz) + 4px); overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 64px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 64px), transparent); }
@media (max-height: 760px) and (max-width: 899px) { .hero-phone { --s: .6; } }
/* iPhone SE (375 × 667): a smaller phone and a few px less space so the store button and the iPhone-only note stay in the
   first view (port QA 2026-12-04: at .52 the button ended 1px below the screen and the note was out of view) */
@media (max-height: 680px) and (max-width: 899px) {
  .hero-phone { --s: .49; margin-top: 6px; }
  .kicker { margin-bottom: 6px; }
  .hero-cta { margin-top: 0; }
  .hero-cta.cta { gap: 8px; }
}
@media (max-width: 359px) { .hero-phone { --s: .62; } }
@media (min-width: 600px) and (max-width: 899px) and (min-height: 900px) { .hero-phone { --s: .82; } }
.phone { position: relative; width: calc(393px * var(--s) + var(--bz) * 2); padding: var(--bz); border-radius: calc(55px * var(--s) + var(--bz));
  background: linear-gradient(150deg, #ffffff 0%, #f1f6fc 45%, #d9e5f2 100%);
  box-shadow: 0 0 0 1px rgba(11,27,77,.07), inset 0 2px 1px #fff, inset 0 -3px 6px rgba(11,27,77,.07), 0 28px 56px rgba(11,27,77,.2), 0 8px 18px rgba(11,27,77,.08); }
.scr { position: relative; width: calc(393px * var(--s)); height: calc(852px * var(--s)); border-radius: calc(50px * var(--s)); overflow: hidden; background: #fff; box-shadow: 0 0 0 calc(2px + 1px * var(--s)) #10162b; isolation: isolate; }
.app { position: absolute; left: 0; top: 0; width: 393px; height: 852px; transform: scale(var(--s)); transform-origin: 0 0; background: #fff; color: var(--app-ink); font-family: var(--sys); font-weight: 400; line-height: 1.25; text-align: left; overflow: hidden; }
.app * { line-break: auto; }

/* status bar */
.sb { height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 4px 30px 0 52px; font-size: 17px; }
.sb b { font-weight: 600; }
.sbi { display: flex; align-items: center; gap: 6px; }
.sig { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.sig i { width: 3px; border-radius: 1px; background: var(--app-ink); }
.sig i:nth-child(1) { height: 4px; } .sig i:nth-child(2) { height: 6px; } .sig i:nth-child(3) { height: 9px; } .sig i:nth-child(4) { height: 12px; }
.wifi { width: 16px; height: 12px; background: var(--app-ink); clip-path: polygon(50% 100%, 0 30%, 18% 12%, 50% 0, 82% 12%, 100% 30%); border-radius: 2px; }
.bat { position: relative; width: 25px; height: 12px; border-radius: 3.5px; box-shadow: 0 0 0 1px rgba(9,32,67,.4); padding: 1.5px; }
.bat i { display: block; width: 80%; height: 100%; border-radius: 2px; background: var(--app-ink); }
.island { position: absolute; left: 50%; top: 11px; width: 122px; height: 36px; margin-left: -61px; border-radius: 18px; background: #000; }

/* top block: nothing registered yet (slot) or the 交換候補 cards; both sit in the same 330 pt */
.top { position: relative; height: 330px; margin-top: 8px; }
.slot { position: absolute; left: 20px; right: 20px; top: 0; display: grid; justify-items: end; gap: 12px; padding: 18px; border-radius: 24px; background: linear-gradient(90deg, #e6faff, #f5f0ff); box-shadow: inset 0 0 0 1px #ccedfa; opacity: 0; }
.sl-row { justify-self: stretch; display: flex; align-items: center; gap: 12px; }
.sl-row img { width: 60px; height: 60px; object-fit: contain; flex: none; }
.sl-row b { font-size: 19px; font-weight: 800; line-height: 1.3; }
.pbtn { display: inline-flex; align-items: center; height: 46px; padding: 0 22px; border-radius: 23px; background: linear-gradient(180deg, var(--app-cyan-top), var(--app-cyan) 25%, var(--app-cyan-bottom)); color: #fff; font-size: 16px; font-weight: 800; box-shadow: inset 0 0 0 1px #cee9f2, inset 0 0 0 2px rgba(255,255,255,.6), 0 3px 0 rgba(0,181,236,.6); }
.cands { position: absolute; inset: 0; }
.ch { display: flex; align-items: center; justify-content: space-between; height: 30px; margin: 0 20px; }
.ch b { font-size: 21px; font-weight: 800; }
.ch span { font-size: 15px; font-weight: 700; color: var(--app-cyan-bottom); }
.rail { position: absolute; left: 20px; top: 40px; display: flex; gap: 12px; }

/* the home candidate card (HomeCandidateCard): person row + kind, 受け取るもの / 譲るもの, 郵送・手渡し・金銭 */
.cc { position: relative; flex: none; width: 313px; padding: 10px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px #a5e7ff, 0 4px 0 rgba(59,207,245,.24); }
.peer { display: flex; align-items: center; gap: 8px; height: 38px; }
.peer img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; }
.peer b { font-size: 17px; font-weight: 700; white-space: nowrap; }
.peer small { font-size: 12px; white-space: nowrap; }
.kind { margin-left: auto; height: 26px; padding: 0 8px; border-radius: 13px; background: #fff0f5; color: #e84580; font-size: 12px; font-weight: 800; font-style: normal; line-height: 26px; white-space: nowrap; }
.goods { display: flex; gap: 12px; margin-top: 8px; }
.goods > div { flex: 1; min-width: 0; }
.dir { display: flex; align-items: center; gap: 8px; height: 18px; font-size: 13px; font-weight: 700; }
.dir::before { content: ""; width: 17px; height: 4px; border-radius: 2px; background: #ff4f8f; }
.dir.g::before { background: var(--app-cyan); }
.col { position: relative; display: block; margin-top: 4px; aspect-ratio: 1; }
.col img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; border-radius: 6px; background: #eef2f7; }
.col.n2 img { width: calc(50% - 2px); height: calc(50% - 2px); }
.col.n2 img + img { left: calc(50% + 2px); }
/* a goods both sides want: the app's gold flame frame */
.col img.m { box-shadow: 0 0 0 2.2px #ffd640, 0 0 8px 3px rgba(255,143,26,.7); }
.conds { display: flex; gap: 6px; margin-top: 8px; }
.cd { flex: 1; min-width: 0; display: flex; align-items: center; gap: 3px; height: 46px; padding: 0 4px; border-radius: 8px; background: #f2f2f7; color: #5b667e; }
.cd svg { width: 28px; height: 28px; flex: none; }
.cd b { display: block; font-size: 13px; font-weight: 700; line-height: 1.2; }
.cd small { display: block; font-size: 9px; line-height: 1.25; white-space: nowrap; }
.cd.ok, .cd.ask { color: #fff; }
.cd.ok { background: linear-gradient(180deg, var(--app-cyan-top), var(--app-cyan) 25%, var(--app-cyan-bottom)); box-shadow: inset 0 0 0 1px #cee9f2, inset 0 0 0 2px rgba(255,255,255,.6), 0 2.5px 0 rgba(0,160,210,.6); }
.cd.ask { background: linear-gradient(180deg, #ff6c63, #ff4842); box-shadow: inset 0 0 0 1px #ffd3cf, inset 0 0 0 2px rgba(255,255,255,.55), 0 2.5px 0 rgba(226,72,56,.62); }
.cd.no svg { filter: grayscale(1); opacity: .7; }
.ring { position: absolute; inset: -3px; border-radius: 16px; box-shadow: 0 0 0 3px var(--app-cyan-bottom), 0 0 18px 4px rgba(0,207,241,.35); pointer-events: none; }

/* hint, 推し tags, the 3-column list with glass ♡ (top-left) and ＋ (bottom-right) */
.lower { position: relative; }
.hint { position: relative; height: 24px; margin: 18px 20px 0; font-size: 16px; font-weight: 800; line-height: 24px; }
.hint > span { position: absolute; inset: 0; white-space: nowrap; }
.hint .hA { opacity: 0; }
.hint em { font-style: normal; }
.hp { color: #ff4f8f; } .hc { color: var(--app-cyan-bottom); }
.otags { display: flex; gap: 8px; padding: 14px 20px 7px; white-space: nowrap; }
.otags > * { height: 34px; padding: 0 14px; border-radius: 17px; font-size: 14px; line-height: 34px; }
.otags b { background: var(--app-ink); color: #fff; font-weight: 700; }
.otags span { background: #f1f4f9; font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 10px; padding: 7px 20px 0; }
.pic { position: relative; display: block; aspect-ratio: .75; border-radius: 14px; overflow: hidden; background: #eef2f7; }
.pic > img { width: 100%; height: 100%; object-fit: cover; }
.tile small { display: block; margin-top: 6px; font-size: 12px; font-weight: 600; line-height: 1.3; color: rgba(9,32,67,.75); }
.gb { position: absolute; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(16,22,43,.26); box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), 0 1px 3px rgba(0,0,0,.12); color: #fff; }
.gb > * { grid-area: 1 / 1; }
.gb.w { left: 6px; top: 6px; }
.gb.o { right: 6px; bottom: 6px; }
.gb .ic { width: 17px; height: 17px; stroke-width: 2.6; filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.35)); }
.gbf { width: 100%; height: 100%; border-radius: 50%; background: rgba(255,255,255,.9); }
.gb .i0 { opacity: 0; }
.gb.w .i1 { color: #ff4f8f; filter: none; }
.gb.o .i1 { color: var(--app-cyan-bottom); filter: none; }
.add { position: absolute; z-index: 4; right: 20px; bottom: 100px; display: flex; align-items: center; gap: 4px; height: 50px; padding: 0 20px 0 16px; border-radius: 25px; background: linear-gradient(180deg, var(--app-cyan-top), var(--app-cyan) 25%, var(--app-cyan-bottom)); color: #fff; font-size: 16px; font-weight: 700; box-shadow: inset 0 0 0 2px rgba(255,255,255,.55), 0 3px 0 rgba(0,160,210,.6), 0 10px 20px rgba(0,120,170,.25); }
.add .ic { width: 18px; height: 18px; stroke-width: 2.8; }
.app-btm { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 108px; background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.94) 36%, #fff 68%); pointer-events: none; }
.tabbar { position: absolute; z-index: 4; left: 14px; right: 14px; bottom: 20px; height: 64px; display: flex; align-items: center; justify-content: space-around; padding: 0 6px; border-radius: 32px; background: #fff; box-shadow: inset 0 0 0 1px rgba(9,32,67,.06), 0 8px 26px rgba(9,32,67,.14); }
.tabbar > * { display: grid; justify-items: center; gap: 2px; width: 64px; padding: 6px 0; border-radius: 26px; font-size: 10px; font-weight: 600; }
.tabbar .ic { width: 24px; height: 24px; }
.tabbar b { background: #e6f8fd; color: var(--app-cyan-bottom); }
/* the toast that drops in under the top: 「ほしいものに追加しました」 / 「持ち物に追加しました」 */
.toast { position: absolute; z-index: 6; left: 0; right: 0; top: 58px; width: max-content; margin: 0 auto; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px 0 8px; border-radius: 26px; background: #fff; box-shadow: inset 0 0 0 1px rgba(9,32,67,.08), 0 10px 24px rgba(9,32,67,.18); font-size: 14.5px; font-weight: 700; white-space: nowrap; opacity: 0; }
.toast img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.toast .pk { width: 20px; height: 20px; color: #ff4f8f; }
.okc { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--app-cyan); color: #fff; }
.okc .ic { width: 13px; height: 13px; stroke-width: 3.2; }
/* tap marks */
.tap { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgba(255,255,255,.55); box-shadow: 0 0 0 2px rgba(0,181,236,.75); opacity: 0; pointer-events: none; }
.tap.tc { width: 64px; height: 64px; margin: -32px 0 0 -32px; top: 56%; }

/* hero loop, 5 s: ♡ on a tile → toast, ＋ on another → toast, the 交換候補 cards come in, the first is tapped */
.loops .hero .slot { animation-name: hSlot; }
.loops .hero .lower { animation-name: hLower; }
.loops .hero .ch { animation-name: hHead; }
.loops .hero .c1 { animation-name: hC1; }
.loops .hero .c2 { animation-name: hC2; }
.loops .hero .c3 { animation-name: hC3; }
.loops .hero .ring { animation-name: hRing; }
.loops .hero .tap.tc { animation-name: hTapC; }
.loops .hero .hA { animation-name: hHintA; }
.loops .hero .hB { animation-name: hHintB; }
.loops .hero .t2 .gbf { animation-name: hFill1; }
.loops .hero .t2 .i0 { animation-name: hOff1; }
.loops .hero .t2 .i1 { animation-name: hOn1; }
.loops .hero .t2 .tap { animation-name: hTap1; }
.loops .hero .t1 .gbf { animation-name: hFill2; }
.loops .hero .t1 .i0 { animation-name: hOff2; }
.loops .hero .t1 .i1 { animation-name: hOn2; }
.loops .hero .t1 .tap { animation-name: hTap2; }
.loops .hero .toast.t-wish { animation-name: hToastW; }
.loops .hero .toast.t-own { animation-name: hToastO; }
@keyframes hLower { 0%, 46% { transform: translateY(-176px); } 55%, 92% { transform: none; } 99%, 100% { transform: translateY(-176px); } }
@keyframes hSlot { 0%, 44% { opacity: 1; } 47%, 95% { opacity: 0; } 99%, 100% { opacity: 1; } }
@keyframes hHead { 0%, 48% { opacity: 0; } 53%, 91% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes hC1 { 0%, 48% { opacity: 0; transform: translateX(80px); } 55% { opacity: 1; transform: none; } 69% { transform: none; } 71% { transform: scale(.965); } 75% { transform: none; } 91% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
@keyframes hC2 { 0%, 51% { opacity: 0; transform: translateX(80px); } 58%, 91% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
@keyframes hC3 { 0%, 54% { opacity: 0; transform: translateX(80px); } 61%, 91% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
@keyframes hRing { 0%, 70% { opacity: 0; } 74%, 91% { opacity: 1; } 95%, 100% { opacity: 0; } }
@keyframes hTapC { 0%, 67% { opacity: 0; transform: scale(.4); } 70% { opacity: .95; transform: scale(.8); } 77%, 100% { opacity: 0; transform: scale(1.5); } }
@keyframes hHintA { 0%, 45% { opacity: 1; } 48%, 93% { opacity: 0; } 98%, 100% { opacity: 1; } }
@keyframes hHintB { 0%, 45% { opacity: 0; } 49%, 93% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes hTap1 { 0%, 7% { opacity: 0; transform: scale(.4); } 10% { opacity: .95; transform: scale(.85); } 17%, 100% { opacity: 0; transform: scale(1.3); } }
@keyframes hFill1 { 0%, 9% { opacity: 0; } 11%, 94% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes hOff1 { 0%, 9% { opacity: 1; } 11%, 94% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes hOn1 { 0%, 9% { opacity: 0; transform: scale(.4); } 12% { opacity: 1; transform: scale(1.3); } 15%, 94% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes hTap2 { 0%, 27% { opacity: 0; transform: scale(.4); } 30% { opacity: .95; transform: scale(.85); } 37%, 100% { opacity: 0; transform: scale(1.3); } }
@keyframes hFill2 { 0%, 29% { opacity: 0; } 31%, 94% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes hOff2 { 0%, 29% { opacity: 1; } 31%, 94% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes hOn2 { 0%, 29% { opacity: 0; transform: scale(.4); } 32% { opacity: 1; transform: scale(1.3); } 35%, 94% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes hToastW { 0%, 9% { opacity: 0; transform: translateY(-20px); } 12%, 25% { opacity: 1; transform: none; } 27%, 100% { opacity: 0; transform: translateY(-10px); } }
@keyframes hToastO { 0%, 29% { opacity: 0; transform: translateY(-20px); } 32%, 43% { opacity: 1; transform: none; } 45%, 100% { opacity: 0; transform: translateY(-10px); } }

/* =====================================================================
   2. before
   ===================================================================== */
.before { --dur: 4.5s; background: linear-gradient(180deg, #eef2f8, #e6ebf3); }
.before .pair { margin: 18px auto 0; max-width: 760px; }
.pain { display: flex; flex-direction: column; gap: 10px; }
.xs { flex: 1; padding: 10px; border-radius: 18px; background: #fff; box-shadow: 0 10px 24px rgba(11,27,77,.07); font-family: var(--sys); color: #0f1419; filter: saturate(.85); }
.xbar { display: flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border-radius: 15px; background: #eff3f4; color: #536471; font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; }
.xbar .ic { width: 13px; height: 13px; }
.tw { display: flex; gap: 7px; padding: 9px 0 8px; border-bottom: 1px solid #eff3f4; }
.tw:last-child { border-bottom: 0; padding-bottom: 2px; }
.tw .av { width: 26px; height: 26px; border-radius: 50%; flex: none; }
.twb { flex: 1; min-width: 0; }
.tn { margin: 0; display: flex; align-items: baseline; gap: 5px; font-size: 11.5px; line-height: 1.3; }
.tn b { font-weight: 700; }
.tn small { font-size: 10px; color: #8b98a5; }
.tx { margin: 2px 0 0; font-size: 11px; line-height: 1.45; font-weight: 500; word-break: normal; }
.tpic { width: 100%; aspect-ratio: 720 / 520; object-fit: cover; border-radius: 10px; margin-top: 6px; }
.ng { display: inline-block; margin-top: 5px; padding: 2px 8px; border-radius: 6px; background: #fff1f2; color: #e11d48; box-shadow: inset 0 0 0 1.5px #fda4af; font: 900 11px/1.5 var(--maru); font-style: normal; transform: rotate(-3deg); }
.me .tw { border-bottom: 0; }
.me .tw.re { margin-top: 8px; padding-top: 9px; border-top: 1px solid #eff3f4; }
.me .tw.re .zero { margin-top: 5px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.two img { width: 100%; aspect-ratio: 520 / 600; object-fit: cover; border-radius: 8px; }
.zero { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.zero span { display: inline-flex; align-items: center; gap: 3px; padding: 3px 7px; border-radius: 999px; background: #f1f4f9; color: #8391ab; font: 900 11.5px/1.5 var(--maru); }
.zero .ic { width: 12px; height: 12px; }
.nb { margin: 10px 0 0; padding: 7px 10px; border-radius: 14px 14px 14px 4px; background: #f1f4f9; color: #6b7794; font: 900 11.5px/1.45 var(--maru); }
.pain h3 { margin: 0; text-align: center; font-size: clamp(14.5px, 3.9vw, 19px); line-height: 1.45; font-weight: 900; }
.loops .before .ng.n1 { animation-name: bNg1; }
.loops .before .ng.n2 { animation-name: bNg2; }
.loops .before .ng.n3 { animation-name: bNg3; }
.loops .before .zero { animation-name: bZero; }
@keyframes bNg1 { 0%, 8% { opacity: 0; transform: scale(1.7) rotate(-10deg); } 13%, 90% { opacity: 1; transform: rotate(-3deg); } 96%, 100% { opacity: 0; transform: rotate(-3deg); } }
@keyframes bNg2 { 0%, 22% { opacity: 0; transform: scale(1.7) rotate(-10deg); } 27%, 90% { opacity: 1; transform: rotate(-3deg); } 96%, 100% { opacity: 0; transform: rotate(-3deg); } }
@keyframes bNg3 { 0%, 36% { opacity: 0; transform: scale(1.7) rotate(-10deg); } 41%, 90% { opacity: 1; transform: rotate(-3deg); } 96%, 100% { opacity: 0; transform: rotate(-3deg); } }
@keyframes bZero { 0%, 55% { transform: none; } 58% { transform: translateX(-4px); } 61% { transform: translateX(4px); } 64% { transform: translateX(-3px); } 67% { transform: translateX(2px); } 70%, 100% { transform: none; } }

/* =====================================================================
   3. the first minute
   ===================================================================== */
.first { --dur: 6s; background: linear-gradient(180deg, #c4eaff, #eef9ff 50%, #fff); }
.steps { list-style: none; margin: 18px auto 0; padding: 0; max-width: 560px; display: grid; gap: 10px; }
.step { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; padding: 12px; border-radius: 24px; background: #fff; box-shadow: 0 10px 26px rgba(11,27,77,.08); }
.sv { position: relative; height: 132px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-radius: 16px; background: linear-gradient(170deg, #eff9ff, #fdf2fb); overflow: hidden; font-family: var(--sys); color: var(--app-ink); }
.stx h3 { margin: 0; font-size: 17px; line-height: 1.42; font-weight: 900; }
.stx p { margin: 5px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-body); }
.stx .sub { margin-top: 3px; font-size: 11.5px; line-height: 1.5; color: var(--ink-soft); }
.num { display: grid; place-items: center; width: 26px; height: 26px; margin-bottom: 5px; border-radius: 50%; background: var(--rainbow); color: #fff; font: 800 14px/1 var(--latin); }
/* step 1: a list tile with ♡ / ＋, or the camera */
.mt { position: relative; width: 58px; aspect-ratio: .75; border-radius: 9px; overflow: hidden; box-shadow: 0 4px 10px rgba(11,27,77,.16); }
.mt > img { width: 100%; height: 100%; object-fit: cover; }
.mt .gb { width: 22px; height: 22px; }
.mt .gb.w { left: 3px; top: 3px; } .mt .gb.o { right: 3px; bottom: 3px; }
.mt .gb .ic { width: 12px; height: 12px; }
.or { font-size: 9.5px; font-weight: 700; color: var(--ink-soft); line-height: 1; }
.shot { display: inline-flex; align-items: center; gap: 3px; height: 24px; padding: 0 8px; border-radius: 12px; background: linear-gradient(180deg, var(--app-cyan-top), var(--app-cyan) 25%, var(--app-cyan-bottom)); color: #fff; font-size: 11px; font-weight: 700; }
.shot .ic { width: 13px; height: 13px; }
.shot em { margin-left: 2px; padding: 1px 4px; border-radius: 4px; background: #fff; color: var(--app-cyan-bottom); font: 800 8.5px/1.2 var(--latin); font-style: normal; }
/* step 2: the header and one small card */
.mh { align-self: flex-start; margin-left: 8px; font-size: 11px; font-weight: 800; }
.mcard { width: 96px; padding: 6px; border-radius: 9px; background: #fff; box-shadow: inset 0 0 0 1px #a5e7ff, 0 2px 0 rgba(59,207,245,.24); display: grid; gap: 5px; }
.mp { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.mp img { width: 16px; height: 16px; border-radius: 50%; }
.mp b { font-size: 9.5px; font-weight: 700; }
.mp em { width: 100%; padding: 1px 5px; border-radius: 6px; background: #fff0f5; color: #e84580; font-size: 7.5px; font-weight: 800; font-style: normal; text-align: center; white-space: nowrap; }
.mg { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.mg img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 20%; border-radius: 4px; }
.mg img.m { box-shadow: 0 0 0 1.5px #ffd640, 0 0 5px 1.5px rgba(255,143,26,.7); }
/* step 3: two condition tiles and the send button */
.mconds { display: grid; gap: 5px; width: 98px; }
.mconds .cd { height: 32px; gap: 2px; padding: 0 3px; border-radius: 6px; }
.mconds .cd svg { width: 20px; height: 20px; }
.mconds .cd b { font-size: 10px; }
.mconds .cd small { font-size: 7.5px; }
.send { display: grid; place-items: center; width: 98px; height: 26px; border-radius: 13px; background: linear-gradient(180deg, var(--app-cyan-top), var(--app-cyan) 25%, var(--app-cyan-bottom)); color: #fff; font-size: 8.5px; font-weight: 700; white-space: nowrap; box-shadow: 0 2px 0 rgba(0,160,210,.6); }
.loops .first .s1 .num { animation-name: fNo1; }
.loops .first .s2 .num { animation-name: fNo2; }
.loops .first .s3 .num { animation-name: fNo3; }
.loops .first .gbf { animation-name: fFill; }
.loops .first .i0 { animation-name: fOff; }
.loops .first .i1 { animation-name: fOn; }
.loops .first .mcard { animation-name: fCard; }
.loops .first .send { animation-name: fSend; }
@keyframes fNo1 { 0%, 2% { transform: none; } 6% { transform: scale(1.28); } 11%, 100% { transform: none; } }
@keyframes fNo2 { 0%, 34% { transform: none; } 38% { transform: scale(1.28); } 43%, 100% { transform: none; } }
@keyframes fNo3 { 0%, 67% { transform: none; } 71% { transform: scale(1.28); } 76%, 100% { transform: none; } }
@keyframes fFill { 0%, 8% { opacity: 0; } 10%, 92% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes fOff { 0%, 8% { opacity: 1; } 10%, 92% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes fOn { 0%, 8% { opacity: 0; transform: scale(.4); } 11% { opacity: 1; transform: scale(1.35); } 14%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes fCard { 0%, 36% { opacity: 0; transform: translateX(34px); } 43%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes fSend { 0%, 70% { transform: none; } 73% { transform: translateY(2px) scale(.95); } 77%, 100% { transform: none; } }

/* =====================================================================
   4. even before anyone matches
   ===================================================================== */
.wait { --dur: 5s; background: #fff; }
.fact { margin: 14px auto 0; max-width: 560px; padding: 11px 16px; border-radius: 16px; background: linear-gradient(90deg, #e6f8ff, #fdeef8); text-align: center; font-size: clamp(14px, 3.8vw, 16px); font-weight: 900; line-height: 1.6; }
.wait .pair { margin: 14px auto 0; max-width: 760px; }
.wc { display: flex; flex-direction: column; padding: 10px 10px 14px; border-radius: 22px; background: var(--paper); box-shadow: inset 0 0 0 1.5px #e1eefa; }
.wv { position: relative; height: 128px; border-radius: 14px; overflow: hidden; font-family: var(--sys); color: var(--app-ink); }
.nv { background: linear-gradient(160deg, #8fd6ff, #c7b8ff 55%, #f9b8e8); }
.clock { position: absolute; left: 0; right: 0; top: 10px; text-align: center; color: #fff; font-size: 34px; font-weight: 600; line-height: 1; letter-spacing: -.01em; text-shadow: 0 2px 8px rgba(11,27,77,.15); }
.push { position: absolute; left: 4px; right: 4px; bottom: 6px; display: flex; align-items: flex-start; gap: 6px; padding: 7px 8px; border-radius: 13px; background: rgba(255,255,255,.9); box-shadow: 0 6px 16px rgba(11,27,77,.15); }
.push img { width: 22px; height: 22px; border-radius: 5px; flex: none; }
.push > span { flex: 1; min-width: 0; }
.push b { display: block; font-size: 10.5px; font-weight: 700; line-height: 1.3; }
.push small { display: block; font-size: 9.5px; line-height: 1.35; }
.push i { position: absolute; right: 8px; top: 7px; font-size: 9px; font-style: normal; color: #6b7794; }
.cv { background: #fff; padding: 8px 8px 0; box-shadow: inset 0 0 0 1px #e8eff8; }
.shh { display: flex; justify-content: space-between; align-items: baseline; font-size: 10.5px; }
.shh b { font-weight: 800; }
.shh i { font-style: normal; color: var(--app-cyan-bottom); font-weight: 700; }
.shelf { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; max-width: 210px; margin: 6px auto 0; padding: 0 3px 7px; }
.shelf::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 5px; border-radius: 3px; background: linear-gradient(180deg, #e6eef8, #cbd9ea); }
.shelf img { position: relative; z-index: 1; width: 100%; aspect-ratio: .75; object-fit: cover; object-position: 50% 25%; border-radius: 4px; box-shadow: 0 4px 8px rgba(11,27,77,.16); }
.nwslot { position: relative; z-index: 1; width: 100%; aspect-ratio: .75; border-radius: 4px; background: #eef6fc; box-shadow: inset 0 0 0 1.5px #c5dff3; }
.nwslot img { display: block; width: 100%; height: 100%; }
.wc h3 { display: flex; align-items: center; gap: 4px; margin: 10px 2px 0; font-size: 15px; font-weight: 900; line-height: 1.4; }
.wc h3 .ic { width: 16px; height: 16px; color: #e0457b; stroke-width: 2.4; }
.wc p { margin: 4px 2px 0; font-size: 12.5px; line-height: 1.6; color: var(--ink-body); }
.wc .sub { font-size: 11px; line-height: 1.55; color: var(--ink-soft); }
.loops .wait .push { animation-name: wPush; }
.loops .wait .nw { animation-name: wNew; }
@keyframes wPush { 0%, 6% { opacity: 0; transform: translateY(-46px); } 14%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: translateY(-16px); } }
@keyframes wNew { 0%, 22% { opacity: 0; transform: translateY(-34px) rotate(-10deg); } 31% { opacity: 1; transform: translateY(3px); } 35%, 88% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: none; } }

/* =====================================================================
   5. safety
   ===================================================================== */
.safe { --dur: 5s; background: linear-gradient(180deg, #d9ecff, #f3f9ff 60%, #fff); }
.safe .pair { grid-template-columns: 1fr; gap: 12px; max-width: 560px; margin: 18px auto 0; }
.sf { padding: 12px 12px 16px; border-radius: 24px; background: #fff; box-shadow: 0 12px 30px rgba(11,27,77,.09); }
.sf h3 { margin: 12px 4px 0; font-size: 17px; font-weight: 900; line-height: 1.45; }
.sf p { margin: 4px 4px 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-body); }
.sfv { position: relative; }
.pv { display: flex; align-items: stretch; gap: 10px; height: 196px; }
.happy { width: 38%; height: 100%; object-fit: cover; object-position: 50% 18%; border-radius: 16px; }
.pf { flex: 1; display: grid; justify-items: center; align-content: center; gap: 4px; padding: 8px; border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 1.5px #dbeafb; }
.pft { font-size: 11px; color: var(--ink-soft); line-height: 1.2; }
.pf .av { width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 0 0 5px #35c9ef; margin-top: 2px; }
.pf > b { font-size: 17px; line-height: 1.3; }
.pf .tags i { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #eaf5fd; color: #0d93bd; font-size: 11.5px; font-style: normal; }
.stars { position: relative; display: flex; align-items: center; gap: 6px; font-size: 19px; line-height: 1; }
.sg, .sy { letter-spacing: 1px; font-family: var(--sys); }
.sg { color: #dfe6f3; }
.sy { position: absolute; left: 0; top: 0; color: #ffbf1a; clip-path: inset(0 2% 0 0); }
.stars em { font: 800 17px/1 var(--latin); font-style: normal; }
.nums { display: flex; gap: 10px; font-size: 11px; color: var(--ink-soft); white-space: nowrap; }
.nums b { font: 800 14px/1 var(--latin); color: var(--ink); margin-right: 1px; }
.lane { position: relative; height: 150px; border-radius: 16px; background: linear-gradient(180deg, #eef7ff, #f8fbff); }
.srv { position: absolute; left: 0; right: 0; top: 14px; width: max-content; margin: 0 auto; display: flex; align-items: center; gap: 5px; padding: 6px 12px 6px 8px; border-radius: 999px; background: #fff; box-shadow: 0 6px 16px rgba(11,27,77,.12); font-size: 12px; font-weight: 900; white-space: nowrap; }
.srv img { width: 26px; height: auto; }
.srv .ic { width: 14px; height: 14px; color: #e0457b; stroke-width: 2.4; }
.who { position: absolute; bottom: 14px; width: 64px; display: grid; justify-items: center; gap: 3px; font-size: 11px; line-height: 1.3; }
.who.l { left: 8px; } .who.r { right: 8px; }
.who img { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 6px 12px rgba(11,27,77,.15); }
.road { position: absolute; left: 76px; right: 76px; bottom: 50px; height: 4px; border-radius: 2px; background: repeating-linear-gradient(90deg, #9fd8f5 0 8px, transparent 8px 14px); }
.road::after { content: ""; position: absolute; right: -6px; top: -4px; border: 6px solid transparent; border-left: 8px solid #9fd8f5; border-right: 0; }
.envw { position: absolute; left: 72px; right: 72px; bottom: 34px; display: flex; justify-content: flex-end; }
.env { display: flex; align-items: center; justify-content: center; gap: 4px; width: 112px; height: 36px; border-radius: 10px; background: linear-gradient(180deg, #5fd8f7, var(--cyan)); color: #fff; font-size: 12px; font-weight: 900; white-space: nowrap; box-shadow: 0 0 0 2px #b8efff inset, 0 8px 16px rgba(25,184,230,.32); }
.env .ic { width: 13px; height: 13px; stroke-width: 2.6; }
.loops .safe .sy { animation-name: sStars; animation-timing-function: linear; }
.loops .safe .envw { animation-name: sEnv; animation-timing-function: ease-in-out; }
.loops .safe .srv { animation-name: sSrv; }
@keyframes sStars { 0%, 4% { clip-path: inset(0 100% 0 0); } 30%, 92% { clip-path: inset(0 2% 0 0); } 97%, 100% { clip-path: inset(0 100% 0 0); } }
@keyframes sEnv { 0%, 6% { opacity: 0; transform: translateX(calc(-100% + 112px)); } 12% { opacity: 1; transform: translateX(calc(-100% + 112px)); } 68%, 88% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: none; } }
@keyframes sSrv { 0%, 34% { transform: none; } 40% { transform: scale(1.1); } 46%, 100% { transform: none; } }

/* =====================================================================
   6. trade
   ===================================================================== */
.trade { --dur: 6s; background: linear-gradient(180deg, #c9f7e6, #f1fff9 60%, #fff); }
.cap { margin: 6px 0 0; text-align: center; font-size: clamp(14px, 3.9vw, 17px); font-weight: 900; line-height: 1.55; color: var(--ink-body); }
.tp { margin: 16px auto 0; max-width: 440px; padding: 12px; border-radius: 26px; background: rgba(255,255,255,.88); box-shadow: 0 14px 36px rgba(11,27,77,.1); display: grid; gap: 7px; }
.sides { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-bottom: 4px; }
.sd { display: grid; justify-items: center; gap: 3px; font-size: 12px; line-height: 1.3; }
.sd .av { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 6px 12px rgba(11,27,77,.15); }
.xc { display: flex; align-items: center; gap: 6px; }
.xc img { width: 42px; aspect-ratio: 560 / 864; object-fit: cover; border-radius: 4px; box-shadow: 0 4px 10px rgba(11,27,77,.2); }
.xc .ic { width: 20px; height: 20px; color: var(--cyan); stroke-width: 2.4; }
.rw { display: grid; grid-template-columns: 1fr 3em 1fr; align-items: center; gap: 6px; padding: 6px; border-radius: 18px; background: #fff; box-shadow: 0 6px 16px rgba(11,27,77,.07); }
.rw > b { text-align: center; font-size: 14px; font-weight: 900; }
.tb { position: relative; display: grid; place-items: center; height: 40px; border-radius: 999px; background: linear-gradient(180deg, #5fd8f7, var(--cyan)); box-shadow: 0 0 0 2px #b8efff inset, 0 3px 0 #0d93bd; color: #fff; font-size: clamp(12px, 3.4vw, 14px); font-weight: 900; white-space: nowrap; }
.tb.done, .tb .ok { background: #fff; box-shadow: 0 0 0 2px #35c9ef inset; color: var(--cyan); }
.tb .ok { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 999px; }
.tb .ok .ic { width: 22px; height: 22px; stroke-width: 3; }
.fin { display: grid; place-items: center; margin: 6px 0 2px; }
.fin > * { grid-area: 1 / 1; }
.fin .ghost { padding: 8px 26px; border-radius: 999px; border: 2px dashed #b9cde0; color: #8da2be; font-size: clamp(18px, 5vw, 22px); font-weight: 900; line-height: 1.4; }
.fin b { display: inline-block; padding: 8px 26px; border-radius: 999px; font-size: clamp(20px, 5.6vw, 26px); font-weight: 900; line-height: 1.4; border: 4px solid transparent; background-image: linear-gradient(#fff, #fff), var(--rainbow); background-origin: border-box; background-clip: padding-box, border-box; box-shadow: 0 10px 28px rgba(139,92,246,.28); }
.loops .trade .k1 .ok { animation-name: tK1; }
.loops .trade .k2 .ok { animation-name: tK2; }
.loops .trade .k3 .ok { animation-name: tK3; }
.loops .trade .k4 .ok { animation-name: tK4; }
.loops .trade .k5 .ok { animation-name: tK5; }
.loops .trade .k6 .ok { animation-name: tK6; }
.loops .trade .k7 .ok { animation-name: tK7; }
.loops .trade .fin b { animation-name: tFin; }
@keyframes tK1 { 0%, 6% { opacity: 0; transform: scale(1.35); } 9% { opacity: 1; transform: scale(.92); } 11%, 93% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes tK2 { 0%, 16% { opacity: 0; transform: scale(1.35); } 19% { opacity: 1; transform: scale(.92); } 21%, 93% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes tK3 { 0%, 24% { opacity: 0; transform: scale(1.35); } 27% { opacity: 1; transform: scale(.92); } 29%, 93% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes tK4 { 0%, 34% { opacity: 0; transform: scale(1.35); } 37% { opacity: 1; transform: scale(.92); } 39%, 93% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes tK5 { 0%, 42% { opacity: 0; transform: scale(1.35); } 45% { opacity: 1; transform: scale(.92); } 47%, 93% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes tK6 { 0%, 52% { opacity: 0; transform: scale(1.35); } 55% { opacity: 1; transform: scale(.92); } 57%, 93% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes tK7 { 0%, 60% { opacity: 0; transform: scale(1.35); } 63% { opacity: 1; transform: scale(.92); } 65%, 93% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes tFin { 0%, 68% { opacity: 0; transform: scale(.5); } 73% { opacity: 1; transform: scale(1.12); } 76%, 91% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }

/* =====================================================================
   7. at the venue, around town
   ===================================================================== */
.more { --dur: 4s; background: #fff; padding-top: 40px; padding-bottom: 40px; }
.more .pair { max-width: 760px; margin: 0 auto; }
.mc { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--paper); box-shadow: inset 0 0 0 1.5px #e1eefa; }
.mi { position: relative; height: 150px; overflow: hidden; }
.mi .bg { width: 100%; height: 100%; object-fit: cover; object-position: 50% 64%; }
.lab { position: absolute; left: 8px; top: 8px; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.94); font-size: 11.5px; font-weight: 900; line-height: 1.5; box-shadow: 0 4px 10px rgba(11,27,77,.12); }
.spin { position: absolute; left: 8px; bottom: 38px; display: flex; align-items: center; gap: 3px; padding: 3px 8px 3px 5px; border-radius: 999px; background: #e0f7ff; color: #00729e; font: 400 10.5px/1.3 var(--sys); white-space: nowrap; box-shadow: 0 4px 10px rgba(11,27,77,.14); }
.spin b { font-weight: 700; }
.spin .ic { width: 13px; height: 13px; stroke-width: 2.4; }
.ppl { position: absolute; left: 10px; bottom: 9px; display: flex; }
.ppl img { width: 24px; height: 24px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; margin-right: -6px; }
.post { position: absolute; width: 44px; height: 44px; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 2.5px #fff, 0 6px 14px rgba(11,27,77,.25); }
.post img { width: 100%; height: 100%; object-fit: cover; }
.post.p1 { left: 12%; top: 34%; } .post.p2 { right: 10%; top: 26%; } .post.p3 { left: 44%; bottom: 10%; }
.mc h3 { margin: 10px 12px 0; font-size: 15px; font-weight: 900; line-height: 1.45; }
.mc p { margin: 4px 12px 14px; font-size: 12.5px; line-height: 1.6; color: var(--ink-body); }
.loops .more .spin { animation-name: mPin; }
.loops .more .p1 { animation-name: mPost1; }
.loops .more .p2 { animation-name: mPost2; }
.loops .more .p3 { animation-name: mPost3; }
@keyframes mPin { 0%, 100% { transform: none; } 8% { transform: translateY(-6px); } 16% { transform: none; } 22% { transform: translateY(-2px); } 28% { transform: none; } }
@keyframes mPost1 { 0%, 6% { opacity: 0; transform: scale(.3); } 12% { opacity: 1; transform: scale(1.12); } 16%, 88% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: scale(.6); } }
@keyframes mPost2 { 0%, 22% { opacity: 0; transform: scale(.3); } 28% { opacity: 1; transform: scale(1.12); } 32%, 88% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: scale(.6); } }
@keyframes mPost3 { 0%, 38% { opacity: 0; transform: scale(.3); } 44% { opacity: 1; transform: scale(1.12); } 48%, 88% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: scale(.6); } }

/* =====================================================================
   8. compare
   ===================================================================== */
.compare { background: var(--paper); }
.compare .h2 .old { color: #8d9ab8; }
.compare .h2 .sl { color: #c3cadb; }
.cmp { position: relative; max-width: 640px; margin: 16px auto 0; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 10px 26px rgba(11,27,77,.08); }
.cmp table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: clamp(12.5px, 3.5vw, 15px); }
.cmp th, .cmp td { padding: 11px 6px; border-bottom: 1px solid #edf1f7; text-align: center; vertical-align: middle; line-height: 1.45; }
.cmp tbody tr:last-child > * { border-bottom: 0; }
.cmp thead th:first-child, .cmp tbody th { width: 24%; white-space: nowrap; }
.cmp .o { width: 26%; color: #8d9ab8; font-weight: 700; font-size: clamp(12px, 3.2vw, 14px); }
.cmp .n { width: 50%; padding-left: 12px; padding-right: 12px; font-weight: 900; background: #fcf8ff; }
.cmp thead th { padding-top: 14px; font-size: 13px; color: var(--ink-soft); font-weight: 900; }
.cmp thead .n { color: var(--ink); font: 800 15px/1 var(--latin); }
.cmp thead .n img { display: inline-block; width: 30px; height: 18px; object-fit: contain; vertical-align: -4px; margin-right: 4px; }
.cmp tbody th { text-align: left; padding-left: 10px; font-size: clamp(12px, 3.2vw, 14px); font-weight: 900; }
.frame { position: absolute; top: 0; bottom: 0; right: 0; width: 50%; border-radius: 22px; padding: 3px; background: var(--rainbow); pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }

/* =====================================================================
   9. FAQ
   ===================================================================== */
.faq { background: #fff; }
.qa { max-width: 640px; margin: 16px auto 0; display: grid; gap: 10px; }
.qa details { border-radius: 18px; background: var(--paper); box-shadow: inset 0 0 0 1.5px #e1eefa; padding: 0 16px; }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 13px 0; font-size: 15px; font-weight: 900; line-height: 1.45; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before { content: "Q"; flex: none; display: grid; place-items: center; width: 26px; height: 26px; padding-top: 1px; border-radius: 50%; background: var(--rainbow); color: #fff; font: 800 13.5px/1 var(--latin); }
.qa summary::after { content: ""; flex: none; margin-left: auto; width: 8px; height: 8px; border-right: 2.5px solid var(--ink-soft); border-bottom: 2.5px solid var(--ink-soft); transform: translateY(-2px) rotate(45deg); }
.qa details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.qa details p { margin: 0; padding: 0 0 14px 36px; font-size: 13.5px; line-height: 1.7; color: var(--ink-body); }

/* =====================================================================
   10. closing call + footer
   ===================================================================== */
.end { overflow: hidden; text-align: center; padding-top: 48px; padding-bottom: 56px; background:
  radial-gradient(60vmax 40vmax at 0% 0%, rgba(143,214,255,.6), transparent 60%),
  radial-gradient(50vmax 40vmax at 100% 100%, rgba(249,184,232,.55), transparent 60%), var(--paper); }
.end .m { width: min(40vw, 190px); height: auto; margin: 0 auto 10px; filter: drop-shadow(0 14px 26px rgba(139,92,246,.32)); }
.end .cta { margin-top: 18px; gap: 12px; }
.end .qrbox img { width: 132px; height: 132px; }
.sns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 4px; }
.sns a { display: inline-flex; align-items: center; gap: 6px; padding: 11px 18px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 900; line-height: 1.2; }
.sns span { font-size: 12.5px; opacity: .85; }
.sns .x { background: #0b0b0f; color: #fff; box-shadow: 0 8px 20px rgba(11,27,77,.22); }
.sns .x b { font: 800 16px/1 var(--latin); }
.sns .ig { background: #fff; color: var(--ink); box-shadow: 0 0 0 2px #f3c1de inset, 0 8px 20px rgba(11,27,77,.08); }
.foot { padding: 30px var(--gr) calc(30px + env(safe-area-inset-bottom, 0px)) var(--gl); background: #fff; border-top: 1px solid #e6edf5; }
.foot .in { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; justify-items: center; text-align: center; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 13px; font-weight: 900; }
.foot nav a { text-decoration: none; white-space: nowrap; }
.foot nav a:hover { text-decoration: underline; }
.foot p { margin: 0; font-size: 11px; line-height: 1.8; color: var(--ink-soft); }

/* =====================================================================
   wide screens
   ===================================================================== */
@media (min-width: 900px) {
  .hud { padding-top: 14px; padding-bottom: 16px; }
  .sec { padding-top: 88px; padding-bottom: 80px; }
  .hero { min-height: 100vh; display: grid; align-items: center; padding-top: 88px; padding-bottom: 48px; }
  .hero-in { grid-template-columns: minmax(0, 600px) auto; grid-template-areas: "copy phone" "cta phone"; justify-content: center; justify-items: start; column-gap: 88px; row-gap: 28px; text-align: left; width: 100%; }
  .hero-copy { align-self: end; }
  .hero h1 .ph { display: block; }
  .kicker { font-size: 16px; padding: 6px 16px; margin-bottom: 14px; }
  .lead { margin-top: 12px; }
  .hero-cta { align-self: start; align-items: flex-start; margin: 0; }
  .hero-cta .qrbox { order: -1; }
  .hero-phone { --s: .72; height: auto; margin: 0; padding: 0; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .pair { gap: 18px; }
  .pain h3 { font-size: 19px; }
  .xs { padding: 14px; }
  .tn, .tx { font-size: 13px; }
  .xbar { font-size: 13px; height: 34px; }
  .tw .av { width: 32px; height: 32px; }
  .ng, .zero span { font-size: 13px; }
  .steps { max-width: none; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
  .step { grid-template-columns: 1fr; align-content: start; align-items: start; padding: 16px; }
  .sv { height: 170px; transform-origin: 50% 50%; }
  .sv > * { scale: 1.25; }
  .s1 .sv { gap: 12px; }
  .stx h3 { font-size: 19px; }
  .stx p { font-size: 14.5px; }
  .wv { height: 200px; }
  .clock { font-size: 44px; top: 16px; }
  .push { left: 14px; right: 14px; bottom: 14px; padding: 10px 12px; }
  .push img { width: 28px; height: 28px; }
  .push b { font-size: 13px; } .push small { font-size: 12px; }
  .shelf { max-width: 196px; gap: 7px; margin-top: 10px; }
  .shh { font-size: 13px; padding: 4px 8px 0; }
  .wc { padding: 14px 14px 18px; }
  .wc h3 { font-size: 18px; } .wc p { font-size: 14px; } .wc .sub { font-size: 12.5px; }
  .safe .pair { grid-template-columns: 1fr 1fr; max-width: 920px; }
  .pv, .lane { height: 230px; }
  .lane .srv { top: 30px; }
  .sf h3 { font-size: 19px; } .sf p { font-size: 14.5px; }
  .tp { padding: 16px; gap: 9px; }
  .mi { height: 220px; }
  .mc h3 { font-size: 19px; margin: 14px 16px 0; } .mc p { font-size: 14px; margin: 6px 16px 18px; }
  .post { width: 58px; height: 58px; }
  .lab { font-size: 13px; } .spin { font-size: 12px; }
  .end { padding-top: 72px; padding-bottom: 88px; }
  .end .cta { flex-direction: row; flex-wrap: wrap; justify-content: center; max-width: 760px; margin-left: auto; margin-right: auto; column-gap: 24px; }
  .end .cta .droid, .end .cta .sns { flex-basis: 100%; display: flex; justify-content: center; }
}
@media (min-width: 900px) and (max-height: 760px) { .hero-phone { --s: .62; } }
