/* Motus Impetus. A dark room: the film feathered into black, a field of light over it,
   and the words in white. Nothing moves except by transform and opacity. */
:root {
  --bg: #05060c;
  --pearl: #f7f5ef;
  --fire: #ff2d4d;
  --ice: #3df2ff;
  --gold: #e8b84a;
  --rose: #ff7aa8;
  --top: calc(env(safe-area-inset-top, 0px) + 10px);
  --bottom: env(safe-area-inset-bottom, 0px);
  --stage: 41vh;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --wdur: 320ms;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: var(--bg); color: var(--pearl);
  font-family: Unbounded, Outfit, system-ui, sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--pearl); outline-offset: 4px; }
[hidden] { display: none !important; }

/* ── the film: full screen, feathered generously into the dark ── */
.film { position: fixed; inset: 0; z-index: 0; background: var(--bg); }
.film video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  display: none; opacity: 0; transition: opacity 1200ms linear;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 24%, #000 72%, transparent 100%), linear-gradient(to right, transparent 0, #000 16%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0, #000 24%, #000 72%, transparent 100%), linear-gradient(to right, transparent 0, #000 16%, #000 84%, transparent 100%);
  mask-composite: intersect;
}
.film video.on { display: block; }
.film video.on.lit { opacity: .92; }
.veil { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(ellipse at 50% var(--stage), rgba(5, 6, 12, .62) 0, rgba(5, 6, 12, .3) 34%, rgba(5, 6, 12, .1) 60%, rgba(5, 6, 12, .55) 100%), linear-gradient(to bottom, rgba(5, 6, 12, .55) 0, rgba(5, 6, 12, 0) 26%); }
#field { position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%; display: block; pointer-events: none; }

/* ── the header ── */
.top {
  position: fixed; z-index: 6; top: var(--top); left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 14px; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
}
.top .home, .top .app { text-decoration: none; padding: 8px 0; }
.top .app { padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, .12); }

/* ── the sung line ── */
.room { position: relative; z-index: 3; }
.stage, .card {
  position: fixed; left: 0; right: 0; top: var(--stage); transform: translateY(-50%);
  padding: 0 16px; text-align: center; pointer-events: none;
}
.stage { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 34vh; }
.sung {
  --k: 1;
  margin: 0 auto; max-width: 13ch;
  font-size: clamp(1.9rem, 8.4vw, 4.2rem);
  font-weight: 800; line-height: 1.04; letter-spacing: -0.02em;
  text-wrap: balance;
  text-shadow: 0 2px 28px rgba(0, 0, 0, .75), 0 0 2px rgba(0, 0, 0, .6);
  transform: scale(var(--k));
  transition: transform 320ms var(--ease), opacity 260ms;
  pointer-events: auto;
}
.sung.long { max-width: 18ch; font-size: clamp(1.45rem, 6.4vw, 3rem); }
.sung.xlong { max-width: 22ch; font-size: clamp(1.2rem, 5.3vw, 2.4rem); }
.sung.f-whisper { font-weight: 500; font-size: clamp(1.5rem, 6.6vw, 3rem); letter-spacing: 0; }
.sung[data-rep="2"] { --k: 1.14; }
.sung[data-rep="3"] { --k: 1.3; }
.sung .w { display: inline-block; margin: 0 .05em; opacity: 0; will-change: transform, opacity; cursor: pointer; }
.sung .w.on { opacity: 1; animation: rise var(--wdur) var(--ease) both; }
.sung .w.key[data-key="fire"] { color: var(--fire); }
.sung .w.key[data-key="ice"] { color: var(--ice); }
.sung .w.key[data-key="gold"] { color: var(--gold); }
.sung .w { position: relative; }
.sung .w .hn { position: absolute; left: 50%; top: -.5em; transform: translate(-50%, .3em); font-size: .3em; font-weight: 700; color: var(--rose); letter-spacing: 0; white-space: nowrap; opacity: 0; transition: opacity 240ms, transform 320ms var(--ease); pointer-events: none; }
.sung .w .hn.peek { opacity: 1; transform: translate(-50%, 0); }
.sung .w .hn::before { content: '❤️‍🔥'; font-size: .85em; margin-right: .08em; }
.sung.gone { opacity: 0; pointer-events: none; transition: opacity 200ms; }
.sung.gone .w { animation: leave 220ms var(--ease) both; }
.sung.f-spread.gone .w, .sung.f-flicker.gone .w { animation: scatter 420ms var(--ease) both; }
/* the families: how the words of a line arrive */
.sung.f-drop .w.on { animation-name: drop; }
.sung.f-bloom .w.on { animation-name: bloom; animation-duration: calc(var(--wdur) * 1.3); }
.sung.f-stamp .w.on { animation-name: stamp; animation-duration: 200ms; animation-timing-function: cubic-bezier(.1, .9, .2, 1.2); }
.sung.f-lock .w.on { animation-name: lock; animation-duration: 260ms; }
.sung.f-tilt .w.on { animation-name: tilt; }
.sung.f-slide .w.on { animation-name: slide; }
.sung.f-split .w.on { animation-name: fromLeft; }
.sung.f-split .w.on:nth-child(even) { animation-name: fromRight; }
.sung.f-spread .w.on { animation-name: spread; animation-duration: calc(var(--wdur) * 1.4); }
.sung.f-swell .w.on { animation-name: swell; animation-duration: 640ms; }
.sung.f-flicker .w.on { animation-name: flicker; animation-duration: 420ms; animation-timing-function: steps(1, end); }
.sung.f-pull .w.on { animation-name: pull; animation-duration: 560ms; }
.sung.f-heart .w.on { animation-name: heartbeat; animation-duration: 760ms; }
.sung.f-slow .w.on { animation-name: slow; animation-duration: 980ms; animation-timing-function: linear; }
.sung.f-whisper .w.on { animation-name: whisper; animation-duration: 760ms; }
.sung.f-spin .w.on { animation-name: spin; animation-duration: 440ms; }
.sung.f-tag .w.on { animation-name: tag; animation-duration: 240ms; animation-timing-function: cubic-bezier(.1, .9, .2, 1.2); }
@keyframes rise { from { opacity: 0; transform: translateY(.5em); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-.6em); } 70% { transform: translateY(.06em); } to { opacity: 1; transform: none; } }
@keyframes bloom { from { opacity: 0; transform: scale(.55); } 70% { opacity: 1; transform: scale(1.07); } to { opacity: 1; transform: none; } }
@keyframes stamp { from { opacity: 0; transform: scale(1.6); } to { opacity: 1; transform: none; } }
@keyframes lock { from { opacity: 0; transform: scale(1.35); } 60% { opacity: 1; transform: scale(.97) translateX(-.02em); } 80% { transform: scale(1.01) translateX(.02em); } to { opacity: 1; transform: none; } }
@keyframes tilt { from { opacity: 0; transform: rotate(-7deg) translateY(.35em); } to { opacity: 1; transform: none; } }
@keyframes slide { from { opacity: 0; transform: translateX(-.9em); } to { opacity: 1; transform: none; } }
@keyframes fromLeft { from { opacity: 0; transform: translateX(-1.2em); } to { opacity: 1; transform: none; } }
@keyframes fromRight { from { opacity: 0; transform: translateX(1.2em); } to { opacity: 1; transform: none; } }
@keyframes spread { from { opacity: 0; transform: translateX(calc(var(--dx, 0) * -0.34em)) scale(1.06); } to { opacity: 1; transform: none; } }
@keyframes swell { from { opacity: 0; transform: scale(.9); } 55% { opacity: 1; transform: scale(1.09); } to { opacity: 1; transform: none; } }
@keyframes flicker { 0% { opacity: 0; } 20% { opacity: 1; } 35% { opacity: .2; } 50% { opacity: 1; } 65% { opacity: .35; } 100% { opacity: 1; } }
@keyframes pull { from { opacity: 0; transform: translateX(-1.8em); } 70% { opacity: 1; transform: translateX(.08em); } to { opacity: 1; transform: none; } }
@keyframes heartbeat { 0% { opacity: 0; transform: scale(.9); } 25% { opacity: 1; transform: scale(1.14); } 45% { transform: scale(1); } 65% { transform: scale(1.1); } 100% { opacity: 1; transform: none; } }
@keyframes slow { from { opacity: 0; transform: translateY(.18em); } to { opacity: 1; transform: none; } }
@keyframes whisper { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes spin { from { opacity: 0; transform: rotate(-80deg) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes tag { from { opacity: 0; transform: translateY(-.4em) rotate(-5deg) scale(1.25); } to { opacity: 1; transform: none; } }
@keyframes leave { to { opacity: 0; transform: translateY(-.5em); } }
@keyframes scatter { to { opacity: 0; transform: translateX(calc(var(--dx, 0) * .5em)) translateY(-.3em) scale(1.06); } }

/* the title card: the first lines stand together */
.card { display: flex; flex-direction: column; align-items: center; gap: .2em; }
.card .cl { font-weight: 800; font-size: clamp(1.4rem, 6.4vw, 3rem); line-height: 1.1; letter-spacing: -0.02em; opacity: 0; text-shadow: 0 2px 28px rgba(0, 0, 0, .75); }
.card .cl.on { animation: stamp 320ms cubic-bezier(.1, .9, .2, 1.2) both; opacity: 1; }
.card .cl:nth-child(1) { color: var(--fire); }
.card .cl:nth-child(2) { font-size: clamp(.9rem, 3.4vw, 1.2rem); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.card .cl:nth-child(3) { font-size: clamp(2.2rem, 10vw, 5rem); }
.card .cl:nth-child(4) { font-size: clamp(1rem, 4vw, 1.5rem); font-weight: 700; }
.card .cl:nth-child(5) { font-size: clamp(.9rem, 3.4vw, 1.2rem); font-weight: 700; letter-spacing: .12em; color: var(--ice); }
.card.gone .cl { animation: leave 420ms var(--ease) both; }

/* what comes next, read ahead; the Latin; the whisper */
.under {
  position: fixed; z-index: 4; left: 0; right: 0; top: calc(var(--stage) + 17vh);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 0 20px; text-align: center; pointer-events: none;
}
.under > * { margin: 0; }
.next { margin: 0 auto; max-width: 30ch; font-size: clamp(.95rem, 3.9vw, 1.35rem); font-weight: 500; line-height: 1.25; opacity: 0; transform: translateY(6px); transition: opacity 300ms, transform 300ms var(--ease); text-shadow: 0 1px 14px rgba(0, 0, 0, .8); }
.next.shown { opacity: .92; transform: none; }
.def { max-width: 34ch; font-size: 13px; font-weight: 500; line-height: 1.35; opacity: 0; transform: translateY(6px); transition: opacity 320ms, transform 320ms var(--ease); text-shadow: 0 1px 12px rgba(0, 0, 0, .8); }
.def.shown { opacity: 1; transform: none; }
.def b { display: block; color: var(--gold); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 11px; margin-bottom: 3px; }
.whisper { position: absolute; top: 0; max-width: 24ch; font-size: clamp(1.1rem, 4.6vw, 1.7rem); font-weight: 500; line-height: 1.2; opacity: 0; transition: opacity 700ms; text-shadow: 0 1px 14px rgba(0, 0, 0, .8); }
.whisper.shown { opacity: 1; }
.under.resting > :not(.whisper) { opacity: 0; transition: opacity 400ms; }
.acts { display: flex; justify-content: center; gap: 8px; opacity: 0; transform: translateY(6px); transition: opacity 300ms, transform 300ms var(--ease); pointer-events: none; }
.acts.shown { pointer-events: auto; }
.acts.shown { opacity: 1; transform: none; }
.act, .btn, .mini {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 14px;
  background: rgba(255, 255, 255, .11); color: var(--pearl); font-size: 11px; font-weight: 700; letter-spacing: .02em;
  text-decoration: none; transition: transform 180ms var(--ease), background 200ms; white-space: nowrap;
}
.act:active, .btn:active, .mini:active { transform: scale(.95); }
.act.fire { background: rgba(255, 45, 77, .22); min-width: 44px; justify-content: center; font-size: 13px; }
.act.fire span:empty { display: none; }
.act.fire.hot { animation: hot 420ms var(--ease); }
@keyframes hot { 30% { transform: scale(1.18); } 100% { transform: none; } }

/* after the last note */
.end {
  position: fixed; z-index: 4; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding: calc(var(--top) + 46px) 20px calc(var(--bottom) + 130px);
  overflow-y: auto; overscroll-behavior: contain; text-align: center;
  background: radial-gradient(ellipse at 50% 42%, rgba(5, 6, 12, .82) 0, rgba(5, 6, 12, .58) 46%, rgba(5, 6, 12, .22) 74%, transparent 100%);
}
.end .statement { margin: 0 auto; max-width: 26ch; font-size: clamp(.95rem, 3.8vw, 1.45rem); font-weight: 700; line-height: 1.3; text-shadow: 0 2px 20px rgba(0, 0, 0, .8); opacity: 0; transform: translateY(8px); transition: opacity 1200ms, transform 1200ms var(--ease); }
.end.shown .statement { opacity: 1; transform: none; }
.end .endacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.end .tx-host { margin: 0 auto; width: 100%; max-width: 380px; text-align: left; }
.end .tx-glass { height: 108px; }
.end .act { background: rgba(255, 255, 255, .18); padding: 11px 16px; font-size: 12px; }

/* ── the two versions: the same words, two recordings ── */
.vers {
  position: fixed; z-index: 6; left: 0; right: 0; bottom: calc(var(--bottom) + 116px);
  display: flex; justify-content: center; gap: 6px; padding: 0 14px; pointer-events: none;
}
.vers .v {
  pointer-events: auto;
  padding: 7px 11px; border-radius: 12px;
  background: rgba(255, 255, 255, .09); color: var(--pearl);
  font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  transition: background 220ms, transform 220ms var(--ease);
}
.vers .v:active { transform: scale(.95); }
.vers .v.on { background: rgba(255, 45, 77, .3); }
.room[data-state="rest"] ~ .vers, .room[data-state="ended"] ~ .vers { opacity: 0; pointer-events: none; transition: opacity 400ms; }

/* ── the lyrics: every line, to read ahead or back, to keep or to give ── */
.sheet {
  position: fixed; z-index: 7; left: 0; right: 0; bottom: 0; height: 74vh; height: 74dvh;
  background: rgba(5, 6, 12, .94); border-radius: 26px 26px 0 0;
  transform: translateY(104%); transition: transform 420ms var(--ease);
  display: flex; flex-direction: column;
}
.sheet.open { transform: none; }
.sheethead { display: flex; align-items: center; gap: 8px; padding: 14px 16px 8px 22px; }
.sheettitle { flex: 1; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.mini { padding: 8px 11px; font-size: 11px; }
.lines {
  flex: 1; min-height: 0; margin: 0; padding: 6px 16px 0 26px; list-style: none; overflow-y: auto; overscroll-behavior: contain;
  -webkit-mask-image: linear-gradient(transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(transparent, #000 6%, #000 94%, transparent);
}
.lines::after { content: ''; display: block; height: 40vh; }
.line { position: relative; display: flex; align-items: flex-start; gap: 8px; margin: 0; }
.line::before { content: ''; position: absolute; left: -14px; top: 17px; width: 6px; height: 6px; border-radius: 50%; background: var(--ice); opacity: 0; transform: scale(.4); transition: opacity 300ms, transform 300ms var(--ease); }
.line.now::before { opacity: 1; transform: scale(1); }
.label { display: block; margin: 20px 0 4px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.txt { flex: 1; display: block; text-align: left; padding: 8px 0; min-height: 40px; font-size: 1.02rem; font-weight: 500; line-height: 1.3; transform-origin: 0 50%; transition: transform 320ms var(--ease), color 300ms; }
.line.now .txt { font-weight: 800; transform: scale(1.05); }
.line .h { flex: none; margin-top: 6px; padding: 5px 8px; border-radius: 10px; background: rgba(255, 255, 255, .07); font-size: 11px; font-weight: 700; }
.line .h.hot { animation: hot 420ms var(--ease); }

/* ── the player: the mark is the control; the bar is the song ── */
.player {
  position: fixed; z-index: 6; left: 0; right: 0; bottom: 0;
  padding: 10px 14px calc(var(--bottom) + 12px);
  background: linear-gradient(to top, rgba(5, 6, 12, .92) 55%, rgba(5, 6, 12, 0));
  display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; gap: 6px 12px; align-items: center;
}
.mark { position: relative; grid-row: 1 / 3; width: 64px; height: 64px; border-radius: 50%; }
.mark img { display: block; width: 100%; height: 100%; object-fit: contain; transform: scale(var(--breath, 1)); transition: transform 90ms linear; }
.mark svg { position: absolute; inset: -5px; width: calc(100% + 10px); height: calc(100% + 10px); overflow: visible; }
.mark .ring { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 2.2; }
.mark .prog { fill: none; stroke: var(--pearl); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 295 295; stroke-dashoffset: 295; transform: rotate(-90deg); transform-origin: 50% 50%; }
.mark .icon { position: absolute; inset: 0; width: 100%; height: 100%; }
.mark .icon path, .mark .icon rect { fill: var(--pearl); transition: opacity 200ms, transform 300ms var(--ease); transform-origin: 50% 50%; }
.mark .icon .play { opacity: 1; }
.mark .icon .pause rect { opacity: 0; transform: scale(.7); }
.room[data-state="play"] ~ .player .mark .icon .play { opacity: 0; transform: scale(.7); }
.room[data-state="play"] ~ .player .mark .icon .pause rect { opacity: .0; }
.room[data-state="play"] ~ .player .mark:hover .icon .pause rect, .room[data-state="play"] ~ .player .mark:focus-visible .icon .pause rect { opacity: 1; transform: none; }
.mark.waiting .prog { stroke-dasharray: 10 8; }
.bar { position: relative; height: 30px; cursor: pointer; touch-action: none; }
.bar::before { content: ''; position: absolute; left: 0; right: 0; top: 13px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .22); }
.bar .fill { position: absolute; left: 0; top: 13px; height: 4px; border-radius: 2px; width: 0; background: var(--fire); }
.bar .knob { position: absolute; top: 8px; left: 0; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--pearl); transform: scale(.9); transition: transform 160ms var(--ease); }
.bar:active .knob, .bar.drag .knob { transform: scale(1.25); }
.row { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; min-width: 0; }
.time { font-size: 11px; font-weight: 700; letter-spacing: .06em; font-variant-numeric: tabular-nums; white-space: nowrap; margin-right: auto; }
.btn { padding: 8px 10px; font-size: 11px; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn[aria-pressed="true"] { background: rgba(255, 255, 255, .24); }
.tally { font-size: 11px; font-weight: 700; letter-spacing: .06em; font-variant-numeric: tabular-nums; white-space: nowrap; text-transform: none; }
.toast { position: fixed; z-index: 9; left: 50%; bottom: calc(var(--bottom) + 150px); transform: translateX(-50%) translateY(8px); padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .92); color: #000; font-size: 12px; font-weight: 700; opacity: 0; transition: opacity 240ms, transform 240ms var(--ease); pointer-events: none; }
.toast.shown { opacity: 1; transform: translateX(-50%); }

/* the rest: the mark stands large at the centre, waiting for the first tap */
.start { position: fixed; z-index: 5; left: 50%; top: var(--stage); width: 148px; height: 148px; margin: -74px 0 0 -74px; border-radius: 50%; opacity: 0; transform: scale(.8); transition: opacity 500ms, transform 700ms var(--ease); pointer-events: none; }
.start img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 40px rgba(255, 45, 77, .35)); }
.start .icon { position: absolute; inset: 0; width: 100%; height: 100%; }
.start .icon path { fill: var(--pearl); }
.start .hint { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 14px; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; }
.room[data-state="rest"] ~ .start { opacity: 1; transform: none; pointer-events: auto; }
.room[data-state="rest"] ~ .player .mark { opacity: 0; pointer-events: none; }
.mark { transition: opacity 500ms; }

/* a phone: the buttons are their icons, and the row stays one row */
@media (max-width: 899px) {
  .btn .lbl, .tally .lbl { display: none; }
  .vers { bottom: calc(var(--bottom) + 108px); gap: 5px; }
  .vers .v { padding: 7px 9px; font-size: 9.5px; letter-spacing: .1em; }
  .under { top: calc(var(--stage) + 16vh); gap: 10px; }
  .next { font-size: clamp(.95rem, 3.8vw, 1.2rem); }
  .def { font-size: 12px; }
  .btn { width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: 12px; }
  .player { grid-template-columns: 56px 1fr; gap: 4px 10px; padding: 8px 12px calc(var(--bottom) + 10px); }
  .mark { width: 56px; height: 56px; }
  .acts { gap: 5px; }
  .act { padding: 8px 9px; font-size: 10px; }
}
/* ── short rooms and wide rooms ── */
@media (max-height: 700px) { :root { --stage: 38vh; } .under { top: calc(var(--stage) + 15vh); } }
@media (max-height: 480px) and (orientation: landscape) {
  :root { --stage: 34vh; }
  .sung { font-size: clamp(1.4rem, 5vw, 2.4rem); }
  .under { top: calc(var(--stage) + 14vh); gap: 6px; }
  .next { font-size: .9rem; }
  .def { display: none; }
  .player { grid-template-columns: 48px 1fr; padding-bottom: calc(var(--bottom) + 6px); }
  .vers { bottom: auto; top: calc(var(--top) + 2px); left: auto; right: 150px; justify-content: flex-end; }
  .mark { width: 48px; height: 48px; }
}
@media (min-width: 900px) {
  :root { --stage: 44vh; }
  .top { padding: 0 28px; font-size: 12px; }
  .sung { max-width: 18ch; font-size: clamp(3rem, 5.4vw, 5.2rem); }
  .sung.long { max-width: 26ch; font-size: clamp(2.2rem, 4vw, 3.6rem); }
  .sung.xlong { max-width: 32ch; font-size: clamp(1.8rem, 3.2vw, 2.8rem); }
  .card .cl { font-size: clamp(2rem, 4vw, 3.6rem); }
  .card .cl:nth-child(3) { font-size: clamp(3.4rem, 7vw, 6.4rem); }
  .under { top: calc(var(--stage) + 15vh); gap: 14px; }
  .next { max-width: 44ch; font-size: 1.3rem; }
  .player { left: 50%; right: auto; width: min(720px, 92vw); transform: translateX(-50%); border-radius: 24px 24px 0 0; padding: 14px 20px calc(var(--bottom) + 16px); grid-template-columns: 72px 1fr; }
  .mark { width: 72px; height: 72px; }
  .vers { left: auto; right: 20px; bottom: calc(var(--bottom) + 128px); justify-content: flex-end; }
  .sheet { left: auto; right: 20px; top: 72px; bottom: 150px; width: 380px; height: auto; border-radius: 24px; transform: translateX(120%); }
  .sheet.open { transform: none; }
  body.sheet-open .stage, body.sheet-open .card, body.sheet-open .under, body.sheet-open .acts, body.sheet-open .end { right: 420px; }
  .start { width: 180px; height: 180px; margin: -90px 0 0 -90px; }
}
@media (min-width: 1400px) { .sung { font-size: clamp(3.2rem, 5vw, 5.6rem); } }

/* ── less motion: the words appear, nothing travels ── */
@media (prefers-reduced-motion: reduce) {
  .sung .w.on, .sung.gone .w, .card .cl.on, .card.gone .cl { animation: none !important; }
  .sung .w.on { opacity: 1; }
  .sung, .next, .def, .whisper, .acts, .sheet, .toast, .mark, .end .statement { transition: opacity 180ms !important; }
  .mark img { transition: none; }
}
