/* Verse Vanish · Charlen Kids Universe — bright storybook theme. Offline fonts: system stacks only. */
:root {
  --ink: #2A1F5E; --ink-soft: #5A4E8A; --muted: #7A7099;
  --purple: #7C5CD6; --purple-deep: #5B3FB5; --purple-soft: #EDE7FF;
  --teal: #2FB8A8; --teal-deep: #1F8F82; --teal-soft: #DDF6F2;
  --coral: #E8A81E; --coral-deep: #C98E12; --sun: #FFC94A; --sun-deep: #E8A81E; --gold: #E4B23C; --gold-deep: #B8891A;
  --ivory: #FFFBF2; --card: #FFFFFF; --line: #E6DFF7; --ok: #1F8F82; --bad: #6B5FA8;
  --display: "Arial Rounded MT Bold", "Helvetica Rounded", "Avenir Next Rounded", "Avenir Next", "Segoe UI", "Trebuchet MS", system-ui, sans-serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --shadow: 0 14px 40px rgba(60, 40, 120, .16);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--sans); color: var(--ink); background: linear-gradient(180deg, #E7E2FF 0%, #F6EDFF 45%, #FFEBD8 100%); min-height: 100vh; padding-inline: 16px; padding-block: 78px 28px; position: relative; overflow-x: hidden; line-height: 1.4; font-size: 17px; }
body.dialog-open { overflow: hidden; }

/* scene: a bright courtyard behind the content, still except slow twinkles and gentle flags */
.scene { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: #DCEBFF url(assets/art/castle-courtyard.jpg?v=2) center bottom / cover no-repeat; }
.scene-svg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; display: none; }
.scene.drawn { background-image: none; } .scene.drawn .scene-svg { display: block; }
.scene .twinkles path { animation: twinkle 5s ease-in-out infinite alternate; transform-origin: center; }
.scene .twinkles path:nth-child(2) { animation-delay: 1.2s; } .scene .twinkles path:nth-child(3) { animation-delay: 2.4s; } .scene .twinkles path:nth-child(4) { animation-delay: .6s; } .scene .twinkles path:nth-child(5) { animation-delay: 3s; }
@keyframes twinkle { from { opacity: .45; } to { opacity: 1; } }
.scene .flag { transform-origin: left center; animation: wave 4s ease-in-out infinite; }
@keyframes wave { 0%, 100% { transform: skewY(0deg); } 50% { transform: skewY(-6deg); } }
body.reading .scene .flag, body.reading .scene .twinkles path { animation: none; }
body.reading .scene { opacity: .55; }

.wrap { max-width: 900px; margin: 0 auto; min-width: 0; }
.screen { animation: fadeIn .25s ease both; min-width: 0; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.h { font-family: var(--display); font-size: clamp(1.6rem, 4.5vw, 2.2rem); margin: 4px 0 12px; text-align: center; color: var(--ink); outline: none; }
.sub { font-family: var(--display); font-size: 1.15rem; color: var(--purple-deep); margin: 16px 0 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sub .count { font-family: var(--sans); font-size: .85rem; color: var(--muted); font-weight: 700; }
.lead { font-size: 1.2rem; color: var(--ink-soft); text-align: center; margin: 4px 0 12px; }
.lead.small { font-size: 1rem; }
.lead.left { text-align: left; }
.center { text-align: center; }
.tiny { font-size: .82rem; color: var(--muted); margin: 8px 0 0; }
.hint { font-size: .95rem; color: var(--muted); margin: 6px 0 0; min-height: 1.2em; }
.hint.err { color: var(--bad); font-weight: 700; }
.hint.ok { color: var(--ok); }
.lbl { font-weight: 800; margin: 12px 0 6px; font-size: .95rem; color: var(--purple-deep); }
p { margin: 6px 0; }
:focus-visible { outline: 4px solid var(--purple); outline-offset: 3px; border-radius: 12px; }
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -.12em; flex: 0 0 auto; }
svg.crest { width: 60px; height: 46px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
[inert] { pointer-events: none; }

/* buttons */
button, input, textarea, select { font-family: inherit; }
button { cursor: pointer; border: none; border-radius: 18px; font-weight: 800; min-height: 50px; min-width: 44px; padding: 10px 18px; font-size: 1.05rem; color: var(--ink); transition: transform .08s ease, filter .15s ease, box-shadow .15s ease; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
button:active:not(:disabled) { transform: translateY(1px) scale(.985); }
button:disabled { opacity: .45; cursor: not-allowed; }
.btn-play { font-family: var(--display); color: #fff; background: linear-gradient(180deg, #FFDE8A 0%, #FFC94A 50%, #E8A81E 100%); border-radius: 24px; min-height: 64px; font-size: 1.35rem; padding: 14px 32px; width: 100%; letter-spacing: .02em; box-shadow: 0 5px 0 #B8891A, 0 12px 26px rgba(232,168,30,.28), inset 0 2px 0 rgba(255,255,255,.6); text-shadow: 0 1px 0 rgba(255,255,255,.5); }
.btn-play:hover:not(:disabled) { filter: brightness(1.05); }
.btn-play:focus-visible { outline-color: var(--ink); }
.btn-second { font-family: var(--display); color: #fff; background: linear-gradient(180deg, #9A80E6, #7C5CD6 60%, #6A4AC8); border-radius: 20px; min-height: 56px; font-size: 1.1rem; padding: 12px 22px; box-shadow: 0 4px 0 #4B32A0, 0 10px 22px rgba(124,92,214,.28), inset 0 2px 0 rgba(255,255,255,.35); }
.btn-second.ok { background: linear-gradient(180deg, #5FD3C4, #2FB8A8 60%, #1F8F82); box-shadow: 0 4px 0 #166F66, 0 10px 22px rgba(47,184,168,.28), inset 0 2px 0 rgba(255,255,255,.35); }
.btn-ghost { background: #fff; color: var(--purple-deep); border: 2px solid var(--purple); border-radius: 18px; min-height: 50px; font-size: 1rem; box-shadow: 0 3px 0 rgba(124,92,214,.25); }
.btn-ghost:hover:not(:disabled) { background: var(--purple-soft); }
.btn-quiet { background: transparent; color: var(--ink-soft); border: 2px solid var(--line); border-radius: 16px; min-height: 46px; font-size: .95rem; font-weight: 700; }
.btn-quiet:hover:not(:disabled) { background: #fff; }
.btn-link { background: none; color: var(--purple-deep); text-decoration: underline; min-height: 44px; padding: 4px 8px; font-weight: 700; font-size: .95rem; }
.btn-small { min-height: 42px; padding: 6px 12px; font-size: .92rem; border-radius: 12px; }
.link-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; padding: 10px 18px; font-weight: 800; }

/* app bar: Home, Back, title, music */
.appbar { position: fixed; top: 0; left: 0; right: 0; z-index: 90; height: 62px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 0 10px; background: rgba(255,255,255,.86); border-bottom: 2px solid var(--line); box-shadow: 0 6px 20px rgba(60,40,120,.1); backdrop-filter: blur(8px); }
.nav-left, .nav-right { display: flex; align-items: center; gap: 6px; }
.nav-right { position: relative; justify-content: flex-end; }
.nav-btn { background: var(--purple-soft); color: var(--purple-deep); border-radius: 14px; min-height: 46px; padding: 6px 14px; font-size: 1rem; font-weight: 800; border: 2px solid transparent; }
.nav-btn:hover { border-color: var(--purple); }
.nav-title { text-align: center; font-family: var(--display); font-size: 1.1rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mb-switch { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 12px 4px 6px; border-radius: 999px; background: #fff; color: var(--muted); font-size: .9rem; font-weight: 800; border: 2px solid var(--line); white-space: nowrap; }
.mb-switch .knob { width: 34px; height: 20px; border-radius: 999px; background: #D9D2F0; position: relative; transition: background .2s; flex: 0 0 auto; }
.mb-switch .knob::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.mb-switch.on { background: var(--teal-soft); color: var(--teal-deep); border-color: var(--teal); }
.mb-switch.on .knob { background: var(--teal); }
.mb-switch.on .knob::after { transform: translateX(14px); }
.mb-btn { min-height: 44px; min-width: 44px; padding: 6px; border-radius: 50%; background: #fff; color: var(--purple-deep); font-size: 1.1rem; border: 2px solid var(--line); }
.mb-btn.muted { background: #F1EEFA; color: var(--purple-deep); border-color: var(--purple); }
.mb-pop { position: absolute; top: 54px; right: 0; background: #fff; color: var(--ink); border: 2px solid var(--line); border-radius: 16px; padding: 12px 14px; width: min(260px, calc(100vw - 32px)); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; text-align: left; }
.mb-pop .mb-title { font-weight: 800; color: var(--purple-deep); }
.mb-pop label { font-weight: 800; font-size: .9rem; display: flex; flex-direction: column; gap: 4px; }
.mb-pop label.chk { flex-direction: row; align-items: center; min-height: 40px; }
.mb-pop input[type=range] { width: 100%; accent-color: var(--purple); }
.mb-pop input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--purple); }
@media (max-width: 640px) { .mb-switch span:last-child { display: none; } .mb-switch { padding: 4px 8px; } .nav-btn span { font-size: .95rem; } .nav-title { font-size: 1rem; } }
@media (max-width: 420px) { .nav-btn { padding: 6px 10px; } .appbar { gap: 4px; padding: 0 6px; } }

/* home */
.hero { text-align: center; padding: 4px 0 2px; }
.brand-label { font-family: var(--display); font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; color: var(--purple-deep); margin: 0; }
.title { font-family: var(--display); font-size: clamp(2.4rem, 7vw, 3.6rem); margin: 2px 0 0; line-height: 1.05; color: var(--purple-deep); text-shadow: 0 3px 0 #fff, 0 8px 22px rgba(124,92,214,.25); outline: none; }
.subtitle { font-size: clamp(1.1rem, 2.6vw, 1.35rem); color: var(--ink-soft); margin: 4px 0 0; font-weight: 700; }
.owl-hello { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 12px auto 0; max-width: 620px; }
.owl-big { width: 96px; height: 96px; flex: 0 0 auto; filter: drop-shadow(0 8px 14px rgba(60,40,120,.25)); animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.bubble { position: relative; background: #fff; color: var(--ink); border-radius: 18px; padding: 10px 16px; font-weight: 700; font-size: 1.1rem; border: 2px solid var(--line); box-shadow: var(--shadow); min-height: 46px; display: flex; align-items: center; min-width: 0; flex: 1 1 auto; }
.bubble::before { content: ""; position: absolute; left: -12px; bottom: 16px; border: 8px solid transparent; border-right-color: #fff; filter: drop-shadow(-2px 0 0 var(--line)); }
.big-bubble { font-size: 1.15rem; display: block; line-height: 1.35; }
.big-bubble strong { color: var(--purple-deep); font-family: var(--display); font-size: 1.25rem; }
.steps { list-style: none; padding: 0; margin: 14px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 760px; }
.steps li { background: var(--ivory); border: 2px solid var(--line); border-radius: 18px; padding: 10px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-weight: 700; font-size: 1rem; color: var(--ink); }
.steps li b { color: var(--coral-deep); }
.step-ic { width: 52px; height: 52px; }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; gap: 8px; } .steps li { flex-direction: row; text-align: left; padding: 8px 12px; } .step-ic { width: 40px; height: 40px; } }
.cta { max-width: 520px; margin: 16px auto 0; }
.cta .btn-play { min-height: 72px; font-size: 1.55rem; }
.secondary { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 12px auto 0; max-width: 760px; }
.secondary .btn-second { flex: 1 1 200px; }
.note-float { position: relative; }
.note-float::after { content: "♪"; position: absolute; right: 10px; top: -8px; color: var(--purple); font-weight: 900; font-size: 1.1rem; animation: floatNote 3.6s ease-in-out infinite; pointer-events: none; }
@keyframes floatNote { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-8px); opacity: 1; } }
.parent-area { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.credit { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 16px; display: flex; flex-direction: column; gap: 2px; }
.note { background: var(--teal-soft); border: 2px solid var(--teal); border-radius: 16px; padding: 12px 14px; margin: 12px auto 0; max-width: 620px; font-size: .95rem; }
.note button { margin-top: 6px; }
@media (max-width: 600px) { .secondary { flex-direction: column; } .cta .btn-play { min-height: 68px; font-size: 1.4rem; } .owl-big { width: 76px; height: 76px; } }

/* panels, cards, chips */
.panel { background: rgba(255,255,255,.92); border: 2px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 16px 18px; margin-top: 6px; min-width: 0; }
.panel .sub:first-of-type { margin-top: 4px; }
.pill { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 5px 12px; font-size: .9rem; font-weight: 800; background: #fff; border: 2px solid var(--line); color: var(--ink-soft); white-space: nowrap; }
.pill.pending { background: #FFF2CC; color: #7A5A0E; border-color: var(--sun); }
.pill.approved { background: var(--teal-soft); color: var(--teal-deep); border-color: var(--teal); }
.pill.declined { background: #F1EEFA; color: #6B5FA8; border-color: #C9BFF0; }
.pill.delivered { background: var(--purple-soft); color: var(--purple-deep); }
.saved { font-size: .85rem; color: var(--ok); font-weight: 800; margin-left: 6px; }
.statusrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; min-width: 0; }
.statusrow .state { display: flex; gap: 6px; flex-wrap: wrap; }
.actions { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; min-width: 0; }
.actions.row { flex-direction: row; flex-wrap: wrap; }
.actions.row .btn-play { flex: 1 1 220px; width: auto; }
.actions.row .btn-ghost { flex: 0 0 auto; min-height: 64px; }
.actions.row .btn-second { flex: 1 1 160px; }
.actions.sticky { position: sticky; bottom: 10px; z-index: 5; }
.actions.sticky .btn-play { box-shadow: 0 5px 0 #B8891A, 0 12px 26px rgba(232,168,30,.28), 0 -8px 24px rgba(255,255,255,.9); }
.menu { display: flex; flex-direction: column; gap: 10px; max-width: 520px; margin: 14px auto 0; }
.exit { text-align: center; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 4px; font-weight: 800; min-width: 0; max-width: 100%; }
.chip .av { width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto; }
.chip .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 8px; }
.chips button { background: #fff; border: 2px solid var(--line); border-radius: 999px; min-height: 46px; padding: 6px 14px; font-size: 1rem; max-width: 100%; }
.chips button.on { background: var(--purple); color: #fff; border-color: var(--purple-deep); }
.chips button .av { width: 28px; height: 28px; border-radius: 50%; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 6px 0; }
.seg button { flex: 1 1 160px; background: #fff; border: 2px solid var(--line); border-radius: 16px; min-height: 52px; font-size: 1.02rem; max-width: 100%; }
.seg button.on { background: var(--purple); color: #fff; border-color: var(--purple-deep); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.card { background: #fff; border: 2px solid var(--line); border-radius: 22px; padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-height: 140px; color: var(--ink); font-weight: 600; box-shadow: var(--shadow); min-width: 0; }
.card:hover { border-color: var(--purple); }
.card.on { border-color: var(--purple); box-shadow: 0 0 0 4px var(--purple-soft), var(--shadow); }
.card strong { font-family: var(--display); font-size: 1.25rem; color: var(--purple-deep); }
.card span { font-size: .95rem; color: var(--muted); }
.card-ill { width: 120px; height: 80px; }
.verses { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; padding: 4px; min-width: 0; }
.verses.all { max-height: 320px; overflow: auto; border-radius: 16px; margin-top: 8px; border: 2px solid var(--line); padding: 8px; background: rgba(255,255,255,.6); }
.verse-card { text-align: left; align-items: flex-start; min-height: 0; padding: 12px 14px; gap: 4px; }
.verse-card .vt { font-size: .95rem; color: var(--ink); font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.verse-card .vr { font-family: var(--display); color: var(--purple-deep); font-size: 1.05rem; }
.verse-card .lvl { font-size: .78rem; color: var(--muted); }
.selected { background: var(--ivory); border: 2px solid var(--sun); border-radius: 16px; padding: 10px 14px; margin-top: 12px; }
.selected .vr { font-family: var(--display); color: var(--purple-deep); font-size: 1.1rem; }
.selected .avail { font-weight: 800; color: var(--teal-deep); margin-top: 4px; font-size: .95rem; }
.scoreline { text-align: center; font-weight: 800; color: var(--ink-soft); margin: 10px 0 2px; }
details.starsHow { background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 6px 12px; font-size: .95rem; }
details.starsHow summary { cursor: pointer; font-weight: 800; color: var(--purple-deep); min-height: 40px; display: flex; align-items: center; }
details.starsHow ul { margin: 4px 0 6px; padding-left: 20px; }

/* players */
.roster { display: flex; flex-wrap: wrap; gap: 8px; min-height: 52px; }
.roster .chip { padding-right: 4px; }
.roster .chip .x { background: var(--purple-soft); color: var(--purple-deep); border-radius: 50%; min-height: 44px; min-width: 44px; padding: 0; font-size: 1rem; }
.roster .chip .ord { background: var(--sun); color: var(--ink); border-radius: 50%; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; flex: 0 0 auto; }
.roster .empty, .profiles .empty { color: var(--muted); font-size: .95rem; align-self: center; }
.profiles { display: flex; flex-wrap: wrap; gap: 8px; }
.profiles .prof { display: inline-flex; align-items: center; border-radius: 999px; background: #fff; border: 2px solid var(--line); max-width: 100%; }
.profiles .prof.on { background: var(--teal-soft); border-color: var(--teal); }
.profiles .prof .pick { background: none; border: none; min-height: 46px; padding: 4px 8px 4px 4px; gap: 8px; max-width: 100%; }
.profiles .prof .pick .av { width: 36px; height: 36px; border-radius: 50%; }
.profiles .prof .pick .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 12ch; }
.profiles .prof .edit { background: none; border: none; min-height: 44px; min-width: 44px; padding: 0; border-left: 2px solid var(--line); border-radius: 0 999px 999px 0; color: var(--purple-deep); font-size: 1rem; }
.addflow { display: flex; flex-direction: column; gap: 4px; }
.addflow input, .editpanel input { width: 100%; }
.preview { display: flex; align-items: center; gap: 10px; min-height: 52px; margin: 8px 0 4px; font-weight: 800; color: var(--purple-deep); }
.preview .av { width: 44px; height: 44px; }
.editpanel { background: var(--purple-soft); border: 2px solid var(--line); border-radius: 16px; padding: 10px 12px; margin-top: 8px; }
input[type=text], input[type=number], input[type=email], textarea, select { width: 100%; min-width: 0; font-size: 1.05rem; padding: 10px 13px; border-radius: 14px; border: 2px solid var(--line); background: #fff; color: var(--ink); }
input::placeholder, textarea::placeholder { color: #A79FC6; }
input:focus, textarea:focus, select:focus { border-color: var(--purple); outline: none; box-shadow: 0 0 0 4px var(--purple-soft); }
.avatars { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.avatars button { width: 64px; height: 64px; min-height: 0; padding: 4px; border-radius: 50%; background: #fff; border: 3px solid transparent; }
.avatars button.on { border-color: var(--purple); box-shadow: 0 0 0 4px var(--purple-soft); }
.avatars .av { width: 100%; height: 100%; }
.av { border-radius: 50%; }

/* book: still while reading or answering */
.book { position: relative; background: linear-gradient(180deg, #FFFDF7 0%, var(--ivory) 100%); border-radius: 22px; border: 3px solid var(--sun); box-shadow: 0 0 0 4px #fff, var(--shadow); padding: clamp(18px, 3.5vw, 34px) clamp(16px, 4vw, 44px); min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; margin: 8px 0; min-width: 0; }
.book.final { border-color: var(--purple); box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--purple-soft), var(--shadow); }
.ribbon { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); background: var(--purple); color: #fff; font-family: var(--display); font-size: 1rem; padding: 5px 18px; border-radius: 999px; box-shadow: 0 6px 16px rgba(60,40,120,.25); white-space: nowrap; }
.progress-tag { position: absolute; top: 8px; right: 12px; font-size: .85rem; font-weight: 800; color: var(--purple-deep); background: var(--purple-soft); border-radius: 999px; padding: 2px 10px; }
.verse { font-family: var(--sans); font-weight: 800; color: var(--ink); font-size: clamp(1.5rem, 3.4vw, 2.3rem); line-height: 1.6; text-align: center; word-spacing: .12em; max-width: 24em; overflow-wrap: anywhere; }
.ref { color: var(--muted); font-size: 1rem; font-weight: 700; text-align: center; }
.w { display: inline-block; white-space: nowrap; }
.blank { display: inline-block; position: relative; min-width: 1.2ch; border-radius: 6px; background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-deep)) no-repeat left 88% / 100% .13em; }
.blank .ghost { color: transparent; user-select: none; }
.blank.current { background-color: #FFF2CC; outline: 3px solid var(--sun-deep); outline-offset: 2px; }
/* the vanish: letters lift and fade one after another with a soft gold glow; only then does the box form and the underline draw */
.blank.dissolve { background-size: 0% .13em; animation: underlineIn .45s ease-out .85s both; }
.blank.dissolve .ghost { color: var(--ink); }
.blank.dissolve .ghost i { display: inline-block; font-style: normal; animation: letterAway .7s cubic-bezier(.4,0,.6,1) both; animation-delay: calc(var(--k) * 45ms); }
@keyframes letterAway { 0% { opacity: 1; transform: translateY(0); filter: blur(0); color: var(--ink); text-shadow: none; } 35% { color: #E4B23C; text-shadow: 0 0 12px rgba(255,201,74,.85); } 100% { opacity: 0; transform: translateY(-16px) scale(.92); filter: blur(3px); color: #FFC94A; text-shadow: none; } }
.blank.dissolve.current { background-color: transparent; outline-color: transparent; animation: underlineIn .45s ease-out .85s both, boxIn .5s ease-out .9s both; }
@keyframes boxIn { from { background-color: transparent; outline-color: transparent; } to { background-color: #FFF2CC; outline-color: var(--sun-deep); } }
@media (prefers-reduced-motion: reduce) { .blank.dissolve .ghost i { animation: none; opacity: 0; } .blank.dissolve, .blank.dissolve.current { animation: none; background-size: 100% .13em; background-color: #FFF2CC; outline-color: var(--sun-deep); } }
@keyframes underlineIn { from { background-size: 0% .13em; } to { background-size: 100% .13em; } }
.w.solved { color: var(--ok); }
.w.fadein { animation: fadein .5s ease both; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.particle { position: fixed; width: 5px; height: 5px; border-radius: 50%; background: #FFF2CC; box-shadow: 0 0 6px var(--sun); pointer-events: none; z-index: 50; }

/* guide */
.guide { display: flex; align-items: flex-end; gap: 10px; margin: 6px 0 4px; min-width: 0; }
.guide-av { width: 76px; height: 76px; flex: 0 0 auto; filter: drop-shadow(0 6px 12px rgba(60,40,120,.25)); transform-origin: 50% 90%; }
.guide-av.hop { animation: hop .5s ease-out 1; }
@keyframes hop { 0% { transform: translateY(0); } 40% { transform: translateY(-12px) rotate(-4deg); } 70% { transform: translateY(0) rotate(2deg); } 100% { transform: none; } }
.guide-av.nod { animation: nod .5s ease-out 1; }
@keyframes nod { 0%,100% { transform: none; } 50% { transform: rotate(8deg) translateY(2px); } }

/* play */
.path { display: flex; align-items: center; gap: 6px; }
.path .node { width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: .9rem; color: var(--muted); }
.path .node.done { background: var(--sun); color: var(--ink); border-color: var(--sun-deep); }
.path .node.now { border-color: var(--purple); color: var(--purple-deep); box-shadow: 0 0 0 4px var(--purple-soft); }
.path .node.final { width: 36px; height: 36px; }
.path .link { width: 14px; height: 3px; background: var(--line); border-radius: 2px; }
.turnstars { font-weight: 900; color: var(--ink); font-size: 1.1rem; display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.turnstars .icon { color: var(--sun-deep); }
.turnstars.practice { font-size: .95rem; }
.turnstars .lbl { color: var(--muted); font-weight: 800; margin: 0; font-size: .85rem; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 10px; min-width: 0; }
.choice { min-height: 66px; font-size: 1.4rem; font-family: var(--sans); font-weight: 900; background: #fff; color: var(--purple-deep); border: 3px solid var(--purple); border-radius: 20px; box-shadow: 0 4px 0 rgba(124,92,214,.35), 0 10px 22px rgba(60,40,120,.12); overflow-wrap: anywhere; min-width: 0; }
.choice:hover:not(:disabled) { background: var(--purple-soft); }
.choice.wrong { background: #F1EEFA; border-color: #C9BFF0; color: #8A80B8; text-decoration: line-through; opacity: .9; }
.choice.right { background: var(--teal); border-color: var(--teal-deep); color: #fff; }
.feedback { display: block; margin: 10px auto 0; width: fit-content; max-width: 100%; padding: 6px 18px; border-radius: 999px; background: #fff; border: 2px solid var(--line); box-shadow: var(--shadow); font-family: var(--display); font-size: 1.25rem; color: var(--ink); text-align: center; min-height: 0; }
.feedback:empty { display: none; }
.feedback.good { color: var(--ok); border-color: var(--teal); }
.feedback.bad { color: var(--bad); border-color: var(--coral); }

/* ending */
.chest { width: 140px; height: 112px; overflow: visible; margin: 0 auto; display: block; }
.chest .lid { transform-origin: 20px 48px; }
.chest.open .lid { animation: lidOpen .8s cubic-bezier(.2,.9,.3,1.2) .2s both; }
@keyframes lidOpen { to { transform: rotate(-38deg); } }
.chest.open .shine { animation: shine 1.2s ease-out .4s both; transform-origin: 75px 60px; }
@keyframes shine { 0% { opacity: 0; transform: scale(.3); } 100% { opacity: .85; transform: scale(1); } }
.session-line { text-align: center; font-weight: 800; color: var(--ink); background: #fff; border: 2px solid var(--sun); border-radius: 999px; padding: 8px 16px; margin: 0 auto 10px; width: max-content; max-width: 100%; }
.session-line .icon { color: var(--sun-deep); }
.endlist { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 8px; }
.endcard { background: #fff; border: 2px solid var(--line); border-radius: 22px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; box-shadow: var(--shadow); }
.endcard .who { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.25rem; color: var(--purple-deep); }
.endcard .who .av { width: 44px; height: 44px; }
.endcard .big-stars { font-family: var(--display); font-size: 2rem; color: var(--sun-deep); display: flex; align-items: center; gap: 6px; }
.endcard .row2 { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: .95rem; }
.endcard .row2 b { color: var(--ink); }
.endcard .life { color: var(--muted); font-size: .85rem; }
.parent-panel { margin: 18px auto 0; max-width: 560px; background: rgba(255,255,255,.7); border: 2px dashed var(--line); border-radius: 18px; padding: 12px 16px; text-align: center; font-size: .95rem; color: var(--ink-soft); }
.parent-panel button { margin-top: 6px; }
.confetti { position: fixed; top: -14px; width: 9px; height: 15px; z-index: 110; pointer-events: none; animation: fall linear forwards; border-radius: 2px; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); opacity: .85; } }

/* rewards */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 10px 0; }
.stat-tile { background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 10px 12px; text-align: center; }
.stat-tile b { display: block; font-family: var(--display); font-size: 1.8rem; color: var(--sun-deep); }
.stat-tile span { color: var(--muted); font-size: .9rem; }
.goal { background: #FFF6DA; border: 2px solid var(--sun); border-radius: 16px; padding: 10px 14px; margin: 8px 0 12px; font-weight: 700; }
.goal .bar { height: 12px; border-radius: 999px; background: #fff; overflow: hidden; margin-top: 6px; border: 2px solid var(--line); }
.goal .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--sun-deep), var(--sun)); transition: width .8s ease; }
.shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.rw { background: #fff; border: 2px solid var(--line); border-radius: 22px; padding: 14px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; box-shadow: var(--shadow); min-width: 0; }
.rw.goal-on { border-color: var(--sun-deep); box-shadow: 0 0 0 4px #FFF2CC, var(--shadow); }
.rw.preview { opacity: .85; }
.rw .rw-ic { width: 64px; height: 64px; }
.rw strong { font-family: var(--display); font-size: 1.05rem; color: var(--purple-deep); }
.rw .cost { font-weight: 900; color: var(--sun-deep); display: inline-flex; gap: 4px; align-items: center; }
.rw .st { font-size: .9rem; color: var(--muted); min-height: 1.2em; }
.rw .rw-btns { display: flex; flex-direction: column; gap: 6px; width: 100%; margin-top: 4px; }
.rw .rw-btns button { width: 100%; min-height: 44px; font-size: .95rem; }
.history { margin-top: 12px; font-size: .95rem; }
.history .line { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.history .line span:last-child { color: var(--muted); white-space: nowrap; }
details.secondary { margin-top: 12px; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 6px 12px; }
details.secondary summary { cursor: pointer; font-weight: 800; color: var(--purple-deep); min-height: 40px; display: flex; align-items: center; }

/* songs */
.track { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); min-width: 0; }
.track .cover { width: 56px; height: 56px; border-radius: 14px; }
.track .meta { min-width: 0; }
.track .meta strong { display: block; font-family: var(--display); font-size: 1.1rem; color: var(--purple-deep); }
.track .meta small { display: block; color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.track .time { font-variant-numeric: tabular-nums; font-size: .85rem; color: var(--muted); }
.track.playing { background: var(--teal-soft); border-radius: 14px; padding-inline: 8px; }
.track .ctl { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.track .bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; margin-left: 6px; vertical-align: middle; }
.track .bars i { width: 3px; background: var(--teal-deep); border-radius: 1px; height: 4px; }
.track.playing .bars i { animation: bar .7s ease-in-out infinite alternate; }
.track.playing .bars i:nth-child(2) { animation-delay: .15s; } .track.playing .bars i:nth-child(3) { animation-delay: .3s; }
@keyframes bar { from { height: 4px; } to { height: 14px; } }
@media (max-width: 480px) { .track { grid-template-columns: 48px 1fr; } .track .ctl { grid-column: 1 / -1; justify-content: flex-start; } }

/* parents */
.panel.parents { max-width: 680px; margin: 0 auto; }
.pack-title { font-family: var(--display); font-size: clamp(1.3rem, 4vw, 1.7rem); color: var(--purple-deep); margin: 4px 0 6px; }
.pack-list { margin: 8px 0 14px; padding-left: 22px; line-height: 1.6; }
.pack-form { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; background: var(--ivory); border: 2px solid var(--line); border-radius: 16px; padding: 12px; }
.panel hr { border: none; border-top: 2px dashed var(--line); margin: 14px 0; }

/* settings */
.set { margin-top: 12px; }
.set .line { display: grid; grid-template-columns: minmax(0, 1fr) 90px auto auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--line); min-width: 0; }
.set .line input[type=text], .set .line input[type=number] { padding: 8px 10px; font-size: 1rem; }
.set .line.req { grid-template-columns: minmax(0, 1fr) auto; }
.set .line.req .who { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.set .line.req .who small { display: block; color: var(--muted); font-weight: 600; }
.set .line.req .btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.set .line.song { grid-template-columns: minmax(0, 1fr) auto auto; }
.set .line.player { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.set .line.player .av { width: 36px; height: 36px; }
.set label.chk { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; margin: 6px 0; min-height: 44px; }
.set input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--purple); }
.set .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.set textarea { min-height: 70px; }
.btn-emerald { background: var(--teal); color: #fff; } .btn-gold { background: var(--sun); color: var(--ink); } .btn-ruby { background: var(--coral); color: #fff; }
@media (max-width: 600px) { .set .line, .set .line.player, .set .line.song, .set .line.req { grid-template-columns: 1fr; } .set .grid2 { grid-template-columns: 1fr; } .set .line.req .btns { justify-content: flex-start; } }

/* dialogs */
.overlay { position: fixed; inset: 0; background: rgba(42,31,94,.55); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 100; text-align: center; animation: fadeIn .2s ease both; overflow: auto; backdrop-filter: blur(4px); }
.card-o { width: 100%; max-width: 460px; display: flex; flex-direction: column; align-items: center; gap: 8px; margin: auto; background: #fff; border-radius: 24px; padding: 22px 20px; box-shadow: var(--shadow); }
.card-o h2 { margin: 0; }
.big-av { width: 110px; height: 110px; border-radius: 50%; filter: drop-shadow(0 10px 20px rgba(60,40,120,.3)); }
.big { font-family: var(--display); font-size: clamp(1.8rem, 7vw, 2.6rem); color: var(--purple-deep); overflow-wrap: anywhere; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.btns .btn-play { width: auto; flex: 1 1 160px; }
.gate-input { max-width: 200px; text-align: center; font-size: 1.5rem; letter-spacing: .2em; }
.toast { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); background: var(--ink); color: #fff; border-radius: 16px; padding: 10px 16px; font-weight: 800; z-index: 120; box-shadow: var(--shadow); max-width: 90vw; text-align: center; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* phone: secondary buttons stack at normal height; footer readable over the scene */
@media (max-width: 600px) { .secondary .btn-second { flex: 0 0 auto; width: 100%; } }
.credit { background: rgba(255,255,255,.72); border-radius: 14px; padding: 8px 12px; width: max-content; max-width: 100%; margin-left: auto; margin-right: auto; }
.parent-area .btn-quiet { background: rgba(255,255,255,.8); }


/* ===== calm, classy pass: no reds, less clutter ===== */
body { background: linear-gradient(180deg, #EDE9FF 0%, #F8F3FF 45%, #FFF3E6 100%); }
.btn-play { background: linear-gradient(180deg, #FFDE8A 0%, #FFC94A 50%, #E8A81E 100%); color: var(--ink); box-shadow: 0 5px 0 #B8891A, 0 12px 26px rgba(232,168,30,.28), inset 0 2px 0 rgba(255,255,255,.6); text-shadow: 0 1px 0 rgba(255,255,255,.5); }
.btn-play:focus-visible { outline-color: var(--purple-deep); }
.actions.sticky .btn-play { box-shadow: 0 5px 0 #B8891A, 0 12px 26px rgba(232,168,30,.28), 0 -8px 24px rgba(255,255,255,.9); }
.choice.wrong { background: #F1EEFA; border-color: #C9BFF0; color: #8A80B8; text-decoration: line-through; opacity: .9; }
.feedback.bad { color: #6B5FA8; border-color: #C9BFF0; }
.hint.err { color: #6B5FA8; }
.pill.declined { background: #F1EEFA; color: #6B5FA8; border-color: #C9BFF0; }
.mb-btn.muted { background: #F1EEFA; color: var(--purple-deep); border-color: var(--purple); }
.btn-ruby { background: #8A80B8; color: #fff; }
.steps li b { color: var(--purple-deep); }
/* home: fewer boxes, more air */
.hero.home { padding-top: 10px; }
.owl-hello { margin-top: 16px; max-width: 560px; }
.owl-big { width: 88px; height: 88px; }
.big-bubble { font-size: 1.05rem; padding: 10px 16px; }
.big-bubble strong { font-size: 1.15rem; margin-right: 6px; }
.steps { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin-top: 14px; }
.steps li { background: none; border: none; padding: 0; flex-direction: row; gap: 8px; font-size: .98rem; color: var(--ink-soft); box-shadow: none; }
.step-ic { width: 30px; height: 30px; }
@media (max-width: 600px) { .steps { gap: 8px 16px; } .steps li { padding: 0; } .step-ic { width: 26px; height: 26px; } }
.cta { margin-top: 18px; }
.secondary { margin-top: 12px; gap: 12px; }
.secondary .btn-second { box-shadow: 0 3px 0 #4B32A0, 0 8px 18px rgba(124,92,214,.2), inset 0 2px 0 rgba(255,255,255,.3); }
.parent-area { margin-top: 18px; }
.parent-area .btn-quiet { background: rgba(255,255,255,.6); border-color: transparent; }
.credit { background: none; color: var(--muted); }
.note-float::after { display: none; }
.scene .twinkles { opacity: .6; }

.steps { background: rgba(255,255,255,.78); border-radius: 999px; padding: 8px 18px; width: max-content; max-width: 100%; margin-left: auto; margin-right: auto; }
@media (max-width: 600px) { .steps { border-radius: 18px; flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; padding: 10px 16px; } }

/* ===== adventure structure ===== */
.quest { max-width: 640px; margin: 14px auto 0; background: #fff; border: 2px solid var(--line); border-radius: 22px; padding: 14px 18px; box-shadow: var(--shadow); display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.quest .q-ic { width: 56px; height: 56px; }
.quest .q-label { font-family: var(--display); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-deep); margin: 0; }
.quest .q-ref { font-family: var(--display); font-size: 1.35rem; color: var(--purple-deep); margin: 2px 0; }
.quest .q-meta { display: flex; gap: 6px; flex-wrap: wrap; font-size: .85rem; }
.quest .q-text { color: var(--ink-soft); font-size: .98rem; margin: 4px 0 0; overflow-wrap: anywhere; }
.quest.empty { grid-template-columns: 1fr; text-align: center; }
.journey-strip { max-width: 640px; margin: 12px auto 0; background: rgba(255,255,255,.8); border-radius: 18px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-weight: 700; color: var(--ink-soft); font-size: .95rem; }
.journey-strip .dots { display: flex; gap: 6px; }
.journey-strip .dots i { width: 14px; height: 14px; border-radius: 50%; background: #E3DDF6; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.journey-strip .dots i.done { background: var(--sun); box-shadow: 0 0 8px rgba(255,201,74,.8); }
.journey-strip .dots i.now { background: var(--purple); box-shadow: 0 0 0 3px var(--purple-soft); }
.returns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.returns .pill { background: rgba(255,255,255,.85); }
.returns .pill .icon { color: var(--sun-deep); }
.status-pill { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 3px 10px; font-size: .8rem; font-weight: 800; background: #F1EEFA; color: var(--purple-deep); }
.status-pill.New { background: #F1EEFA; color: var(--purple-deep); } .status-pill.Learning { background: #FFF2CC; color: #7A5A0E; } .status-pill.Practicing { background: var(--teal-soft); color: var(--teal-deep); } .status-pill.Strong { background: #DFF5E6; color: #1F7A4A; } .status-pill.Mastered { background: var(--sun); color: var(--ink); }
.home .secondary .btn-second { flex: 1 1 160px; min-height: 52px; font-size: 1rem; }
@media (max-width: 600px) { .home .secondary { display: grid; grid-template-columns: 1fr 1fr; } .home .secondary .btn-second { width: auto; } .quest { grid-template-columns: 1fr; text-align: center; } .quest .q-ic { margin: 0 auto; } .quest .q-meta { justify-content: center; } }

/* journey map */
.chapter { background: rgba(255,255,255,.9); border: 2px solid var(--line); border-radius: 22px; padding: 14px 16px; margin-top: 12px; box-shadow: var(--shadow); }
.chapter.locked { opacity: .7; }
.chapter h3 { font-family: var(--display); color: var(--purple-deep); margin: 0 0 2px; display: flex; align-items: center; gap: 10px; }
.chapter h3 .place { width: 40px; height: 40px; }
.chapter .blurb { color: var(--muted); font-size: .92rem; margin: 0 0 10px; }
.trail { display: flex; align-items: center; gap: 0; flex-wrap: wrap; row-gap: 12px; }
.stop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 92px; background: none; border: none; min-height: 0; padding: 4px; color: var(--ink); font-size: .78rem; font-weight: 700; text-align: center; }
.stop .dot { width: 44px; height: 44px; border-radius: 50%; background: #EDE9FF; border: 3px solid #D9D2F0; display: flex; align-items: center; justify-content: center; font-family: var(--display); color: var(--muted); }
.stop.done .dot { background: var(--sun); border-color: var(--sun-deep); color: var(--ink); box-shadow: 0 0 14px rgba(255,201,74,.85); }
.stop.now .dot { background: var(--purple); border-color: var(--purple-deep); color: #fff; box-shadow: 0 0 0 5px var(--purple-soft); }
.stop.locked .dot { background: #F3F1FA; color: #C1B9DE; }
.stop .lbl2 { color: var(--ink-soft); font-weight: 700; max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trail .seg { width: 18px; height: 4px; background: #D9D2F0; border-radius: 2px; margin-bottom: 26px; }
.trail .seg.lit { background: var(--sun); box-shadow: 0 0 6px rgba(255,201,74,.8); }
.nextadv { margin-top: 12px; background: #fff; border: 2px solid var(--sun); border-radius: 16px; padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 700; }

/* library */
.libfilters { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; margin: 8px 0; }
.lib-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.lib-card { text-align: left; align-items: flex-start; min-height: 0; padding: 12px 14px; gap: 4px; }
.lib-card .vr { font-family: var(--display); color: var(--purple-deep); font-size: 1.05rem; }
.lib-card .vt { font-size: .92rem; color: var(--ink); overflow-wrap: anywhere; }
.lib-card .meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: .8rem; color: var(--muted); }
.center-sub { justify-content: center; margin-top: 18px; }
.card-av { width: 56px; height: 56px; }

/* stages */
.stagepath { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.stagepath .st { border-radius: 999px; padding: 4px 10px; font-size: .8rem; font-weight: 800; background: #fff; border: 2px solid var(--line); color: var(--muted); }
.stagepath .st.done { background: var(--sun); color: var(--ink); border-color: var(--sun-deep); }
.stagepath .st.now { background: var(--purple); color: #fff; border-color: var(--purple-deep); }
.anchors { font-size: .9rem; color: var(--muted); font-weight: 700; margin-top: 4px; }
.tiles { margin-top: 12px; }
.bank { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; min-height: 60px; }
.tile { min-height: 54px; font-size: 1.2rem; font-weight: 900; background: #fff; color: var(--purple-deep); border: 3px solid var(--purple); border-radius: 16px; padding: 8px 16px; box-shadow: 0 4px 0 rgba(124,92,214,.35), 0 8px 18px rgba(60,40,120,.12); }
.tile:hover:not(:disabled) { background: var(--purple-soft); }
.tile.used { visibility: hidden; }
.tile.shake { animation: shake .35s ease; border-color: #C9BFF0; }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.w.placed { color: var(--ok); animation: glowin .6s ease both; }
@keyframes glowin { from { text-shadow: 0 0 12px rgba(47,184,168,.9); } to { text-shadow: none; } }
.blank.slot { background-color: #F1EEFA; outline: 2px dashed #C9BFF0; outline-offset: 2px; }
.blank.slot.current { background-color: #FFF2CC; outline: 3px solid var(--sun-deep); }
.linebox .lead { font-family: var(--sans); font-weight: 800; color: var(--ink); background: #fff; border-radius: 16px; padding: 10px 14px; border: 2px solid var(--line); }
.recall { margin-top: 10px; }
.storypage { max-width: 560px; margin: 12px auto 0; background: var(--ivory); border: 2px solid var(--sun); border-radius: 18px; padding: 12px 16px; text-align: center; font-weight: 700; color: var(--ink-soft); }
.storypage strong { font-family: var(--display); color: var(--purple-deep); display: block; }
.fly-star { position: fixed; width: 26px; height: 26px; color: var(--sun-deep); filter: drop-shadow(0 0 8px var(--sun)); pointer-events: none; z-index: 60; }
.pulse { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); margin-left: 8px; vertical-align: middle; animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(.8); opacity: .6; } 50% { transform: scale(1.3); opacity: 1; } }

/* ===== calmer home: one thing at a time ===== */
.quest { padding: 14px 20px; max-width: 600px; }
.quest .q-ref { font-size: 1.5rem; }
.quest .q-text { font-size: 1.05rem; color: var(--ink); }
.quest .q-who { min-height: 32px; padding: 0; font-size: .9rem; color: var(--muted); text-decoration: none; margin-top: 4px; }
.quest .q-who:hover { text-decoration: underline; }
.journey-strip { max-width: 600px; background: rgba(255,255,255,.7); border-radius: 999px; padding: 8px 16px; font-size: .92rem; justify-content: center; gap: 12px; }
.home .secondary { max-width: 600px; }
.home .secondary .btn-second { flex: 1 1 150px; min-height: 50px; font-size: 1rem; }
.parent-area { gap: 6px 14px; margin-top: 14px; }
.parent-area .btn-quiet { background: none; border: none; color: var(--muted); font-size: .9rem; min-height: 40px; padding: 4px 8px; text-decoration: underline; text-underline-offset: 3px; }
.parent-area .btn-quiet:hover { color: var(--purple-deep); background: none; }
.owl-hello { margin-top: 10px; }
.big-bubble { font-size: 1.05rem; }
@media (max-width: 600px) { .home .secondary { grid-template-columns: 1fr; } .home .secondary .btn-second { width: 100%; } .parent-area { flex-direction: column; align-items: center; gap: 2px; } }
#s-home .hero.home { padding-top: 0; }
#s-home .title { font-size: clamp(2.2rem, 6vw, 3.1rem); }
#s-home .owl-hello { margin-top: 8px; }
#s-home .owl-big { width: 80px; height: 80px; }
#s-home .quest { margin-top: 10px; padding: 12px 18px; }
#s-home .cta { margin-top: 12px; }
#s-home .cta .btn-play { min-height: 64px; font-size: 1.4rem; }
#s-home .journey-strip { margin-top: 10px; }
#s-home .secondary { margin-top: 10px; }
#s-home .parent-area { margin-top: 8px; }
#s-home .credit { margin-top: 8px; font-size: .85rem; }

#s-players .panel, #s-library .lib-list { padding-bottom: 84px; }
.title .vanish { color: inherit; }

.card.family { border-color: var(--sun); background: linear-gradient(160deg, #FFF9E6, #fff); }
.card.family strong { color: var(--sun-deep); }


/* v9: shared-answer moment, reading level, reflection, calmer play screen */
.agree { margin: 12px auto 0; max-width: 560px; text-align: center; background: rgba(255,255,255,.94); border: 2px solid var(--line); border-radius: 18px; padding: 12px 14px; box-shadow: 0 4px 14px rgba(80,60,140,.10); }
.agree p { margin: 0 0 10px; font-weight: 800; color: var(--ink); font-size: 1.05rem; line-height: 1.35; }
.agree .btn-second { width: auto; min-width: 220px; }
.choice.waiting, .choice:disabled.waiting { opacity: .55; }
.levels { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 10px; }
.levels button { min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--line); background: #fff; font: inherit; font-weight: 800; color: var(--ink-soft); cursor: pointer; }
.levels button.on { border-color: var(--purple); background: var(--purple-soft); color: var(--purple-deep); }
.lbl small { font-weight: 600; color: var(--muted); }
.endverse { margin: 8px auto 0; max-width: 640px; background: #fff; border: 3px solid var(--sun); border-radius: 22px; padding: 16px 20px; font-family: var(--display); font-size: clamp(1.15rem, 1rem + 1.2vw, 1.6rem); line-height: 1.45; text-align: center; color: var(--ink); box-shadow: 0 6px 20px rgba(80,60,140,.10); }
.endverse .ref { display: block; margin-top: 8px; font-family: var(--sans); font-size: .95rem; color: var(--muted); font-weight: 800; }
.lead.center { text-align: center; }
.reflect { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 10px 0 12px; }
.reflect button { min-height: 56px; font: inherit; font-weight: 900; font-size: 1.1rem; background: #fff; color: var(--purple-deep); border: 3px solid var(--purple); border-radius: 18px; cursor: pointer; }
.reflect button:hover { background: var(--purple-soft); }
.endshared { margin: 6px auto 10px; width: fit-content; max-width: 100%; text-align: center; background: #fff; border: 3px solid var(--sun); border-radius: 999px; padding: 10px 22px; font-family: var(--display); font-size: 1.3rem; color: var(--ink); box-shadow: 0 4px 14px rgba(80,60,140,.10); }
.endshared .icon { color: var(--sun-deep); }
/* stage path: only the current stage is spelled out; others are dots */
.stagepath .st:not(.now) { font-size: 0; width: 12px; height: 12px; padding: 0; border-width: 2px; }
.turnstars .lbl { margin-right: 4px; }
@media (max-width: 480px) { .agree .btn-second { min-width: 0; width: 100%; } }

/* v10: home demo, shared roles, big screen, parents */
.demo { max-width: 680px; margin: 4px auto 0; text-align: center; }
.demo-book { background: #fff; border: 3px solid var(--sun); border-radius: 24px; padding: 18px 22px 14px; box-shadow: 0 8px 24px rgba(80,60,140,.12); }
.demo-book .verse { font-family: var(--display); font-size: clamp(1.35rem, 1.05rem + 1.6vw, 2rem); line-height: 1.5; color: var(--ink); }
.demo-book .ref { margin-top: 6px; color: var(--muted); font-weight: 800; font-size: .95rem; }
.demo-ask { margin: 12px 0 4px; font-weight: 900; font-size: 1.15rem; color: var(--purple-deep); min-height: 1.4em; }
.demo-ask:empty { display: none; }
.demo-choices { grid-template-columns: repeat(2, minmax(120px, 1fr)); max-width: 460px; margin: 6px auto 0; }
.demo .feedback { margin-top: 10px; }
.demo .actions { align-items: center; }
.demo .btn-second { width: auto; min-width: 200px; margin: 0 auto; }
.subnav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 10px 0 4px; }
.btn-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--line); background: #fff; color: var(--ink-soft); font: inherit; font-weight: 800; cursor: pointer; }
.btn-pill:hover { border-color: var(--purple); color: var(--purple-deep); }
.btn-pill .icon { width: 18px; height: 18px; }
.roles { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 0 0 8px; }
.role { background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .9rem; color: var(--ink-soft); }
.role b { color: var(--muted); font-weight: 800; margin-right: 4px; }
.role.now { border-color: var(--purple); background: var(--purple-soft); color: var(--purple-deep); }
.clause-note { text-align: center; margin: 0 0 6px; font-weight: 800; color: var(--muted); }
.talk { max-width: 640px; margin: 8px auto 0; background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 12px 16px; text-align: center; }
.talk b { display: block; color: var(--purple-deep); margin-bottom: 4px; }
.linkrow { margin: 10px 0; }
.nexus a { color: var(--purple-deep); font-weight: 800; }
.tl { animation: none !important; }
/* Big screen: larger verse, fewer controls, for a mirrored display or projector */
body.present .book .verse, body.present .demo-book .verse { font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3.2rem); line-height: 1.5; }
body.present .bubble, body.present .guide { font-size: 1.25rem; }
body.present .choice, body.present .tile { font-size: 1.6rem; min-height: 72px; }
body.present .exit, body.present .stagepath, body.present .credit, body.present .subnav, body.present .parent-area, body.present .journey-strip { display: none !important; }
body.present .wrap { max-width: 1100px; }
@media (max-width: 480px) { .demo-book { padding: 14px 14px 10px; } .btn-pill { padding: 8px 10px; font-size: .9rem; } }
.journey-strip:empty { display: none; }

/* v11: verse songs */
.sungby { margin-top: 6px; font-size: .85rem; font-weight: 800; color: var(--muted); }
.vsong { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.vsong:first-child { border-top: 0; }
.vsong .t { font-weight: 900; color: var(--ink); }
.vsong .m { color: var(--muted); font-size: .9rem; }
.vsong .st { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: .8rem; font-weight: 800; background: var(--purple-soft); color: var(--purple-deep); margin-left: 6px; }
.vsong .st.soon { background: #F4F1FB; color: var(--muted); }
.vsong .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.vsong .acts .btn-small { min-height: 44px; }
.songstatus td, .songstatus th { padding: 4px 8px; text-align: left; font-size: .9rem; border-bottom: 1px solid var(--line); }
.songstatus { width: 100%; border-collapse: collapse; }
@media (max-width: 520px) { .vsong { grid-template-columns: 1fr; } .vsong .acts { justify-content: flex-start; } }
.demo-listen { margin-top: 10px; display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; font-weight: 800; color: var(--ink-soft); }
.btn-pill.playing, .btn-second.playing, .btn-ghost.playing { border-color: var(--teal); color: var(--teal-deep); }
.songstatus label { display: inline-flex; gap: 4px; align-items: center; }

/* song words (sing-along) */
.lyrics { max-width: 640px; margin: 10px auto 0; background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 12px 16px; text-align: center; }
.lyrics .lh { font-weight: 900; color: var(--purple-deep); margin-bottom: 4px; }
.lyrics .ln { color: var(--muted); font-size: .85rem; margin-bottom: 8px; }
.lyrics .sec { display: block; margin: 8px 0 2px; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lyrics .l { display: block; font-size: 1.05rem; line-height: 1.5; color: var(--ink); }
.vsong-words { grid-column: 1 / -1; }
.track .lyrics { margin-top: 6px; text-align: left; }
.track .lyrics .l { font-size: .95rem; }

/* mobile polish (2026-09-16): one demo card, quiet grown-up strip, no stray focus rings on touch */
.demo { background: #fff; border: 3px solid var(--sun); border-radius: 24px; padding: 12px 14px 14px; box-shadow: 0 8px 24px rgba(80,60,140,.12); }
.demo-book { border: 0; box-shadow: none; padding: 6px 4px 4px; background: transparent; }
.demo-ask { margin: 8px 0 6px; font-size: 1.05rem; }
.demo-choices .choice { min-height: 54px; font-size: 1.15rem; border-width: 2px; border-radius: 16px; box-shadow: none; }
.demo .feedback { margin-top: 8px; }
.sub-short { display: none; }
.parent-area { background: rgba(255,255,255,.72); border-radius: 999px; padding: 4px 10px; width: max-content; max-width: 100%; margin-left: auto; margin-right: auto; gap: 2px 4px; }
.parent-area .btn-quiet { text-decoration: none; color: var(--ink-soft); font-weight: 800; font-size: .88rem; padding: 6px 10px; border-radius: 999px; }
.parent-area .btn-quiet:hover { background: var(--purple-soft); color: var(--purple-deep); }
.screen.home .credit { background: rgba(255,255,255,.6); border-radius: 12px; padding: 6px 12px; font-size: .8rem; margin-top: 12px; width: max-content; max-width: 100%; margin-left: auto; margin-right: auto; }
#mbToggleText { display: inline; }
@media (hover: none) { body:not(.kbd) :focus-visible { outline: none; } }
@media (max-width: 600px) {
  .sub-long { display: none; } .sub-short { display: inline; }
  .subtitle { font-size: 1rem; }
  .hero.home { padding-top: 4px; } .title { font-size: clamp(2rem, 11vw, 2.6rem); }
  .demo { margin-top: 6px; padding: 10px 10px 12px; }
  .demo-book .verse { font-size: 1.35rem; line-height: 1.4; }
  .cta { margin-top: 12px; } .cta .btn-play { min-height: 62px; font-size: 1.35rem; }
  .subnav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
  .btn-pill { justify-content: center; padding: 8px 6px; font-size: .95rem; }
  .parent-area { border-radius: 16px; padding: 4px 6px; margin-top: 12px; }
  .parent-area .btn-quiet { font-size: .82rem; padding: 6px 8px; min-height: 40px; }
  #mbToggleText { font-size: .72rem; }
}

/* returning players: their verse first, the demo after */
#questSong { background: rgba(255,255,255,.78); border-radius: 999px; width: max-content; max-width: 100%; margin: 8px auto 0; padding: 5px 14px; font-weight: 800; color: var(--ink-soft); }
#s-home .glass { display: flex; flex-direction: column; }
#s-home .glass > * { order: 5; }
#s-home .glass > .hero { order: 0; }
html.returning #s-home .glass > .quest { order: 1; } html.returning #s-home .glass > #questSong { order: 2; } html.returning #s-home .glass > .cta { order: 3; } html.returning #s-home .glass > .journey-strip { order: 4; }
html.returning #s-home .glass > .demo { order: 6; margin-top: 14px; }
#s-home .glass > .subnav { order: 7; } #s-home .glass > .note { order: 8; } #s-home .glass > .parent-area { order: 9; } #s-home .glass > #homeStats { order: 9; } #s-home .glass > .credit { order: 10; }
html.returning #s-home .demo-book .verse { font-size: 1.25rem; }

/* gear menu, close X, first-time player page, gold fall */
.pop-hr { border: 0; border-top: 1px solid var(--line); margin: 10px 0 6px; }
.pop-link { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 12px; background: none; font: inherit; font-weight: 800; color: var(--purple-deep); text-align: left; cursor: pointer; }
.pop-link:hover { background: var(--purple-soft); }
.screen { position: relative; }
.close-x { position: absolute; top: 4px; right: 4px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); background: #fff; color: var(--ink-soft); font-size: 1.1rem; font-weight: 900; cursor: pointer; box-shadow: 0 2px 8px rgba(80,60,140,.12); }
.close-x:hover { border-color: var(--purple); color: var(--purple-deep); }
#s-players .panel.first-time #rosterHead, #s-players .panel.first-time #roster, #s-players .panel.first-time #savedHead, #s-players .panel.first-time #profilesHint, #s-players .panel.first-time #profiles { display: none; }
.t-short { display: none; }
@media (max-width: 480px) { .t-long { display: none; } .t-short { display: inline; } }
@media (max-width: 600px) { .screen.home .parent-area { display: none; } .demo-choices { grid-template-columns: 1fr 1fr; gap: 8px; } .demo-choices .choice { min-height: 46px; font-size: 1.05rem; border-radius: 999px; } }

/* narrow phones: icon-only Home/Back off the home screen; room under the sticky Continue bar */
@media (max-width: 480px) {
  body:not(.on-home) .nav-btn span { display: none; }
  body:not(.on-home) .nav-btn { padding: 0 10px; min-width: 44px; }
  .appbar { gap: 6px; padding: 0 6px; }
  #s-players .panel { padding-bottom: 96px; }
  .actions.sticky { bottom: 6px; }
}
@media (max-width: 480px) { body:not(.on-home) .nav-title { display: none; } }
.lyrics .gap { display: block; height: 10px; }

/* soft drops in the page palette: fade in, drift down, vanish (home only, off under reduced motion) */
.drift { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.drift i { position: absolute; top: -3vh; display: block; width: 10px; height: 10px; border-radius: 50%; opacity: 0; animation: driftfall linear infinite; }
.drift i.p { background: radial-gradient(circle at 35% 35%, #E9E1FF, #7C5CD6 60%); box-shadow: 0 0 8px rgba(124,92,214,.45); }
.drift i.t { background: radial-gradient(circle at 35% 35%, #DFF7F3, #2FB8A8 60%); box-shadow: 0 0 8px rgba(47,184,168,.45); }
.drift i.v { background: radial-gradient(circle at 35% 35%, #F6F1FF, #C9B8F0 60%); box-shadow: 0 0 8px rgba(201,184,240,.6); }
.drift i.g { background: radial-gradient(circle at 35% 35%, #FFF3C9, #FFC94A 60%); box-shadow: 0 0 8px rgba(255,201,74,.5); }
.drift i.s { width: 7px; height: 7px; } .drift i.l { width: 13px; height: 13px; }
@keyframes driftfall { 0% { transform: translate3d(0,0,0) scale(.6); opacity: 0; } 12% { opacity: .95; transform: translate3d(4px,10vh,0) scale(1); } 55% { opacity: .8; transform: translate3d(16px,50vh,0) scale(1); } 85% { opacity: 0; transform: translate3d(-6px,78vh,0) scale(.7); } 100% { opacity: 0; transform: translate3d(-8px,84vh,0) scale(.5); } }
body:not(.on-home) .drift, body.dialog-open .drift { display: none; }
@media (prefers-reduced-motion: reduce) { .drift { display: none !important; } }

/* credit: pinned to the bottom of the home screen, bolder */

#s-home .glass > .credit { margin-top: auto; padding-top: 14px; order: 20; }
.screen.home .credit { font-weight: 800; color: var(--purple-deep); font-size: .92rem; background: rgba(255,255,255,.82); padding: 8px 16px; }
.screen.home .credit span:first-child { letter-spacing: .04em; }

/* review fixes: compact summary row, two-column modes on phones, scrolling settings table */
.sum-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 4px; }
.sum-row .btn-small { flex: 1 1 40%; min-height: 44px; font-size: .95rem; }
.tablewrap { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
@media (max-width: 600px) {
  #modeCards { grid-template-columns: 1fr 1fr; gap: 10px; }
  #modeCards .card { padding: 12px 8px; border-radius: 18px; }
  #modeCards .card-ill { width: 84px; height: 56px; }
  #modeCards .card strong { font-size: 1rem; }
  #modeCards .card span { font-size: .8rem; line-height: 1.3; }
}

/* no layout jump on load: reserve the space the script fills in */
html.returning #questCard { min-height: 172px; }
html.returning #questCard:empty { background: rgba(255,255,255,.6); border-color: transparent; box-shadow: none; }
html.returning #questSong[hidden] { display: block !important; visibility: hidden; }
html.returning .journey-strip:empty { display: block; min-height: 40px; visibility: hidden; }
html:not(.returning) #questCard:empty { display: none; }
.credit .ver { font-size: .65rem; color: var(--muted); font-weight: 600; letter-spacing: .06em; }

/* overflow guard: nothing on the home stack may be wider than the screen */
#s-home .glass > * { min-width: 0; max-width: 100%; }
.demo, .demo-book, .quest { max-width: 100%; box-sizing: border-box; }
.demo-book .verse, .book .verse { overflow-wrap: anywhere; }
/* app bar on Home: the dove, not floating text */
.nav-dove { display: none; width: 36px; height: 36px; border-radius: 50%; background: #fff; padding: 2px; box-shadow: 0 1px 4px rgba(80,60,140,.15); }
body.on-home .nav-dove { display: block; }
body.on-home .nav-title { display: none; }
/* who's playing, on the front page */
.modes-home { margin: 10px auto 0; max-width: 560px; text-align: center; }
.mh-label { margin: 0 auto 8px; width: max-content; max-width: 100%; font-weight: 900; color: var(--purple-deep); font-size: 1rem; background: rgba(255,255,255,.85); border-radius: 999px; padding: 4px 14px; }
.mode-pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mode-pills button { min-height: 46px; padding: 6px 8px; border-radius: 999px; border: 2px solid var(--line); background: #fff; color: var(--ink-soft); font: inherit; font-weight: 800; font-size: .92rem; cursor: pointer; }
.mode-pills button:hover { border-color: var(--purple); color: var(--purple-deep); }
.mode-pills button[data-hmode="family"] { border-color: var(--sun); color: var(--sun-deep); background: #FFF9E6; }
html.returning #s-home .glass > .cta { order: 3; } html.returning #s-home .glass > .modes-home { order: 4; } html.returning #s-home .glass > .journey-strip { order: 5; }
/* back and home at the foot of every inner screen */
.screen-nav { display: flex; gap: 10px; justify-content: center; margin: 18px 0 8px; }
.screen-nav button { min-height: 46px; padding: 8px 18px; border-radius: 999px; border: 2px solid var(--line); background: rgba(255,255,255,.92); color: var(--purple-deep); font: inherit; font-weight: 800; cursor: pointer; }
.screen-nav button:hover { border-color: var(--purple); }
@media (max-width: 480px) { .mode-pills { grid-template-columns: repeat(2, 1fr); } .mode-pills button { font-size: .9rem; } }

/* calm front page: one Play, one dropdown, nothing else competing */
.who-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 10px auto 0; flex-wrap: wrap; }
.who-row label { font-weight: 800; color: var(--ink-soft); background: rgba(255,255,255,.85); border-radius: 999px; padding: 6px 12px; }
.who-row select { min-height: 44px; padding: 8px 36px 8px 14px; border-radius: 999px; border: 2px solid var(--purple); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%237C5CD6' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; color: var(--purple-deep); font: inherit; font-weight: 900; -webkit-appearance: none; appearance: none; }
html.returning #s-home .glass > .who-row { order: 3; }
html.returning .demo { display: none; }
#s-home #questSong, #s-home .journey-strip { display: none !important; }
.modes-home { display: none; }
.morerow { text-align: center; margin: 10px 0 0; } .morerow .btn-pill { text-decoration: none; }
#endMore a { color: var(--purple-deep); font-weight: 800; }

.startover { margin-top: 4px; font-size: .8rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.startover:hover { color: var(--purple-deep); }
/* wide screens: let the page end where the content ends */


/* front page: who's playing, then Play; everything else lives in the top-right menu */
.screen.home .subnav, .screen.home .parent-area { display: none !important; }
.menu-pop { width: min(240px, calc(100vw - 32px)); padding: 8px; }
.nav-right { position: relative; }
.cta .btn-play[disabled] { opacity: 1; cursor: pointer; }
html.returning #s-home .glass > .who-row { order: 2; } html.returning #s-home .glass > .cta { order: 3; }
.who-row { margin-top: 14px; }
.cta { margin-top: 12px; }

/* who's playing and Play must pop */
.who-row label { font-size: 1.05rem; font-weight: 900; color: var(--purple-deep); background: #fff; border: 2px solid var(--line); padding: 8px 16px; box-shadow: 0 3px 10px rgba(80,60,140,.12); }
.who-row select { min-height: 52px; font-size: 1.1rem; border-width: 3px; box-shadow: 0 5px 0 #5B3FB5, 0 10px 22px rgba(80,60,140,.22); min-width: 220px; }
.who-row select:focus { outline: 4px solid var(--sun); outline-offset: 2px; }

#s-home .glass > .credit { margin-top: auto; padding-top: 36px; }

/* foot of the home page: what this is, and where the songs live */
.foot-music { margin: 28px auto 0; max-width: 560px; text-align: center; background: rgba(255,255,255,.86); border-radius: 18px; padding: 12px 16px; }
.fm-line { margin: 0 0 8px; color: var(--ink-soft); font-weight: 600; line-height: 1.4; }
.fm-line strong { color: var(--purple-deep); font-weight: 900; }
.fm-links { margin: 0; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.fm-links .btn-pill { text-decoration: none; }
html.returning #s-home .glass > .foot-music, #s-home .glass > .foot-music { order: 19; margin-top: auto; }
#s-home .glass > .credit { margin-top: 10px; padding-top: 0; }

/* Start over: top left on the home screen, bold */
.nav-start { display: none; font-weight: 900; color: var(--purple-deep); border: 2px solid var(--purple); background: #fff; }
body.on-home .nav-start { display: inline-flex; }
body.on-home .nav-start span { display: inline !important; }
.nav-dove { display: none !important; }
.credit a { color: var(--purple-deep); font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }

/* the title block sits on its own soft panel so nothing clashes with the castle */
#s-home .hero.home { background: rgba(255,255,255,.82); border-radius: 24px; padding: 14px 18px 16px; margin: 6px auto 0; max-width: 640px; width: 100%; box-shadow: 0 6px 22px rgba(80,60,140,.10); }
#s-home .subtitle { color: var(--ink); font-weight: 800; }
#s-home .demo, html.returning #s-home .glass > .quest { margin-top: 20px; }
@media (max-width: 600px) { #s-home .hero.home { padding: 10px 12px 12px; } }

/* phones: keep the page tight; nothing drifts too far down */
@media (max-width: 600px) {
  #s-home .demo, html.returning #s-home .glass > .quest { margin-top: 12px; }
  #s-home .glass > .foot-music { margin-top: 22px; }
  .who-row { margin-top: 10px; }
}

/* phones: the song status table becomes stacked cards */
@media (max-width: 600px) {
  .songstatus, .songstatus tbody, .songstatus tr, .songstatus td { display: block; width: 100%; box-sizing: border-box; }
  .songstatus tr:first-child { display: none; }
  .songstatus tr { border: 2px solid var(--line); border-radius: 14px; padding: 8px 10px; margin: 0 0 10px; background: #fff; }
  .songstatus td { border: 0; padding: 3px 0; font-size: .9rem; }
  .songstatus td::before { content: attr(data-l) ": "; font-weight: 800; color: var(--muted); }
  .songstatus td[data-l="Song"] { font-weight: 900; color: var(--purple-deep); font-size: 1rem; }
  .songstatus td[data-l="Song"]::before { content: ""; }
}

/* very small phones: the bar keeps Start over, the switch, the menu and the gear */
@media (max-width: 360px) {
  #mbToggleText { display: none !important; }
  #mbMute { display: none; }
  .appbar { gap: 4px; padding: 0 4px; }
  .nav-start { padding: 0 8px; font-size: .85rem; }
  .mb-switch { padding: 4px 6px; }
}

.wins { max-width: 640px; margin: 10px auto 0; background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 12px 16px; }
.wins b { display: block; color: var(--purple-deep); margin-bottom: 6px; }
.wins .win { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-top: 1px solid var(--line); font-weight: 700; color: var(--ink-soft); }
.wins .win:first-of-type { border-top: 0; }
.wins .win span:last-child { color: var(--sun-deep); font-weight: 900; white-space: nowrap; }
.wins .hint { margin: 6px 0 0; }

.endmore { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 12px auto 0; max-width: 640px; }
.endmore span { font-weight: 900; color: var(--ink); font-size: 1.05rem; background: rgba(255,255,255,.9); border-radius: 999px; padding: 6px 12px; }
.endmore .btn-pill { text-decoration: none; border-color: var(--purple); color: var(--purple-deep); font-size: 1rem; }

/* the vanish countdown: a gold bar drains while you read */
.vanishbar { max-width: 640px; margin: 8px auto 0; height: 8px; border-radius: 999px; background: rgba(255,255,255,.7); overflow: hidden; }
.vanishbar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--sun)); border-radius: 999px; transform-origin: left center; animation: drain linear forwards; }
@keyframes drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.vanishbar.paused i { animation-play-state: paused; }
#readActions { justify-content: center; }
#readActions .btn-ghost { flex: 0 1 auto; min-width: 220px; }
@media (prefers-reduced-motion: reduce) { .vanishbar i { animation: none; } }

/* one footer on every page */
body { display: flex; flex-direction: column; min-height: 100dvh; }
main.wrap { flex: 1 0 auto; width: 100%; }
.site-foot { flex: 0 0 auto; width: min(100% - 24px, 640px); margin: 22px auto 14px; text-align: center; background: rgba(255,255,255,.88); border-radius: 18px; padding: 12px 16px; box-shadow: 0 6px 20px rgba(80,60,140,.10); }
.site-foot .fm-line { margin: 0 0 8px; }
.site-foot .fm-links { margin: 0 0 8px; }
.site-foot .credit-line { margin: 0; font-weight: 800; color: var(--purple-deep); font-size: .85rem; }
body.dialog-open .site-foot { pointer-events: none; }
.foot-music, .screen .credit { display: none !important; }
.exit { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; }
.exit .btn-link { min-height: 44px; }
.about { margin: 8px auto 0; max-width: 520px; font-size: 1rem; line-height: 1.45; color: var(--ink-soft); font-weight: 600; }
@media (max-width: 600px) { .about { font-size: .95rem; } }
.songbadge { float: right; font-size: .75rem; font-weight: 900; color: var(--purple-deep); background: var(--purple-soft); border-radius: 999px; padding: 2px 8px; margin-left: 6px; }

/* compact footer */
.site-foot { padding: 8px 12px; margin: 16px auto 10px; }
.site-foot .fm-line { margin: 0 0 6px; font-size: .9rem; }
.site-foot .fm-links { margin: 0; align-items: center; gap: 8px; }
.site-foot .btn-pill { min-height: 36px; padding: 4px 12px; font-size: .85rem; }
.site-foot .credit-line { font-size: .78rem; color: var(--muted); font-weight: 700; }
.q-clear { font-weight: 900; color: var(--purple-deep); border: 2px solid var(--purple); border-radius: 999px; padding: 4px 12px; min-height: 36px; text-decoration: none; }
.q-clear:hover { background: var(--purple-soft); }
.q-who { font-weight: 800; color: var(--muted); }

/* menu: labelled, tidy, two groups */
.menu-btn { gap: 6px; padding: 0 12px; font-weight: 900; color: var(--purple-deep); }
.menu-btn span { font-size: .9rem; }
.menu-pop { width: min(280px, calc(100vw - 24px)); padding: 10px 8px; }
.menu-head { margin: 6px 12px 4px; font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.menu-pop .pop-link { justify-content: flex-start; text-align: left; gap: 10px; padding: 10px 12px; min-height: 46px; font-size: 1rem; }
.menu-pop .pop-link .icon { width: 20px; height: 20px; flex: 0 0 20px; color: var(--purple); }
.menu-pop .pop-link:hover { background: var(--purple-soft); }
@media (max-width: 360px) { .menu-btn span { display: none; } .menu-btn { padding: 0 10px; } }

@media (max-width: 480px) {
  #mbMute { display: none; }
  .appbar { gap: 5px; padding: 0 5px; }
  .menu-btn { padding: 0 9px; } .menu-btn span { font-size: .85rem; }
  .nav-start { padding: 0 8px; font-size: .85rem; }
  .mb-switch { padding: 4px 8px 4px 5px; } #mbToggleText { font-size: .72rem; }
}

/* v138: pinned slim footer, bold recall text, sing-along block with animated lines */
.site-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; width: 100%; max-width: none; margin: 0; border-radius: 0; padding: 5px 10px calc(5px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; gap: 2px 12px; justify-content: center; align-items: center; background: rgba(255,255,255,.96); box-shadow: 0 -4px 16px rgba(80,60,140,.10); border-top: 1px solid var(--line); }
.site-foot .fm-line { margin: 0; font-size: .82rem; line-height: 1.3; }
.site-foot .fm-links { margin: 0; gap: 6px; align-items: center; }
.site-foot .btn-pill { min-height: 28px; padding: 1px 10px; font-size: .78rem; }
.site-foot .credit-line { font-size: .72rem; }
main.wrap { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
#s-home .glass { min-height: 0; }
body.present .site-foot { display: none; }
@media (max-width: 480px) { .site-foot .fm-line { font-size: .76rem; } .site-foot .btn-pill { min-height: 26px; font-size: .74rem; padding: 0 9px; } .site-foot .credit-line { font-size: .68rem; } main.wrap { padding-bottom: calc(66px + env(safe-area-inset-bottom)); } }
.lead.strong, .hint.strong { color: var(--ink); font-weight: 800; font-size: 1.05rem; line-height: 1.45; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 8px 12px; margin: 8px auto; max-width: 560px; }
.hint.strong { font-size: .98rem; }
.hint.strong:empty { display: none; }
.sing { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 10px auto 4px; max-width: 640px; width: 100%; }
.sing .sing-btn { font-weight: 900; }
.sing .lyrics { margin: 0; width: 100%; }
.lyrics .l { transition: color .25s ease, transform .25s ease, background .25s ease, opacity .25s ease; border-radius: 10px; padding: 2px 8px; opacity: .55; transform-origin: center; }
.lyrics.live .l.done { opacity: .5; }
.lyrics .l.on { opacity: 1; color: var(--purple-deep); font-weight: 800; background: #FFF3C9; transform: scale(1.04); animation: lineGlow .6s ease; }
.lyrics:not(.live) .l { opacity: 1; }
@keyframes lineGlow { 0% { transform: scale(.98); } 60% { transform: scale(1.06); } 100% { transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .lyrics .l.on { animation: none; transform: none; } }
.quest .q-greet { margin: 0 0 4px; font-weight: 900; color: var(--purple-deep); font-size: 1.05rem; line-height: 1.35; }
.sing .sing-btn.playing { background: var(--teal-deep); color: #fff; border-color: var(--teal-deep); }
@media (max-width: 480px) { .site-foot .fm-links { flex-wrap: nowrap; white-space: nowrap; } .site-foot .credit-line { font-size: .64rem; } .site-foot .btn-pill { padding: 0 8px; } }
.toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (max-width: 360px) { .site-foot .fm-links { flex-wrap: wrap; white-space: normal; } }

/* v139: whole screen at a glance on phones */
.actions.sticky { bottom: calc(78px + env(safe-area-inset-bottom)); }
#s-players.first #rosterHead, #s-players.first #roster, #s-players.first #savedHead, #s-players.first #profilesHint, #s-players.first #profiles { display: none; }
#s-players.first .addflow > h3, #s-players.first .panel > .sub:last-of-type { margin-top: 0; }
#s-summary .menu.primary { margin: 6px auto 4px; max-width: 520px; }
#s-summary .menu.primary .center { margin: 4px 0 0; }
.demo-listen { margin-top: 8px; }
@media (max-width: 480px) {
  .wrap { padding-top: 8px; }
  .title { font-size: clamp(1.7rem, 9vw, 2.2rem); }
  .sub-short { font-size: 1rem; }
  .about { font-size: .88rem; line-height: 1.35; margin-top: 4px; }
  #s-home .hero.home { padding: 8px 10px 10px; }
  .demo { margin-top: 6px; padding: 8px 8px 10px; }
  .demo-book .verse { font-size: 1.2rem; line-height: 1.35; }
  .demo-book .ref { margin-top: 2px; font-size: .85rem; }
  .demo-ask { margin: 6px 0 4px; font-size: 1rem; }
  .demo-choices { gap: 8px; } .demo-choices .choice { min-height: 44px; font-size: 1.02rem; }
  .who-row { margin-top: 8px; gap: 6px; }
  .who-row select { font-size: 1rem; padding: 8px 12px; }
  .cta, #s-home .cta { margin-top: 8px; } .cta .btn-play { min-height: 54px; font-size: 1.2rem; }
  .quest { margin-top: 8px; padding: 10px 12px; gap: 8px; } .quest .q-ic { width: 34px; height: 34px; }
  .quest .q-greet { font-size: .98rem; } .quest .q-label { font-size: .72rem; } .quest .q-ref { font-size: 1.25rem; } .quest .q-text { font-size: .95rem; }
  .journey-strip { margin-top: 6px; font-size: .85rem; }
  .h { font-size: 1.45rem; margin: 2px 0 6px; } .lead { font-size: 1rem; margin: 2px 0 8px; }
  .panel { padding: 10px 12px; } .sub { font-size: 1.02rem; margin: 10px 0 6px; } .lbl { margin: 8px 0 4px; font-size: .9rem; }
  .avatars { gap: 6px; } .avatars button { width: 46px; height: 46px; border-width: 2px; }
  .levels { gap: 6px; margin: 2px 0 6px; } .levels button { min-height: 36px; padding: 5px 10px; font-size: .88rem; }
  input[type=text] { font-size: 1rem; padding: 8px 12px; }
  .btn-second { min-height: 46px; font-size: 1rem; border-radius: 16px; } .btn-play { min-height: 54px; font-size: 1.2rem; }
  .actions { gap: 8px; margin-top: 8px; }
  .statusrow { gap: 6px; margin-bottom: 4px; } .chip { font-size: .9rem; }
  .guide { margin: 4px 0 2px; gap: 6px; } .guide-av { width: 52px; height: 52px; } .bubble { font-size: .98rem; padding: 7px 11px; min-height: 0; border-radius: 14px; }
  .book { padding: 12px 12px 10px; border-radius: 18px; } .book .verse { font-size: clamp(1.1rem, 5.2vw, 1.35rem); line-height: 1.4; } .book .ref { font-size: .9rem; }
  .choices { gap: 8px; margin-top: 6px; } .choices .choice { min-height: 46px; font-size: 1.02rem; }
  .feedback { margin-top: 6px; padding: 4px 14px; font-size: .95rem; }
  .lead.strong, .hint.strong { font-size: .95rem; padding: 6px 10px; margin: 6px auto; }
  .sing { margin: 6px auto 2px; gap: 6px; } .lyrics { padding: 8px 10px; } .lyrics .l { font-size: .98rem; line-height: 1.4; }
  .exit { margin-top: 4px; } .exit .btn-link { min-height: 38px; }
  .chest { width: 84px; height: 68px; } .hero.small { padding: 0; }
  .session-line { font-size: .9rem; padding: 5px 12px; margin-bottom: 6px; }
  .endlist { gap: 8px; margin-top: 4px; } .endcard { padding: 10px 12px; gap: 3px; font-size: .95rem; } .big-stars { font-size: 1.5rem; }
  .wins { margin-top: 6px; padding: 8px 12px; font-size: .95rem; }
  .parent-panel { margin-top: 10px; padding: 8px 12px; font-size: .88rem; }
  .sum-row { gap: 6px; }
}
@media (max-width: 400px) { .statusrow .chip { padding: 2px 8px 2px 2px; font-size: .85rem; gap: 5px; } .statusrow .path { gap: 4px; } .statusrow .stagepill, .statusrow .ribbon-pill { font-size: .8rem; } }
#s-players .saved-link { display: none; margin: 8px 0 0; } #s-players.first.hasSaved .saved-link { display: block; }
/* v142: who's playing on its own page */
#s-home .who-row { display: none !important; }
.who-grid { display: flex; flex-direction: column; gap: 12px; max-width: 420px; margin: 10px auto 0; }
.who-grid .btn-play, .who-grid .btn-second { width: 100%; }
/* v143: emoji avatars */
.av { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; container-type: inline-size; background: radial-gradient(circle at 35% 28%, #fff 0%, var(--avbg, #FFE6C7) 48%, color-mix(in srgb, var(--avbg, #FFE6C7) 70%, #7C5CD6 30%) 130%); box-shadow: inset 0 -3px 6px rgba(60,40,120,.10), inset 0 2px 3px rgba(255,255,255,.9), 0 2px 5px rgba(60,40,120,.16); overflow: hidden; }
.av i { font-style: normal; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif; font-size: 58cqw; line-height: 1; transform: translateY(2%); filter: drop-shadow(0 1px 1px rgba(0,0,0,.12)); }
@supports not (font-size: 1cqw) { .av i { font-size: 1.3rem; } .avatars .av i { font-size: 1.7rem; } }
.avatars button { background: #fff; padding: 3px; }
.avatars button.on { border-color: var(--purple); box-shadow: 0 0 0 4px var(--purple-soft); transform: scale(1.06); }
.avatars button:active .av i { transform: scale(1.15); }
.av i { transition: transform .15s ease; }
@media (max-width: 480px) { .avatars { gap: 8px; justify-content: center; } .avatars button { width: 52px; height: 52px; } }
/* v144: the example card keeps one height through every demo state, so Start your game never moves */
.demo-stage { min-height: 108px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; margin-top: 4px; }
.demo-stage .demo-ask { margin: 0; }
.demo-stage .demo-choices { margin: 4px auto 0; width: 100%; }
.demo-stage .feedback { margin: 4px auto 0; }
.demo-stage .feedback:empty { display: none; }
.demo-stage .demo-listen { margin-top: 4px; }
.demo-book { padding-bottom: 2px; }
.demo-book .verse { min-height: calc(2 * 1.5em); }
#s-home .cta { margin-top: 18px; }
@media (max-width: 480px) { .demo-stage { min-height: 96px; } .demo-book .verse { min-height: calc(2 * 1.35em); } #s-home .cta, .cta { margin-top: 16px; } }
/* v145: Bible character avatars with names */
.avatars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.avatars button { width: auto; height: auto; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 2px 3px; border-radius: 14px; border: 2px solid transparent; background: transparent; }
.avatars button.on { border-color: var(--purple); background: var(--purple-soft); box-shadow: none; transform: none; }
.avatars .av { width: 44px; height: 44px; }
.avatars .avn { font-size: .7rem; font-weight: 800; color: var(--ink-soft); line-height: 1; }
.avatars button.on .avn { color: var(--purple-deep); }
@media (max-width: 480px) { .avatars { grid-template-columns: repeat(4, 1fr); gap: 4px; } .avatars button { width: auto; height: auto; padding: 3px 2px; } .avatars .av { width: 42px; height: 42px; } }
.demo-stage { min-height: 112px; } @media (max-width: 480px) { .demo-stage { min-height: 104px; } }
/* v146: simple player slots */
.slots-panel { padding: 12px 14px; }
.slot { border: 2px solid var(--line); border-radius: 18px; padding: 8px 10px; margin-bottom: 10px; background: #fff; }
.slot.open { border-color: var(--purple); }
.slot-row { display: flex; align-items: center; gap: 10px; }
.slot-av { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 2px; border: 0; background: transparent; min-height: 0; cursor: pointer; }
.slot-av .av { width: 48px; height: 48px; }
.slot-avn { font-size: .66rem; font-weight: 800; color: var(--purple-deep); line-height: 1; }
.slot-lbl { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.slot-lbl span { font-weight: 800; color: var(--ink-soft); font-size: .85rem; }
.slot-lbl input { width: 100%; }
.slot-x { background: var(--purple-soft); color: var(--purple-deep); border-radius: 50%; min-height: 40px; min-width: 40px; padding: 0; font-size: 1rem; border: 0; }
.slot-pick { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); }
#slotAdd { width: 100%; margin-top: 2px; }
@media (max-width: 480px) { .slot { padding: 6px 8px; margin-bottom: 8px; } .slot-av .av { width: 44px; height: 44px; } }
/* v147: pick your own character; more air around the vanished-word box */
.av-empty { background: #fff; border: 2px dashed var(--purple); box-shadow: none; }
.av-empty i { font-family: var(--display); font-size: 48cqw; color: var(--purple); }
.slot-av.none .slot-avn { color: var(--purple); text-decoration: underline; }
.demo-book .verse { line-height: 1.7; }
.demo-book .verse .blank { margin: 0; }
@media (max-width: 480px) { .demo-book .verse { line-height: 1.6; min-height: calc(2 * 1.6em); } }
/* v148: sing-along like a lyric video */
.lyrics.live { position: relative; overflow: hidden; background: linear-gradient(180deg, #FFFDF7 0%, #F7F2FF 100%); border-color: var(--sun); box-shadow: 0 8px 26px rgba(124,92,214,.16); padding-top: 10px; padding-bottom: 12px; }
.lyrics.live .lh { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lyrics.live .ln { display: none; }
.lyrics.live .l { opacity: .38; font-size: .98rem; font-weight: 700; color: var(--ink-soft); background: transparent; transform: scale(.94); transition: opacity .4s ease, transform .4s ease, font-size .4s ease, color .4s ease; padding: 3px 6px; line-height: 1.45; }
.lyrics.live .l.done { opacity: .28; }
.lyrics.live .l.on { opacity: 1; transform: scale(1); font-family: var(--display); font-size: clamp(1.25rem, 5.4vw, 1.6rem); font-weight: 900; color: var(--purple-deep); animation: lineRise .45s ease; padding: 6px 8px; }
@keyframes lineRise { from { transform: translateY(8px) scale(.96); opacity: .5; } to { transform: translateY(0) scale(1); opacity: 1; } }
.lyrics .w { display: inline-block; transition: color .18s ease, transform .18s ease; }
.lyrics.live .l.on .w.sung { color: var(--gold-deep); }
.lyrics.live .l.on .w.now { color: var(--gold-deep); transform: scale(1.12) translateY(-2px); text-shadow: 0 2px 0 #fff, 0 4px 14px rgba(228,178,60,.55); animation: wordPop .32s ease; }
@keyframes wordPop { 0% { transform: scale(.9); } 55% { transform: scale(1.22) translateY(-3px); } 100% { transform: scale(1.12) translateY(-2px); } }
.lyrics.live .l.done .w { color: var(--muted); }
.lyrics .notes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.lyrics .notes i { position: absolute; bottom: -14px; font-style: normal; font-size: 1.1rem; color: var(--gold-deep); opacity: 0; animation: noteFloat 4s linear infinite; }
.lyrics .notes i:nth-child(even) { color: var(--purple); font-size: .9rem; }
@keyframes noteFloat { 0% { transform: translateY(0) rotate(-8deg); opacity: 0; } 15% { opacity: .75; } 85% { opacity: .5; } 100% { transform: translateY(-140px) rotate(10deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .lyrics.live .l.on, .lyrics.live .l.on .w.now { animation: none; transform: none; } .lyrics .notes { display: none; } }
/* v150: session score */
.se-big { font-family: var(--display); font-size: clamp(2.2rem, 9vw, 3.2rem); color: var(--purple-deep); text-align: center; margin: 4px 0 2px; }
.se-big .icon { width: 1em; height: 1em; color: var(--sun-deep); }
.se-big small { font-size: .45em; color: var(--muted); font-family: var(--sans); font-weight: 800; }
.se-list { max-width: 420px; margin: 8px auto 0; display: flex; flex-direction: column; gap: 6px; }
.se-row { display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 6px 12px; font-weight: 800; }
.se-row .av { width: 36px; height: 36px; flex: 0 0 36px; } .se-row > span:not(.av) { flex: 1; } .se-row b { font-family: var(--display); font-size: 1.3rem; color: var(--purple-deep); }
.se-row em { font-style: normal; font-size: .75rem; font-weight: 900; color: #fff; background: var(--sun-deep); border-radius: 999px; padding: 2px 8px; }
.se-row.win { border-color: var(--sun); background: #FFFBEA; }
.se-best { text-align: center; font-weight: 800; color: var(--muted); margin: 8px 0 4px; }
.se-best.new { color: var(--sun-deep); font-size: 1.1rem; }
/* v151: readable leads on the painted background, goal tip */
.lead { color: var(--ink); font-weight: 700; text-shadow: 0 1px 0 rgba(255,255,255,.85), 0 0 12px rgba(255,255,255,.6); }
.stat-tile.goal-tip span { font-size: .82rem; line-height: 1.3; }
/* v152: verse of the week */
.quest .q-week { margin: 8px 0 0; padding-top: 6px; border-top: 1px dashed var(--line); font-size: .9rem; color: var(--ink-soft); font-weight: 700; }
.quest .q-week b { color: var(--purple-deep); }
.quest .q-week .btn-link { min-height: 32px; padding: 0 6px; }
/* v156: theme song front and centre */
.theme-row { margin: 8px 0 0; text-align: center; }
.theme-btn { font-weight: 900; color: var(--purple-deep); border: 2px solid var(--purple); background: #fff; }
.theme-btn.playing { background: var(--teal-deep); color: #fff; border-color: var(--teal-deep); }
.theme-card { border: 2px solid var(--sun); background: #FFFBEA; }
.theme-card .st { background: var(--sun); color: var(--ink); }
@media (max-width: 480px) { .theme-row { margin-top: 6px; } .theme-btn { font-size: .85rem; } }
@media (max-width: 480px) { .site-foot .fm-links { flex-wrap: wrap; white-space: normal; row-gap: 3px; } }
@media (max-width: 480px) { .site-foot .btn-pill .lng { display: none; } .site-foot .fm-links { gap: 5px; } .site-foot .btn-pill { padding: 0 7px; } }
/* v160: reading voice */
.voice-pick { display: flex; align-items: center; gap: 6px; margin: 6px 0 2px; font-weight: 800; color: var(--ink-soft); font-size: .9rem; }
.voice-pick span { flex: 1; }
.voice-pick .vp { min-height: 36px; padding: 4px 12px; border-radius: 999px; border: 2px solid var(--line); background: #fff; font: inherit; font-weight: 800; color: var(--ink-soft); cursor: pointer; }
.voice-pick .vp.on { border-color: var(--purple); background: var(--purple-soft); color: var(--purple-deep); }
#btnListen.playing { border-color: var(--teal); color: var(--teal-deep); }
/* v162: featured release */
.feat-row { margin: 6px 0 0; text-align: center; font-weight: 800; font-size: .92rem; line-height: 1.5; }
.feat-tag { display: inline-block; background: var(--sun); color: var(--ink); border-radius: 999px; padding: 1px 9px; font-size: .72rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }
.feat-link { color: var(--purple-deep); font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }
.feat-verse { min-height: 30px; padding: 0 4px; font-size: .88rem; }
@media (max-width: 480px) { .feat-row { font-size: .85rem; margin-top: 4px; } .theme-btn { padding: 2px 10px; } }
@media (max-width: 480px) { .demo-stage { min-height: 96px; } .theme-row { margin-top: 5px; } }
.about-short { display: none; } @media (max-width: 480px) { .about-long { display: none; } .about-short { display: inline; } }
.site-foot a.credit-line { text-decoration: none; } .site-foot a.credit-line:hover { text-decoration: underline; }
