/* SODARIA V3 — app shell, kid screens and parent screens.
   Kid screens: full-bleed worlds, big rounded buttons. Parent screens: calm, readable. */
:root {
  --v3-safe-top: env(safe-area-inset-top, 0px);
  --v3-safe-bottom: env(safe-area-inset-bottom, 0px);
  --ink: #3b3247; --ink-2: #6b6178; --line: #eadfce; --paper: #fffdf8; --cream: #fff8ec;
  --orange: #ff9a3c; --orange-2: #ff7a59; --pink: #ff8fb1; --sky: #7cc6f2; --mint: #8fd6a8; --gold: #ffc861;
  --good: #2f9e6a; --try: #e48a1d; --danger: #d6455d;
  --radius: 20px; --shadow: 0 6px 18px rgba(80, 52, 30, .14);
  --font: "Hiragino Maru Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", "Yu Gothic", Meiryo, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--cream); -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
/* Japanese line breaks (2026-11-06): children's text has spaces between word groups, so break only
   at those spaces (no 「だ／よ」 splits); a very long run still wraps instead of overflowing.
   Parent text has no spaces: let the browser break by phrase where supported. */
body { word-break: keep-all; overflow-wrap: break-word; line-break: strict; }
.is-parent-ui { word-break: normal; word-break: auto-phrase; }
#app { min-height: 100dvh; outline: none; margin: 0 auto; position: relative; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid #3b82f6; outline-offset: 3px; }

/* buttons */
.v3-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 22px; border: 2px solid #f1dcc0; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer; box-shadow: 0 3px 0 #ecd6b8; transition: transform .08s; }
.v3-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #ecd6b8; }
.v3-btn.is-primary { border-color: transparent; background: linear-gradient(180deg, #ffb35a, var(--orange-2)); color: #fff; box-shadow: 0 4px 0 #d9603f; text-shadow: 0 1px 0 rgba(150, 60, 20, .3); }
.v3-btn.is-primary:active { box-shadow: 0 1px 0 #d9603f; }
.v3-btn.is-wide { width: 100%; }
.v3-btn.is-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink-2); }
.v3-btn.is-danger { color: var(--danger); border-color: #f3c6cf; box-shadow: 0 3px 0 #f0d3d9; }
.v3-btn[disabled] { opacity: .45; cursor: default; }
.v3-link { background: none; border: 0; color: var(--ink-2); text-decoration: underline; font-weight: 700; padding: 10px; cursor: pointer; }
.v3-fine { font-size: 12px; color: var(--ink-2); line-height: 1.6; margin: 12px 0 0; }

/* avatar */
.v3-avatar { position: relative; display: inline-grid; place-items: center; width: var(--s); height: var(--s); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 18%, var(--c) 60%); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .08), 0 3px 8px rgba(0, 0, 0, .12); flex: none; }
.v3-avatar img { width: 82%; height: 82%; object-fit: contain; margin-top: 8%; }
.v3-avatar i { position: absolute; right: -2px; bottom: -2px; font-style: normal; font-size: calc(var(--s) * .3); background: #fff; border-radius: 50%; width: calc(var(--s) * .42); height: calc(var(--s) * .42); display: grid; place-items: center; box-shadow: 0 2px 4px rgba(0, 0, 0, .15); }
.v3-avatar.is-add { background: #fff; border: 3px dashed #e3cfae; font-size: 34px; color: #d2b68b; font-weight: 900; }

/* top bar */
.v3-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; padding: max(10px, var(--v3-safe-top)) 12px 10px; background: linear-gradient(180deg, rgba(255, 248, 236, .96), rgba(255, 248, 236, .82)); backdrop-filter: blur(6px); }
.v3-top h1 { flex: 1; margin: 0; font-size: 17px; font-weight: 900; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v3-back { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 2px solid #f1dcc0; font-size: 28px; line-height: 1; text-decoration: none; font-weight: 900; padding: 0 0 4px; cursor: pointer; }
.v3-hearts { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 2px solid #ffd0dc; font-weight: 900; font-size: 16px; }
.v3-hearts b { color: #ff5d84; }
.v3-me { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 800; }

/* toast */
.v3-toast { position: fixed; left: 50%; bottom: max(20px, var(--v3-safe-bottom)); transform: translate(-50%, 140%); z-index: 90; max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 999px; background: #3b3247; color: #fff; font-weight: 700; font-size: 14px; transition: transform .25s, opacity .25s; pointer-events: none; opacity: 0; }
.v3-toast.is-on { transform: translate(-50%, 0); opacity: 1; }
/* In the room the toast sits above the big buttons instead of covering them. */
body:has(.v3-room) .v3-toast { bottom: calc(max(20px, var(--v3-safe-bottom)) + 150px); }

/* welcome */
.v3-welcome, .v3-profiles { position: relative; min-height: 100dvh; overflow: hidden; display: flex; flex-direction: column; align-items: center; }
/* Sodaria world backdrop (Codex-generated, 2026-11-05): floating islands in the morning sky. */
.v3-welcome-sky, .v3-profiles-sky { position: absolute; inset: 0; background: url(/public/assets/phase3/login-bg.webp) center top / cover no-repeat, #8fcdf5; }
/* Title art: Sodapi walking the rainbow between the islands (Codex-generated, chosen 2026-11-07).
   Its lower part fades to this cream; the logo (same day) sits above the catch copy. */
.v3-welcome-sky { background: url(/public/assets/phase3/title-portrait.webp) center -28px / 100% auto no-repeat, #fef5e8; }
.v3-welcome { background: #fef5e8; }
.v3-welcome-title { margin: 0 0 2px; line-height: 0; }
.v3-welcome-title img { width: min(84vw, 340px); height: auto; filter: drop-shadow(0 6px 10px rgba(70, 110, 160, .16)); }
.v3-profiles-sky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .1) 0%, rgba(255, 255, 255, .35) 45%, rgba(255, 250, 240, .8) 100%); }
.v3-welcome { justify-content: flex-end; }
.v3-welcome-body { position: relative; z-index: 1; width: 100%; padding: 0 22px max(24px, var(--v3-safe-bottom)); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.v3-welcome-body > .v3-fine { text-shadow: 0 1px 0 #fff; }
.v3-catch { margin: 0; font-size: 21px; font-weight: 900; line-height: 1.5; }
@keyframes v3-bob { 50% { transform: translateY(-8px); } }

/* Home screen guide */
.v3-install { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 3px 12px; border: 1px solid #efc99e; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 750; cursor: pointer; }
.v3-install > svg { width: 22px; height: 22px; }
.v3-welcome .v3-install + .v3-fine { margin-top: 0; }
.v3-install-guide { word-break: normal; width: min(420px, calc(100% - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 12px 16px 16px; border: 1px solid #f1d5b5; border-radius: 22px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); text-align: left; }
.v3-install-guide::backdrop { background: rgb(42 34 54 / 48%); }
.v3-install-guide header { display: flex; align-items: center; justify-content: space-between; }
.v3-install-guide h2 { margin: 0; font-size: 20px; }
.v3-install-guide [data-close] { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; font-size: 24px; cursor: pointer; }
.v3-install-guide p { margin: 0 0 8px; font-size: 14px; line-height: 1.6; }
.v3-install-guide .log-tabs { width: fit-content; max-width: 100%; margin: 0 auto 8px; }
.v3-install-guide .log-tabs button { white-space: nowrap; padding-inline: 12px; }
.v3-install-guide img { display: block; width: 100%; height: auto; border-radius: 12px; }
.v3-install-guide [data-steps] { margin: 8px 0 0; }
.v3-install-guide [data-install] { margin-top: 8px; }
.v3-install[hidden], .v3-install-guide [hidden] { display: none; }

/* forms (parent) */
.v3-form { position: relative; padding: 0 20px max(40px, var(--v3-safe-bottom)); }
.v3-form::before { content: ""; display: block; height: 150px; margin: 0 -20px -28px; background: url(/public/assets/phase3/login-bg.webp) center 18% / cover no-repeat, #8fcdf5; }
.v3-form-head { position: absolute; top: max(12px, var(--v3-safe-top)); left: 20px; right: 20px; }
.v3-form-head p { padding: 4px 12px; border-radius: 999px; background: #ffffffd9; }
.v3-form > h1 { position: relative; margin-top: 0; padding: 20px 20px 0; margin-left: -20px; margin-right: -20px; border-radius: 28px 28px 0 0; background: var(--cream); }
.v3-form-head { display: flex; align-items: center; justify-content: space-between; color: var(--ink-2); font-weight: 800; }
.v3-form h1 { font-size: 24px; margin: 16px 0 6px; }
.v3-lead { margin: 0 0 18px; color: var(--ink-2); line-height: 1.7; font-size: 14px; }
.v3-field { display: block; margin: 0 0 16px; }
.v3-field > span { display: block; font-weight: 800; font-size: 14px; margin-bottom: 6px; }
.v3-field input, .v3-field select { width: 100%; min-height: 50px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; font-size: 17px; }
.v3-field small { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-2); line-height: 1.6; }
.v3-form-msg { min-height: 1.4em; color: var(--danger); font-weight: 700; font-size: 14px; margin: 0 0 8px; }
.v3-form .v3-btn + .v3-btn { margin-top: 10px; }
.v3-kid-fields { border: 0; padding: 0; margin: 0; }
.v3-colors { display: flex; gap: 10px; flex-wrap: wrap; }
.v3-color { width: 40px; height: 40px; border-radius: 50%; background: var(--c); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line); cursor: pointer; }
.v3-color.is-on { box-shadow: 0 0 0 3px var(--ink); }

/* profiles */
.v3-profiles h1 { position: relative; z-index: 1; margin: calc(max(16px, var(--v3-safe-top)) + 34dvh) 0 16px; padding: 6px 20px; border-radius: 999px; background: #ffffffcc; font-size: 24px; box-shadow: 0 4px 14px rgba(40, 90, 140, .15); }
.v3-profile-grid { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 150px)); gap: 18px 16px; justify-content: center; }
.v3-profile { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px 14px; border: 0; border-radius: 24px; background: #ffffffd9; box-shadow: var(--shadow); cursor: pointer; transition: transform .12s; }
.v3-profile:active { transform: scale(.96); }
.v3-profile b { font-size: 18px; }
.v3-profile small { font-size: 12px; color: var(--ink-2); }
.v3-profile.is-add { background: #ffffff99; box-shadow: none; border: 2px dashed #e8d6ba; }
.v3-profiles .v3-link { position: relative; z-index: 1; margin-top: 20px; }
.v3-profiles .v3-install { position: relative; z-index: 1; }

/* room */
.v3-room { position: relative; height: 100dvh; overflow: hidden; }
.v3-room-host { position: absolute; inset: 0; }
.v3-room-side { position: absolute; z-index: 30; top: calc(max(10px, var(--v3-safe-top)) + 58px); right: 10px; display: flex; flex-direction: row-reverse; align-items: center; gap: 8px; }
.v3-room-host:has(.is-dressing), .v3-room-host.is-dressing { z-index: 40; }
.v3-room:has(.is-dressing) .v3-room-side, body:has(.v3-room .is-dressing) .v3-demo { visibility: hidden; }
.v3-room-side .v3-me { flex-direction: column; gap: 2px; padding: 4px; font-size: 12px; text-shadow: 0 1px 0 #fff; }
.v3-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: 999px; background: #ffffffe8; border: 2px solid #f1dcc0; font-weight: 800; font-size: 13px; text-decoration: none; box-shadow: 0 2px 6px rgba(0, 0, 0, .08); }
.v3-room-side:has(.is-parent) .v3-chip {
  width:9.5em; padding-inline:4px; gap:4px; justify-content:center; white-space:nowrap;
}
.v3-room-side .v3-chip > svg { width: 25px; height: 25px; flex: none; }
.v3-chip.is-parent { background:#fff; border-color:var(--pink); color:var(--ink); }
.v3-chip.is-parent .v3-icon { width:1.2em; height:1.2em; }
.v3-chip.is-parent:focus-visible { outline: 3px solid #126688; outline-offset: 3px; }
.v3-room .p2room { --p2room-care-bottom: 150px; overflow: clip; }
/* The rug, contact shadow and feet share a ground line. In the room camera
   the standing model's soles are at 84% of its square. */
.v3-room .p2room {
  --floor-start: 62%;
  --ground-line: min(72%, calc(100% - 158px - max(16px, var(--v3-safe-bottom))));
  --model-size: min(92vw, 50dvh, 520px);
}
.v3-room .p2room-model { width: var(--model-size); top: calc(var(--ground-line) - var(--model-size) * .84); }
.v3-room .p2room-rug { bottom: auto; top: var(--ground-line); transform: translate(-50%, -50%); }
.v3-room .p2room-shadow {
  top: var(--ground-line); width: calc(var(--model-size) * .39); height: calc(var(--model-size) * .073);
  background: radial-gradient(ellipse, #78534c70 10%, #95605a32 56%, transparent 72%);
}
.v3-room .p2room-broom {
  bottom: calc(100% - var(--ground-line) - 14px); left: 50%; z-index: 3;
  width: 62px; pointer-events: none; animation-name: v3-room-sweep;
}
@keyframes v3-room-sweep {
  0% { opacity: 0; transform: translateX(-105%) rotate(-14deg); }
  25%, 65% { opacity: 1; transform: translateX(-65%) rotate(12deg); }
  46% { transform: translateX(-85%) rotate(-12deg); }
  100% { opacity: 0; transform: translateX(20%) rotate(-8deg); }
}
.v3-room .p2room-bubble { top: auto; bottom: calc(100% - var(--ground-line) + var(--model-size) * .61 + 12px); width: max-content; }
.v3-room .p2room-wall { bottom: calc(100% - var(--floor-start)); }
.v3-room .p2room-floor { top: var(--floor-start); }
.v3-room .p2room-closet { bottom: 31%; }
/* Leave the side care buttons clear of the rug as well as the navigation below. */
.v3-room .p2room-rug { max-width: min(400px, calc(100vw - 156px)); }
@media (min-width: 700px) {
  .v3-room .p2room-set { max-width: 860px; }
}
.v3-room .p2room-growth { gap: 7px; padding: 6px 10px; border: 2px solid #e6cdb4; border-radius: 16px; }
.v3-room .p2room-growth b { font-size: 14px; line-height: 1.2; white-space: nowrap; }
.v3-room .p2room-top > .p2room-hearts { white-space: nowrap; }
@media (max-width: 360px) {
  .v3-room .p2room-top { padding-inline: 8px; gap: 4px; }
  .v3-room .p2room-growth { gap: 4px; padding-inline: 6px; }
  .v3-room .p2room-growth b { font-size: 13px; }
}
.v3-room .p2room-growth-bar {
  width: clamp(96px, 32vw, 176px); height: 16px; margin-top: 4px; border: 1px solid #babfa2;
  background: #ebeedf; box-shadow: inset 0 1px 3px #55613e30;
}
.v3-room .p2room-growth-bar i { background: linear-gradient(#91df85, #43a65a); }
@media (prefers-reduced-motion: no-preference) {
  .v3-room .p2room-growth.is-level-up .p2room-growth-bar i { animation: v3-care-full .65s step-end; }
  @keyframes v3-care-full { from { width: 100%; background: #f5bd46; } }
}
.v3-room .p2room-care button { padding: 0; row-gap: 1px; }
.v3-room .p2room-care-icon { display: flex; }
.v3-room .p2room-care-icon svg { width: 29px; height: 29px; }
.v3-room .p2room-care button > span:last-child { font-size: 10px; font-weight: 900; line-height: 1.1; white-space: nowrap; }
@media (max-height: 700px) {
  .v3-room .p2room-care-icon svg { width: 24px; height: 24px; }
}
.v3-room .p2room-go { grid-template-columns: 1fr 1fr; gap: 8px; }
.v3-room .p2room-go-adventure { grid-column: 1 / -1; min-height: 58px !important; }
.v3-room .p2room-go button.p2room-go-sub { min-height: 50px; padding: 4px 10px; justify-content: flex-start; gap: 6px; border-radius: 18px; background: #fffffff2; color: var(--ink); box-shadow: 0 4px 0 #ead7bd, 0 6px 14px rgba(80, 52, 30, .12); font-size: 14px; white-space: normal; text-align: left; }
.v3-room .p2room-go-sub .p2room-go-icon { width: 26px; height: 26px; display: grid; place-items: center; }
.v3-room .p2room-go-sub b { flex: 1; line-height: 1.25; }
.v3-room .p2room-go-sub small { flex: none; font-size: 11px; color: #d4466f; font-weight: 800; }
.v3-go-emoji { font-size: 22px; line-height: 1; }
.v3-no3d { position: absolute; inset: 0; display: grid; place-content: center; gap: 12px; padding: 24px; text-align: center; }

/* world */
.v3-world { position: relative; min-height: 100dvh; overflow: hidden; background: linear-gradient(180deg, #c9ecff, #eaf7ff 50%, #fff5e2); }
.v3-world > .atlas-scenery, .v3-world > svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; }
.v3-world .v3-top { background: transparent; backdrop-filter: none; }

/* island map */
.v3-map { position: relative; height: 100dvh; display: flex; flex-direction: column; background: #bfe3a8; }
/* The header takes the island's ground colour so steps never show through it. */
.v3-map .v3-top { position: absolute; left: 0; right: 0; background: var(--map-top, #bfe3a8); box-shadow: 0 12px 12px var(--map-top, #bfe3a8); backdrop-filter: none; }
.v3m-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.v3m-svg { display: block; width: 100%; height: auto; }
.v3m-node { cursor: pointer; }
.v3m-disc { fill: #c9c3bb; }
.v3m-node.is-open .v3m-disc { fill: #ff8a3d; }
.v3m-node.is-cleared .v3m-disc { fill: #ffb627; }
.v3m-node.is-paywall .v3m-disc, .v3m-node.is-locked-paid .v3m-disc { fill: #b9a4f2; }
.v3m-node.is-soon .v3m-disc { fill: #a7b7c4; }
.v3m-node.is-sel > circle:nth-of-type(3), .v3m-node.is-sel .v3m-disc + circle { stroke: #3b3247; stroke-width: 4; }
.v3m-pulse { animation: v3-pulse 1.8s ease-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes v3-pulse { 0% { opacity: .9; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.5); } }
.v3m-inner { position: relative; }
.v3m-3d { position: absolute; z-index: 2; width: 26%; aspect-ratio: 1; transform: translate(-50%, -86%); pointer-events: none; }
.v3m-3d canvas { display: block; width: 100% !important; height: 100% !important; }
.has-3d .v3m-me image { display: none; }
.v3m-foot { fill: #8a6a4a; opacity: .45; animation: v3m-fade 2.6s ease-out forwards; }
@keyframes v3m-fade { to { opacity: 0; } }
.v3m-card { position: relative; z-index: 5; margin: 0; padding: 14px 18px max(16px, var(--v3-safe-bottom)); background: #fffdf8; border-radius: 24px 24px 0 0; box-shadow: 0 -6px 20px rgba(60, 80, 40, .18); }
.v3m-step { margin: 0; font-size: 12px; font-weight: 900; color: var(--orange-2); }
.v3m-card h2 { margin: 2px 0 6px; font-size: 20px; }
.v3m-goal { margin: 0 0 10px; font-size: 14px; color: var(--ink-2); line-height: 1.6; font-weight: 700; }
.v3m-goal.is-done { color: var(--good); }


/* games */
/* ---------- mini games: V2 look (background, logo, rows), V3 unlock chip (2026-11-06) ---------- */
.v3-games { position: relative; min-height: 100dvh; padding-bottom: max(28px, var(--v3-safe-bottom)); isolation: isolate; }
.v3-games::before { content: ""; position: fixed; inset: 0; z-index: -1; background: #f3e3c4 url('/public/assets/phase2/minigames/bg.webp') center top / cover no-repeat; }
.v3-games .v3-top { position: relative; background: transparent; backdrop-filter: none; }
.v3-mg-head { max-width: 560px; margin: -6px auto 6px; text-align: center; }
.v3-mg-head h1 { margin: 0; }
.v3-mg-logo { display: block; width: 82%; max-width: 420px; height: auto; margin: 0 auto; filter: drop-shadow(0 6px 6px #7a4a1e33); }
.v3-mg-invite { width: fit-content; margin: 6px auto 12px; padding: 6px 14px; border-radius: 999px; background: #fffdf4e8; color: #5a3d22; font-size: 13px; font-weight: 800; box-shadow: 0 3px 10px #7a4a1e1f; }
.v3-mg-row { max-width: 900px; margin: 0 auto 14px; padding: 0 16px; }
.v3-mg-row h2 { display: flex; align-items: center; gap: 6px; width: fit-content; margin: 0 0 8px 2px; padding: 6px 14px; border-radius: 999px; background: #fffdf4f0; color: #5a3d22; font-size: 15px; box-shadow: 0 3px 0 #ecd9bf, 0 4px 10px #7a4a1e1f; }
.v3-mg-row h2 span { font-size: 18px; } .v3-mg-row h2 small { margin-left: 4px; font-size: 11px; color: #9a7b5e; }
.v3-mg-scroll { list-style: none; margin: 0 -16px; padding: 2px 16px 10px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; overscroll-behavior-x: contain; }
.v3-mg-scroll::-webkit-scrollbar { display: none; }
.v3-mg-scroll li { flex: none; width: 44%; max-width: 180px; scroll-snap-align: start; }
.v3-game { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: stretch; padding: 0 0 10px; border: 0; border-radius: 20px; background: #fffdf4; box-shadow: 0 4px 0 #ecd9bf, 0 8px 16px #7a4a1e22; color: #3d2f22; overflow: hidden; text-align: left; cursor: pointer; transition: transform .12s; font: inherit; }
.v3-game:active { transform: translateY(3px); box-shadow: 0 1px 0 #ecd9bf; }
.v3-game-pic { display: block; aspect-ratio: 16 / 10; background: #f3e7d2; overflow: hidden; }
.v3-game-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.v3-game b { padding: 2px 10px 0; font-size: 13px; line-height: 1.35; }
.v3-game small { padding: 2px 10px 0; font-size: 10px; line-height: 1.5; color: #7a6650; }
.v3-game i { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; margin: 6px 8px 2px; padding: 3px 7px; border-radius: 999px; background: #f1e8dc; color: #685548; font-style: normal; font-weight: 900; font-size: 11px; }
.v3-game i span { display: inline-flex; }
.v3-game i svg { width: 13px; height: 13px; }
.v3-game.is-unlocked { box-shadow: 0 0 0 2px #83c6a2, 0 4px 0 #ecd9bf, 0 8px 16px #7a4a1e22; }
.v3-game.is-unlocked i { color: #216342; background: #e0f6e8; }
.v3-game.is-locked { background: #faf6ef; }
.v3-game.is-locked img { filter: saturate(.65); }
@media (prefers-reduced-motion: reduce) { .v3-game { transition: none; } }
.v3-mini-learning { display: grid; gap: 10px; margin-bottom: 10px; }

/* gate / confirm sheet */
.v3-gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: end center; background: rgba(40, 30, 50, .45); padding: 16px; }
dialog.v3-gate { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; color: inherit; }
dialog.v3-gate::backdrop { background: transparent; }
.v3-gate-card { width: 100%; max-width: 380px; padding: 22px 20px max(18px, var(--v3-safe-bottom)); border-radius: 26px; background: #fff; text-align: center; animation: v3-up .2s ease-out; }
.v3-gate-card h2 { margin: 0 0 4px; font-size: 18px; }
.v3-gate-card > p { margin: 0 0 12px; font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.v3-gate-card.is-small .v3-sheet-text { font-size: 17px; font-weight: 800; color: var(--ink); margin: 6px 0 16px; }
.v3-gate-card.is-small .v3-btn + .v3-btn { margin-top: 6px; }
@keyframes v3-up { from { transform: translateY(40px); opacity: 0; } }
.v3-pin { display: flex; justify-content: center; gap: 14px; margin: 6px 0; }
.v3-pin i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #c8b9a4; }
.v3-pin i.is-on { background: var(--ink); border-color: var(--ink); }
.v3-gate-msg { min-height: 1.4em; color: var(--danger) !important; font-weight: 800; }
.v3-pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 auto 8px; max-width: 280px; }
.v3-pinpad button { min-height: 56px; border: 0; border-radius: 16px; background: #f6f0e8; font-size: 22px; font-weight: 800; cursor: pointer; }
.v3-pinpad button:active { background: #eadfce; }
.v3-gate-demo { font-size: 12px !important; color: #2c5d84 !important; font-weight: 700; }

/* paywall + plan */
.v3-paywall { min-height: 100dvh; background: linear-gradient(180deg, #efe8ff, #fff6ea); }
.v3-paywall-body { padding: 24px 24px 40px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.v3-paywall-body h2 { margin: 0; font-size: 22px; line-height: 1.5; }
.v3-paywall-body p { margin: 0 0 8px; color: var(--ink-2); line-height: 1.7; font-size: 15px; font-weight: 700; }
.v3-key { font-size: 44px; animation: v3-bob 2.4s ease-in-out infinite; }
.is-parent-ui { padding-bottom: var(--v3-safe-bottom); background: #f7f5f1; min-height: 100dvh; }
.is-parent-ui .v3-top { background: #f7f5f1f0; }
.v3-plan-body { padding: 8px 20px 40px; }
.v3-plan-tag { display: inline-block; margin: 0; padding: 4px 12px; border-radius: 999px; background: #e7f3ff; color: #2c5d84; font-size: 12px; font-weight: 800; }
.v3-plan-body h2 { margin: 8px 0 4px; font-size: 26px; }
.v3-price { margin: 0; } .v3-price b { font-size: 30px; } .v3-price small { color: var(--ink-2); }
.v3-beta { margin: 4px 0 16px; padding: 10px 14px; border-radius: 14px; background: #fff3df; font-size: 14px; }
.v3-beta small { display: block; color: var(--ink-2); font-size: 12px; margin-top: 2px; }
.v3-plan-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.v3-plan-list li { padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.v3-plan-list li b { display: block; color: var(--ink); font-size: 15px; }
.v3-plan-free { margin: 0 0 18px; padding: 12px 14px; border-radius: 14px; border: 1px dashed #cfc3b2; font-size: 13px; line-height: 1.6; }
.v3-plan-free p { margin: 4px 0 0; color: var(--ink-2); }
.v3-plan-note { font-size: 13px; color: var(--ink-2); }
.v3-plan-body .v3-btn + .v3-btn { margin-top: 10px; }
.v3-test-banner { padding: 10px 14px; border-radius: 12px; background: #fff0c9; border: 1px solid #f0d27a; font-size: 13px; font-weight: 700; line-height: 1.6; }
.v3-order { margin: 0 0 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.v3-order div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); font-size: 14px; }
.v3-order div:first-child { border-top: 0; }
.v3-order dt { color: var(--ink-2); flex: none; } .v3-order dd { margin: 0; font-weight: 800; text-align: right; }

/* result */
.v3-result { position: relative; min-height: 100dvh; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 24px 32px; text-align: center; background: radial-gradient(circle at 50% 20%, #fff7c8, #ffe3b8 45%, #ffcfa3); }
.v3-result-sky i { position: absolute; width: 10px; height: 14px; border-radius: 3px; background: var(--pink); top: -20px; animation: v3-fall 3.6s linear infinite; }
.v3-result-sky i:nth-child(3n) { background: var(--sky); } .v3-result-sky i:nth-child(3n+1) { background: var(--gold); }
.v3-result-sky i:nth-child(1) { left: 6%; animation-delay: -.4s; } .v3-result-sky i:nth-child(2) { left: 14%; animation-delay: -1.6s; } .v3-result-sky i:nth-child(3) { left: 22%; animation-delay: -2.4s; } .v3-result-sky i:nth-child(4) { left: 30%; animation-delay: -.9s; } .v3-result-sky i:nth-child(5) { left: 38%; animation-delay: -3s; } .v3-result-sky i:nth-child(6) { left: 46%; animation-delay: -2s; } .v3-result-sky i:nth-child(7) { left: 54%; animation-delay: -.2s; } .v3-result-sky i:nth-child(8) { left: 62%; animation-delay: -1.2s; } .v3-result-sky i:nth-child(9) { left: 70%; animation-delay: -2.8s; } .v3-result-sky i:nth-child(10) { left: 78%; animation-delay: -1.9s; } .v3-result-sky i:nth-child(11) { left: 86%; animation-delay: -.7s; } .v3-result-sky i:nth-child(12) { left: 94%; animation-delay: -2.2s; } .v3-result-sky i:nth-child(13) { left: 50%; animation-delay: -3.3s; } .v3-result-sky i:nth-child(14) { left: 10%; animation-delay: -1s; }
@keyframes v3-fall { to { transform: translateY(110vh) rotate(540deg); } }
.v3-result img { position: relative; filter: drop-shadow(0 10px 14px rgba(120, 70, 20, .25)); animation: v3-bob 2.4s ease-in-out infinite; }
.v3-result h1 { position: relative; margin: 0; font-size: 34px; line-height: 1.3; color: #e8572f; text-shadow: 0 3px 0 #fff; }
.v3-result-hearts { position: relative; margin: 0; font-size: 17px; font-weight: 800; }
.v3-result-hearts b { color: #ff3d6e; font-size: 24px; }
.v3-result img { width: 140px; height: 140px; }
.v3-result { padding-top: max(24px, var(--v3-safe-top)); padding-bottom: max(32px, var(--v3-safe-bottom)); gap: 8px !important; }
.v3-result-go { position: relative; width: 100%; max-width: 360px; display: grid; gap: 10px; margin-top: 8px; }

/* parent */
.v3-p-kids { display: flex; gap: 8px; padding: 0 16px 8px; overflow-x: auto; }
.v3-p-kids a { flex: none; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 800; }
.v3-p-kids a small { margin-left: 4px; color: var(--ink-2); font-weight: 600; font-size: 12px; }
.v3-p-kids a.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.v3-p-kids a.is-on small { color: #ddd; }
.v3-p-body { padding: 4px 16px 40px; display: grid; gap: 12px; }
.v3-family-legal { grid-column: 1 / -1; display: flex; justify-content: center; flex-wrap: wrap; column-gap: 1.5rem; }
.v3-family-legal a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.v3-p-stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.v3-p-stats li { padding: 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.v3-p-stats b { display: block; font-size: 24px; }
.v3-p-stats small { color: var(--ink-2); font-size: 12px; }
.v3-p-card { padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.v3-p-card h2 { margin: 0 0 8px; font-size: 16px; }
.v3-p-note, .v3-p-when { margin: 0 0 10px; font-size: 12px; color: var(--ink-2); line-height: 1.6; }
.v3-p-none { margin: 0; color: var(--ink-2); font-size: 13px; }
.v3-p-flow { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: f; }
.v3-p-flow > li { position: relative; padding: 0 0 0 30px; }
.v3-p-flow > li::before { counter-increment: f; content: counter(f); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 12px; font-weight: 900; display: grid; place-items: center; }
.v3-p-flow > li > b { font-size: 14px; }
.v3-p-flow > li > p { margin: 4px 0 0; font-size: 13px; line-height: 1.7; color: var(--ink-2); }
.v3-p-flow ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; }
.v3-p-flow ul li { display: grid; grid-template-columns: 26px 1fr; gap: 2px 8px; padding: 8px 10px; border-radius: 12px; background: #faf7f2; font-size: 13px; }
.v3-p-flow ul li > span:nth-child(2) b { display: block; font-size: 13px; }
.v3-p-flow ul li small { color: var(--ink-2); font-size: 11px; }
.v3-p-flow ul li em { grid-column: 2; font-style: normal; font-size: 12px; color: var(--try); font-weight: 700; }
.v3-p-flow ul li em.is-good { color: var(--good); }
.v3-p-flag { font-size: 20px; line-height: 1; }
.v3-p-method { border-top: 1px solid var(--line); }
.v3-p-method:first-of-type { border-top: 0; }
.v3-p-method summary { display: flex; align-items: center; gap: 10px; padding: 10px 0; cursor: pointer; list-style: none; }
.v3-p-method summary > span:nth-child(2), .v3-p-method summary > span:only-child { flex: 1; }
.v3-p-method summary b { display: block; font-size: 14px; }
.v3-p-method summary small { color: var(--ink-2); font-size: 11px; }
.v3-p-method summary em { font-style: normal; font-weight: 900; }
.v3-p-method p { margin: 0 0 12px; font-size: 13px; line-height: 1.7; color: var(--ink-2); }
.v3-p-road { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 8px; flex-wrap: wrap; }
.v3-p-road li { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #f1ece4; font-size: 12px; font-weight: 800; color: var(--ink-2); }
.v3-p-road li.is-done { background: #ffb627; color: #fff; }
.v3-p-road li.is-paid:not(.is-done) { background: #ece6fb; color: #7a66c6; }
.v3-p-roadmap { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.8; color: var(--ink-2); }
.v3-p-minis { list-style: none; padding: 0; margin: 0; }
.v3-p-minis li { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.v3-p-minis li:first-child { border-top: 0; }
.v3-p-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.v3-p-table th, .v3-p-table td { padding: 7px 4px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.v3-p-table th { color: var(--ink-2); font-weight: 700; border-top: 0; }
.v3-p-disclaimer { margin: 0; font-size: 11px; line-height: 1.7; color: var(--ink-2); }
.v3-p-empty { padding: 40px 24px; text-align: center; }
.v3-p-profiles { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.v3-p-profiles li { display: flex; align-items: center; gap: 12px; }
.v3-p-profiles li > span:nth-child(2) { flex: 1; }
.v3-p-profiles b { display: block; } .v3-p-profiles small { color: var(--ink-2); font-size: 12px; }
.v3-p-profiles a { font-weight: 800; font-size: 13px; color: #2c5d84; }
.v3-p-plan { margin: 0 0 10px; }
.v3-p-card .v3-btn + .v3-btn { margin-top: 8px; }

/* demo panel */
.v3-demo { position: fixed; z-index: 200; right: 0; top: 46%; font-family: system-ui, sans-serif; }
.v3-demo-toggle { min-height: 36px; padding: 8px 6px; border-radius: 10px 0 0 10px; writing-mode: vertical-rl; border: 1px solid #8aa; background: #263445e6; color: #fff; font-weight: 700; font-size: 12px; cursor: pointer; }
.v3-demo-panel { position: absolute; right: 34px; top: 50%; transform: translateY(-50%); width: min(320px, calc(100vw - 42px)); max-height: calc(90dvh - 24px); overflow-y: auto; padding: 12px; border-radius: 14px; background: #263445f5; color: #fff; font-size: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
.v3-demo-title { margin: 0 0 6px; font-weight: 800; }
.v3-demo-label { margin: 8px 0 4px; color: #b9c7d6; }
.v3-demo-row { display: flex; flex-wrap: wrap; gap: 6px; }
.v3-demo-row button, .v3-demo-row a { padding: 6px 10px; border-radius: 8px; border: 1px solid #5b6f86; background: #33465c; color: #fff; font-size: 12px; text-decoration: none; cursor: pointer; }
.v3-demo-row .is-on { background: #ff9a3c; border-color: #ff9a3c; }
.v3-demo-pin { margin: 8px 0; color: #ffd28a; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ?motion=reduce (same as the OS setting) */
.is-calm *, .is-calm *::before, .is-calm *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }

/* ---------- PC: tablet frame (frame.js) ---------- */
body.v3-pc { margin: 0; height: 100dvh; overflow: hidden; background: #cfeaf9; }
.v3-pc-bg { position: fixed; inset: 0; background: url(/public/assets/phase3/login-bg.webp) center / cover no-repeat; filter: blur(18px) saturate(1.1); transform: scale(1.08); opacity: .75; }
.v3-pc-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 252, 245, .85), rgba(255, 252, 245, .2) 40%, rgba(255, 252, 245, 0)); }
.v3-pc-side { position: fixed; z-index: 2; left: 32px; top: 50%; transform: translateY(-50%); width: 220px; }
.v3-pc-logo { margin: 0; font-size: 34px; font-weight: 900; color: #ff7a59; letter-spacing: .08em; -webkit-text-stroke: 6px #fff; paint-order: stroke fill; }
.v3-pc-note { margin: 8px 0 14px; font-size: 13px; line-height: 1.7; color: #4d4656; }
.v3-pc-modes { display: grid; justify-items: stretch; width: fit-content; padding: 4px; gap: 4px; border-radius: 22px; background: #ffffffda; box-shadow: 0 4px 14px rgba(40, 90, 140, .15); }
.v3-pc-modes button { padding: 8px 16px; border: 0; border-radius: 999px; background: transparent; font: inherit; font-size: 13px; font-weight: 800; color: #6b6178; cursor: pointer; }
.v3-pc-modes button[aria-checked="true"] { background: #ff9a3c; color: #fff; }
.v3-pc-stage { position: relative; z-index: 1; height: 100dvh; display: grid; place-items: center; }
.v3-pc.is-preview .v3-pc-stage { padding-left: 260px; }
.v3-pc-device { position: relative; width: calc(var(--w) + var(--b) * 2); height: calc(var(--h) + var(--b) * 2); padding: var(--b); border-radius: calc(var(--b) * 2.2); background: linear-gradient(145deg, #2c2833, #17141c); box-shadow: 0 0 0 2px #3d3846, 0 30px 80px rgba(20, 30, 60, .35), inset 0 0 0 1px #ffffff14; position: absolute; left: 0; top: 0; transform: scale(var(--s)); transform-origin: 0 0; }
.v3-pc-fit { position: relative; width: var(--fit-w); height: var(--fit-h); }
.v3-pc-device iframe { display: block; width: var(--w); height: var(--h); border: 0; border-radius: calc(var(--b) * 1.1); background: #fff8ec; }
.v3-pc-screen { width:100%; height:100%; overflow:hidden; border-radius:calc(var(--b) * 1.1); }
.v3-pc-status, .v3-pc-toolbar { display:none; }
/* The artwork fills the simulated screen. The app receives matching safe insets
   for its controls, including when the browser toolbar is toggled mid-lesson. */
.v3-pc-device[data-mode="phone"] .v3-pc-screen { position:relative; isolation:isolate; }
.v3-pc-device[data-mode="phone"] iframe { width:100%; height:100%; border-radius:0; }
.v3-pc-device[data-mode="phone"] :is(.v3-pc-status,.v3-pc-toolbar) {
  position:absolute; z-index:1; left:0; right:0; pointer-events:none; color:#26252a;
  text-shadow:0 0 3px #fff, 0 1px 2px #ffffffb0;
}
.v3-pc-device[data-mode="phone"] .v3-pc-status {
  top:0; height:var(--v3-safe-top); display:flex; align-items:center; justify-content:space-between;
  padding:0 24px; font:600 15px system-ui,sans-serif;
}
.v3-pc-status span { position:relative; width:22px; height:11px; border:1px solid currentColor; border-radius:3px; background:linear-gradient(currentColor,currentColor) center / 17px 7px no-repeat; filter:drop-shadow(0 0 1px white); }
.v3-pc-status span::after { content:""; position:absolute; top:3px; right:-3px; width:2px; height:3px; background:currentColor; border-radius:0 2px 2px 0; }
.v3-pc-device[data-mode="phone"] .v3-pc-toolbar {
  bottom:0; height:var(--v3-safe-bottom); display:grid; align-content:end; justify-items:center; gap:8px; padding:5px 16px 9px;
}
.v3-pc-toolbar::after { content:""; width:112px; height:5px; background:currentColor; border-radius:999px; box-shadow:0 0 2px #fff; }
.v3-pc-cam { position: absolute; top: 50%; left: calc(var(--b) / 2 - 3px); margin-top: -3px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #3a3644; box-shadow: inset 0 0 0 1px #55505f; }
.v3-pc-device[data-mode="phone"] .v3-pc-cam { top: calc(var(--b) / 2 - 3px); left: 50%; width: 60px; margin: 0 0 0 -30px; height: 7px; border-radius: 4px; }
@media (max-width: 1180px) {
  .v3-pc-side { top:8px; left:50%; width:auto; transform:translateX(-50%); }
  .v3-pc-side :is(.v3-pc-logo,.v3-pc-note) { display:none; }
  .v3-pc-modes { display:flex; border-radius:999px; }
  .v3-pc-side { display:flex; align-items:center; gap:8px; white-space:nowrap; }
  .v3-pc.is-preview .v3-pc-stage { padding:52px 0 0; }
}
/* A narrowed desktop window uses the phone layout without restarting the app. */
@media (max-width: 999px) {
  .v3-pc:not(.is-preview) .v3-pc-bg, .v3-pc:not(.is-preview) .v3-pc-cam { display: none; }
  .v3-pc:not(.is-preview) .v3-pc-fit { width: 100%; height: 100%; }
  .v3-pc:not(.is-preview) .v3-pc-device { width: 100%; height: 100%; padding: 0; border-radius: 0; box-shadow: none; transform: none; }
  .v3-pc:not(.is-preview) iframe { width: 100%; height: 100%; border-radius: 0; }
}

/* ---------- tablet width (≥ 700px): bigger touch targets, readable line lengths ---------- */
@media (min-width: 700px) {
  .v3-top { padding-left: 24px; padding-right: 24px; }
  .v3-top h1 { font-size: 22px; }
  .v3-back { width: 52px; height: 52px; font-size: 32px; }
  .v3-hearts { font-size: 20px; padding: 8px 16px; }
  .v3-btn { min-height: 60px; font-size: 19px; padding: 14px 28px; }
  .v3-welcome-body { max-width: 560px; }
  .v3-catch { font-size: 27px; }
  .v3-welcome-sky { background-size: cover; background-position: center top; }
  .v3-welcome-title img { width: 440px; }
  .v3-form { max-width: 640px; margin: 0 auto; }
  .v3-form::before { height: 220px; }
  .v3-profiles h1 { font-size: 30px; margin-top: calc(max(16px, var(--v3-safe-top)) + 30dvh); }
  .v3-profile-grid { grid-template-columns: repeat(4, minmax(0, 168px)); gap: 20px; }
  .v3-profile b { font-size: 21px; }
  .v3m-inner { max-width: 620px; margin: 0 auto; }
  .v3-map { background: #b9df9f; }
  .v3m-card { width: 100%; max-width: 680px; margin: 0 auto; padding: 18px 28px max(20px, var(--v3-safe-bottom)); }
  .v3m-card h2 { font-size: 26px; } .v3m-goal { font-size: 17px; }
  .v3-games::before { background-image: url('/public/assets/phase2/minigames/bg-wide.webp'); }
  .v3-mg-row { padding: 0 24px; }
  .v3-mg-scroll { margin: 0; padding: 2px 2px 10px; flex-wrap: wrap; overflow: visible; gap: 16px; }
  .v3-mg-scroll li { width: calc(25% - 12px); max-width: none; }
  .v3-mg-row h2 { font-size: 19px; } .v3-mg-invite { font-size: 17px; }
  .v3-game b { font-size: 17px; } .v3-game small { font-size: 14px; }
  .v3-game i { font-size: 15px; padding: 5px 10px; }
  .v3-game i svg { width: 18px; height: 18px; }
  .v3-paywall-body, .v3-plan-body { max-width: 620px; margin: 0 auto; }
  .v3-result h1 { font-size: 46px; } .v3-result img { width: 190px; height: 190px; } .v3-result-hearts { font-size: 21px; }
  .v3-result-go { max-width: 460px; }
  .v3-p-body { max-width: 780px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
  .v3-p-stats { grid-template-columns: repeat(4, 1fr); }
  .v3-p-kids { max-width: 780px; margin: 0 auto; padding: 0 24px 10px; }
  .v3-gate-card { max-width: 440px; }
  .v3-pinpad button { min-height: 66px; font-size: 26px; }
  .v3-room-side { right: 20px; }
  .v3-chip { min-height: 48px; font-size: 15px; }
}

/* Review 6: consistent art and readable parent summaries. */
.v3-icon { width: 28px; height: 28px; display: inline-block; vertical-align: middle; flex: none; }
.v3-flag { width: 28px; height: 22px; display: inline-block; vertical-align: middle; flex: none; filter: drop-shadow(0 1px 1px #5a3a2a26); }
.v3-avatar i .v3-icon { width: 80%; height: 80%; }
.v3-method-map { display: block; width: 100%; height: auto; margin-bottom: 10px; max-height: 220px; }
.v3m-node.is-paywall .v3m-disc, .v3m-node.is-locked-paid .v3m-disc { fill: #9ba9b3; }
.v3m-node.is-paywall, .v3m-node.is-locked-paid { opacity: .75; }
.v3-places { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; list-style: none; padding: 0; margin: 12px 0; width: 100%; }
.v3-places li { min-width: 0; position: relative; }
.v3-places img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; box-shadow: 0 3px 5px #5a3a2a22; }
.v3-places li > span { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 2px; margin-top: 4px; }
.v3-places .v3-flag { width: 22px; height: 17px; }
.v3-places b { font-size: 11px; white-space: nowrap; }
.v3-places small { display: block; font-size: 11px; line-height: 1.5; margin-top: 5px; color: #665745; }
@keyframes v3-place-arrive { from { opacity: 0; transform: translateY(8px); } }
.v3-result-hearts b { display: inline-block; animation: v3-heart-home 1.5s ease-out; }
@keyframes v3-heart-home { from { opacity: 0; transform: translateY(-70px) scale(.5); } }
.v3-plan-sample { padding: 12px 0; }
.v3-plan-sample summary { font-weight: 700; cursor: pointer; padding: 10px 0; }
.v3-plan-sample p, .v3-plan-body > p { line-height: 1.7; }
.v3-p-stack { display: flex; min-height: 24px; border-radius: 8px; overflow: hidden; background: #f4f0ea; margin: 12px 0; }
.v3-p-stack .is-first { background: #7bb89d; }
.v3-p-stack .is-hint { background: repeating-linear-gradient(135deg, #f4d48f 0 5px, #fff0cd 5px 8px); }
.v3-p-stack .is-shown { background: radial-gradient(circle, #697fb3 2px, #c3d2ed 2.5px) 0 0 / 8px 8px; }
.v3-p-legend { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; font-size: 13px; }
.v3-p-legend li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px; }
.v3-p-legend small { font-size: 11px; color: #6b6178; }
.v3-p-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.v3-p-stats li { padding: 8px; border: 0; background: #f8f6f0; }
.v3-p-stats b { font-size: 20px; }
.v3-p-stats small { font-size: 11px; }
.v3-p-flow ul li em { color: #655845; }
.v3-p-run { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 12px; }
.v3-p-run h3 { font-size: 14px; line-height: 1.6; margin: 0 0 5px; }
.v3-p-breakdown { display: block; font-size: 12px; line-height: 1.7; }
.v3-p-items { padding-left: 18px; font-size: 12px; line-height: 1.8; }
.v3-pinpad button:active { transform: translateY(2px) scale(.96); }
.v3-pin .is-on { animation: v3-place-arrive .1s; }
.v3-gate-card { max-height: calc(100dvh - 32px); overflow: auto; }
.v3-cloud-island { width: 130px; height: 45px; border-radius: 50%; background: #e3edee; box-shadow: -20px -10px 0 #fff, 25px -12px 0 #fff, 0 12px 20px #acb2ce55; }
.v3-room .p2room-go-sub[data-go="daily"] small { color: #28744f; background: #e2f5e8; border-radius: 12px; padding: 3px 6px; }
.v3-room .p2room-go button.p2room-go-sub { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 6px; row-gap: 2px; }
.v3-room .p2room-go-sub b { min-width: 0; white-space: nowrap; }
.v3-room .p2room-go-sub small { grid-column: 2; justify-self: start; white-space: normal; line-height: 1.3; }
.v3-profile .v3-avatar { outline: 3px solid var(--c); outline-offset: 3px; }
.v3-profiles { padding-bottom: max(24px, var(--v3-safe-bottom)); }
.v3-world { height: 100dvh; padding-bottom: var(--v3-safe-bottom); min-height: 0; display: flex; flex-direction: column; align-items: center; }
.v3-world .v3-top { width: 100%; flex: none; }
.v3-world-islands {
  position:relative; flex:1; min-height:0; width:min(100%, 960px); padding:4px 12px;
  display:grid; grid-template-columns:repeat(4, minmax(0,1fr));
  grid-template-rows:minmax(0,1fr) auto minmax(0,1fr); place-items:center;
  --pet-size:clamp(120px,29dvh,250px);
  --island-button:clamp(78px,12dvh,100px);
  container-type:size;
}
.v3-world-island { grid-column:span 2; grid-row:3; max-width:260px; }
.v3-world-island:first-child { grid-column:2 / span 2; grid-row:1; width:100%; }
.v3-world-pet, .v3-world-bubble { grid-column:2 / span 2; grid-row:2; }
.v3-world-bubble {
  position:relative; z-index:1; align-self:start; margin:0; padding:6px 14px;
  border-radius:20px; background:#fff; color:var(--ink); box-shadow:0 6px 16px #a0506429;
  font-size:clamp(14px,2dvh,17px); font-weight:700; line-height:1.45; pointer-events:none;
}
.v3-world-bubble::after { content:""; position:absolute; left:50%; bottom:-6px; width:13px; height:13px; border-radius:0 0 4px 0; background:white; transform:translateX(-50%) rotate(45deg); }
.v3-world-pet { width:var(--pet-size); height:var(--pet-size); display:grid; place-items:center; pointer-events:none; }
.v3-world-pet img { width:100%; height:100%; object-fit:contain; }
.v3-world-pet img[hidden] { display:none; }
@media (prefers-reduced-motion:no-preference) {
  html:not(.is-calm) .v3-world-pet img:not([hidden]) { animation:world-pet-sway 2.4s ease-in-out infinite alternate; transform-origin:50% 85%; }
}
@keyframes world-pet-sway { from { transform:rotate(-3deg); } to { transform:rotate(3deg); } }
.v3-world-island { display: flex; flex-direction: column; align-items: center; width: 100%; min-width: 0; text-align: center; text-decoration: none; color: #504867; }
.v3-world-art { position: relative; width: 100%; }
.v3-world-art > svg { display: block; width: 100%; height: auto; max-height:min(210px, calc((100cqh - var(--pet-size)) / 2 - var(--island-button))); }
.v3-world-island > b { position: relative; margin-top: -6px; padding: 6px 12px; border: 2px solid #c5bed7; border-radius: 12px; background: #f8f4ff; font-size: 16px; line-height: 1.3; }
.v3-world-island.is-open > b { display:grid; place-content:center; width:var(--island-button); aspect-ratio:1; padding:0; border:2px solid #f1dcc0; border-radius:50%; background:#fff; color:var(--ink); font-size:clamp(18px,2.5dvh,23px); box-shadow:0 3px 0 #e6c79e; }
.v3-world-island.is-open > b span { display:block; font-size:13px; }
.v3-world-soon { margin-top: 5px; padding: 3px 6px; border-radius: 10px; background: #fffffff2; font-size: 14px; font-weight: 800; line-height: 1.4; white-space: nowrap; }
.v3-world-island.is-soon .v3-world-art > svg { filter: saturate(.75); }
.v3-world-cloud { position: absolute; left: 5%; right: 5%; bottom: 0; height: 38%; background: radial-gradient(ellipse at 24% 70%, #fff 0 28%, transparent 29%), radial-gradient(ellipse at 48% 48%, #fff 0 37%, transparent 38%), radial-gradient(ellipse at 78% 75%, #f6f5ff 0 32%, transparent 33%); pointer-events: none; }
@media (min-width: 700px) {
  .v3-world-island > b { font-size: 22px; }
  .v3-world-soon { font-size: 18px; padding: 5px 12px; }
}
/* Bring the two lower islands around the guide; move its speech and model together. */
.v3-world-pet, .v3-world-bubble { translate:0 clamp(16px, 4cqh, 30px); }
.v3-world-island:nth-child(2), .v3-world-island:nth-child(3) { translate:0 clamp(-44px, -6cqh, -20px); }
@media (min-width:700px) and (orientation:landscape) {
  .v3-world-islands { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .v3-world-island:first-child { grid-column:2; }
  .v3-world-island:nth-child(2) { grid-column:1; grid-row:2 / span 2; }
  .v3-world-island:nth-child(3) { grid-column:3; grid-row:2 / span 2; }
  .v3-world-pet, .v3-world-bubble { grid-column:2; }
}
body[data-route="step"] .v3-demo, body[data-route="daily"] .v3-demo { top: max(8px, var(--v3-safe-top)); }
body[data-route="step"] .v3-demo-toggle, body[data-route="daily"] .v3-demo-toggle { width: 24px; padding: 5px 2px; font-size: 10px; }
body[data-route="step"] .v3-demo-panel, body[data-route="daily"] .v3-demo-panel { top: 0; transform: none; right: 28px; }
@media (max-width: 699px) {
  .v3-plan-body .v3-places { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .v3-p-method summary > span { min-width: 0; overflow-wrap: anywhere; }
  .v3-profiles h1 { margin-top: max(70px, 14dvh); }
  .v3-profile-grid { gap: 12px; }
}
@media (max-width: 340px) {
  /* Narrow phones: keep the profile button on screen and the greeting below the chips. */
  .v3-room-side { right: 8px; gap: 5px; }
  .v3-room-side .v3-chip { padding: 5px 9px; gap: 4px; font-size: 12px; }
  .v3-room-side .v3-chip > svg { width: 20px; height: 20px; }
  .v3-room .p2room-bubble { max-width: 88%; padding: 8px 12px; font-size: 14px; }
  .v3-room .p2room-care button { width: 58px; }
  .v3-room .p2room-go { gap: 7px; padding-left: 10px; padding-right: 10px; }
  .v3-room .p2room-go button.p2room-go-sub { font-size: 12px; gap: 4px; padding: 7px 6px; flex-wrap: wrap; }
  .v3-room .p2room-go-sub .p2room-go-icon { width: 18px; height: 18px; }
  .v3-room .p2room-go-sub small { width: 100%; text-align: right; font-size: 10px; }
  .v3-room .p2room-go-adventure { min-height: 48px !important; }
}
@media (max-width: 699px) and (max-height: 640px) {
  .v3-welcome-body { gap: 5px; padding-bottom: 16px; }
  .v3-welcome-sky { background-position: center -56px; }
  .v3-welcome-title img { width: min(78vw, 260px); }
  .v3-catch { font-size: 20px; }
  .v3-profile .v3-avatar { width: 64px; height: 64px; }
  .v3-profile { padding: 12px 8px; }
  .v3-profile b { font-size: 16px; }
  .v3-profiles h1 { margin-top: 55px; }
  .v3-result { padding: max(12px, var(--v3-safe-top)) 16px max(20px, var(--v3-safe-bottom)); gap: 5px !important; }
  .v3-result > img { width: 85px; height: 85px; }
  .v3-result h1 { font-size: 26px; }
  .v3-result-hearts { font-size: 13px; }
  .v3-result-hearts b { font-size: 21px; }
  .v3-result-go { gap: 6px; margin-top: 4px; }
  .v3-result-go .v3-btn { min-height: 44px; padding: 7px 12px; font-size: 14px; }
  .v3-places b { font-size: 10px; }
  .v3-paywall-body { padding: 14px 20px 20px; gap: 8px; }
  .v3-paywall-body > img { width: 90px; height: 90px; }
  .v3-cloud-island { height: 25px; margin-top: 10px; }
}
@media (min-width: 900px) and (orientation: landscape) {
  .v3-welcome { align-items: flex-end; justify-content: center; }
  .v3-welcome { background: #fdf2e8; }
  .v3-welcome-body { width: 42%; max-width: 560px; padding: 30px 44px; }
  .v3-welcome-sky { background: url(/public/assets/phase3/title-landscape.webp) left center / cover no-repeat, #fdf2e8; }
  .v3-welcome-title img { width: min(100%, 420px); }
  .v3-form { max-width: 1180px; min-height: 100dvh; padding: 54px 8% 28px 52%; }
  .v3-form::before { position: absolute; left: 0; top: 0; bottom: 0; width: 45%; height: auto; margin: 0; background-position: center; }
  .v3-form-head { right: 8%; }
  .v3-form > h1 { padding: 0; margin: 10px 0; background: none; }
  .v3-form .v3-field { margin-bottom: 10px; }
  .v3-form .v3-lead { margin-bottom: 12px; }
  .v3-form .v3-fine { margin-top: 8px; }
  .v3-profiles h1 { margin-top: 22dvh; }
  .v3m-inner { max-width: 680px; }
  .v3m-card { max-width: none; padding: 16px 36px 20px; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 4px 28px; border-radius: 0; }
  .v3m-card h2, .v3m-card .v3m-step, .v3m-card .v3m-goal { grid-column: 1; }
  .v3m-card .v3-btn { grid-column: 2; }
  .v3m-card > .v3-btn.is-wide { grid-row: 1 / 4; align-self: center; }
  .v3m-card .v3-link { grid-column: 2; }
  .v3m-card .v3m-goal { margin: 0 0 4px; font-size: 15px; }
  .v3m-card h2 { margin: 0; font-size: 23px; }
  .v3-room .p2room-go { max-width: 940px; grid-template-columns: 1.4fr 1fr 1fr; padding-bottom: 24px; gap: 20px; }
  .v3-room .p2room-go-adventure { grid-column: auto; }
  .v3-room .p2room-go button.p2room-go-sub { min-height: 68px; font-size: 18px; }
  .v3-room .p2room { --p2room-care-bottom: 120px; }
  .v3-room .p2room-care { left: 32px; }
  .v3-room .p2room-rug { max-width: min(530px, 56dvh); }
  .v3-room-side { top: 80px; right: 28px; }
  .v3-result { display: grid; grid-template-columns: 300px minmax(0, 580px); grid-template-rows: repeat(3,auto); justify-content: center; align-content: center; column-gap: 80px !important; row-gap: 18px !important; }
  .v3-result > img { grid-column: 1; grid-row: 1 / 4; width: 280px; height: 280px; justify-self: center; }
  .v3-result > h1, .v3-result-hearts, .v3-result-go { grid-column: 2; }
  .v3-result-go { justify-self: center; }
  .v3-places b { font-size: 14px; }
  .v3-plan-body { max-width: 960px; }
  .v3-p-body, .v3-p-kids { max-width: 1040px; }
  .v3-p-body { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
  .v3-parent .v3-p-body > section:first-child, .v3-parent .v3-p-body > section:nth-last-of-type(1), .v3-p-disclaimer { grid-column: 1 / -1; }
  .v3-parent .v3-p-body > section:first-child { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
  .v3-parent .v3-p-body > section:first-child h2, .v3-parent .v3-p-body > section:first-child > .v3-p-note { grid-column: 1 / -1; }
  .v3-parent .v3-method-map { grid-column: 1; grid-row: 3 / 10; align-self: center; }
  .v3-parent .v3-p-body > section:first-child .v3-p-method { grid-column: 2; }
  .v3-p-card { padding: 22px; }
}
.v3-p-map-wrap { position: relative; width: 100%; align-self: center; }
.v3-p-map-wrap .v3-method-map { margin: 0; }
.v3-p-map-pin { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); border: 1px solid #c6d9c8; border-radius: 12px; background: #fffffff2; padding: 3px 6px; display: flex; flex-direction: column; align-items: center; cursor: pointer; min-height: 44px; font-size: 10px; font-weight: 700; box-shadow: 0 2px 4px #5a3a2a22; }
.v3-p-map-pin .v3-flag { width: 22px; height: 17px; }
.v3-p-map-pin span { white-space: nowrap; }
@media (max-width: 500px) {
  .v3-p-map-wrap { padding-bottom: 80px; }
  .v3-p-map-pin { position: relative; display: inline-flex; transform: none; left: auto; top: auto; margin: 4px 3px 0 0; font-size: 11px; min-height: 44px; padding: 4px 6px; }
  .v3-p-map-wrap { padding-bottom: 0; }
}
@media (min-width: 900px) and (orientation: landscape) {
  .v3-parent .v3-p-map-wrap { grid-column: 1; grid-row: 3 / 10; }
}

/* ---------- family plan: LP style (Claude 2026-11-06) ---------- */
.v3-lp { background: #fffaf2; padding-bottom: max(32px, var(--v3-safe-bottom)); }
.v3-lp-hero { position: relative; padding: 0 20px 26px; text-align: center; overflow: hidden; background: linear-gradient(180deg, #fff1dc, #fffaf2); }
.v3-lp-hero-scenes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 0 -20px; opacity: .9; }
.v3-lp-hero-scenes img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.v3-lp-hero-scenes img:nth-child(odd) { transform: translateY(10px); }
.v3-lp-hero-soda { position: relative; display: block; width: 120px; height: 120px; margin: -64px auto 0; filter: drop-shadow(0 6px 10px #7a4a1e33); }
.v3-lp-kicker { width: fit-content; margin: 4px auto 6px; padding: 4px 12px; border-radius: 999px; background: #fff; color: #c25a1d; font-size: 13px; font-weight: 900; box-shadow: 0 2px 8px #c25a1d1f; }
.v3-lp-hero h2 { margin: 0; font-size: 26px; line-height: 1.45; font-weight: 900; }
.v3-lp-story { max-width: 38em; margin: 16px auto 0; text-align: start; font-size: 15px; line-height: 1.8; color: var(--ink-2); }
.v3-lp-story p { margin: 0; }
.v3-lp-story p + p { margin-top: .8em; }
.v3-lp-section { padding: 26px 18px 6px; }
.v3-lp-eyebrow { margin: 0; color: #c25a1d; font-size: 13px; font-weight: 900; text-align: center; letter-spacing: .04em; }
.v3-lp-section > h2 { margin: 4px 0 16px; font-size: 22px; font-weight: 900; text-align: center; }
.v3-lp-acorns { max-width: 620px; margin: 0 auto 28px; padding: clamp(16px, 4vw, 28px); border-radius: 22px; background: #fff5e4; color: #584333; }
.v3-lp-acorns h3 { margin: 4px 0 0; font-size: clamp(20px, 4vw, 26px); line-height: 1.4; text-wrap: balance; }
.v3-lp-lesson-name { margin: 0; color: #79512c; font-size: 13px; font-weight: 800; }
.v3-lp-acorn-art { width: 148px; margin: 8px 0; }
.v3-lp-acorn-art svg { display: block; width: 100%; }
.v3-lp-acorns p:not(.v3-lp-lesson-name) { margin: 12px 0 0; font-size: 15px; line-height: 1.8; }
.v3-lp-family-prompt { padding: 12px 15px; border-radius: 12px; background: #fffdf7; }
.v3-lp-family-prompt b { display: block; color: #426849; }
.v3-learning-facts .v3-learning-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 4px 0 8px; padding: 0; }
.v3-learning-facts .v3-learning-tags > li { display: inline-block; margin: 0; padding: 2px 10px; background: #e6f1e8; border-radius: 999px; color: #315e41; font-size: 13px; font-weight: 750; }
.v3-lp-ways-intro { margin: 0 auto 20px; max-width: 38em; text-align: center; text-wrap: balance; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.v3-lp-ways { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.v3-lp-region { border-radius: 18px; background: #fff; padding: 16px 18px 6px; box-shadow: 0 3px 0 #f0e2cc; }
.v3-lp-region h3 { margin: 0 0 8px; color: #82512a; font-size: 18px; }
.v3-lp-example { border-top: 1px solid #efe2cd; }
.v3-lp-example summary { padding: 12px 0; line-height: 1.5; font-weight: 750; cursor: pointer; }
.v3-lp-example > div { padding-bottom: 16px; }
.v3-lp-example p { margin: 4px 0; line-height: 1.65; }
.v3-lp-example h4, .v3-learning-facts dt { margin: 12px 0 2px; color: #69482e; font-size: .9rem; font-weight: 800; }
.v3-learning-facts { margin: 0; }
.v3-learning-facts dd { margin: 0; line-height: 1.6; }
.v3-lp-way { overflow: hidden; border-radius: 22px; background: #fff; box-shadow: 0 4px 0 #f0e2cc, 0 10px 22px #7a4a1e14; }
.v3-lp-way-pic { position: relative; margin: 0; }
.v3-lp-way-pic .v3-lp-way-scene { display: block; width: 100%; height: auto; aspect-ratio: 16 / 8; object-fit: cover; }
.v3-lp-way-text { padding: 14px 18px 4px; }
.v3-lp-way-from { margin: 0; color: #8a7764; font-size: 12px; font-weight: 800; }
.v3-lp-way h3 { margin: 2px 0 4px; font-size: 21px; font-weight: 900; }
.v3-lp-way-lead { margin: 0; font-size: 15px; font-weight: 700; color: #4d3a2a; }
.v3-lp-more { margin: 10px 18px 16px; border-top: 1px solid #f0e6d8; }
.v3-lp-more summary { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; list-style: none; cursor: pointer; color: #c25a1d; font-size: 14px; font-weight: 900; }
.v3-lp-more summary::-webkit-details-marker { display: none; }
.v3-lp-more summary::after { content: "▾"; font-size: 13px; transition: transform .2s; }
.v3-lp-more[open] summary::after { transform: rotate(180deg); }
.v3-lp-more h4 { margin: 10px 0 4px; font-size: 15px; font-weight: 900; color: #5a3d22; }
.v3-lp-more h4::before { content: ""; display: inline-block; width: 4px; height: 1em; margin-right: 8px; border-radius: 2px; background: #ff8a3d; vertical-align: -2px; }
.v3-lp-more p { margin: 0 0 6px; font-size: 14px; line-height: 1.85; color: #4d3a2a; }
.v3-lp-also { margin-top: 8px !important; padding: 10px 12px; border-radius: 12px; background: #fff6e8; }
.v3-lp-price-inner { max-width: 760px; margin-inline: auto; }
.v3-lp-price-inner > h2 { margin: 0; font-size: clamp(22px, 4vw, 30px); text-align: center; }
.v3-lp-price-lead { max-width: 34em; margin: 8px auto 18px; line-height: 1.7; text-align: center; text-wrap: pretty; }
.v3-lp-price-inner > .v3-btn { display: flex; margin-inline: auto; }
.v3-lp-price { padding-bottom: 8px; background: linear-gradient(180deg, #fff1dc, #fffaf2 60%); }
.v3-lp-price-card { margin: 0 auto 18px; padding: 16px 18px; border-radius: 22px; background: #fff; text-align: center; box-shadow: 0 4px 0 #f0d3a8, 0 10px 22px #c25a1d1a; }
.v3-lp-amount { margin: 0; color: #3b2a1c; } .v3-lp-amount b { font-size: 46px; font-weight: 900; line-height: 1.1; margin: 0 4px; } .v3-lp-amount small { font-size: 14px; font-weight: 800; }
.v3-lp-early { width: fit-content; margin: 8px auto 0; padding: 4px 12px; border-radius: 999px; background: #ff8a3d; color: #fff; font-size: 13px; font-weight: 800; } .v3-lp-early b { font-size: 15px; }
.v3-lp-benefits { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.v3-lp-benefits li { display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: #fff; box-shadow: 0 3px 0 #f0e2cc; }
.v3-lp-benefits b { display: block; font-size: 15px; line-height: 1.5; } .v3-lp-benefits p { margin: 4px 0 0; font-size: 13px; line-height: 1.7; color: var(--ink-2); }
.v3-lp-art { display: grid; place-items: center; height: 64px; }
.v3-lp-art svg { width: 100%; height: 100%; }
.v3-lp-family { display: flex; justify-content: center; align-items: center; }
.v3-lp-face { display: grid; place-items: center; width: 36px; height: 36px; margin-left: -8px; border-radius: 50%; background: var(--c, #eee); border: 2px solid #fff; overflow: hidden; }
.v3-lp-face:first-child { margin-left: 0; }
.v3-lp-face img { width: 34px; height: 34px; object-fit: cover; object-position: center top; }
.v3-lp-face.is-plus { background: #fff; border: 2px dashed #e7a24c; color: #e7a24c; font-weight: 900; }
.v3-lp-cta { min-height: 60px; font-size: 18px; }
.v3-lp-using { margin: 0 0 8px; text-align: center; font-weight: 900; color: #2c7a4f; }
.v3-lp-fine { margin: 12px 0 0; font-size: 12px; color: var(--ink-2); text-align: center; }
.v3-lp-disclosure { margin: 0; text-align: center; }
.v3-lp-disclosure a { display: inline-block; padding: 12px 4px; color: var(--ink-2); font-size: 14px; text-underline-offset: 3px; }
.v3-lp-disclosure small { display: inline-block; }
@media (prefers-reduced-motion: reduce) { .v3-lp-more summary::after { transition: none; } }
@media (max-width: 360px) { .v3-lp-benefits li { grid-template-columns: 84px 1fr; } .v3-lp-hero h2 { font-size: 22px; } }
@media (min-width: 700px) {
  .v3-lp-hero { padding-bottom: 34px; }
  .v3-lp-hero-scenes img { aspect-ratio: 16 / 9; }
  .v3-lp-hero-soda { width: 150px; height: 150px; margin-top: -80px; }
  .v3-lp-hero h2 { font-size: 36px; } .v3-lp-kicker { font-size: 15px; }
  .v3-lp-section { max-width: 980px; margin: 0 auto; padding: 34px 28px 8px; }
  .v3-lp-section > h2 { font-size: 30px; } .v3-lp-eyebrow { font-size: 15px; }
  .v3-lp-ways { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 20px; }
  .v3-lp-way h3 { font-size: 24px; } .v3-lp-way-lead { font-size: 17px; } .v3-lp-more p { font-size: 16px; }
  .v3-lp-price { max-width: none; }
  .v3-lp-benefits b { font-size: 18px; } .v3-lp-benefits p { font-size: 15px; }
}
.v3-lp-way-pic .v3-lp-way-soda { position: absolute; right: 10px; bottom: -14px; width: 84px; height: 84px; filter: drop-shadow(0 4px 6px #7a4a1e33); }
@media (min-width: 700px) { .v3-lp-way-pic .v3-lp-way-soda { width: 104px; height: 104px; } }

.v3-rank-body details { margin-block: 12px; padding: 10px 14px; border-radius: 14px; background: #fffdf7; }
.v3-rank-body summary { padding: 6px 0; font-weight: 700; cursor: pointer; }
.v3-rank-body form { display: grid; gap: 8px; margin: 10px 0; }
.v3-rank-body input, .v3-rank-body select { font: inherit; padding: 8px; border: 1px solid #7e897f; border-radius: 8px; max-width: 100%; }
.v3-rank-body input { display: block; width: 100%; }
.v3-rank-qr svg { width: 132px; height: 132px; }


.v3-paid-step { margin: auto; max-width: min(400px, calc(100% - 32px)); border: 0; color: var(--ink); }
.v3-paid-step::backdrop { background: #302a3175; }
.v3-paid-step .v3-btn { display: flex; width: 100%; }
/* Resume a step left partway (2026-11-07). */
.v3-resume { margin: auto; max-width: min(380px, calc(100% - 32px)); border: 0; color: var(--ink); }
.v3-resume::backdrop { background: #302a3175; }
.v3-resume img { display: block; margin: -4px auto 0; width: 110px; height: auto; }
.v3-resume h2 { margin: 4px 0 8px; font-size: 22px; }
.v3-resume p { margin: 0 0 14px; font-weight: 800; }
.v3-resume-dots { display: flex; justify-content: center; gap: 8px; margin-bottom: 8px !important; }
.v3-resume-dots i { width: 16px; height: 16px; border-radius: 50%; background: #efe4d3; }
.v3-resume-dots i.is-done { background: var(--orange, #f39a4b); }
.v3-resume .v3-btn { display: flex; width: 100%; }

dialog.v3-release {
  width: min(360px, calc(100% - 32px)); max-height: calc(100dvh - 40px);
  margin: auto; padding: 18px 22px 22px; border: 2px solid #eddcc5; color: var(--ink);
}
.v3-release::backdrop { background: #32273970; }
.v3-release > img { display: block; width: min(240px, 100%); height: auto; margin: 0 auto 10px; }
.v3-map [data-stage-gate] { cursor: pointer; }
.v3-map [data-stage-gate] text { font-size: 9px; }

/* Stage finale: a gold sunburst medal and a ribbon for the island's last step. */
.v3-result.is-stage-clear { justify-content:center; background: radial-gradient(ellipse at 50% 12%,#fffefa 0%,#fff3bf 38%,#ffe6b4 64%,#f8c69b 100%); }
.v3-result-sky { position:absolute; inset:0; overflow:hidden; pointer-events:none; }
.v3-stage-medal { position:relative; display:grid; place-items:center; width:clamp(105px,20dvh,200px); aspect-ratio:1; border-radius:50%; border:4px solid #e7b54d; outline:2px solid #fff9de; background:repeating-conic-gradient(#ffe4a0 0 12deg,#fff1bf 12deg 24deg); box-shadow:inset 0 0 0 4px #fff7d5,0 4px 0 #d69b47; }
.v3-stage-medal img { width:90%; height:auto; }
.v3-stage-medal span { position:absolute; inset:0; color:#c78622; font-size:22px; text-align:left; line-height:1; text-shadow:0 1px #fff; }
.v3-stage-medal span::after { content:"✦"; position:absolute; bottom:9%; right:0; color:#f3b237; }
.v3-stage-ribbon { display:inline-block; vertical-align:middle; padding:.2em 1.6em; background:#994423; color:#ffefbc; font-size:.56em; letter-spacing:.1em; text-shadow:none; clip-path:polygon(0 0,100% 0,96% 50%,100% 100%,0 100%,4% 50%); }
@media (min-width:900px) and (orientation:landscape) {
  .v3-stage-medal { grid-column:1; grid-row:1 / 4; width:min(26vw,270px); justify-self:center; }
}
