:root {
  color-scheme: dark;
  --background: #090b0f;
  --surface: #11151b;
  --raised: #181d25;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f5f7fa;
  --muted: #8c95a2;
  --accent: #fb7185;
  --accent-soft: rgba(251, 113, 133, 0.12);
  --violet: #a78bfa;
  --cyan: #67e8f9;
  --correct: #86efac;
  --wrong: #fda4af;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 76% 7%, rgba(251, 113, 133, 0.07), transparent 29%),
    var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, select { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, select:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.app { min-height: 100vh; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px clamp(20px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-size: 13px; font-weight: 700; text-decoration: none; }
.brand-mark { width: 10px; height: 10px; background: linear-gradient(135deg, var(--accent), var(--violet)); border-radius: 50%; box-shadow: 0 0 14px rgba(251, 113, 133, 0.4); }
.site-header > p { margin: 0; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding: 24px clamp(20px, 4vw, 56px) 20px; }
.eyebrow, .prompt-label { margin: 0 0 6px; color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: 0.17em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(27px, 3.3vw, 44px); font-weight: 610; letter-spacing: -0.05em; }
.page-heading > p { max-width: 480px; margin: 0 0 3px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.game-shell { margin: 0 clamp(20px, 4vw, 56px) 36px; }
.settings { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)) minmax(140px, 0.8fr); align-items: end; gap: 9px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px 12px 0 0; }
.setting > span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: 0.13em; text-transform: uppercase; }
.setting select, .start-button { width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 7px; }
.setting select { padding: 0 34px 0 11px; appearance: none; background: linear-gradient(45deg, transparent 50%, var(--muted) 50%) calc(100% - 16px) 17px/5px 5px no-repeat, linear-gradient(135deg, var(--muted) 50%, transparent 50%) calc(100% - 11px) 17px/5px 5px no-repeat, var(--raised); color: var(--text); }
.setting select option { background: var(--raised); color: var(--text); }
.start-button, .check-button { border-color: transparent; background: var(--accent); color: #21080d; font-size: 12px; font-weight: 800; }
.start-button:hover, .check-button:hover { background: #fda4af; }
.game-status { min-height: 132px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 30px; padding: 18px 20px; background: var(--raised); border-right: 1px solid var(--line); border-left: 1px solid var(--line); }
.chord-line { display: flex; align-items: baseline; gap: 16px; min-height: 55px; }
.chord-symbol { font-size: clamp(40px, 5vw, 64px); font-weight: 620; line-height: 0.9; letter-spacing: -0.06em; }
.chord-symbol sup { position: relative; top: -0.16em; color: var(--accent); font-size: 0.48em; letter-spacing: -0.02em; }
.chord-line span { color: var(--muted); font-size: 13px; }
.feedback { min-height: 18px; margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.feedback.correct { color: var(--correct); }
.feedback.wrong { color: var(--wrong); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(72px, 1fr)); gap: 8px; }
.stats div { min-width: 76px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
.stats span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 8px; font-weight: 750; letter-spacing: 0.13em; text-transform: uppercase; }
.stats strong { font-size: 18px; font-weight: 650; }
.answer-panel { padding: clamp(24px, 4vw, 42px); background: var(--surface); border: 1px solid var(--line); border-radius: 0 0 12px 12px; }
.answer-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.answer-heading h2 { margin: 0; font-size: clamp(19px, 2vw, 27px); font-weight: 610; letter-spacing: -0.035em; }
.answer-heading > p { margin: 0 0 3px; color: var(--muted); font-size: 11px; text-align: right; }
.note-choices { min-height: 84px; display: grid; grid-template-columns: repeat(12, minmax(48px, 1fr)); gap: 8px; margin-top: 28px; }
.note-choice { min-height: 66px; padding: 8px 4px; background: var(--raised); color: var(--text); border: 1px solid var(--line); border-radius: 9px; font-size: clamp(16px, 1.6vw, 22px); font-weight: 650; }
.note-choice:hover:not(:disabled) { border-color: var(--line-strong); background: #202630; }
.note-choice.selected { background: var(--accent-soft); border-color: var(--accent); color: #fecdd3; }
.note-choice.correct { background: rgba(134, 239, 172, 0.12); border-color: var(--correct); color: var(--correct); }
.note-choice.wrong { background: rgba(253, 164, 175, 0.1); border-color: var(--wrong); color: var(--wrong); }
.note-choice.missed { border-color: var(--correct); color: var(--correct); border-style: dashed; }
.note-choice:disabled { cursor: default; }
.answer-actions { display: flex; justify-content: end; gap: 9px; margin-top: 24px; }
.secondary-button, .check-button { min-width: 126px; height: 42px; padding: 0 18px; border-radius: 7px; }
.secondary-button { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.secondary-button:hover:not(:disabled) { color: var(--text); border-color: var(--line-strong); }
.secondary-button:disabled, .check-button:disabled { cursor: default; opacity: 0.45; }
.difficulty-guide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 12px; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: 9px; }
.difficulty-guide div { padding: 12px 14px; background: var(--surface); }
.difficulty-guide strong, .difficulty-guide span { display: block; }
.difficulty-guide strong { margin-bottom: 4px; color: var(--text); font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; }
.difficulty-guide span { color: var(--muted); font-size: 10px; line-height: 1.45; }
@media (max-width: 1000px) { .settings { grid-template-columns: repeat(2, minmax(0, 1fr)); } .game-status { grid-template-columns: 1fr; } .stats { width: 100%; } .note-choices { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 620px) { .site-header, .page-heading { padding-right: 16px; padding-left: 16px; } .page-heading { align-items: start; flex-direction: column; gap: 10px; } .game-shell { margin-right: 16px; margin-left: 16px; } .settings { grid-template-columns: 1fr; } .game-status { padding: 16px; } .stats { grid-template-columns: repeat(2, 1fr); } .answer-heading { align-items: start; flex-direction: column; gap: 9px; } .answer-heading > p { text-align: left; } .note-choices { grid-template-columns: repeat(3, 1fr); } .answer-actions { display: grid; grid-template-columns: 1fr; } .secondary-button, .check-button { width: 100%; } .difficulty-guide { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
