:root {
  --ink: #292a30;
  --muted: #6f6c72;
  --paper: #fffdf9;
  --cream: #fff8ed;
  --line: rgba(52, 48, 43, 0.12);
  --orange: #ff6e3c;
  --orange-deep: #e74c23;
  --yellow: #ffd25b;
  --pink: #ffdde2;
  --mint: #bce5d5;
  --blue: #dce9ff;
  --shadow: 0 24px 70px rgba(80, 61, 42, 0.11);
  --soft-shadow: 0 12px 30px rgba(85, 67, 49, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(69, 57, 44, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 57, 44, 0.035) 1px, transparent 1px),
    var(--cream);
  background-size: 34px 34px;
  font-family: "Noto Sans SC", "PingFang SC", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(255, 110, 60, 0.32);
  outline-offset: 3px;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(3px);
  pointer-events: none;
}

.ambient-one {
  top: 130px;
  right: -210px;
  background: rgba(255, 210, 91, 0.2);
}

.ambient-two {
  bottom: 30px;
  left: -230px;
  background: rgba(188, 229, 213, 0.28);
}

.site-header {
  width: min(1180px, calc(100% - 40px));
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 14px 14px 14px 4px;
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: "DM Sans", sans-serif;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
  line-height: 1.2;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.03em;
}

.source-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: #565158;
  font-size: 13px;
  font-weight: 600;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 110, 60, 0.13);
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: 420px;
  padding: 64px 0 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  align-items: center;
  gap: 40px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--orange-deep);
  font-family: "DM Sans", "Noto Sans SC", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hero h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(46px, 6.5vw, 82px);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 1.05;
}

.hero h1 em {
  position: relative;
  color: var(--orange);
  font-style: normal;
  white-space: nowrap;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 3px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  transform: rotate(-1deg);
  opacity: 0.7;
}

.hero-lead {
  max-width: 550px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.hero-stats {
  margin-top: 28px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  color: #5c575b;
  font-size: 13px;
}

.hero-stats strong {
  margin-right: 4px;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: 19px;
}

.hero-stats i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #9e9894;
}

.hero-art {
  position: relative;
  min-height: 310px;
  display: grid;
  place-items: center;
}

.hero-art::before,
.hero-art::after {
  content: "";
  position: absolute;
  border: 1px dashed rgba(41, 42, 48, 0.22);
  border-radius: 50%;
}

.hero-art::before {
  width: 275px;
  height: 275px;
  animation: spin 28s linear infinite;
}

.hero-art::after {
  width: 195px;
  height: 195px;
  border-style: solid;
  border-color: rgba(41, 42, 48, 0.08);
}

.hero-disc {
  z-index: 2;
  width: 142px;
  height: 142px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 10px 12px 0 var(--pink);
  transform: rotate(-4deg);
}

.hero-disc svg {
  width: 68px;
  fill: var(--paper);
  stroke: var(--paper);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.orbit {
  position: absolute;
  z-index: 3;
  min-width: 72px;
  padding: 10px 13px;
  border: 1.5px solid var(--ink);
  border-radius: 13px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 4px 5px 0 var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  line-height: 1;
  text-align: center;
}

.orbit-one {
  top: 24px;
  left: 18%;
  background: var(--yellow);
  transform: rotate(-8deg);
}

.orbit-two {
  right: 9%;
  bottom: 58px;
  background: var(--mint);
  transform: rotate(7deg);
}

.orbit-three {
  bottom: 12px;
  left: 17%;
  background: var(--blue);
  transform: rotate(-3deg);
}

.page-tabs {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(12px);
}

.page-tab {
  position: relative;
  min-height: 96px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 0;
  border-radius: 19px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.page-tab:hover {
  background: rgba(255, 210, 91, 0.15);
}

.page-tab.is-active {
  color: var(--paper);
  background: var(--ink);
  box-shadow: 0 10px 25px rgba(41, 42, 48, 0.18);
}

.page-tab.is-active::after {
  content: "";
  position: absolute;
  right: 20px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--yellow);
}

.tab-number {
  min-width: 43px;
  color: var(--orange);
  font-family: "DM Sans", sans-serif;
  font-size: 26px;
  font-weight: 700;
}

.page-tab > span:last-child {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-tab small {
  display: block;
  margin-bottom: 6px;
  color: #928d8c;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.page-tab.is-active small {
  color: #aaa9ae;
}

.page-panel {
  padding: 68px 0 30px;
  animation: reveal 360ms ease both;
}

.page-panel[hidden] {
  display: none;
}

.section-heading {
  margin-bottom: 30px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 45px);
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.section-heading > div > p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.reference-button {
  flex: 0 0 auto;
  padding: 11px 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  color: #5e595c;
  font-size: 13px;
  font-weight: 600;
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.reference-button:hover {
  border-color: rgba(255, 110, 60, 0.48);
  transform: translateY(-2px);
}

.reference-button svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sound-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.sound-card,
.word-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  box-shadow: 0 9px 24px rgba(90, 72, 54, 0.055);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.sound-card {
  min-height: 210px;
  padding: 26px;
  border-radius: 22px;
  text-align: left;
}

.sound-card::before {
  content: "";
  position: absolute;
  right: -35px;
  bottom: -45px;
  width: 115px;
  height: 115px;
  border: 22px solid var(--card-color, var(--pink));
  border-radius: 50%;
  opacity: 0.38;
}

.sound-card:hover,
.word-card:hover {
  z-index: 1;
  border-color: rgba(255, 110, 60, 0.35);
  box-shadow: 0 16px 34px rgba(86, 65, 44, 0.12);
  transform: translateY(-4px);
}

.sound-card.is-playing,
.word-card.is-playing {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 110, 60, 0.11), 0 16px 35px rgba(90, 59, 35, 0.14);
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sound-kind {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.play-bubble {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.sound-card:hover .play-bubble,
.sound-card.is-playing .play-bubble {
  background: var(--orange);
  transform: scale(1.06);
}

.play-bubble svg,
.word-play svg,
.button-icon svg,
.now-playing button svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sound-symbol {
  margin-top: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(49px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.sound-hint {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.learning-tip {
  margin-top: 18px;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 17px;
  border: 1px solid rgba(255, 176, 47, 0.25);
  border-radius: 19px;
  background: rgba(255, 210, 91, 0.2);
}

.tip-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--yellow);
  font-size: 20px;
}

.learning-tip strong {
  display: block;
  font-size: 14px;
}

.learning-tip p {
  margin: 4px 0 0;
  color: #706957;
  font-size: 13px;
  line-height: 1.6;
}

.tip-pair {
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 700;
}

.column-tabs-wrap {
  margin-top: 16px;
  display: flex;
  align-items: center;
  flex: 1;
}

.column-tabs {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
}

.column-tab {
  position: relative;
  min-width: 0;
  min-height: 68px;
  padding: 9px 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 13px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.column-tab:hover {
  border-color: rgba(255, 210, 91, 0.65);
  transform: translateY(-1px);
}

.column-tab.is-active {
  color: var(--paper);
  background: var(--orange);
  border-color: var(--yellow);
  box-shadow:
    0 0 0 3px rgba(255, 210, 91, 0.17),
    0 9px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.column-tab strong {
  display: block;
  font-family: "Times New Roman", Georgia, serif;
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
}

.column-tab small {
  display: block;
  margin-top: 4px;
  color: #c5c3c6;
  font-size: 9px;
  font-weight: 600;
}

.column-tab.is-active small {
  color: rgba(255, 255, 255, 0.86);
}

.practice-board {
  padding: 12px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
}

.column-summary {
  min-height: 490px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  color: var(--paper);
  background:
    radial-gradient(circle at 85% 14%, rgba(255, 210, 91, 0.32), transparent 24%),
    var(--ink);
}

.column-picker-heading {
  display: flex;
  align-items: center;
  gap: 11px;
}

.picker-step {
  position: relative;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  border-radius: 50%;
  color: #61301d;
  background: var(--yellow);
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 0 0 5px rgba(255, 210, 91, 0.12);
}

.picker-step::after {
  position: absolute;
  inset: -6px;
  border: 2px solid rgba(255, 210, 91, 0.48);
  border-radius: inherit;
  content: "";
  animation: picker-pulse 1.8s ease-out infinite;
}

.column-picker-heading small,
.column-picker-heading strong {
  display: block;
}

.column-picker-heading small {
  margin-bottom: 3px;
  color: var(--yellow);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.column-picker-heading strong {
  font-size: 14px;
}

.word-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(112px, 1fr));
  grid-template-rows: 70px repeat(9, minmax(82px, 1fr));
  gap: 0;
  min-width: 720px;
  overflow: hidden;
  border: 1.5px solid #8b9188;
  border-radius: 17px;
  background: #f8edc1;
}

.table-column-heading {
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(92, 96, 87, 0.32);
  border-bottom: 1.5px solid #8b9188;
  color: #f8f6ef;
  background: #52575a;
  text-align: center;
}

.table-column-heading:last-of-type {
  border-right: 0;
}

.table-column-heading strong {
  font-family: "Times New Roman", Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}

.table-column-heading small {
  margin-top: 5px;
  color: #d9d8d2;
  font-size: 9px;
}

.word-card {
  min-height: 82px;
  padding: 10px 11px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 0;
  border-right: 1px solid rgba(92, 96, 87, 0.28);
  border-bottom: 1px solid rgba(92, 96, 87, 0.28);
  border-radius: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.18)),
    #f7edc3;
  box-shadow: none;
  text-align: left;
}

.word-card[data-row="1"],
.word-card[data-row="3"],
.word-card[data-row="5"],
.word-card[data-row="7"] {
  background:
    linear-gradient(rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.13)),
    #dce5be;
}

.word-card:nth-of-type(6n) {
  border-right: 0;
}

.word-card[data-row="8"] {
  border-bottom: 0;
}

.word-card:hover {
  border-color: rgba(92, 96, 87, 0.28);
  box-shadow: inset 0 0 0 3px rgba(255, 110, 60, 0.18);
  transform: none;
}

.word-card.is-playing {
  border-color: rgba(92, 96, 87, 0.28);
  background: #ffd978;
  box-shadow: inset 0 0 0 3px var(--orange);
}

.word-symbol {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(100% - 18px);
  margin: 0;
  font-family: "Times New Roman", "Noto Serif", Georgia, serif;
  font-size: clamp(19px, 2vw, 28px);
  font-weight: 400;
  line-height: 1.05;
  text-align: center;
  transform: translate(-50%, -50%);
}

.word-bottom {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.word-play {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  color: var(--ink);
  background: #f1eee8;
}

.word-play svg {
  width: 14px;
}

.word-card.is-playing .word-play {
  color: white;
  background: var(--orange);
}

.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 70px auto 0;
  padding: 26px 0 34px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: #8a8583;
  font-size: 11px;
}

.site-footer p {
  margin: 0;
}

.site-footer span {
  font-weight: 700;
  letter-spacing: 0.16em;
}

.now-playing {
  position: fixed;
  z-index: 20;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  min-width: 230px;
  padding: 11px 11px 11px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  color: var(--paper);
  background: rgba(41, 42, 48, 0.94);
  box-shadow: 0 18px 50px rgba(27, 23, 20, 0.25);
  backdrop-filter: blur(16px);
  animation: toast-in 240ms ease both;
}

.now-playing[hidden] {
  display: none;
}

.playing-bars {
  height: 24px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.playing-bars i {
  width: 3px;
  height: 8px;
  border-radius: 3px;
  background: var(--yellow);
  animation: bars 700ms ease-in-out infinite alternate;
}

.playing-bars i:nth-child(2) {
  animation-delay: -180ms;
}

.playing-bars i:nth-child(3) {
  animation-delay: -360ms;
}

.now-copy {
  min-width: 0;
  flex: 1;
}

.now-copy small,
.now-copy strong {
  display: block;
}

.now-copy small {
  color: #9e9ca1;
  font-size: 9px;
}

.now-copy strong {
  margin-top: 2px;
  overflow: hidden;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.now-playing button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.now-playing button svg {
  fill: currentColor;
  stroke: none;
}

.reference-dialog {
  width: min(720px, calc(100% - 28px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 25px;
  background: transparent;
  box-shadow: 0 30px 100px rgba(32, 26, 22, 0.28);
}

.reference-dialog::backdrop {
  background: rgba(34, 30, 29, 0.52);
  backdrop-filter: blur(5px);
}

.dialog-card {
  max-height: calc(100dvh - 32px);
  padding: 20px;
  overflow: auto;
  background: var(--paper);
}

.dialog-heading {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.dialog-heading p {
  margin: 0 0 3px;
  color: var(--orange-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.dialog-heading h2 {
  margin: 0;
  font-size: 22px;
}

.dialog-heading button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f6f2ec;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.reference-dialog img {
  width: 100%;
  max-height: 66dvh;
  display: block;
  object-fit: contain;
  border-radius: 15px;
  background: #f0ebe4;
}

.image-note {
  margin: 12px 2px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes bars {
  to {
    height: 22px;
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes picker-pulse {
  from {
    opacity: 0.9;
    transform: scale(0.82);
  }

  to {
    opacity: 0;
    transform: scale(1.25);
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-art {
    display: none;
  }

  .sound-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .practice-board {
    grid-template-columns: 1fr;
  }

  .column-summary {
    min-height: auto;
    display: flex;
  }

  .column-summary .column-tabs {
    grid-template-columns: repeat(3, minmax(88px, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header,
  .shell,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    min-height: 76px;
  }

  .source-badge {
    padding: 8px 10px;
    font-size: 11px;
  }

  .hero {
    padding: 43px 0 34px;
  }

  .hero h1 {
    font-size: clamp(44px, 14vw, 62px);
  }

  .hero-lead {
    margin-top: 23px;
    font-size: 15px;
  }

  .page-tabs {
    gap: 7px;
    padding: 6px;
    border-radius: 20px;
  }

  .page-tab {
    min-height: 78px;
    padding: 12px 13px;
    gap: 9px;
    border-radius: 15px;
  }

  .page-tab.is-active::after {
    display: none;
  }

  .tab-number {
    min-width: auto;
    font-size: 16px;
  }

  .page-tab > span:last-child {
    font-size: 15px;
  }

  .page-tab small {
    margin-bottom: 3px;
    font-size: 9px;
  }

  .page-panel {
    padding-top: 46px;
  }

  .section-heading {
    align-items: flex-start;
  }

  .section-heading h2 {
    font-size: 31px;
  }

  .reference-button {
    width: 42px;
    height: 42px;
    padding: 0;
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    font-size: 0;
  }

  .sound-grid {
    gap: 10px;
  }

  .sound-card {
    min-height: 180px;
    padding: 19px;
    border-radius: 17px;
  }

  .sound-symbol {
    font-size: 48px;
  }

  .learning-tip {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .tip-pair {
    display: none;
  }

  .column-tab {
    min-width: 88px;
  }

  .practice-board {
    margin: 0 -5px;
    padding: 9px;
    border-radius: 21px;
  }

  .column-summary {
    padding: 22px 19px;
    border-radius: 15px;
  }

  .word-grid {
    grid-template-columns: repeat(6, minmax(112px, 1fr));
    grid-template-rows: 60px repeat(9, 76px);
    gap: 0;
  }

  .word-card {
    min-height: 76px;
    padding: 8px 9px;
  }

  .word-symbol {
    font-size: 22px;
  }

  .now-playing {
    right: 14px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 14px;
  }
}

/* iPad Air：每个页面作为一块无滚动学习面板。 */
@media (min-width: 700px) and (max-width: 1199px) {
  .site-header,
  .shell,
  .site-footer {
    width: min(100% - 32px, 1120px);
  }

  .site-header {
    min-height: 58px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px 12px 12px 4px;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand small {
    margin-top: 2px;
    font-size: 9px;
  }

  .hero {
    display: none;
  }

  .page-tabs {
    margin-top: 14px;
    gap: 8px;
    padding: 6px;
    border-radius: 19px;
  }

  .page-tab {
    min-height: 62px;
    padding: 10px 18px;
    border-radius: 14px;
  }

  .page-tab > span:last-child {
    font-size: 17px;
  }

  .page-tab small {
    margin-bottom: 3px;
  }

  .tab-number {
    min-width: 36px;
    font-size: 21px;
  }

  .page-panel {
    padding: 18px 0 0;
  }

  .section-heading {
    min-height: 58px;
    margin-bottom: 12px;
    align-items: center;
  }

  .section-kicker {
    margin-bottom: 5px;
    font-size: 10px;
  }

  .section-heading h2 {
    font-size: 27px;
  }

  .section-heading > div > p:last-child {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.45;
  }

  .reference-button {
    padding: 9px 12px;
  }

  .sound-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .sound-card {
    min-height: 150px;
    padding: 18px 20px;
    border-radius: 17px;
  }

  .sound-symbol {
    margin-top: 10px;
    font-size: 48px;
  }

  .sound-hint {
    margin-top: 8px;
  }

  .learning-tip {
    margin-top: 10px;
    padding: 13px 17px;
  }

  .practice-board {
    height: 830px;
    padding: 8px;
    border-radius: 21px;
  }

  .word-grid {
    height: 100%;
    min-width: 0;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: 64px repeat(9, minmax(0, 1fr));
  }

  .word-card {
    min-height: 0;
    padding: 8px 9px;
  }

  .word-symbol {
    font-size: clamp(19px, 2.5vw, 25px);
  }

  .table-column-heading strong {
    font-size: 25px;
  }

  .site-footer {
    min-height: 38px;
    margin-top: 10px;
    padding: 12px 0;
  }
}

@media (min-width: 700px) and (max-width: 1199px) and (max-height: 900px) {
  .site-header {
    min-height: 50px;
  }

  .page-tabs {
    margin-top: 8px;
  }

  .page-tab {
    min-height: 52px;
  }

  .page-panel {
    padding-top: 10px;
  }

  .section-heading {
    min-height: 46px;
    margin-bottom: 7px;
  }

  .section-heading > div > p:last-child {
    display: none;
  }

  .practice-board {
    height: calc(100dvh - 260px);
    min-height: 520px;
  }

  .word-grid {
    grid-template-rows: 52px repeat(9, minmax(0, 1fr));
  }

  .word-card {
    padding: 5px 9px;
  }

  .word-symbol {
    font-size: 22px;
  }

  .site-footer {
    min-height: 30px;
    margin-top: 5px;
    padding: 7px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 多课程目录与课程切换 */
.brand-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.directory-button,
.back-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  cursor: pointer;
  box-shadow: var(--soft-shadow);
}

.directory-button {
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.catalog-view {
  padding: 34px 0 10px;
}

.catalog-intro {
  min-height: 180px;
  padding: 30px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 20%, rgba(255, 210, 91, 0.42), transparent 28%),
    rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
}

.catalog-intro h1 {
  margin: 7px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 5.5vw, 68px);
  line-height: 1.05;
}

.catalog-intro h1 em {
  color: var(--orange);
  font-style: normal;
}

.catalog-intro p:last-child {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.catalog-disc {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--paper);
  background: var(--ink);
  box-shadow: 16px 18px 0 rgba(255, 110, 60, 0.16);
}

.catalog-disc svg {
  width: 54px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.lesson-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.lesson-card {
  position: relative;
  min-height: 175px;
  padding: 20px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 15px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  cursor: pointer;
  box-shadow: var(--soft-shadow);
  text-align: left;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.lesson-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: var(--lesson-color);
  content: "";
}

.lesson-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(75, 58, 42, 0.13);
}

.lesson-card-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  grid-row: 1 / span 2;
  border-radius: 15px 15px 15px 5px;
  color: white;
  background: var(--lesson-color);
  font-size: 18px;
  font-weight: 800;
}

.lesson-card-copy small,
.lesson-card-copy strong,
.lesson-card-copy span {
  display: block;
}

.lesson-card-copy small {
  color: var(--lesson-color);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lesson-card-copy strong {
  margin-top: 3px;
  font-size: 21px;
}

.lesson-card-copy span {
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lesson-card-symbols {
  min-height: 26px;
  display: flex;
  grid-column: 1 / -1;
  gap: 5px;
}

.lesson-card-symbols i {
  padding: 5px 7px;
  border-radius: 8px;
  font-family: "Times New Roman", Georgia, serif;
  font-size: 14px;
  font-style: normal;
  background: color-mix(in srgb, var(--lesson-color) 12%, white);
}

.lesson-card-meta {
  grid-column: 1 / -1;
  color: #8a8583;
  font-size: 9px;
}

.lesson-card-arrow {
  position: absolute;
  right: 17px;
  bottom: 14px;
  color: var(--lesson-color);
  font-size: 21px;
  font-weight: 800;
}

.lesson-toolbar {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.back-button {
  min-height: 42px;
  padding: 9px 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  border-radius: 13px;
  font-size: 11px;
  font-weight: 700;
}

.lesson-switcher {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  flex: 1;
}

.lesson-switch {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.68);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.lesson-switch small {
  margin-inline: 2px;
  font-size: 8px;
  font-weight: 600;
}

.lesson-switch.is-active {
  border-color: var(--active-lesson-color, var(--orange));
  color: white;
  background: var(--active-lesson-color, var(--orange));
  box-shadow: 0 8px 18px rgba(65, 50, 38, 0.14);
}

.lesson-banner {
  min-height: 92px;
  margin-top: 10px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.52)),
    var(--cream);
}

.lesson-banner h1 {
  margin: 2px 0 0;
  font-size: 29px;
}

.lesson-banner p:last-child {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.lesson-number {
  color: color-mix(in srgb, var(--active-lesson-color, var(--orange)) 88%, white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 72px;
  font-weight: 700;
  line-height: 0.8;
  opacity: 0.2;
}

.lesson-view .page-tabs {
  margin-top: 10px;
  grid-template-columns: repeat(var(--page-count, 2), minmax(0, 1fr));
}

.dynamic-panel {
  padding-top: 16px;
}

.dynamic-panel .word-grid {
  min-width: calc(var(--column-count, 6) * 88px);
  grid-template-columns: repeat(var(--column-count, 6), minmax(88px, 1fr));
  grid-template-rows: 64px repeat(var(--row-count, 9), minmax(58px, 1fr));
}

.dynamic-panel .word-card {
  border-right: 1px solid rgba(92, 96, 87, 0.28);
  border-bottom: 1px solid rgba(92, 96, 87, 0.28);
}

.dynamic-panel .word-card.is-alt-row {
  background:
    linear-gradient(rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.13)),
    #dce5be;
}

.dynamic-panel .word-card.is-row-end {
  border-right: 0;
}

.dynamic-panel .word-card.is-last-row {
  border-bottom: 0;
}

.word-card.is-empty {
  cursor: default;
  pointer-events: none;
}

@media (min-width: 700px) and (max-width: 1199px) {
  .catalog-view {
    padding-top: 16px;
  }

  .catalog-intro {
    min-height: 138px;
    padding: 20px 25px;
    border-radius: 23px;
  }

  .catalog-intro h1 {
    font-size: 43px;
  }

  .catalog-intro p:last-child {
    margin-top: 9px;
    font-size: 12px;
  }

  .catalog-disc {
    width: 88px;
    height: 88px;
  }

  .lesson-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .lesson-card {
    min-height: 145px;
    padding: 16px;
  }

  .lesson-card-symbols {
    min-height: 22px;
  }

  .lesson-toolbar {
    margin-top: 8px;
  }

  .lesson-banner {
    display: none;
  }

  .lesson-banner h1 {
    font-size: 24px;
  }

  .lesson-number {
    font-size: 55px;
  }

  .lesson-view .page-tabs {
    margin-top: 7px;
  }

  .dynamic-panel {
    padding-top: 10px;
  }

  .dynamic-panel .practice-board {
    height: calc(100dvh - 340px);
    min-height: 0;
  }

  .dynamic-panel .word-grid {
    min-width: 0;
    grid-template-columns: repeat(var(--column-count, 6), minmax(0, 1fr));
    grid-template-rows: 58px repeat(var(--row-count, 9), minmax(0, 1fr));
  }
}

@media (min-width: 700px) and (max-width: 1199px) and (max-height: 900px) {
  .catalog-intro {
    min-height: 100px;
    padding-block: 13px;
  }

  .catalog-intro h1 {
    font-size: 34px;
  }

  .catalog-disc {
    width: 68px;
    height: 68px;
  }

  .lesson-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .lesson-card {
    min-height: 155px;
    padding: 14px;
    grid-template-columns: 1fr;
  }

  .lesson-card-number {
    width: 40px;
    height: 40px;
    grid-row: auto;
  }

  .lesson-card-symbols {
    display: none;
  }

  .lesson-banner {
    display: none;
  }

  .dynamic-panel .practice-board {
    height: calc(100dvh - 286px);
    min-height: 500px;
  }
}

@media (max-width: 640px) {
  .header-actions .directory-button {
    display: none;
  }

  .catalog-intro {
    min-height: 130px;
    padding: 20px;
  }

  .catalog-intro h1 {
    font-size: 34px;
  }

  .catalog-disc {
    display: none;
  }

  .lesson-grid {
    grid-template-columns: 1fr;
  }

  .lesson-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .lesson-switcher {
    grid-template-columns: repeat(5, minmax(54px, 1fr));
    overflow-x: auto;
  }
}
