/* Hallmark · checked: 2026-10-24 · genre: playful (inferred: bedtime stories for kids, parents use it)
 * floor: 0 FAIL · fixed: 11 (4, 7a, 10a, 11, 19, 20, 26a, 33, 39a, 48, 67, 76) · structural: printed in the handoff
 * built: the project · redesign: polish · v2.0.0 */
/* Hallmark · dismissed 29 · liquid glass is the owner's brief for this kasas app; glass sits on a night sky, never on white */
/* Hallmark · dismissed F24 · the glass edge and its shadow are one liquid glass recipe the owner asked for */
/* Kasas Kids: mobile-first liquid-glass UI. Brand tokens: docs/brand/brandbook.md */
:root {
  --night: #1B2340;
  --night-deep: #0E1330;
  --moon: #FBF6EC;
  --paper: #FFFDF8;
  --gold: #F2C14E;
  --gold-deep: #B9780F;
  --blue: #BFE3F7;
  --coral: #F28C6B;
  --ink-soft: #4A4F63;

  --text: var(--moon);
  --text-2: rgba(251, 246, 236, .68);
  --text-3: rgba(251, 246, 236, .45);
  --glass: rgba(255, 255, 255, .075);
  --glass-strong: rgba(255, 255, 255, .13);
  --glass-edge: rgba(255, 255, 255, .16);
  --glass-shine: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -1px 0 rgba(255, 255, 255, .04);
  --shadow: 0 18px 40px rgba(3, 6, 22, .45);
  --r-xl: 30px;
  --r-lg: 22px;
  --r-md: 16px;
  --gutter: 20px;
  --tabs-h: 66px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --spring: cubic-bezier(.32, .72, 0, 1);

  --gold-light: #FFD978;
  --gold-dark: #E5AE33;
  --gold-glow: rgba(242, 193, 78, .35);
  --blue-glow: rgba(191, 227, 247, .25);
  --coral-glow: rgba(242, 140, 107, .25);
  --sky-top: #26306A;
  --glow-blue: #5B7BEA;
  --glass-solid: #232C55;
  --night-clear: rgba(14, 19, 48, 0);
  --cover-empty: #2A3466;
  --star: #FBF6EC;
  --mask: #0E1330;
  --sheen: rgba(255, 255, 255, .6);
  --track: rgba(255, 255, 255, .14);
  --dot: rgba(255, 255, 255, .25);
  --ring-dim: rgba(255, 255, 255, .2);
  --divider: rgba(255, 255, 255, .08);
  --drop: rgba(3, 6, 22, .25);
  --scrim: rgba(14, 19, 48, .7);
  --scrim-soft: rgba(14, 19, 48, .28);
  --tabs-tint: rgba(14, 19, 48, .62);
  --toast-bg: rgba(27, 35, 64, .72);
  --error: #FFB59E;
  --art-cool: #DCEBF7;
  --art-warm: #F6E7C8;
  --focus: #FFD978;
  --wa: #25D366;
  --tg: #2AABEE;
  --font-body: Nunito, -apple-system, system-ui, sans-serif;
  --font-accent: Caveat, cursive;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--night-deep); overflow-x: clip; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--night-deep);
  color: var(--text);
  font: 400 17px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; transition: none; }
::selection { background: var(--gold); color: var(--night); }
input, textarea { caret-color: var(--gold); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico.fill { fill: currentColor; stroke: none; }

/* ---------- Sky ---------- */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, var(--sky-top) 0%, var(--night) 45%, var(--night-deep) 100%); }
.glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.g1 { width: 360px; height: 360px; background: var(--gold); top: -140px; right: -120px; opacity: .32; }
.g2 { width: 420px; height: 420px; background: var(--glow-blue); bottom: 10%; left: -220px; opacity: .35; animation-delay: -6s; }
.g3 { width: 260px; height: 260px; background: var(--coral); bottom: -120px; right: -60px; opacity: .22; animation-delay: -11s; }
@keyframes drift { to { transform: translate3d(30px, 40px, 0) scale(1.1); } }
.stars { position: absolute; inset: 0; opacity: .7;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, var(--star) 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 12%, var(--star) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 38% 42%, var(--star) 50%, transparent 51%),
    radial-gradient(1px 1px at 86% 36%, var(--star) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 22% 70%, var(--star) 50%, transparent 51%),
    radial-gradient(1px 1px at 64% 78%, var(--star) 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 92% 88%, var(--star) 50%, transparent 51%),
    radial-gradient(1px 1px at 48% 8%, var(--star) 50%, transparent 51%);
  animation: twinkle 6s ease-in-out infinite alternate; }
@keyframes twinkle { to { opacity: .35; } }

/* ---------- Liquid glass ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shine), var(--shadow);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
}
@media (prefers-reduced-transparency: reduce) {
  .glass { background: var(--glass-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- App shell (phone column, centred on larger screens) ---------- */
.bar, main, .tabs { max-width: 520px; margin-left: auto; margin-right: auto; }
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--safe-t) + 10px) var(--gutter) 10px;
}
.bar::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(var(--night-deep) 30%, var(--night-clear));
  -webkit-mask: linear-gradient(var(--mask) 60%, transparent); mask: linear-gradient(var(--mask) 60%, transparent); }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 19px; letter-spacing: -.03em; }
.logo b { color: var(--gold); }
.pill { border-radius: 999px; }
.lang { position: relative; display: flex; align-items: center; padding: 0 14px; height: 36px; box-shadow: var(--glass-shine); }
.lang select { appearance: none; -webkit-appearance: none; background: none; border: 0; font-weight: 800; font-size: 14px; padding-right: 14px; cursor: pointer; }
.lang::after { content: ""; position: absolute; right: 13px; top: 15px; width: 6px; height: 6px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); pointer-events: none; opacity: .7; }
.lang option { color: var(--night); }

main { padding: 6px var(--gutter) calc(var(--tabs-h) + var(--safe-b) + 36px); }
.view { display: none; }
.view.on { display: block; animation: enter .45s var(--spring) backwards; }
@keyframes enter { from { opacity: 0; transform: translate3d(0, 14px, 0) scale(.985); } }

.large { font-size: 34px; line-height: 1.08; font-weight: 900; margin: 4px 0 18px; }
.greeting { margin: 8px 0 0; color: var(--text-2); font-weight: 700; font-size: 16px; }
.center { text-align: center; }
h2 { font-size: 22px; }
h3, .h3 { font-size: 19px; }
.section-title { margin: 30px 0 12px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 30px 0 12px; }
.section-head a { color: var(--gold); font-weight: 700; font-size: 15px; }
.foot { color: var(--text-3); font-size: 14px; margin: 10px 4px 0; }
.accent { font-family: var(--font-accent); font-size: 30px; text-align: center; color: var(--gold); margin: 30px 0 0; opacity: .9; }
.credit { margin: 24px 0 0; text-align: center; font-size: 14px; color: var(--text-3); }
.credit b { color: var(--text-2); font-weight: 800; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 54px; padding: 0 26px; border: 0; border-radius: 999px;
  font-weight: 800; font-size: 17px; cursor: pointer; user-select: none;
  transition: transform .35s var(--spring), filter .2s, opacity .2s;
}
.btn:active { transform: scale(.95); }
.btn:disabled { background: var(--track); color: var(--text-3); box-shadow: none; cursor: not-allowed; }
.btn-gold {
  color: var(--night);
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 55%, var(--gold-dark) 100%);
  box-shadow: inset 0 1px 0 var(--sheen), 0 10px 26px var(--gold-glow);
}
.btn-glass { background: var(--glass-strong); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shine); color: var(--text); }
.round { width: 54px; padding: 0; flex: none; }
.grow { flex: 1; }
.wide { display: flex; width: 100%; margin-top: 18px; }

/* ---------- Home ---------- */
.hero { display: block; position: relative; border-radius: var(--r-xl); overflow: hidden; transition: transform .4s var(--spring); }
.hero:active { transform: scale(.98); }
.hero img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 72% center;
  -webkit-mask: linear-gradient(var(--mask) 70%, transparent); mask: linear-gradient(var(--mask) 70%, transparent); }
.hero-copy { position: relative; margin-top: -48px; padding: 0 20px 20px; }
.hero-copy p { margin: 0 0 16px; font-size: 16px; line-height: 1.45; color: var(--text-2); }
.hero-copy .btn { width: 100%; }
.hero-copy small { display: block; text-align: center; margin-top: 10px; color: var(--text-2); font-size: 13px; }

.rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 18px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: none; }
.tile { width: 76%; max-width: 300px; border-radius: var(--r-lg); padding: 18px; }
.tile img { width: 76px; height: 76px; border-radius: 20px; margin-bottom: 10px; }
.tile b { display: block; font-size: 17px; margin-bottom: 4px; }
.tile p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.45; }

/* ---------- Story covers (home rail + library) ---------- */
.cover { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--cover-empty); transition: transform .35s var(--spring); }
.cover:active { transform: scale(.96); }
.cover img, .cover .ph { width: 100%; height: 100%; object-fit: cover; }
.cover .ph { background: linear-gradient(135deg, var(--cover-empty), var(--night)); }
.cover .label { position: absolute; left: 8px; right: 8px; bottom: 8px; border-radius: 16px; padding: 10px 12px; }
.cover .label span { display: block; font-weight: 800; font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cover .label small { color: var(--text-2); font-size: 12px; }
#recent .cover { width: 46%; max-width: 200px; }
.shelf { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.empty { text-align: center; padding: 40px 10px; color: var(--text-2); }
.empty img { margin: 0 auto 12px; border-radius: 40px; }

/* ---------- Wizard ---------- */
.wiz-top { display: flex; align-items: center; gap: 12px; margin: 4px 0 18px; }
.meter { flex: 1; height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; }
.meter i { display: block; height: 100%; width: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--gold-light), var(--gold)); transform: scaleX(.25); transform-origin: left; transition: transform .5s var(--spring); }
.step-count { font-weight: 800; font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.pane { border: 0; margin: 0; padding: 0; min-width: 0; display: none; }
.pane.on { display: block; animation: enter .45s var(--spring) backwards; }
legend { padding: 0; }
.group { border-radius: var(--r-lg); padding: 4px 4px 4px 16px; }
.row { display: block; padding: 10px 0 4px; }
.row-label { display: block; font-size: 13px; font-weight: 700; color: var(--text-2); }
.group-label { margin: 24px 4px 8px; font-size: 15px; font-weight: 700; color: var(--text-2); }
input:not([type]), input[type=text], textarea {
  width: 100%; border: 0; background: none; outline: none; resize: none;
  font-size: 19px; font-weight: 600; padding: 8px 56px 8px 0; color: var(--text);
}
textarea { font-size: 17px; font-weight: 400; line-height: 1.45; padding-top: 12px; }
::placeholder { color: var(--text-3); font-weight: 400; }
.with-mic { position: relative; }
.mic {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231B2340'%3E%3Cpath d='M12 14a3 3 0 0 0 3-3V5a3 3 0 0 0-6 0v6a3 3 0 0 0 3 3zm5-3a5 5 0 0 1-10 0H5a7 7 0 0 0 6 6.92V21h2v-3.08A7 7 0 0 0 19 11z'/%3E%3C/svg%3E") center / 22px no-repeat;
  box-shadow: inset 0 1px 0 var(--sheen), 0 6px 16px var(--blue-glow);
  transition: transform .3s var(--spring);
}
.mic:active { transform: translateY(-50%) scale(.9); }
.mic.rec { background-color: var(--coral); animation: rec 1.2s ease-in-out infinite; }
.mic.busy { opacity: .55; animation: rec 1.6s ease-in-out infinite; }
@keyframes rec { 50% { box-shadow: 0 0 0 10px var(--coral-glow); } }

.ages { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 46px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--glass-edge); background: var(--glass); color: var(--text);
  box-shadow: var(--glass-shine); font-weight: 700; font-size: 15px;
  transition: transform .3s var(--spring), background .2s, color .2s;
}
.chip:active { transform: scale(.93); }
.chip.on { background: var(--gold); border-color: transparent; color: var(--night); box-shadow: inset 0 1px 0 var(--sheen), 0 8px 20px var(--gold-glow); }
.ages .chip { padding: 0; aspect-ratio: 1; min-height: 0; font-size: 17px; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 999px; box-shadow: var(--glass-shine); }
.seg .chip { flex: 1; min-height: 42px; padding: 0 8px; border: 0; background: none; box-shadow: none; font-size: 14px; }
.seg .chip.on { background: var(--moon); color: var(--night); box-shadow: 0 4px 14px var(--drop); }

.photos { display: flex; gap: 10px; }
.photo, .photo-add { position: relative; width: 96px; height: 96px; border-radius: 24px; overflow: hidden; flex: none; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo button { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--scrim); color: var(--star); font-size: 18px; line-height: 1; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.photo-add { display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-2); box-shadow: var(--glass-shine); }
.photo-add .ico { width: 30px; height: 30px; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 14px 16px; border-radius: var(--r-md); font-size: 14px; color: var(--text-2); box-shadow: var(--glass-shine); }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--gold); flex: none; }
.summary { margin: 22px 0 0; padding: 14px 16px; border-radius: var(--r-md); color: var(--text-2); font-size: 15px; box-shadow: var(--glass-shine); }
.summary:empty { display: none; }
.error { color: var(--error); font-weight: 700; font-size: 15px; min-height: 1.3em; margin: 14px 4px 0; }
.dock {
  position: fixed; z-index: 25; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--safe-b) + 12px); width: calc(100% - 24px); max-width: 496px;
  display: none; gap: 10px; padding: 8px; border-radius: 999px;
}
body[data-view="create"] .dock { display: flex; }
body[data-view="create"] .tabs, body[data-view="progress"] .tabs { display: none; }

/* ---------- Progress ---------- */
.progress { padding-top: 10px; }
.orb { position: relative; width: 190px; height: 190px; margin: 10px auto 22px; border-radius: 50%; display: grid; place-items: center; }
.orb::before { content: ""; position: absolute; inset: -6px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--gold), var(--blue), var(--coral), var(--gold)); filter: blur(14px); opacity: .7; animation: spin 4s linear infinite; }
.orb img { position: relative; width: 170px; height: 170px; border-radius: 50%; object-fit: cover; animation: float 3.2s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-8px); } }
.stages { list-style: none; margin: 0; padding: 8px 18px; border-radius: var(--r-lg); }
.stages li { position: relative; padding: 14px 0 14px 40px; color: var(--text-3); font-weight: 700; }
.stages li + li { border-top: 1px solid var(--divider); }
.stages li::before { content: ""; position: absolute; left: 0; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; border: 2px solid var(--ring-dim); }
.stages li.now { color: var(--text); }
.stages li.now::before { border-color: var(--gold); border-right-color: transparent; animation: spin .9s linear infinite; }
.stages li.done { color: var(--text-2); }
.stages li.done::before { border: 0; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B2340' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 16px no-repeat; }

/* ---------- Reader ---------- */
.book .large { font-size: 28px; }
.page { border-radius: var(--r-xl); overflow: hidden; background: var(--paper); color: var(--night); box-shadow: var(--shadow); touch-action: pan-y; }
.page.turn { animation: turn .45s var(--spring); }
.page.turn-back { animation: turn-back .45s var(--spring); }
@keyframes turn { from { opacity: .2; transform: translate3d(28px, 0, 0); } }
@keyframes turn-back { from { opacity: .2; transform: translate3d(-28px, 0, 0); } }
.art { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--art-cool), var(--art-warm)); }
.art img { width: 100%; height: 100%; object-fit: cover; }
.art img:not([src]) { visibility: hidden; }
.nav-btn { position: absolute; top: 50%; margin-top: -22px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--star); background: var(--scrim-soft); box-shadow: var(--glass-shine); }
.nav-btn.left { left: 10px; } .nav-btn.right { right: 10px; }
.nav-btn:disabled { visibility: hidden; }
#page-text { margin: 0; padding: 20px 22px 24px; font-size: 20px; line-height: 1.6; font-weight: 600; }
.page-dots { display: flex; justify-content: center; gap: 6px; margin: 14px 0 18px; }
.page-dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--dot); transition: transform .4s var(--spring), background-color .3s; }
.page-dots i.on { transform: scaleX(2.5); margin: 0 6px; background: var(--gold); }

.player { display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 999px; margin-bottom: 14px; }
.play { width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: var(--night);
  background: linear-gradient(180deg, var(--gold-light), var(--gold)); box-shadow: inset 0 1px 0 var(--sheen), 0 8px 20px var(--gold-glow); transition: transform .3s var(--spring); }
.play:active { transform: scale(.9); }
.play .ico { width: 24px; height: 24px; }
.play .i-pause, .player.playing .i-play { display: none; }
.player.playing .i-pause { display: block; }
.track { flex: 1; min-width: 0; }
.track b { display: block; font-size: 14px; margin-bottom: 6px; }
.bar-line { height: 4px; border-radius: 2px; background: var(--track); overflow: hidden; }
.bar-line i { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 2px; }
.time { font-size: 13px; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }

.card { border-radius: var(--r-lg); padding: 18px; margin-bottom: 14px; }
.questions ol { margin: 10px 0 0; padding-left: 22px; color: var(--text-2); }
.questions li + li { margin-top: 6px; }
#cartoon-cta { display: flex; gap: 16px; align-items: center; }
#cartoon-cta img { border-radius: 22px; flex: none; }
#cartoon-cta p { margin: 4px 0 12px; color: var(--text-2); font-size: 14px; }
#cartoon-cta .btn { min-height: 46px; padding: 0 20px; font-size: 15px; }
.share h3.share-sub { margin: 20px 0 8px; font-size: 15px; color: var(--text-2); }
.share-hint { margin: 4px 0 14px; color: var(--text-2); font-size: 14px; }
.wide-btn { width: 100%; margin-top: 4px; }
#send-video { margin-top: 12px; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pill-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--glass-edge); background: var(--glass); box-shadow: var(--glass-shine); color: var(--text);
  font-weight: 700; font-size: 15px; transition: transform .3s var(--spring);
}
.pill-btn:active { transform: scale(.94); }
.pill-btn .ico { width: 20px; height: 20px; }
.pill-btn.wa .ico { color: var(--wa); }
.pill-btn.tg .ico { color: var(--tg); }
.shared-banner { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.shared-banner img { border-radius: 16px; flex: none; }
.shared-banner b { display: block; font-size: 16px; }
.shared-banner small { display: block; color: var(--text-2); font-size: 14px; line-height: 1.4; }
.cartoon video { width: 100%; border-radius: var(--r-md); background: var(--mask); }

/* ---------- Tab bar ---------- */
.tabs {
  position: fixed; z-index: 30; left: 0; right: 0; bottom: calc(var(--safe-b) + 12px);
  width: calc(100% - 48px); max-width: 360px; height: var(--tabs-h);
  display: flex; align-items: center; justify-content: space-around; border-radius: 999px; padding: 0 8px;
  background: var(--tabs-tint);
}
.tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 72px; color: var(--text-3); font-size: 11px; font-weight: 800; transition: color .2s, transform .3s var(--spring); }
.tabs a:active { transform: scale(.9); }
.tabs a.on { color: var(--gold); }
.tabs .tab-main { min-width: 0; width: 56px; height: 56px; border-radius: 50%; justify-content: center; color: var(--night);
  background: linear-gradient(180deg, var(--gold-light), var(--gold)); box-shadow: inset 0 1px 0 var(--sheen), 0 10px 24px var(--gold-glow); }
.tabs .tab-main .ico { width: 26px; height: 26px; stroke-width: 2.6; }

.bar-actions { display: flex; align-items: center; gap: 8px; }
.account { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; font-weight: 800; font-size: 14px; cursor: pointer; color: var(--text); box-shadow: var(--glass-shine); }
.account .ico { width: 18px; height: 18px; }
.account span { max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet { width: min(480px, calc(100% - 24px)); margin: auto auto calc(var(--safe-b) + 12px); padding: 24px 20px 20px; border-radius: var(--r-xl); color: var(--text); background: var(--toast-bg); }
.sheet::backdrop { background: var(--scrim); }
.sheet[open] { animation: drop .45s var(--spring); }
.sheet-close { position: absolute; top: 12px; right: 12px; margin: 0; }
.sheet-close .pill-btn { min-height: 36px; padding: 0 8px; }
.sheet-list { margin: 12px 0 16px; padding-left: 20px; color: var(--text-2); }
.sheet-list li + li { margin-top: 6px; }
.methods { display: grid; gap: 10px; }
.google-slot { min-height: 44px; display: flex; justify-content: center; }
.method summary { list-style: none; width: 100%; justify-content: center; }
.method summary::-webkit-details-marker { display: none; }
.method[open] summary { border-color: var(--gold); }
.method-tg { width: 100%; justify-content: center; margin-top: 10px; }
.method-tg .ico { color: var(--tg); }
.method-form { display: grid; gap: 10px; margin-top: 10px; }
.method-form input { padding: 12px 16px; border-radius: 16px; border: 1px solid var(--glass-edge); background: var(--glass); font-size: 18px; }
.method-form .share-row { margin-top: 0; }
.method-form .share-row .pill-btn { flex: 1; justify-content: center; }
.plan-reason { margin: 6px 0 0; color: var(--text-2); }
.plan-price { margin: 4px 0 14px; font-size: 22px; font-weight: 900; }
.link-btn { margin-top: 16px; padding: 8px 0; border: 0; background: none; color: var(--text-3); font-size: 14px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.toast {
  position: fixed; z-index: 40; left: 50%; top: calc(var(--safe-t) + 12px); transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 22px;
  font-weight: 700; font-size: 15px; text-align: center; background: var(--toast-bg);
  animation: drop .5s var(--spring);
}
@keyframes drop { from { opacity: 0; transform: translate(-50%, -20px) scale(.9); } }

/* Larger screens: same app, a bit more air */
@media (min-width: 700px) {
  :root { --gutter: 28px; }
  .large { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }
