@charset "utf-8";
:root { color-scheme: dark; --paper: #101715; --panel: #18211e; --ink: #eef0df; --muted: #b1baac; --line: #374139; --accent: #d4eaa0; }
* { box-sizing: border-box; }
html { scroll-padding-bottom: 170px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.7 system-ui, -apple-system, "Segoe UI", sans-serif; }
main { width: min(1060px, 100%); padding: 36px 28px 190px; margin: 0 auto; }
a { color: inherit; text-underline-offset: 4px; }
button, select, input { font: inherit; }
button, select { color: inherit; background: transparent; border: 1px solid var(--line); border-radius: 10px; min-height: 46px; padding: 10px 16px; }
button { cursor: pointer; touch-action: manipulation; transition: background .15s ease, border-color .15s ease; }
button:not(:disabled):hover { border-color: var(--accent); background: #263126; }
button:disabled { cursor: default; opacity: .42; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #e5f5b0; outline-offset: 5px; }
button, a, summary, select, input { scroll-margin-bottom: 170px; }
button[aria-pressed="true"] { background: #d4eaa0; color: #172314; border-color: #d4eaa0; }
button[aria-pressed="true"]:hover { background: #e1f3b7; }
[hidden] { display: none !important; }
.brand { display: inline-flex; flex-wrap: wrap; gap: 9px; font: 700 12px/1.5 ui-monospace, monospace; letter-spacing: .13em; text-decoration: none; }
.brand span { color: var(--muted); font-weight: 400; }
.eyebrow { margin: 54px 0 14px; color: var(--accent); font-size: 13px; letter-spacing: .15em; }
h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.3; letter-spacing: -.035em; font-weight: 580; margin: 0; }
.intro { color: var(--muted); margin: 24px 0 34px; }
.session-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding: 15px 0; font-size: 12px; letter-spacing: .07em; }
#round { font-family: ui-monospace, monospace; color: var(--accent); }
#candidates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card { --color: #d4eaa0; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); padding: 23px; position: relative; min-width: 0; }
.card[data-letter="B"] { --color: #efbb8f; }
.card[data-letter="C"] { --color: #b9b9f0; }
.card.playing { border-color: var(--color); }
.card-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font: 12px ui-monospace, monospace; }
.letter { color: var(--color); font-size: 28px; }
.card h2 { font-size: 22px; line-height: 1.4; margin: 19px 0 8px; font-weight: 580; }
.description { font-size: 14px; color: var(--muted); min-height: 3.4em; margin: 0 0 20px; }
.score-strip { display: flex; gap: 4px; height: 38px; align-items: end; margin: 14px 0 22px; overflow: hidden; }
.score-strip span { flex: 1; border-radius: 2px 2px 0 0; background: var(--color); opacity: .6; }
.play { width: 100%; background: var(--color); color: #172016; border-color: var(--color); font-weight: 650; }
.play:not(:disabled):hover { background: var(--ink); color: #172016; }
.progress-line { display: flex; gap: 10px; align-items: center; margin: 13px 0; }
progress { display: block; appearance: none; width: 100%; height: 3px; border: none; color: var(--color); background: var(--line); }
progress::-webkit-progress-bar { background: var(--line); border-radius: 2px; }
progress::-webkit-progress-value { background: var(--color); border-radius: 2px; }
progress::-moz-progress-bar { background: var(--color); }
.time { font: 11px ui-monospace, monospace; color: var(--muted); min-width: 58px; text-align: right; }
.like { width: 100%; font-size: 14px; }
.listen-hint { font-size: 11px; color: var(--muted); margin: 10px 0 0; min-height: 19px; }
.feedback { margin: 34px 0 30px; max-width: 650px; }
.feedback h2 { font-size: 15px; font-weight: 500; }
.feedback-options { display: flex; gap: 10px; flex-wrap: wrap; }
.feedback-options button { flex: 1; font-size: 14px; }
.hint { color: var(--muted); font-size: 12px; }
.next { width: 100%; text-align: left; background: #d4eaa0; color: #172314; border-color: #d4eaa0; font-size: 16px; margin-top: 9px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.next:not(:disabled):hover { color: #172314; background: #e1f3b7; }
.next span { font-size: 24px; }
#status { min-height: 2em; font-size: 14px; color: var(--accent); }
#status[data-error="true"] { color: #ffbbab; }
.about { border-top: 1px solid var(--line); padding-top: 18px; }
summary { cursor: pointer; min-height: 48px; padding: 7px 0; color: var(--muted); }
.about p { max-width: 720px; font-size: 14px; }
.about label { display: block; margin-top: 26px; }
.about label span { display: block; }
select { width: 100%; max-width: 450px; background: var(--panel); margin: 10px 0; }
.memo-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.credits { color: var(--muted); overflow-wrap: anywhere; }
footer { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 18px; font-size: 11px; color: var(--muted); }
.transport { position: fixed; z-index: 5; bottom: 0; left: 0; right: 0; background: #18211ef5; border-top: 1px solid var(--line); padding: 12px max(18px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)); }
.transport-inner { max-width: 680px; margin: auto; display: flex; gap: 16px; align-items: center; }
.transport button { min-width: 95px; }
.transport label { font-size: 12px; white-space: nowrap; }
.transport output { display: block; color: var(--muted); }
.transport input { accent-color: var(--accent); width: 100%; min-width: 40px; height: 44px; margin: 0; }
.transport p { max-width: 680px; margin: 8px auto 0; color: var(--muted); font-size: 10px; }
@media (max-width: 720px) {
  main { padding: 25px 20px 200px; }
  .eyebrow { margin-top: 34px; }
  h1 { font-size: clamp(34px, 8.7vw, 48px); }
  .intro { font-size: 14px; margin-bottom: 24px; }
  #candidates { grid-template-columns: 1fr; gap: 14px; }
  .card { padding: 20px; }
  .card h2 { margin: 0; padding: 0 58px 0 0; font-size: 23px; }
  .card-top { position: absolute; top: 16px; right: 20px; }
  .card-top .length { display: none; }
  .description { min-height: 0; margin-top: 8px; margin-bottom: 8px; }
  .score-strip { height: 22px; margin: 12px 0 18px; }
  .listen-hint { margin-top: 8px; }
  .transport-inner { gap: 12px; }
  .transport button { min-width: 85px; padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
