:root {
  color-scheme: dark;
  --background: #0b0b0d;
  --surface: #20242c;
  --line: #353941;
  --text: #fafafa;
  --muted: #a0a5af;
  --blue: #1672fa;
  --green: #caff3a;
  --rose: #ff899f;
  --paper: #fafafa;
  --ink: #111114;
  --header-height: 104px;
  --page-padding: 40px;
  --ruler-height: 28px;
  --choice-height: 136px;
  --lineup-size: min(212px, calc((100dvh - var(--header-height) - 432px) / 2));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 800px; background: var(--background); color: var(--text); }
button, input { font: inherit; color: inherit; letter-spacing: 0; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .4; }
button, input, canvas { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, canvas:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
button svg { flex: 0 0 auto; }
svg { display: block; width: 20px; height: 20px; stroke-width: 1.8; }
[hidden] { display: none !important; }
h1, h2, p, figure { margin: 0; }
.shell { width: 100%; max-width: 1600px; margin: 0 auto; }
.app-header { height: var(--header-height); border-bottom: 1px solid #555962; }
.header-inner { display: flex; align-items: center; gap: 28px; height: 100%; padding: 0 32px; }
.brand-source { flex: 0 0 auto; padding-right: 36px; border-right: 1px solid #7e828c; }
.brand { display: flex; flex-direction: column; white-space: nowrap; }
.brand-wordmark { position: relative; display: flex; align-items: baseline; gap: 12px; line-height: 1; }
.brand-english { font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif; font-size: 60px; font-style: italic; font-weight: 900; line-height: 1.4; }
.brand-chinese { font-size: 24px; font-weight: 800; line-height: 1.25; }
.brand-mark { position: absolute; width: 8px; height: 8px; right: -11px; bottom: 22%; background: var(--blue); box-shadow: 8px -8px var(--blue); }
.selection-heading { font-size: 38px; font-weight: 800; line-height: 1.2; }
.icon-button { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; flex: 0 0 auto; border: 1px solid #717681; border-radius: 2px; background: transparent; color: var(--text); }
.icon-button svg { width: 24px; height: 24px; }
.icon-button:hover:not(:disabled) { border-color: var(--blue); background: #20242c; }
.icon-button[aria-pressed=true], #settings-toggle[aria-expanded=true] { color: var(--green); }
#settings-toggle { margin-left: auto; }
body:has(#exit-level:not([hidden])) #settings-toggle { margin-left: 0; }
#exit-level { margin-left: auto; }
.exit-actions { display: flex; justify-content: end; gap: 12px; margin-top: 20px; }
#exit-error { margin-top: 16px; }
main.shell { min-height: calc(100dvh - var(--header-height)); }
.artist-selection { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: inherit; }
.artist-fieldset { min-width: 0; margin: 0; padding: 16px var(--page-padding); border: 0; background: var(--paper); color: var(--ink); color-scheme: light; }
.artist-list { display: grid; grid-template-rows: repeat(8, minmax(76px, 1fr)); min-height: 608px; height: calc(100dvh - var(--header-height) - 32px); }
.artist-option { position: relative; display: grid; grid-template-columns: 64px 64px minmax(0, 1fr) 28px; align-items: center; gap: 16px; min-width: 0; border-bottom: 1px solid #c8cbd0; cursor: pointer; }
.artist-option:hover { background: #edf1fa; }
.artist-index { position: relative; font-size: 56px; font-weight: 850; font-variant-numeric: tabular-nums; line-height: 1; }
.artist-index::before { content: ""; position: absolute; width: 6px; height: 6px; top: 0; left: -12px; background: var(--blue); box-shadow: 6px 0 var(--blue), 0 6px var(--blue); }
.artist-option:nth-child(3n+2) .artist-index::before { background: #20b8ff; box-shadow: 6px 0 #20b8ff, 0 6px #20b8ff; }
.artist-option:nth-child(3n) .artist-index::before { background: #a879f7; box-shadow: 6px 0 #a879f7, 0 6px #a879f7; }
.artist-portrait { position: relative; display: grid; place-items: center; width: 64px; height: 64px; overflow: hidden; background: #d4d7dc; color: #606772; font-size: 28px; }
.artist-portrait img, .lineup-slot img, .level-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.artist-checkbox { grid-column: 4; grid-row: 1; width: 24px; height: 24px; margin: 0; accent-color: var(--green); cursor: pointer; }
.artist-checkbox:disabled { cursor: default; }
.artist-option:has(.artist-checkbox:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.artist-checkbox:focus-visible { outline: 0; }
.artist-details { grid-column: 3; grid-row: 1; display: flex; flex-direction: column; justify-content: center; min-width: 0; gap: 4px; }
.artist-name { font-size: 27px; font-weight: 750; line-height: 1.25; overflow-wrap: anywhere; }
.artist-count { color: #535963; font-size: 14px; font-variant-numeric: tabular-nums; }
.artist-placeholder { border-bottom: 1px solid #c8cbd0; }
.artist-placeholder::after { content: ""; display: block; width: 45%; height: 16px; margin: 32px 0 0 96px; background: #e0e3e9; }
.curation-summary { margin-bottom: 8px; color: #535963; font-size: 13px; line-height: 20px; }
.artist-selection.is-expanded-roster { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }
.is-expanded-roster .artist-fieldset { padding: 12px 20px; }
.is-expanded-roster .artist-list { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(var(--roster-rows, 8), minmax(64px, 1fr)); column-gap: 24px; min-height: calc(var(--roster-rows, 8) * 64px); height: calc(100dvh - var(--header-height) - 52px); }
.is-expanded-roster .artist-option { grid-template-columns: 32px 48px minmax(0, 1fr) 24px; gap: 10px; }
.is-expanded-roster .artist-index { font-size: 22px; }
.is-expanded-roster .artist-index::before { display: none; }
.is-expanded-roster .artist-portrait { width: 48px; height: 48px; font-size: 22px; }
.is-expanded-roster .artist-details { gap: 2px; }
.is-expanded-roster .artist-name { font-size: 18px; line-height: 1.2; }
.is-expanded-roster .artist-name.is-long { font-size: 16px; }
.is-expanded-roster .artist-count { font-size: 12px; line-height: 18px; }
.is-expanded-roster .selection-stage { gap: 20px; padding: 24px; }
.is-expanded-roster .selection-lineup { gap: 24px 20px; }
.is-expanded-roster .lineup-name { font-size: 18px; }
.is-expanded-roster .selection-footer { flex-wrap: wrap; gap: 12px; min-height: 92px; padding-top: 18px; }
.is-expanded-roster .selection-count { width: 90px; font-size: 36px; }
.is-expanded-roster .selection-actions { gap: 8px; }
.is-expanded-roster .command.primary-command { min-width: 108px; height: 48px; padding: 0 14px; font-size: 18px; }
.selection-stage { display: flex; flex-direction: column; gap: 24px; min-width: 0; padding: var(--page-padding); border-left: 1px solid var(--line); }
.selection-mode { min-height: 42px; display: flex; align-items: center; color: var(--muted); }
.mode-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(100%, 360px); flex: 0 0 auto; height: 42px; padding: 0; margin: 0; border: 0; }
.mode-switch label { position: relative; display: grid; place-items: center; min-width: 0; cursor: pointer; }
.mode-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.mode-switch span { display: grid; place-items: center; width: 100%; height: 100%; border: 1px solid #69707d; font-size: 16px; font-weight: 650; }
.mode-switch label + label span { border-left: 0; }
.mode-switch input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.mode-switch input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 3px; }
.selection-lineup { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 36px; flex: 1; align-content: start; }
.lineup-item { min-width: 0; }
.lineup-slot { position: relative; display: grid; place-items: center; width: min(100%, var(--lineup-size)); aspect-ratio: 1; border: 1px dashed #535966; overflow: hidden; background: #181c23; color: #636b7b; font-size: 44px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lineup-slot.is-filled { border: 1px solid #353941; }
.lineup-name { display: block; max-width: 260px; min-height: 56px; padding-top: 12px; font-size: 23px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.lineup-item.is-empty .lineup-name { color: #8f96a4; font-size: 14px; }
.selection-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 106px; padding-top: 24px; border-top: 1px solid #757b86; }
.selection-state { display: flex; flex-direction: column; flex: 0 0 auto; }
.selection-count { color: var(--green); font-size: 52px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; white-space: nowrap; }
.section-caption { font-size: 14px; font-weight: 600; }
.selection-state .section-caption { margin-top: 6px; }
.selection-actions { display: flex; align-items: center; gap: 14px; min-width: 0; }
.command { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 20px; border: 1px solid var(--blue); border-radius: 2px; background: var(--blue); color: #fff; font-size: 16px; font-weight: 650; white-space: nowrap; }
.command:hover:not(:disabled) { background: #075cda; border-color: #075cda; }
.command.primary-command { min-width: 168px; height: 64px; font-size: 26px; font-weight: 750; }
.command svg { width: 20px; height: 20px; }
.feedback { min-height: 20px; font-size: 12px; color: var(--rose); overflow-wrap: anywhere; }
.feedback[data-kind=neutral] { color: var(--muted); }
.feedback[data-kind=correct] { color: var(--green); }
.round-heading { display: flex; align-items: center; gap: 24px; flex: 1; min-width: 0; }
.round-number { display: flex; align-items: center; gap: 20px; flex: 0 0 auto; }
.round-number h1 { font-size: 26px; font-weight: 750; white-space: nowrap; }
.round-progress { padding-left: 20px; border-left: 1px solid #7e828c; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.level-artists { display: flex; align-items: start; justify-content: end; gap: 18px; margin-left: auto; min-width: 0; }
.level-artist { display: flex; align-items: center; flex-direction: column; gap: 4px; width: 90px; min-width: 0; color: var(--text); font-size: 11px; line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
.level-portrait { position: relative; display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; overflow: hidden; border: 1px solid #a0a5af; background: var(--surface); font-size: 14px; }
#game-view { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); min-height: inherit; }
.listening-console { display: flex; flex-direction: column; min-width: 0; padding: var(--page-padding); }
.listen-heading { display: flex; align-items: center; gap: 24px; min-height: 52px; margin-bottom: 20px; }
.listen-heading h2 { font-size: 34px; line-height: 1.2; font-weight: 800; }
.layer-progress { padding-left: 24px; border-left: 1px solid #8f95a0; font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; }
.reveal-layers { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; margin-bottom: 24px; }
.reveal-layer { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 48px; padding: 8px 10px; border: 0; border-bottom: 2px solid #434956; border-radius: 0; background: transparent; color: var(--muted); text-align: center; }
.reveal-layer svg { width: 16px; height: 16px; color: var(--accent); }
.reveal-layer span { min-width: 0; font-size: 12px; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
.reveal-layer:hover { background: #20242c; color: var(--text); }
.reveal-layer[aria-pressed=true] { border-color: var(--blue); color: var(--text); background: #20242c; }
.reveal-layers.is-mixer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.mixer-comparison { display: inline-flex; min-width: 0; height: 36px; }
.mixer-mode { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; padding: 0 12px; border: 1px solid #69707d; border-radius: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 650; }
.mixer-mode + .mixer-mode { border-left: 0; }
.mixer-mode[aria-pressed=true] { color: var(--text); background: #20242c; box-shadow: inset 0 -2px var(--green); }
.mixer-mode:hover { color: var(--text); background: #20242c; }
.mixer-mode svg { width: 16px; height: 16px; }
.mixer-tools { display: flex; align-items: center; gap: 6px; }
.mixer-tool { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 auto; padding: 0; border: 1px solid #434956; border-radius: 2px; background: transparent; color: var(--muted); }
.mixer-tool svg { width: 15px; height: 15px; }
.mixer-tool:hover { color: var(--text); border-color: #818895; background: #20242c; }
.mixer-tool[aria-pressed=true] { color: var(--green); border-color: var(--green); }
.mixer-mute[aria-pressed=true] { color: var(--rose); border-color: var(--rose); }
.multitrack.has-mixer { grid-template-columns: 216px minmax(0, 1fr); }
body[data-replay-audio-view=stems] .multitrack.has-mixer { --row-height: clamp(30px, calc((100dvh - var(--header-height) - 256px) / var(--track-count)), 60px); }
body:is([data-mode=result], [data-mode=review]):is([data-replay-audio-view=full], [data-replay-audio-view=stems]) #listen-heading,
body:is([data-mode=result], [data-mode=review]):is([data-replay-audio-view=full], [data-replay-audio-view=stems]) #now-playing { display: none; }
body[data-mode=review][data-replay-audio-view=full] .multitrack.has-mixer { --row-height: clamp(72px, calc((100dvh - var(--header-height) - 400px) / 2), 160px); }
.clue-row.mixer-track { grid-template-columns: minmax(0, 1fr) 28px 28px; gap: 6px; padding-right: 10px; }
.mixer-track-label { display: flex; align-items: center; gap: 8px; min-width: 0; cursor: pointer; }
.mixer-select { width: 16px; height: 16px; flex: 0 0 auto; margin: 0; accent-color: var(--green); cursor: pointer; }
.mixer-track .clue-label { font-size: 12px; }
.mixer-track.is-muted .clue-label { color: #838a97; }
.mixer-track.is-current::after { height: 18px; }
.multitrack { --row-height: clamp(28px, calc((100dvh - var(--header-height) - 348px) / var(--track-count)), 64px); display: grid; grid-template-columns: 180px minmax(0, 1fr); min-width: 0; }
body[data-mode=result] .multitrack { --row-height: clamp(72px, calc((100dvh - var(--header-height) - 400px) / 2), 160px); }
.track-labels { min-width: 0; }
.label-ruler { height: var(--ruler-height); }
.clue-list { list-style: none; margin: 0; padding: 0; }
.clue-row { position: relative; display: grid; grid-template-columns: 25px 18px minmax(0, 1fr); align-items: center; gap: 8px; height: var(--row-height); padding-right: 12px; border-bottom: 1px solid #343943; }
.clue-row.is-current::after { content: ""; position: absolute; right: 0; width: 3px; height: 24px; background: var(--accent); }
.clue-review { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; }
.clue-review:hover { background: rgb(255 255 255 / .06); }
.clue-number { font-size: 20px; font-weight: 750; font-variant-numeric: tabular-nums; }
.clue-symbol { color: var(--accent); }
.clue-symbol svg { width: 16px; height: 16px; }
.clue-label { font-size: 13px; font-weight: 650; line-height: 1.25; overflow-wrap: anywhere; }
.clue-row.is-locked { color: #9096a4; }
.clue-row.is-locked .clue-symbol { color: #9096a4; }
#waveform { display: block; width: 100%; height: calc(var(--ruler-height) + var(--row-height) * var(--track-count)); min-width: 0; cursor: crosshair; }
.timeline-footer { min-height: 30px; padding-top: 6px; }
.now-playing { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 0; }
.now-playing-cover { display: block; flex: 0 0 36px; width: 36px; height: 36px; background: #20242c; overflow: hidden; }
.now-playing-cover img { width: 100%; height: 100%; object-fit: cover; }
.now-playing > div { min-width: 0; }
.now-playing strong { display: block; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.now-playing span:last-child { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.feedback-line { display: flex; align-items: center; min-width: 0; gap: 8px; }
.feedback-line .icon-button { width: 26px; height: 26px; }
.feedback-line .icon-button svg { width: 16px; height: 16px; }
.transport { display: flex; align-items: center; gap: 22px; min-height: 88px; border-top: 1px solid #676e7c; border-bottom: 1px solid #676e7c; }
.play-button { display: grid; place-items: center; width: 64px; height: 64px; flex: 0 0 auto; padding: 0; border: 0; border-radius: 50%; background: var(--blue); color: #fff; }
.play-button:hover:not(:disabled) { background: #075cda; }
.play-button svg { width: 28px; height: 28px; }
.playback-position { flex: 1; min-width: 0; }
.timecode { display: flex; align-items: center; gap: 8px; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.time-divider, #duration { color: var(--muted); }
.seek-control { position: relative; display: grid; align-items: center; height: 26px; margin-top: 4px; }
#playback-progress { position: absolute; width: 100%; height: 4px; border: 0; pointer-events: none; }
#playback-progress::-webkit-progress-bar { background: #59606e; }
#playback-progress::-webkit-progress-value { background: var(--green); }
#playback-progress::-moz-progress-bar { background: var(--green); }
#playback-position { position: relative; appearance: none; width: 100%; height: 24px; margin: 0; background: transparent; cursor: pointer; }
#playback-position::-webkit-slider-runnable-track { height: 4px; background: transparent; }
#playback-position::-webkit-slider-thumb { appearance: none; width: 14px; height: 14px; margin-top: -5px; border: 0; border-radius: 50%; background: var(--green); }
#playback-position::-moz-range-track { height: 4px; background: transparent; }
#playback-position::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--green); }
#playback-position:disabled { cursor: default; opacity: .4; }
.next-layer { flex: 0 0 auto; }
.experience-actions { display: flex; justify-content: end; min-height: 66px; padding-top: 18px; }
.experience-actions .command { background: transparent; border-color: #717681; color: var(--text); }
.experience-actions .command:hover:not(:disabled) { background: #20242c; border-color: var(--blue); }
body[data-mode=result][data-game-mode=experience][data-replay-audio-view=stems] .multitrack.has-mixer { --row-height: clamp(30px, calc((100dvh - var(--header-height) - 322px) / var(--track-count)), 60px); }
.round-value { display: flex; align-items: baseline; gap: 24px; min-height: 88px; margin-top: 18px; }
.round-value .section-caption { font-size: 20px; }
.round-value strong { color: var(--green); font-size: 64px; font-weight: 850; line-height: 1.2; font-variant-numeric: tabular-nums; }
.answer-console { min-width: 0; padding: var(--page-padding); border-left: 1px solid #bfc3cb; background: var(--paper); color: var(--ink); color-scheme: light; }
.score-heading { display: flex; flex-direction: column; gap: 4px; }
.score-heading .section-caption { font-size: 22px; font-weight: 750; }
.score-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; }
.clearance-state { color: #316b18; font-size: 14px; font-weight: 700; white-space: nowrap; }
.level-score { font-size: 58px; font-weight: 850; font-variant-numeric: tabular-nums; line-height: 1.1; white-space: nowrap; }
.score-progress { display: block; width: 100%; height: 4px; margin: 18px 0 32px; border: 0; accent-color: var(--blue); }
.score-progress::-webkit-progress-bar { background: #c9ccd2; }
.score-progress::-webkit-progress-value { background: var(--blue); }
.score-progress::-moz-progress-bar { background: var(--blue); }
.choice-list { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(4, var(--choice-height)); gap: 18px; }
.choice-button { display: grid; grid-template-columns: 62px minmax(0, 1fr); align-items: center; min-width: 0; height: var(--choice-height); padding: 0; border: 1px solid #666e7b; border-radius: 0; background: transparent; color: var(--ink); text-align: left; }
.choice-button:hover:not(:disabled) { border-color: var(--blue); background: #edf2fc; }
.choice-button:disabled { opacity: .7; }
.choice-button.is-selected { border-color: #799c00; background: #eff8d2; }
.choice-letter { display: grid; place-items: center; align-self: stretch; background: var(--blue); color: #fff; font-size: 54px; font-weight: 800; line-height: 1; }
.choice-button.is-selected .choice-letter { background: var(--green); color: var(--ink); }
.choice-body { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 14px; min-width: 0; padding: 14px 16px; }
.choice-cover, .recap-cover { position: relative; display: grid; place-items: center; width: 72px; height: 72px; overflow: hidden; background: #dce0e7; color: #68717e; }
.choice-cover img, .recap-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.choice-title { display: block; min-width: 0; max-height: calc(var(--choice-height) - 28px); margin: 0; font-size: 21px; line-height: 1.28; overflow-wrap: anywhere; }
.choice-title.is-long { font-size: 19px; }
.choice-song { display: block; font-weight: 750; }
.choice-artist { display: block; margin-top: 8px; color: #4d5460; font-size: .78em; line-height: 1.3; }
.result-region { display: flex; flex-direction: column; align-items: start; gap: 20px; min-width: 0; }
body:is([data-mode=result], [data-mode=review]) .answer-console { display: flex; flex-direction: column; height: calc(100dvh - var(--header-height)); }
body:is([data-mode=result], [data-mode=review]) .score-heading, body:is([data-mode=result], [data-mode=review]) .challenge-lives { flex: 0 0 auto; }
body:is([data-mode=result], [data-mode=review]) .score-progress { flex: 0 0 4px; }
body:is([data-mode=result], [data-mode=review]) .result-region { min-height: 0; overflow: auto; }
.result-region.has-lyrics { display: grid; flex: 1; grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); align-items: start; overflow: hidden; }
.result-region.has-lyrics .result-cover { width: 64px; }
.result-region.has-lyrics .result-song { grid-column: 2; }
.result-region.has-lyrics .result-score { grid-column: 1 / -1; font-size: 32px; }
.lyrics-region { display: flex; flex-direction: column; align-self: stretch; grid-column: 1 / -1; width: 100%; min-width: 0; min-height: 0; padding-top: 16px; border-top: 1px solid #b7bec9; }
.lyrics-region h3 { flex: 0 0 auto; margin: 0 0 12px; font-size: 12px; font-weight: 600; color: #535b68; }
.lyrics-lines { position: relative; flex: 1; min-height: 0; overflow: auto; overflow-anchor: none; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #b7bec9 transparent; }
.lyrics-lines:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.lyrics-lines p { padding: 10px 12px 10px 0; font-size: 18px; font-weight: 550; line-height: 1.65; color: #626a77; white-space: pre-line; overflow-wrap: anywhere; }
.lyrics-lines[data-mode=synchronized]::before, .lyrics-lines[data-mode=synchronized]::after { content: ""; display: block; height: var(--lyrics-leading, 0px); }
.lyrics-lines[data-mode=synchronized]::after { height: var(--lyrics-trailing, 0px); }
.lyrics-lines[data-mode=synchronized] p { font-size: 22px; font-weight: 650; color: #a2a8b2; transition: color 220ms ease; }
.lyrics-lines[data-mode=synchronized] p.is-near { color: #6c7481; }
.lyrics-lines[data-mode=synchronized] p.is-active { color: var(--blue); }
.result-cover { display: grid; place-items: center; flex-shrink: 0; width: min(100%, 240px); aspect-ratio: 1; overflow: hidden; background: #dce0e7; color: #6a7485; }
.result-cover img { width: 100%; height: 100%; object-fit: cover; }
.result-cover svg { width: 48px; height: 48px; }
.result-song { flex-shrink: 0; min-width: 0; width: 100%; }
.result-outcome { margin-bottom: 8px; font-size: 14px; font-weight: 700; color: #556076; }
.result-outcome[data-status=correct] { color: #075cda; }
.result-outcome[data-status=incorrect] { color: #bd3450; }
.result-song h2 { font-size: 24px; line-height: 1.3; font-weight: 750; overflow-wrap: anywhere; }
.result-artist { margin-top: 8px; color: #535b68; font-size: 14px; overflow-wrap: anywhere; }
.result-detail { margin-top: 12px; color: #535b68; font-size: 13px; font-variant-numeric: tabular-nums; }
.challenge-lives { display: flex; align-items: center; gap: 10px; min-height: 40px; margin: 8px 0 6px; border-bottom: 1px solid #c9ccd2; font-size: 14px; }
.challenge-lives span { margin-right: auto; }
.challenge-lives svg { width: 22px; height: 22px; }
.life-active { color: #c42e51; fill: #c42e51; }
.life-lost { color: #a3a8b2; }
.result-score { flex-shrink: 0; color: var(--blue); font-size: 48px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.level-end { display: flex; flex-direction: column; align-items: start; justify-content: center; gap: 40px; min-height: 420px; flex: 1; }
.end-summary { display: flex; flex-direction: column; gap: 24px; }
.end-summary > svg { width: 64px; height: 64px; color: var(--blue); }
.level-end h1 { font-size: 52px; font-weight: 800; line-height: 1.2; }
.end-score { margin-top: 16px; color: var(--green); font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
#game-view[data-mode=end] { grid-template-columns: minmax(0, 1fr); }
#game-view[data-mode=end] .listening-console { height: calc(100dvh - var(--header-height)); }
#game-view[data-mode=end] .timeline-footer { min-height: 20px; }
.level-end { display: flex; flex-direction: column; align-items: stretch; justify-content: start; gap: 24px; min-height: 0; flex: 1; overflow: hidden; }
.end-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex: 0 0 auto; }
.end-summary { flex-direction: row; align-items: center; gap: 20px; min-width: 0; }
.end-summary > svg { width: 40px; height: 40px; flex: 0 0 auto; }
.level-end h1 { font-size: 32px; }
.end-score { margin-top: 6px; font-size: 18px; }
.end-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.secondary-command { border-color: #717681; background: transparent; }
.secondary-command:hover:not(:disabled) { background: #20242c; border-color: var(--blue); }
.recap-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); flex: 0 0 auto; margin: 0; padding: 18px 0; border-top: 1px solid #59606c; border-bottom: 1px solid #59606c; }
.recap-stats div { min-width: 0; }
.recap-stats dt { color: #a0a5af; font-size: 13px; }
.recap-stats dd { margin: 4px 0 0; font-size: 30px; font-weight: 750; font-variant-numeric: tabular-nums; }
.recap-scroll { min-height: 0; flex: 1; overflow: auto; }
.recap-table { width: 100%; table-layout: fixed; border-collapse: collapse; text-align: left; }
.recap-table th { position: sticky; top: 0; z-index: 1; padding: 10px 12px; background: #0b0b0d; color: #a0a5af; font-size: 12px; font-weight: 550; }
.recap-table th:first-child { width: 66px; }
.recap-table th:nth-child(3) { width: 80px; }
.recap-table th:nth-child(4) { width: 126px; }
.recap-table th:nth-child(5) { width: 92px; }
.recap-table th:nth-child(6) { width: 80px; }
.recap-table th:last-child { width: 112px; }
.recap-table td { padding: 12px; border-bottom: 1px solid #353941; font-size: 14px; font-variant-numeric: tabular-nums; vertical-align: middle; }
.recap-table tr.is-reviewing { background: #182132; }
.recap-song > span:last-child { display: block; margin-left: 64px; overflow-wrap: anywhere; }
.recap-song strong { display: block; font-size: 15px; font-weight: 650; }
.recap-song > span:last-child > span { display: block; margin-top: 2px; color: #a0a5af; font-size: 12px; }
.recap-song small { display: block; margin-top: 4px; color: #ff899f; font-size: 12px; }
.recap-cover { float: left; width: 48px; height: 48px; }
.recap-outcome[data-status=correct] { color: var(--green); }
.recap-outcome[data-status=incorrect] { color: var(--rose); }
.recap-outcome[data-status=revealed] { color: #a0a5af; }
.recap-points { color: #6fabff; font-weight: 750; }
.recap-play { width: 36px; height: 36px; }
.recap-play svg { width: 18px; height: 18px; }
.recap-actions > button { display: inline-grid; vertical-align: middle; }
.recap-review { width: 36px; height: 36px; margin-left: 8px; }
.recap-review svg { width: 18px; height: 18px; }
.settings-panel { width: 360px; max-height: calc(100% - 48px); padding: 24px; border: 1px solid var(--blue); border-radius: 4px; background: #14171d; color: var(--text); overflow: auto; }
.settings-panel::backdrop { background: rgb(0 0 0 / .6); }
.settings-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.settings-heading h2 { font-size: 22px; font-weight: 750; }
.settings-heading .icon-button { width: 32px; height: 32px; }
.settings-heading .icon-button svg { width: 18px; height: 18px; }
.volume-heading { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
#volume-value { color: var(--muted); font-variant-numeric: tabular-nums; }
.volume-control { display: flex; align-items: center; gap: 16px; margin: 12px 0 24px; }
.volume-control .icon-button { width: 36px; height: 36px; }
#volume { width: 100%; min-width: 0; height: 24px; margin: 0; cursor: pointer; accent-color: var(--green); }
.settings-command { display: flex; align-items: center; gap: 10px; width: 100%; padding: 18px 0 0; border: 0; border-top: 1px solid #4c5260; background: transparent; font-size: 14px; text-align: left; }
.settings-command:hover:not(:disabled) { color: var(--green); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
html[data-embed=true] .brand-source { display: none; }
@media (max-width: 1100px) {
  :root { --header-height: 84px; --page-padding: 28px; --choice-height: 120px; }
  .header-inner { gap: 20px; padding: 0 28px; }
  .brand-source { padding-right: 32px; }
  .brand-wordmark { gap: 10px; }
  .brand-english { font-size: 42px; }
  .brand-chinese { font-size: 18px; }
  .selection-heading { font-size: 30px; }
  .icon-button { width: 44px; height: 44px; }
  .artist-option { grid-template-columns: 48px 56px minmax(0, 1fr) 24px; gap: 12px; }
  .artist-index { font-size: 44px; }
  .artist-portrait { width: 56px; height: 56px; }
  .artist-name { font-size: 23px; }
  .artist-count { font-size: 12px; }
  .selection-lineup { gap: 24px; }
  .lineup-name { font-size: 20px; min-height: 50px; }
  .selection-count { font-size: 44px; }
  .selection-footer { gap: 16px; min-height: 94px; padding-top: 18px; }
  .selection-actions { gap: 12px; }
  .command.primary-command { min-width: 138px; height: 54px; font-size: 22px; }
  .round-heading { gap: 16px; }
  .round-number { gap: 12px; }
  .round-number h1 { font-size: 20px; }
  .round-progress { padding-left: 12px; font-size: 14px; }
  .level-artists { gap: 8px; }
  .level-artist { width: 76px; font-size: 10px; }
  .level-portrait { width: 32px; height: 32px; }
  .listen-heading { gap: 20px; min-height: 46px; margin-bottom: 16px; }
  .listen-heading h2 { font-size: 28px; }
  .layer-progress { padding-left: 20px; font-size: 18px; }
  .multitrack { grid-template-columns: 154px minmax(0, 1fr); }
  .reveal-layers { grid-template-columns: repeat(var(--compact-columns), minmax(0, 1fr)); }
  .clue-row { grid-template-columns: 21px 16px minmax(0, 1fr); gap: 6px; padding-right: 8px; }
  .clue-number { font-size: 17px; }
  .clue-label { font-size: 12px; }
  .transport { gap: 16px; min-height: 78px; }
  .play-button { width: 52px; height: 52px; }
  .play-button svg { width: 24px; height: 24px; }
  .command { padding: 0 14px; height: 44px; font-size: 14px; }
  .next-layer svg { display: none; }
  .round-value { min-height: 76px; margin-top: 14px; gap: 20px; }
  .round-value .section-caption { font-size: 17px; }
  .round-value strong { font-size: 54px; }
  .score-heading .section-caption { font-size: 19px; }
  .level-score { font-size: 48px; }
  .score-progress { margin: 16px 0 26px; }
  .challenge-lives { min-height: 34px; margin: 6px 0; }
  .choice-list { gap: 14px; }
  .choice-button { grid-template-columns: 48px minmax(0, 1fr); }
  .choice-body { grid-template-columns: 52px minmax(0, 1fr); gap: 10px; padding: 12px; }
  .choice-cover { width: 52px; height: 52px; }
  .choice-letter { font-size: 42px; }
  .choice-title { margin: 0; font-size: 19px; }
  .choice-title.is-long { font-size: 17px; }
  .result-cover { width: min(100%, 200px); }
  .result-region { gap: 16px; }
  .result-song h2 { font-size: 21px; }
  .level-end { min-height: 0; gap: 20px; }
  .level-end h1 { font-size: 28px; }
  .recap-stats dd { font-size: 26px; }
}
@media (max-height: 800px) {
  :root { --header-height: 80px; --page-padding: 20px; --choice-height: clamp(72px, calc((100dvh - var(--header-height) - 198px) / 4), 110px); }
  .brand-english { font-size: 42px; }
  .brand-chinese { font-size: 18px; }
  .listen-heading { min-height: 36px; margin-bottom: 8px; }
  .listen-heading h2 { font-size: 28px; }
  .multitrack { --row-height: clamp(24px, calc((100dvh - var(--header-height) - 270px) / var(--track-count)), 48px); }
  body[data-mode=result] .multitrack { --row-height: clamp(72px, calc((100dvh - var(--header-height) - 400px) / 2), 96px); }
  .reveal-layers { gap: 6px; margin-bottom: 12px; }
  .reveal-layer { min-height: 36px; padding: 6px 8px; }
  .timeline-footer { min-height: 24px; }
  .now-playing { min-height: 48px; padding: 6px 0; }
  .transport { gap: 16px; min-height: 64px; }
  .play-button { width: 48px; height: 48px; }
  .play-button svg { width: 24px; height: 24px; }
  .round-value { min-height: 52px; margin-top: 10px; }
  .round-value .section-caption { font-size: 16px; }
  .round-value strong { font-size: 44px; }
  .score-heading .section-caption { font-size: 18px; }
  .level-score { font-size: 40px; }
  .score-progress { margin: 12px 0 22px; }
  .challenge-lives { min-height: 34px; margin: 6px 0; }
  .choice-list { gap: 12px; }
  .choice-button { grid-template-columns: 48px minmax(0, 1fr); }
  .choice-letter { font-size: 38px; }
  .choice-body { grid-template-columns: 48px minmax(0, 1fr); gap: 10px; padding: 8px 12px; }
  .choice-cover { width: 48px; height: 48px; }
  .choice-title { max-height: calc(var(--choice-height) - 16px); font-size: 18px; }
  .result-region { gap: 16px; }
  .result-region:not(.has-lyrics) { display: grid; grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: auto auto; align-content: start; }
  .result-region:not(.has-lyrics) .result-cover { grid-row: 1 / span 2; width: 112px; }
  .result-region:not(.has-lyrics) .result-song, .result-region:not(.has-lyrics) .result-score { grid-column: 2; }
  .result-score, .result-region.has-lyrics .result-score { font-size: 32px; }
  .lyrics-region { padding-top: 12px; }
  .lyrics-region h3 { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .lyrics-lines p { transition: none !important; }
}
