:root {
  color-scheme: light;
  --paper: #f5f1fc;
  --ink: #252038;
  --muted: #716b80;
  --purple: #7550ed;
  --lime: #d6fa74;
  --border: 2px solid var(--ink);
  font-family: "Arial", "Segoe UI", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button, a { touch-action: manipulation; }
a { color: inherit; text-underline-offset: 4px; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--purple); outline-offset: 5px; }
.page { width: min(100%, 1152px); min-height: 100svh; margin: auto; padding: 28px 40px 18px; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 19px; font-weight: 800; letter-spacing: -.8px; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border: var(--border); border-radius: 12px; background: var(--lime); transform: rotate(-8deg); }
.brand-mark svg { width: 23px; height: 23px; }
.score-pill { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 15px; border: var(--border); border-radius: 99px; background: #fff; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.score-pill svg { width: 18px; height: 18px; fill: var(--purple); }
.score-divider, #answered { color: var(--muted); }
.game { width: min(100%, 664px); margin: auto; padding: 42px 0 18px; }
.hero { text-align: center; margin-bottom: 30px; }
h1 { margin: 0; font-size: clamp(42px, 6vw, 72px); font-weight: 900; letter-spacing: -.065em; line-height: 1.1; }
.hero h1 { display: flex; align-items: center; justify-content: center; gap: 13px; white-space: nowrap; }
.or-word { font-family: Georgia, serif; font-size: .42em; font-style: italic; font-weight: 500; letter-spacing: -.04em; color: var(--muted); }
.song-word { display: inline-block; padding: 0 .12em .04em; border: var(--border); border-radius: 16px; background: var(--lime); transform: rotate(-4deg); }
.hero p { margin: 17px 0 0; color: var(--muted); font-size: 15px; }
.hero .catalog-status { margin-top: 9px; font-size: 11px; }
.quote-stack { position: relative; isolation: isolate; margin: 0 5px; }
.quote-stack::before { content: ""; position: absolute; inset: 4px -2px -3px; z-index: -1; border: var(--border); border-radius: 28px; background: #dcd0ff; transform: rotate(-2deg); }
.quote-card { position: relative; display: flex; flex-direction: column; min-height: 280px; padding: 22px 29px 27px; border: var(--border); border-radius: 28px; background: var(--purple); color: white; box-shadow: 0 6px 0 var(--ink); }
.card-top { display: flex; align-items: center; justify-content: space-between; }
.round-label { font-size: 11px; line-height: 1; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; opacity: .8; }
.card-spark { width: 29px; height: 29px; fill: var(--lime); transform: rotate(12deg); }
.quote-text { width: 100%; margin: auto; padding: 28px 3px 26px; font-size: clamp(28px, 3.7vw, 39px); line-height: 1.25; font-weight: 700; letter-spacing: -.045em; text-align: center; text-wrap: balance; overflow-wrap: break-word; }
.answer-zone { min-height: 160px; padding-top: 23px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.choice { display: flex; align-items: center; gap: 12px; min-height: 80px; padding: 17px 20px; border: var(--border); border-radius: 20px; background: #fff; color: var(--ink); box-shadow: 0 4px 0 var(--ink); cursor: pointer; transition: transform .16s, box-shadow .16s, background .16s; }
.choice.song { background: var(--lime); }
.choice:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 7px 0 var(--ink); }
.choice:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.choice-icon { display: grid; place-items: center; flex: none; }
.choice-icon svg { width: 31px; height: 31px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.choice-label { font-size: 23px; font-weight: 800; letter-spacing: -.8px; }
.key-hint { display: grid; place-items: center; width: 27px; height: 26px; margin-left: auto; border: 1px solid #25203830; border-radius: 7px; color: #252038a6; font: 13px Arial, sans-serif; }
.keyboard-help { margin: 19px 0 0; text-align: center; font-size: 11px; color: var(--muted); }
.feedback { display: none; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 19px; border: var(--border); border-radius: 20px; background: #fff; box-shadow: 0 4px 0 var(--ink); }
.feedback.visible { display: grid; animation: appear .18s ease-out; }
.feedback-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; color: #29492b; background: var(--lime); font-size: 18px; font-weight: 800; }
.feedback.incorrect .feedback-icon { color: #743a3f; background: #ffdadf; }
.feedback-title { margin: 3px 0 6px; font-size: 16px; font-weight: 800; letter-spacing: -.3px; }
.feedback-detail { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.feedback-detail a { display: inline-block; color: var(--ink); font-weight: 700; }
.music-links { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; }
.music-links a { display: inline-flex; align-items: center; min-height: 44px; }
.music-links .music-primary { padding: 0 12px; border-radius: 10px; background: var(--purple); color: #fff; text-decoration: none; }
.music-links .music-primary:hover { background: #5b36d3; }
.next { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 12px 18px; border: var(--border); border-radius: 14px; color: #fff; background: var(--ink); font-size: 15px; font-weight: 700; cursor: pointer; }
.next:hover { background: #4e397c; }
.next .arrow { font-size: 20px; }
footer { display: flex; align-items: center; justify-content: center; gap: 26px; padding-top: 10px; }
.footer-link, .restart { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 5px 0; color: var(--muted); border: 0; background: none; font-size: 12px; cursor: pointer; text-decoration: none; }
.footer-link:hover, .restart:hover { color: var(--ink); text-decoration: underline; }
.restart svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@keyframes appear { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.credits-page { width: min(100%, 900px); margin: auto; padding: 35px 26px 70px; font-size: 15px; line-height: 1.75; }
.credits-page h1 { margin: 30px 0 20px; font-size: 48px; }
.credits-page h2 { margin-top: 36px; font-size: 23px; letter-spacing: -.7px; }
.credits-page p { max-width: 760px; color: var(--muted); }
.credits-page strong { color: var(--ink); }
.credits-page ul { columns: 2; padding-left: 23px; }
.credits-page li { break-inside: avoid; padding: 3px 0; }
.credits-page table { width: 100%; border-spacing: 0; border: var(--border); border-radius: 18px; background: white; overflow: hidden; font-size: 13px; }
.credits-page th, .credits-page td { padding: 13px 16px; border-bottom: 1px solid #e8e2f0; text-align: left; vertical-align: top; }
.credits-page th { background: var(--lime); }
.credits-page tr:last-child td { border-bottom: 0; }
.catalog-controls { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.catalog-controls input, .catalog-controls select { min-width: 0; min-height: 44px; padding: 10px 13px; border: var(--border); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; }
.catalog-controls input { flex: 1 1 240px; }
.catalog-controls input:focus-visible, .catalog-controls select:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
.catalog-pagination { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.catalog-pagination button { min-height: 44px; padding: 8px 16px; border: var(--border); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; }
.catalog-pagination button:disabled { opacity: .4; cursor: default; }
.credits-page .catalog-table td { overflow-wrap: anywhere; }
.catalog-table a { display: inline-block; min-height: 36px; margin-right: 10px; }
@media (max-width: 640px) {
  .page { padding: 22px 20px 12px; }
  .brand { font-size: 16px; gap: 8px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
  .score-pill { min-height: 37px; padding: 7px 11px; gap: 6px; font-size: 14px; }
  .score-pill svg { width: 15px; height: 15px; }
  .game { padding: 38px 0 16px; }
  .hero { margin-bottom: 27px; }
  .hero h1 { gap: 10px; font-size: clamp(36px, 10.9vw, 54px); }
  .song-word { border-radius: 12px; }
  .hero p { margin-top: 15px; font-size: 13px; }
  .quote-stack { margin-inline: 3px; }
  .quote-card { min-height: 250px; padding: 18px 20px 22px; border-radius: 24px; }
  .quote-stack::before { border-radius: 24px; }
  .quote-text { font-size: clamp(27px, 7.5vw, 35px); line-height: 1.27; padding: 27px 0 24px; }
  .card-spark { width: 25px; height: 25px; }
  .round-label { font-size: 10px; letter-spacing: 1.2px; }
  .answer-zone { min-height: 130px; padding-top: 22px; }
  .choices { gap: 12px; }
  .choice { min-height: 76px; padding: 15px; border-radius: 17px; gap: 9px; }
  .choice-label { font-size: 21px; }
  .choice-icon svg { width: 27px; height: 27px; }
  .key-hint, .keyboard-help { display: none; }
  .feedback { grid-template-columns: 29px minmax(0, 1fr); gap: 10px; padding: 16px; border-radius: 18px; }
  .feedback-icon { width: 27px; height: 27px; font-size: 16px; }
  .feedback-title { margin-top: 3px; font-size: 15px; }
  .feedback-detail { font-size: 12px; }
  .next { grid-column: 1 / -1; margin-top: 5px; min-height: 46px; }
  footer { padding-top: 0; gap: 25px; }
  .credits-page { padding-inline: 20px; }
  .credits-page h1 { font-size: 38px; }
  .credits-page ul { columns: 1; }
  .credits-page table, .credits-page tbody, .credits-page tr, .credits-page td { display: block; }
  .credits-page table { padding: 4px 17px; }
  .credits-page thead { display: none; }
  .credits-page tr { padding: 13px 0; border-bottom: 1px solid #e8e2f0; }
  .credits-page tr:last-child { border: 0; }
  .credits-page td { padding: 2px 0; border: 0; }
  .credits-page td:first-child { font-weight: 700; }
}
@media (max-width: 350px) {
  .page { padding-inline: 15px; }
  .brand { font-size: 15px; }
  .hero h1 { gap: 8px; }
  .choice { padding-inline: 12px; }
  .choice-label { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
