:root {
  color-scheme: light;
  --paper: #f4f5ef;
  --white: #fff;
  --ink: #19283e;
  --muted: #596678;
  --border: #dde2de;
  --blue: #244bdc;
  --blue-dark: #1838bb;
  --light-blue: #eef2ff;
  --green: #19684f;
  --green-light: #e8f7ef;
  --red: #9d412d;
  --red-light: #fff0e9;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #5c79ff; outline-offset: 3px; }
.site-header { background: #fafbf7; border-bottom: 1px solid var(--border); }
.header-inner { max-width: 1168px; min-height: 72px; margin: auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 17px; font-weight: 750; white-space: nowrap; }
.brand-mark { background: var(--blue); color: white; height: 36px; width: 38px; display: grid; place-items: center; border-radius: 10px; font: 700 18px Georgia, serif; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a { min-height: 38px; display: inline-flex; gap: 6px; align-items: center; padding: 8px 14px; font-size: 14px; font-weight: 650; border-radius: 8px; color: var(--muted); white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--light-blue); color: var(--blue-dark); }
.nav-count { font-size: 11px; font-variant-numeric: tabular-nums; border-radius: 20px; min-width: 18px; padding: 2px 4px; text-align: center; background: #e0e6ff; }
.shell { max-width: 1168px; padding: 44px 24px 16px; margin: auto; }
.intro { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.intro h1 { margin: 0; font-size: clamp(33px, 4.7vw, 55px); line-height: 1.18; letter-spacing: -.06em; font-weight: 780; }
.punctuation { color: var(--blue); }
.intro p { margin: 14px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.intro-link { white-space: nowrap; }
.outline, .primary { display: inline-flex; align-items: center; justify-content: center; gap: 12px; border-radius: 10px; min-height: 44px; padding: 9px 15px; font-size: 14px; font-weight: 700; }
.outline { border: 1px solid var(--border); background: var(--white); }
.outline:hover { border-color: var(--blue); color: var(--blue-dark); }
.primary { border: 1px solid transparent; background: var(--blue); color: #fff; white-space: nowrap; }
.primary:hover:not(:disabled) { background: var(--blue-dark); }
.primary:disabled { background: #e6e9f1; color: #606c7d; }
.layout { display: grid; grid-template-columns: minmax(0, 2.32fr) minmax(278px, 1fr); gap: 18px; align-items: start; }
.card { border: 1px solid var(--border); border-radius: 20px; background: var(--white); overflow: hidden; }
.practice-card { min-height: 540px; }
.card-bar { min-height: 69px; padding: 13px 22px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid #edf0ec; background: #fdfefa; }
.index { color: var(--muted); font-weight: 650; font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.switch { display: inline-flex; padding: 3px; background: #eff1ee; border-radius: 9px; align-items: stretch; flex-shrink: 0; gap: 2px; }
.switch button { background: transparent; color: var(--muted); border: 0; border-radius: 7px; padding: 7px 11px; font-size: 13px; min-height: 33px; white-space: nowrap; }
.switch button[aria-pressed="true"] { font-weight: 700; color: var(--blue-dark); background: white; box-shadow: 0 1px 3px #14253015; }
.switch button:hover { color: var(--blue-dark); }
.practice-body { min-height: 465px; display: grid; justify-items: center; align-content: start; padding: 43px 24px 30px; }
.play { border: 0; border-radius: 50%; width: 104px; height: 104px; background: var(--blue); color: white; display: grid; place-items: center; margin: 16px 0 23px; position: relative; isolation: isolate; transition: background .16s, transform .16s; }
.play::before, .play::after { content: ""; position: absolute; border-radius: inherit; inset: -12px; border: 1px solid #a8b8fc; z-index: -1; pointer-events: none; }
.play::after { inset: -23px; border-color: #dae2fd; }
.play:hover { background: var(--blue-dark); transform: scale(1.04); }
.play-icon { margin-left: 7px; width: 0; height: 0; border-left: 24px solid currentColor; border-top: 15px solid transparent; border-bottom: 15px solid transparent; }
.sound-icon { display: none; height: 28px; gap: 5px; align-items: center; }
.sound-icon i { width: 4px; height: 45%; background: currentColor; border-radius: 6px; animation: sound .65s alternate infinite ease-in-out; }
.sound-icon i:nth-child(2) { animation-delay: -.43s; }
.sound-icon i:nth-child(3) { animation-delay: -.22s; }
.sound-icon i:nth-child(4) { animation-delay: -.09s; }
@keyframes sound { to { height: 100%; } }
.play.is-playing .play-icon { display: none; }
.play.is-playing .sound-icon { display: flex; }
.play-caption { text-align: center; }
.play-caption h2 { font-size: 23px; margin: 0; font-weight: 750; letter-spacing: -.04em; }
.play-caption p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
#audio-error { color: var(--red); }
#answer-form, .feedback { width: min(100%, 376px); margin-top: 28px; text-align: center; }
.answer-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
#answer { height: 52px; border: 1px solid #cbd3e1; background: #fbfcff; border-radius: 10px; padding: 0 14px; color: var(--ink); font-size: 25px; text-transform: uppercase; font-weight: 730; }
#answer::placeholder { color: #687588; font-size: 15px; font-weight: 500; }
.answer-row .primary { min-width: 100px; }
.answer-help { font-size: 12px; color: var(--muted); margin: 13px 0 0; }
.answer-help span { display: inline-block; vertical-align: middle; width: 3px; height: 3px; margin: 0 8px; background: #8791a1; border-radius: 50%; }
kbd { font: 600 11px ui-monospace, monospace; background: #eff2f6; border-radius: 4px; padding: 2px 4px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice { min-height: 40px; border: 1px solid #cbd3e1; border-radius: 8px; background: #fbfcff; color: var(--ink); font-size: 19px; }
.choice:hover, .choice[aria-pressed="true"] { border-color: var(--blue); background: var(--light-blue); color: var(--blue-dark); }
#submit-ipa { margin-top: 9px; width: 100%; }
.feedback { margin-top: 23px; }
.feedback-box { text-align: left; border-radius: 11px; padding: 11px 14px; background: var(--green-light); color: var(--green); }
.feedback-box.incorrect { background: var(--red-light); color: var(--red); }
.feedback-line { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.feedback-box strong { font-size: 15px; }
.feedback-ipa { font-size: 20px; font-weight: 730; }
.feedback-detail { margin: 4px 0 0; font-size: 13px; }
.next { width: 100%; margin-top: 9px; }
.sidebar { display: grid; gap: 14px; }
.side-card { padding: 19px; }
.side-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.side-card h2 { font-size: 16px; margin: 0; }
progress { appearance: none; width: 100%; height: 6px; border: 0; margin: 15px 0 13px; display: block; border-radius: 10px; overflow: hidden; background: #eceff2; color: var(--blue); }
progress::-webkit-progress-bar { background: #eceff2; }
progress::-webkit-progress-value { background: var(--blue); }
progress::-moz-progress-bar { background: var(--blue); }
.question-map { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.question-cell { display: grid; place-items: center; height: 32px; font: 650 12px ui-monospace, monospace; border-radius: 6px; color: #667283; background: #f1f3f2; border: 1px solid transparent; min-width: 0; }
button.question-cell:hover { border-color: currentColor; }
.question-cell.is-active { color: var(--blue-dark); background: var(--light-blue); border-color: var(--blue); }
.question-cell.is-right { color: var(--green); background: var(--green-light); }
.question-cell.is-wrong { color: var(--red); background: var(--red-light); }
.legend { margin-top: 14px; display: flex; gap: 17px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; gap: 5px; align-items: center; }
.dot { display: inline-block; height: 7px; width: 7px; border-radius: 50%; }
.dot.right { background: var(--green); }
.dot.wrong { background: var(--red); }
.side-actions { margin-top: 12px; display: flex; gap: 12px; flex-wrap: wrap; }
.text-button { background: transparent; border: 0; padding: 0; color: var(--blue-dark); font-size: 12px; font-weight: 650; min-height: 25px; }
.text-button:hover { text-decoration: underline; }
.settings h2 { margin-bottom: 9px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 45px; color: var(--muted); font-size: 14px; }
.setting-row + .setting-row { border-top: 1px solid #edf0ed; }
.setting-row select { padding: 5px 6px; min-height: 34px; border: 1px solid #e2e6e1; background: white; color: var(--ink); border-radius: 7px; font-size: 13px; }
.letter-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.letter-card { min-height: 123px; display: grid; align-content: space-between; align-items: start; justify-items: start; position: relative; color: var(--ink); background: white; border: 1px solid var(--border); border-radius: 13px; padding: 15px; text-align: left; }
.letter-card:hover, .letter-card.is-playing { border-color: var(--blue); background: var(--light-blue); color: var(--blue-dark); }
.letter-card .letter { font: 650 32px Georgia, serif; white-space: nowrap; }
.letter-card .letter small { font-size: 20px; color: var(--muted); }
.letter-card .pronunciation { font-size: 15px; color: var(--muted); }
.mini-play { position: absolute; top: 17px; right: 13px; font-size: 11px; color: var(--blue-dark); }
.learn-note { margin: 16px 0; color: var(--muted); font-size: 13px; }
.mistakes-card { min-height: 190px; padding: 7px 20px; }
.mistake-row { display: grid; grid-template-columns: minmax(38px, .6fr) minmax(80px, 1fr) 1fr auto; align-items: center; gap: 12px; padding: 11px 0; }
.mistake-row + .mistake-row { border-top: 1px solid var(--border); }
.mistake-row strong { font: 700 25px Georgia, serif; }
.mistake-row .frequency { font-size: 13px; color: var(--muted); }
.empty { text-align: center; padding: 29px 0; }
.empty h2 { font-size: 19px; }
.empty p { color: var(--muted); font-size: 14px; }
.empty .outline { margin-top: 8px; }
.summary { text-align: center; padding: 75px 16px 28px; }
.summary h2 { font-size: 27px; }
.summary .score { font-size: 48px; font-weight: 750; color: var(--blue-dark); }
.summary p { color: var(--muted); }
.summary-actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 21px; color: var(--muted); font-size: 12px; }
footer a:hover { text-decoration: underline; }
@media (max-width: 790px) {
  .header-inner { min-height: 60px; padding-inline: 16px; gap: 10px; }
  .shell { padding: 30px 16px 15px; }
  .layout { grid-template-columns: 1fr; gap: 12px; }
  .sidebar { grid-template-columns: 1fr 1fr; }
  .letter-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .practice-card { min-height: 500px; }
}
@media (max-width: 525px) {
  .header-inner { gap: 5px; }
  .brand { font-size: 14px; gap: 6px; }
  .brand-mark { width: 30px; height: 30px; font-size: 15px; }
  .nav { gap: 1px; }
  .nav a { font-size: 12px; padding-inline: 7px; }
  .intro { align-items: start; margin-bottom: 19px; gap: 9px; }
  .intro h1 { font-size: clamp(26px, 7.1vw, 36px); }
  .intro p { font-size: 13px; margin-top: 9px; }
  .intro-link { align-self: start; font-size: 12px; padding: 6px 8px; gap: 3px; min-height: 36px; }
  .intro .primary { font-size: 12px; min-height: 36px; padding-inline: 9px; gap: 4px; }
  .card { border-radius: 15px; }
  .card-bar { padding: 9px 13px; min-height: 55px; }
  .practice-body { padding: 34px 14px 20px; min-height: 390px; }
  .practice-card { min-height: 450px; }
  .play { width: 86px; height: 86px; }
  .play::after { inset: -19px; }
  .sidebar { grid-template-columns: 1fr; gap: 10px; }
  .side-card { padding: 15px; }
  .letter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .letter-card { min-height: 99px; padding: 11px; }
  .letter-card .letter { font-size: 25px; }
  .letter-card .letter small { font-size: 16px; }
  .letter-card .pronunciation { font-size: 13px; }
  .mini-play { top: 13px; right: 7px; }
  .accent-switch button { padding-inline: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.practice-card { min-height: 562px; }
.practice-body { min-height: 490px; }
#answer { text-transform: none; }
.ipa-keyboard { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-top: 11px; }
.ipa-key { color: var(--ink); border: 1px solid #dce1e9; background: #f6f8fc; border-radius: 6px; min-width: 34px; min-height: 32px; padding: 3px 5px; }
.ipa-key:hover { border-color: var(--blue); color: var(--blue-dark); }
.learn-groups { display: grid; gap: 24px; }
.learn-group-title { display: flex; align-items: baseline; gap: 11px; margin-bottom: 9px; flex-wrap: wrap; }
.learn-group-title h2 { margin: 0; font-size: 21px; letter-spacing: -.035em; }
.learn-group-title p { margin: 0; font-size: 13px; color: var(--muted); }
.letter-card { display: grid; align-content: stretch; padding: 0; gap: 0; min-height: 0; border: 1px solid var(--border); }
.letter-card:hover { background: white; border-color: #c1ccf8; }
.letter-card button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 4px; text-align: left; border: 0; color: var(--ink); background: transparent; padding: 10px 12px; }
.letter-card button:first-child { min-height: 57px; border-radius: 12px 12px 0 0; }
.letter-card button:last-child { border-top: 1px solid #edf0ec; border-radius: 0 0 12px 12px; min-height: 42px; }
.letter-card button:hover, .letter-card button.is-playing { background: var(--light-blue); color: var(--blue-dark); }
.letter-card .letter { font: 680 24px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.letter-card .mini-play { position: static; flex-shrink: 0; }
.word { font-weight: 650; }
.word mark { background: transparent; color: var(--blue-dark); text-decoration: underline; text-underline-offset: .19em; }
.example-button { margin: 6px 0; font-size: 13px; }
.example-button.is-playing, .mistake-row button.is-playing { text-decoration: underline; }
.feedback-detail { line-height: 1.5; }
.feedback-detail + .feedback-detail { margin-top: 6px; }
#general-status { color: var(--red); font-size: 13px; }
@media (max-width: 525px) {
  .practice-card { min-height: 495px; }
  .practice-body { min-height: 438px; }
  .letter-card button { padding-inline: 8px; }
  .letter-card .letter { font-size: 21px; }
}
