:root {
  color-scheme: light;
  --bg: #17191f;
  --surface: #fffdf7;
  --surface-2: #eaf5ee;
  --ink: #1d2026;
  --muted: #65707d;
  --line: #ddd5c8;
  --teal: #1f8a70;
  --teal-dark: #12614f;
  --coral: #c9473b;
  --green: #16834b;
  --yellow: #e2b044;
  --blue: #365f8c;
  --shadow: 0 14px 34px rgba(12, 14, 18, 0.18);
  font-family:
    "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    linear-gradient(135deg, rgba(31, 138, 112, 0.28), transparent 32%),
    linear-gradient(315deg, rgba(201, 71, 59, 0.26), transparent 34%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.035) 0 10px, transparent 10px 20px),
    var(--bg);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.app-shell {
  width: min(100%, 980px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 16px clamp(14px, 3vw, 28px) 28px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 10px 0 12px;
  backdrop-filter: blur(18px);
}

.topbar h1 {
  margin: 1px 0 0;
  color: #fffdf7;
  font-size: clamp(22px, 4vw, 32px);
  line-height: 1.1;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.88);
  color: var(--ink);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.14);
}

.icon-button span {
  transform: translateY(-1px);
  font-size: 29px;
  line-height: 1;
}

.screen {
  padding-top: 12px;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr minmax(150px, 220px);
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid rgba(226, 176, 68, 0.35);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(31, 138, 112, 0.34), transparent 52%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 8px, transparent 8px 16px),
    #22262e;
  box-shadow: var(--shadow);
}

.hero-panel::before {
  position: absolute;
  inset: 0;
  border-top: 5px solid var(--coral);
  content: "";
  pointer-events: none;
}

.hero-copy,
.book-stack,
.anime-stage {
  position: relative;
  z-index: 1;
}

.hero-copy h2 {
  color: #fffdf7;
}

.hero-panel .hero-copy p {
  color: #dfe5dc;
}

.hero-copy h2,
.section-title {
  margin: 0;
  font-size: clamp(22px, 4vw, 32px);
  letter-spacing: 0;
}

.section-title {
  color: #fffdf7;
}

.hero-copy p,
.muted,
.empty-state p {
  color: var(--muted);
  line-height: 1.6;
}

.hero-copy p {
  max-width: 52ch;
  margin: 8px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.anime-stage {
  min-height: 210px;
}

.anime-stage::before,
.anime-stage::after {
  position: absolute;
  display: block;
  content: "";
}

.anime-stage::before {
  right: 8px;
  bottom: 18px;
  width: 170px;
  height: 54px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 22% 64%, rgba(246, 212, 93, 0.96) 0 12%, transparent 13%),
    linear-gradient(90deg, rgba(201, 71, 59, 0), rgba(201, 71, 59, 0.74), rgba(246, 212, 93, 0));
  filter: blur(1px);
  transform: rotate(-18deg);
  animation: firePulse 2.4s ease-in-out infinite;
}

.anime-stage::after {
  right: 58px;
  bottom: 10px;
  width: 138px;
  height: 44px;
  border-top: 4px solid rgba(102, 170, 207, 0.82);
  border-radius: 50%;
  transform: rotate(8deg);
  animation: waterSweep 2.8s ease-in-out infinite;
}

.anime-stage span {
  position: absolute;
  display: block;
}

.moon-disc {
  right: 58px;
  top: 8px;
  width: 92px;
  height: 92px;
  border: 2px solid rgba(226, 176, 68, 0.8);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.9), rgba(226, 176, 68, 0.44)),
    #f6e9bd;
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.18);
  transform: rotate(45deg);
}

.checker-cloth {
  right: 42px;
  bottom: 36px;
  width: 150px;
  height: 96px;
  border: 2px solid rgba(255, 253, 247, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(45deg, rgba(18, 97, 79, 0.92) 25%, transparent 25% 75%, rgba(18, 97, 79, 0.92) 75%),
    linear-gradient(45deg, rgba(18, 97, 79, 0.92) 25%, transparent 25% 75%, rgba(18, 97, 79, 0.92) 75%),
    #17191f;
  background-position:
    0 0,
    16px 16px,
    0 0;
  background-size: 32px 32px;
  transform: rotate(-5deg);
}

.bamboo-charm {
  right: 132px;
  bottom: 18px;
  width: 46px;
  height: 142px;
  border: 3px solid rgba(255, 253, 247, 0.32);
  border-radius: 18px;
  background:
    linear-gradient(180deg, transparent 0 28%, rgba(255, 253, 247, 0.45) 28% 31%, transparent 31% 62%, rgba(255, 253, 247, 0.45) 62% 65%, transparent 65%),
    linear-gradient(90deg, #72b482, #2b8a67 52%, #12614f);
  box-shadow: 12px 16px 28px rgba(0, 0, 0, 0.22);
  transform: rotate(8deg);
}

.training-blade {
  right: 0;
  bottom: 58px;
  width: 190px;
  height: 16px;
  border-radius: 4px;
  background:
    linear-gradient(90deg, #f3f6f8, #9eb4c2 58%, #365f8c 58% 68%, #1d2026 68%);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
  transform: rotate(-33deg);
}

.flame-mark {
  right: 16px;
  top: 66px;
  width: 74px;
  height: 84px;
  background:
    linear-gradient(180deg, #f6d45d, var(--coral) 70%);
  clip-path: polygon(46% 0, 72% 25%, 64% 48%, 92% 40%, 82% 82%, 50% 100%, 18% 82%, 8% 42%, 34% 48%, 26% 25%);
  filter: drop-shadow(0 14px 18px rgba(201, 71, 59, 0.24));
}

.water-ring {
  right: 92px;
  top: 74px;
  width: 116px;
  height: 72px;
  border: 5px solid rgba(102, 170, 207, 0.72);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(-20deg);
}

.book-stack {
  position: relative;
  min-height: 154px;
}

.book-stack::before,
.book-stack::after,
.book-stack .book-cover {
  position: absolute;
  right: 0;
  bottom: 0;
  display: block;
  width: 138px;
  height: 104px;
  border-radius: 8px;
  content: "";
  box-shadow: 0 18px 26px rgba(28, 40, 52, 0.16);
}

.book-stack::before {
  right: 44px;
  bottom: 36px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 18%, transparent 18%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.22) 0 6px, transparent 6px 12px),
    var(--blue);
  transform: rotate(-8deg);
}

.book-stack::after {
  right: 22px;
  bottom: 18px;
  background:
    repeating-linear-gradient(90deg, rgba(29, 32, 38, 0.16) 0 8px, transparent 8px 16px),
    var(--yellow);
  transform: rotate(5deg);
}

.book-stack .book-cover {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.24) 0 18%, transparent 18%),
    linear-gradient(135deg, transparent 0 48%, rgba(255, 255, 255, 0.3) 48% 52%, transparent 52%),
    var(--teal);
}

.book-stack .book-cover::before,
.book-stack .book-cover::after {
  position: absolute;
  left: 34px;
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  content: "";
}

.book-stack .book-cover::before {
  top: 30px;
  width: 62px;
}

.book-stack .book-cover::after {
  top: 48px;
  width: 84px;
}

.stats-row,
.action-row,
.select-actions,
.segmented,
.study-actions,
.summary-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.stats-row {
  margin-top: 14px;
}

.stat-pill,
.mini-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf7;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.grid {
  display: grid;
  gap: 14px;
}

.book-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 16px;
}

.book-rail {
  position: sticky;
  top: 74px;
  z-index: 18;
  display: flex;
  gap: 10px;
  margin: 14px 0 8px;
  padding: 10px;
  overflow-x: auto;
  border: 1px solid rgba(226, 176, 68, 0.26);
  border-radius: 8px;
  background: rgba(23, 25, 31, 0.88);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
}

.book-tab {
  display: grid;
  gap: 3px;
  flex: 0 0 auto;
  min-width: 124px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 253, 247, 0.2);
  border-radius: 8px;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0 6px, transparent 6px 12px),
    rgba(255, 253, 247, 0.08);
  color: #fffdf7;
  text-align: left;
}

.book-tab strong {
  font-size: 15px;
}

.book-tab span {
  color: #dfe5dc;
  font-size: 12px;
  font-weight: 800;
}

.book-tab.active {
  border-color: var(--yellow);
  background:
    linear-gradient(135deg, rgba(31, 138, 112, 0.8), rgba(18, 97, 79, 0.92)),
    var(--teal-dark);
  box-shadow: inset 0 -4px 0 rgba(226, 176, 68, 0.72);
}

.word-units {
  padding-bottom: 2px;
}

.book-card,
.unit-card,
.word-row,
.practice-row,
.summary-row,
.study-card,
.spell-card,
.finish-card,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(20, 32, 46, 0.05);
}

.book-card {
  display: grid;
  gap: 10px;
  min-height: 154px;
  padding: 16px;
  text-align: left;
}

.book-card h3,
.unit-card h3,
.word-row strong,
.practice-row strong,
.summary-row strong {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0;
}

.book-card p,
.unit-card p,
.practice-row p,
.summary-row p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.word-meaning {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.pos-tag {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 6px;
  border: 1px solid rgba(31, 138, 112, 0.24);
  border-radius: 6px;
  background: #eaf5ee;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
}

.book-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: end;
  margin-top: auto;
}

.meter {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef4;
}

.meter span {
  display: block;
  width: var(--value, 0%);
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--yellow));
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
  margin: 24px 0 12px;
}

.section-head p {
  margin: 6px 0 0;
  color: #dfe5dc;
}

.unit-card {
  padding: 14px;
}

.word-list,
.practice-list,
.summary-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.word-row,
.practice-row,
.summary-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
}

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

.word-pick {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.word-side {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  align-items: center;
}

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

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

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

.check {
  width: 24px;
  height: 24px;
  accent-color: var(--teal);
}

.primary-button,
.secondary-button,
.quiet-button,
.danger-button {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 800;
}

.small-button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}

.primary-button {
  position: relative;
  overflow: hidden;
  background: var(--teal);
  color: #fff;
  box-shadow: 0 10px 18px rgba(19, 124, 114, 0.2);
}

.primary-button::after,
.slash-button::after {
  position: absolute;
  inset: -40% auto -40% -70%;
  width: 58%;
  background: linear-gradient(115deg, transparent, rgba(255, 253, 247, 0.58), transparent);
  content: "";
  transform: rotate(18deg);
  transition: left 0.45s ease;
}

.primary-button:hover::after,
.slash-button:hover::after {
  left: 118%;
}

.primary-button:hover {
  background: var(--teal-dark);
}

.secondary-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.quiet-button {
  background: var(--surface-2);
  color: var(--teal-dark);
}

.danger-button {
  background: #fff1ef;
  color: #b33020;
}

.empty-row {
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(234, 245, 238, 0.65);
  color: var(--muted);
  font-weight: 700;
}

.floating-actions {
  position: sticky;
  bottom: 12px;
  z-index: 15;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.mastered-actions {
  flex-wrap: wrap;
}

.study-card,
.spell-card,
.finish-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(18px, 4vw, 28px);
}

.study-card::before,
.spell-card::before,
.finish-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background:
    repeating-linear-gradient(90deg, var(--teal) 0 18px, #17191f 18px 36px),
    var(--teal);
  content: "";
}

.study-card::after,
.spell-card::after,
.finish-card::after {
  position: absolute;
  right: -36px;
  top: 34px;
  width: 140px;
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(255, 253, 247, 0.15), rgba(226, 176, 68, 0.62), transparent);
  content: "";
  transform: rotate(-31deg);
  pointer-events: none;
}

.big-word {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
  font-size: clamp(46px, 10vw, 88px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0;
}

.phonetic {
  min-height: 30px;
  margin: 0;
  color: var(--blue);
  font-size: clamp(18px, 4vw, 28px);
  font-weight: 800;
}

.meaning {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff7df;
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 800;
  line-height: 1.35;
}

.progress-line {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef4;
}

.progress-line span {
  display: block;
  width: var(--value, 0%);
  height: 100%;
  background: linear-gradient(90deg, var(--coral), var(--yellow), var(--teal));
}

.segmented {
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.segmented button {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.segmented button.active {
  background: var(--teal);
  color: #fff;
}

.status-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: 220px;
}

.spell-card {
  text-align: center;
}

.spell-card .meaning {
  justify-self: center;
}

.meaning-prompt {
  display: grid;
  justify-items: center;
  gap: 4px;
  margin: 4px 0 2px;
}

.meaning-prompt span,
.meaning-prompt small {
  color: var(--muted);
  font-weight: 800;
}

.meaning-prompt strong {
  color: var(--ink);
  font-size: clamp(34px, 12vw, 64px);
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: lowercase;
}

.meaning-grid {
  display: grid;
  grid-template-columns: repeat(var(--meaning-count), minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 520px);
  margin: 8px auto;
}

.meaning-input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 6px;
  border: 0;
  border-bottom: 4px solid var(--ink);
  border-radius: 0;
  background: #f8fbff;
  color: var(--ink);
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.meaning-input:focus {
  border-bottom-color: var(--coral);
  outline: 0;
  box-shadow: 0 12px 18px rgba(201, 71, 59, 0.16);
  transform: translateY(-2px);
}

.letter-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  min-height: 58px;
  margin: 6px 0;
}

.letter-input {
  width: 44px;
  height: 52px;
  border: 0;
  border-bottom: 4px solid var(--ink);
  border-radius: 0;
  background: #f8fbff;
  text-align: center;
  font-size: 30px;
  font-weight: 900;
  text-transform: lowercase;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.letter-input:focus {
  border-bottom-color: var(--coral);
  outline: 0;
  box-shadow: 0 12px 18px rgba(201, 71, 59, 0.16);
  transform: translateY(-2px);
}

.letter-gap {
  display: inline-grid;
  place-items: end center;
  width: 22px;
  height: 52px;
  color: var(--muted);
  font-weight: 900;
}

.letter-fixed {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 52px;
  color: var(--muted);
  font-size: 26px;
  font-weight: 900;
}

.feedback {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 12px;
  border: 1px solid #ffd0c9;
  border-radius: 8px;
  background: #fff7f5;
}

.feedback::before {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(201, 71, 59, 0.08) 0 10px, transparent 10px 20px);
  content: "";
  pointer-events: none;
}

.feedback > * {
  position: relative;
}

.feedback-mark {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  animation: markPop 0.28s ease-out;
}

.correct-text {
  color: var(--green);
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 900;
  text-shadow: 0 7px 18px rgba(22, 131, 75, 0.14);
}

.wrong-text {
  color: var(--coral);
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 900;
}

@keyframes firePulse {
  0%,
  100% {
    opacity: 0.58;
    transform: rotate(-18deg) scale(0.96);
  }

  50% {
    opacity: 0.92;
    transform: rotate(-16deg) scale(1.06);
  }
}

@keyframes waterSweep {
  0%,
  100% {
    opacity: 0.54;
    transform: rotate(8deg) translateX(0);
  }

  50% {
    opacity: 0.88;
    transform: rotate(5deg) translateX(-10px);
  }
}

@keyframes markPop {
  from {
    transform: scale(0.72);
  }

  to {
    transform: scale(1);
  }
}

.finish-card {
  text-align: left;
}

.finish-card h2 {
  margin: 0;
  font-size: clamp(28px, 6vw, 44px);
  letter-spacing: 0;
}

.summary-row .result {
  display: inline-grid;
  place-items: center;
  min-width: 54px;
  min-height: 36px;
  padding: 7px 9px;
  border-radius: 8px;
  background: #f3f7fa;
  color: var(--muted);
  font-weight: 900;
}

.summary-row .result.ok {
  background: #e7f6ee;
  color: var(--green);
  font-size: 24px;
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 34px 18px;
  text-align: center;
}

.empty-asset {
  position: relative;
  width: 112px;
  height: 72px;
}

.empty-asset span {
  position: absolute;
  width: 74px;
  height: 46px;
  border-radius: 8px;
  box-shadow: 0 9px 18px rgba(22, 36, 51, 0.12);
}

.empty-asset span:nth-child(1) {
  left: 2px;
  top: 18px;
  background: #3a70b8;
  transform: rotate(-9deg);
}

.empty-asset span:nth-child(2) {
  left: 20px;
  top: 10px;
  background: #f2bc42;
  transform: rotate(5deg);
}

.empty-asset span:nth-child(3) {
  left: 38px;
  top: 22px;
  background: #137c72;
}

@media (max-width: 680px) {
  .app-shell {
    padding: 8px 8px 18px;
  }

  .topbar {
    grid-template-columns: 36px 1fr 36px;
    min-height: 56px;
    padding: 6px 0 7px;
  }

  .topbar h1 {
    font-size: 20px;
  }

  .eyebrow {
    font-size: 10px;
  }

  .icon-button {
    width: 36px;
    height: 36px;
  }

  .icon-button span {
    font-size: 24px;
  }

  .screen {
    padding-top: 4px;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 12px;
  }

  .hero-copy h2 {
    font-size: 22px;
  }

  .hero-panel .hero-copy p {
    display: none;
  }

  .stats-row {
    gap: 6px;
    margin-top: 8px;
  }

  .stat-pill,
  .mini-pill {
    min-height: 26px;
    padding: 4px 7px;
    font-size: 11px;
  }

  .hero-actions .secondary-button,
  .hero-actions .quiet-button {
    flex: 1 1 130px;
  }

  .anime-stage {
    display: none;
  }

  .book-rail {
    top: 56px;
    gap: 6px;
    margin: 8px 0 6px;
    padding: 6px;
  }

  .book-tab {
    min-width: 86px;
    padding: 6px 8px;
  }

  .book-tab strong {
    font-size: 13px;
  }

  .book-tab span {
    display: none;
  }

  .book-stack {
    min-height: 120px;
  }

  .book-stack::before,
  .book-stack::after,
  .book-stack .book-cover {
    left: 50%;
    right: auto;
    width: 116px;
    height: 86px;
  }

  .book-stack::before {
    margin-left: -96px;
  }

  .book-stack::after {
    margin-left: -56px;
  }

  .book-stack .book-cover {
    margin-left: -14px;
  }

  .section-head,
  .floating-actions,
  .summary-head {
    align-items: stretch;
    flex-direction: column;
  }

  .section-head {
    gap: 8px;
    margin: 10px 0 8px;
  }

  .section-title {
    font-size: 21px;
  }

  .section-head p {
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.35;
  }

  .select-actions,
  .hero-actions,
  .study-actions {
    gap: 6px;
  }

  .primary-button,
  .secondary-button,
  .quiet-button,
  .danger-button {
    min-height: 34px;
    padding: 7px 9px;
    font-size: 13px;
  }

  .unit-card {
    padding: 8px;
  }

  .unit-card h3 {
    font-size: 14px;
  }

  .unit-card > p {
    display: none;
  }

  .word-list,
  .practice-list,
  .summary-list {
    gap: 6px;
    margin-top: 7px;
  }

  .word-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 7px 8px;
  }

  .word-pick {
    gap: 8px;
  }

  .word-row strong,
  .practice-row strong,
  .summary-row strong {
    font-size: 15px;
  }

  .word-row p,
  .practice-row p,
  .summary-row p {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.25;
  }

  .check {
    width: 19px;
    height: 19px;
  }

  .practice-row,
  .summary-row {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 8px;
  }

  .word-side {
    justify-content: flex-start;
    gap: 4px;
  }

  .small-button {
    min-height: 26px;
    padding: 4px 7px;
    font-size: 11px;
  }

  .floating-actions {
    bottom: 8px;
    margin-top: 10px;
    padding: 8px;
  }

  .practice-row .status-stack,
  .practice-row .action-row,
  .summary-row .result {
    grid-column: 1;
    justify-self: start;
  }

  .letter-input {
    width: 36px;
    height: 48px;
    font-size: 26px;
  }

  .meaning-grid {
    gap: 6px;
  }

  .meaning-input {
    min-height: 42px;
    padding: 0 3px;
    font-size: 16px;
  }
}
