/* Layout: phase timeline "leash" on the left, animated stage + narrated step card on the right; stacks on phones. */
:root {
  --bg: #EFF3EE;
  --surface: #FFFFFF;
  --surface-2: #F6F8F5;
  --ink: #1C2B2A;
  --muted: #56706A;
  --line: #D3DDD6;
  --accent: #2948C9;
  --accent-ink: #FFFFFF;
  --accent-soft: #E3E8FB;
  --ball: #D7E84A;
  --coat: #D69A4E;
  --coat-dark: #9C6630;
  --coat-2: #4B4A52;
  --coat-2-dark: #2E2D33;
  --sky: #DCE8F0;
  --sky-2: #C8DCEA;
  --floor: #CBD8C6;
  --floor-2: #B6C7B0;
  --wall: #F7F3EA;
  --person: #3D5A80;
  --person-2: #B5546B;
  --ok: #2E8B57;
  --warn: #B57A0A;
  --stop: #C2413B;

  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --f-mono: "DM Mono", ui-monospace, "Cascadia Mono", monospace;

  --r: 14px;
  --shadow: 0 1px 2px rgba(28,43,42,.06), 0 8px 24px -12px rgba(28,43,42,.18);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111918; --surface: #18221F; --surface-2: #1E2A27; --ink: #E6EEEA; --muted: #9AB0A9;
    --line: #2A3935; --accent: #8098FF; --accent-ink: #0C1433; --accent-soft: #1F2747;
    --sky: #1B2A33; --sky-2: #223644; --floor: #22302A; --floor-2: #2B3C34; --wall: #26302C;
    --person: #7FA6D6; --person-2: #D88AA0; --ok: #5CC28A; --warn: #E0A93A; --stop: #EE7A72;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111918; --surface: #18221F; --surface-2: #1E2A27; --ink: #E6EEEA; --muted: #9AB0A9;
  --line: #2A3935; --accent: #8098FF; --accent-ink: #0C1433; --accent-soft: #1F2747;
  --sky: #1B2A33; --sky-2: #223644; --floor: #22302A; --floor-2: #2B3C34; --wall: #26302C;
  --person: #7FA6D6; --person-2: #D88AA0; --ok: #5CC28A; --warn: #E0A93A; --stop: #EE7A72;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
h1, h2, h3 { font-family: var(--f-display); line-height: 1.12; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -0.02em; }
h1 em { font-style: normal; color: var(--accent); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: .8rem; font-family: var(--f-mono); font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .6rem; }
p { margin: 0; }
.mono { font-family: var(--f-mono); }
.eyebrow { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 50; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-inner, main, .foot { max-width: 1240px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.top-inner { display: flex; align-items: center; gap: 24px; padding-block: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 1.3rem var(--f-display); letter-spacing: -0.01em; }
.brand svg { width: 34px; height: 34px; }
.brand-house { fill: var(--accent); }
.brand-ball { fill: var(--ball); }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.tabs button { background: none; border: 0; padding: 8px 14px; border-radius: 999px; white-space: nowrap; color: var(--muted); font-weight: 700; font-size: .95rem; display: inline-flex; gap: 6px; align-items: center; }
.tabs button:hover { color: var(--ink); background: var(--surface-2); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.badge { font-size: .7rem; background: var(--ball); color: #1C2B2A; border-radius: 999px; padding: 1px 7px; }
.badge:empty { display: none; }

main { padding-block: 32px 48px; }
.view { animation: viewIn .5s cubic-bezier(.2,.7,.2,1) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } }
.intro { max-width: 760px; display: grid; gap: 12px; margin-bottom: 32px; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }

/* Guide layout */
.guide { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 32px; align-items: start; }
.rail { position: sticky; top: 84px; display: grid; gap: 20px; }
.phases { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 4px; }
.phases::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: repeating-linear-gradient(to bottom, var(--line) 0 8px, transparent 8px 13px); }
.phase-btn { width: 100%; display: grid; grid-template-columns: 38px 1fr; gap: 10px; align-items: center; text-align: left; background: none; border: 0; padding: 8px 8px 8px 0; border-radius: 12px; position: relative; }
.phase-btn:hover { background: var(--surface-2); }
.phase-dot { width: 37px; height: 37px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); display: grid; place-items: center; font: 500 .8rem var(--f-mono); color: var(--muted); transition: all .3s; z-index: 1; position: relative; }
.phase-btn[aria-current="true"] .phase-dot { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: scale(1.08); box-shadow: 0 0 0 6px var(--accent-soft); }
.phase-btn.done .phase-dot { background: var(--ball); border-color: var(--ball); color: #1C2B2A; }
.phase-label { display: grid; min-width: 0; }
.phase-label strong { font: 700 1rem/1.25 var(--f-display); }
.phase-label span { font: 400 .78rem var(--f-mono); color: var(--muted); }
.phase-btn[aria-current="true"] .phase-label strong { color: var(--accent); }
.overall { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 8px; }
.overall-row { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); }
.bar { height: 8px; background: var(--surface-2); border-radius: 8px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--ball)); border-radius: 8px; transition: width .6s cubic-bezier(.2,.7,.2,1); }

.stage-col { display: grid; gap: 14px; min-width: 0; }
.stage { position: relative; aspect-ratio: 600 / 320; max-width: 100%; border-radius: 22px; overflow: hidden; background: var(--sky); box-shadow: var(--shadow); isolation: isolate; }
.stage svg.scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene.enter { animation: sceneIn .7s cubic-bezier(.2,.7,.2,1) both; }
.scene.leave { animation: sceneOut .45s ease both; }
@keyframes sceneIn { from { opacity: 0; transform: scale(1.04); } }
@keyframes sceneOut { to { opacity: 0; transform: scale(.98); } }
.stage-tag { position: absolute; left: 16px; top: 14px; z-index: 2; background: var(--surface); color: var(--ink); border-radius: 999px; padding: 4px 12px; font: 500 .75rem var(--f-mono); letter-spacing: .06em; text-transform: uppercase; box-shadow: var(--shadow); }

/* Player */
.player { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px 8px 8px; flex-wrap: wrap; }
.play { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; transition: transform .2s; box-shadow: 0 6px 18px -6px var(--accent); }
.play:hover { transform: scale(1.06); }
.play svg { width: 24px; height: 24px; fill: currentColor; }
.play .i-pause, .playing .play .i-play { display: none; }
.playing .play .i-pause { display: block; }
.player-meta { flex: 1; min-width: 140px; display: grid; gap: 4px; }
.player-title { display: flex; gap: 10px; align-items: baseline; min-width: 0; }
.player-title strong { font-family: var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-title .mono { font-size: .75rem; color: var(--muted); flex: none; }
.wave { display: flex; gap: 3px; height: 18px; align-items: center; }
.wave i { width: 3px; height: 4px; border-radius: 2px; background: var(--line); transition: background .3s; }
.playing .wave i { background: var(--accent); animation: wave 1s ease-in-out infinite; }
.wave i:nth-child(2n) { animation-delay: -.3s !important; } .wave i:nth-child(3n) { animation-delay: -.55s !important; } .wave i:nth-child(5n) { animation-delay: -.8s !important; }
@keyframes wave { 0%,100% { height: 4px; } 50% { height: 18px; } }
.toggle { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); }
.toggle input { accent-color: var(--accent); width: 16px; height: 16px; }
.ghost { background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: .9rem; }
.ghost:hover { border-color: var(--ink); }
.primary { background: var(--ink); color: var(--bg); border: 0; border-radius: 999px; padding: 10px 20px; font-weight: 700; }
.primary:hover { background: var(--accent); color: var(--accent-ink); }
.settings { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; font-size: .9rem; }
.settings select { font: inherit; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); min-width: 0; width: 100%; }
.settings input[type=range] { accent-color: var(--accent); width: 100%; }
.settings .note { grid-column: 1 / -1; color: var(--muted); font-size: .82rem; }

.caption { font: 500 1.15rem/1.55 var(--f-body); color: var(--muted); min-height: 3.2em; padding: 0 4px; max-width: 70ch; }
.caption .w { transition: color .15s; }
.caption .w.said { color: var(--ink); }
.caption .w.now { color: var(--accent); background: var(--accent-soft); border-radius: 4px; box-shadow: 0 0 0 2px var(--accent-soft); }

/* Card */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 3vw, 32px); display: grid; gap: 22px; box-shadow: var(--shadow); }
.card.swap > * { animation: rise .5s cubic-bezier(.2,.7,.2,1) both; }
.card.swap > *:nth-child(2) { animation-delay: .06s; } .card.swap > *:nth-child(3) { animation-delay: .12s; } .card.swap > *:nth-child(4) { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.card-head { display: grid; gap: 8px; }
.summary { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }
.card-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.check { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); cursor: pointer; transition: background .2s; }
.check:hover { background: var(--accent-soft); }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.box { width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--line); background: var(--surface); display: grid; place-items: center; margin-top: 1px; transition: all .2s; }
.box svg { width: 15px; height: 15px; stroke: #1C2B2A; stroke-width: 3; fill: none; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .3s .05s; }
.check input:checked + .box { background: var(--ball); border-color: var(--ball); transform: scale(1.05); }
.check input:checked + .box svg { stroke-dashoffset: 0; }
.check input:checked ~ span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }
.check input:focus-visible + .box { outline: 3px solid var(--accent); outline-offset: 2px; }
.watch ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.watch li { border-left: 3px solid var(--warn); padding: 2px 0 2px 12px; font-size: .97rem; }
.going-well { font-size: .95rem; background: color-mix(in srgb, var(--ok) 12%, var(--surface)); border-radius: 12px; padding: 12px 14px; }
.going-well strong { color: var(--ok); }
.going-well:empty { display: none; }
.kit-reminder { display: flex; align-items: center; gap: 12px; text-align: left; border: 2px dashed var(--accent); background: var(--accent-soft); border-radius: 14px; padding: 12px 16px; font-weight: 700; }
.kit-reminder svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.kit-reminder span:not(.arrow) { flex: 1; }
.kit-reminder .arrow { color: var(--accent); font-size: 1.2rem; transition: transform .2s; }
.kit-reminder:hover .arrow { transform: translateX(4px); }
.stepnav { display: flex; align-items: center; gap: 12px; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 18px; flex-wrap: wrap; }
.dots { display: flex; gap: 6px; flex-wrap: wrap; }
.dots button { width: 10px; height: 10px; padding: 0; border-radius: 10px; border: 0; background: var(--line); transition: all .3s; }
.dots button[aria-current="true"] { width: 28px; background: var(--accent); }

/* Shopping list */
.kit-summary { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.ring { position: relative; width: 64px; height: 64px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 5; }
.ring-bg { stroke: var(--line); }
.ring-fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 119.4; stroke-dashoffset: 119.4; transition: stroke-dashoffset .6s cubic-bezier(.2,.7,.2,1); }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: .78rem; }
.kit-summary p { flex: 1; min-width: 200px; font-weight: 700; }
.kit { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; align-items: start; }
.kit-group { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: grid; gap: 12px; animation: rise .5s cubic-bezier(.2,.7,.2,1) both; }
.kit-group header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.kit-group h2 { font-size: 1.3rem; }
.kit-group .when { font: 500 .72rem var(--f-mono); text-transform: uppercase; letter-spacing: .08em; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.kit-group.must .when { background: var(--ball); color: #1C2B2A; }
.kit-group .checks .check span small { display: block; color: var(--muted); font-size: .85rem; margin-top: 2px; }

/* Body language */
.ladder { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.signal { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 18px 22px; display: grid; gap: 8px; position: relative; overflow: hidden; animation: rise .5s cubic-bezier(.2,.7,.2,1) both; }
.signal::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--ok); }
.signal.caution::before { background: var(--warn); }
.signal.stop::before { background: var(--stop); }
.signal h2 { font-size: 1.2rem; }
.signal .pill { justify-self: start; font: 500 .7rem var(--f-mono); text-transform: uppercase; letter-spacing: .08em; padding: 2px 8px; border-radius: 999px; color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.signal.caution .pill { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.signal.stop .pill { color: var(--stop); background: color-mix(in srgb, var(--stop) 14%, transparent); }
.signal dl { margin: 0; display: grid; gap: 6px; font-size: .95rem; }
.signal dt { font: 500 .72rem var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.signal dd { margin: 0 0 4px; }

.help { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.help li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: grid; gap: 4px; }
.help li strong { font-family: var(--f-display); font-size: 1.05rem; }
.help li span { color: var(--muted); font-size: .95rem; }
.sources { margin: 0; padding-left: 1.4em; display: grid; gap: 10px; max-width: 80ch; }
.sources a { color: var(--accent); text-underline-offset: 3px; word-break: break-word; }

.foot { padding-block: 24px 40px; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); }

/* Scene animation library (shared by scenes.js) */
.tail { transform-box: fill-box; transform-origin: 100% 100%; animation: wag .45s ease-in-out infinite alternate; }
.tail.slow { animation-duration: 1.2s; }
.tail.low { animation: none; }
@keyframes wag { from { transform: rotate(-14deg); } to { transform: rotate(16deg); } }
.breathe { transform-box: fill-box; transform-origin: 50% 100%; animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scaleY(1.06); } }
.blink { transform-box: fill-box; transform-origin: center; animation: blink 4.5s infinite; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
.ear { transform-box: fill-box; transform-origin: 50% 0; animation: ear 5s ease-in-out infinite; }
@keyframes ear { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-12deg); } 90% { transform: rotate(4deg); } }
.leg-a { transform-box: fill-box; transform-origin: 50% 0; animation: step .5s ease-in-out infinite alternate; }
.leg-b { transform-box: fill-box; transform-origin: 50% 0; animation: step .5s ease-in-out infinite alternate-reverse; }
@keyframes step { from { transform: rotate(-16deg); } to { transform: rotate(16deg); } }
.bob { animation: bob .5s ease-in-out infinite alternate; }
@keyframes bob { to { transform: translateY(-3px); } }
.sniff { transform-box: fill-box; transform-origin: 0 50%; animation: sniff .35s ease-in-out infinite alternate; }
@keyframes sniff { to { transform: rotate(6deg) translateY(2px); } }
.walk-in { animation: walkIn 2.4s cubic-bezier(.3,.6,.3,1) both; }
@keyframes walkIn { from { transform: translateX(-260px); } }
.walk-loop { animation: walkLoop 9s linear infinite; }
@keyframes walkLoop { from { transform: translateX(-200px); } to { transform: translateX(760px); } }
.pop { transform-box: fill-box; transform-origin: center; animation: pop .6s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes pop { from { transform: scale(0); opacity: 0; } }
.float { animation: float 3s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.zz { animation: zz 3s ease-in infinite; opacity: 0; }
@keyframes zz { 10% { opacity: 1; } 100% { transform: translate(24px, -50px); opacity: 0; } }
.door { transform-box: fill-box; transform-origin: 0 50%; animation: door 1.4s .3s cubic-bezier(.3,.7,.3,1) both; }
@keyframes door { to { transform: perspective(400px) rotateY(-70deg); } }
.drift { animation: drift 40s linear infinite; }
@keyframes drift { from { transform: translateX(-120px); } to { transform: translateX(700px); } }
.scent { animation: scent 2.4s ease-out infinite; opacity: 0; }
@keyframes scent { 15% { opacity: .9; } 100% { transform: translate(-20px, -40px) scale(1.6); opacity: 0; } }
.treat-arc { animation: treatArc 2.6s cubic-bezier(.4,0,.6,1) infinite; }
@keyframes treatArc { 0% { transform: translate(0,0); opacity: 0; } 10% { opacity: 1; } 45% { transform: translate(-60px,-70px); } 70%, 100% { transform: translate(-120px, 0); opacity: 0; } }
.bubble { transform-box: fill-box; transform-origin: 20% 100%; animation: bubble 2.6s ease infinite; }
@keyframes bubble { 0%, 8% { transform: scale(0); } 18%, 60% { transform: scale(1); } 70%, 100% { transform: scale(0); } }
.timer { stroke-dasharray: 126; animation: timer 4s linear infinite; }
@keyframes timer { from { stroke-dashoffset: 126; } to { stroke-dashoffset: 0; } }
.bounce { animation: bounce 1.1s cubic-bezier(.5,0,.5,1) infinite alternate; }
@keyframes bounce { from { transform: translateY(-70px); } to { transform: translateY(0); } }
.heart { transform-box: fill-box; transform-origin: center; animation: heart 1.6s ease-in-out infinite; }
@keyframes heart { 0%, 100% { transform: scale(.9); } 20% { transform: scale(1.12); } 40% { transform: scale(.96); } }
.tick-hand { transform-box: view-box; animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sway { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 4s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }
.twinkle { animation: twinkle 2.5s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .2; } }

@media (max-width: 900px) {
  .guide { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .rail { position: static; }
  .phases { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 6px; scrollbar-width: thin; }
  .phases::before { display: none; }
  .phases li { flex: none; }
  .phase-btn { grid-template-columns: 30px auto; background: var(--surface); border: 1px solid var(--line); padding: 6px 12px 6px 6px; border-radius: 999px; white-space: nowrap; }
  .phase-dot { width: 30px; height: 30px; font-size: .7rem; }
  .phase-btn[aria-current="true"] .phase-dot { box-shadow: none; }
  .phase-label span { display: none; }
  .overall { display: none; }
  .card-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .top-inner { gap: 10px; }
  .player { border-radius: 20px; }
  .toggle span { font-size: .8rem; }
  .stage { border-radius: 16px; }
  .caption { font-size: 1.02rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
