:root {
  --bg: #f5efe6;
  --surface: rgba(255, 250, 242, 0.82);
  --surface-strong: #fffaf2;
  --ink: #1f2a30;
  --muted: #58656f;
  --accent: #1f6f78;
  --accent-deep: #154b52;
  --accent-soft: #f0a04b;
  --line: rgba(31, 42, 48, 0.12);
  --shadow: 0 24px 60px rgba(37, 45, 50, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(240, 160, 75, 0.24), transparent 28%),
    radial-gradient(circle at right 20%, rgba(31, 111, 120, 0.18), transparent 32%),
    linear-gradient(180deg, #fbf6ef 0%, #f2eadf 100%);
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 24px;
  align-items: stretch;
}

.hero__copy,
.hero__card,
.entry-card,
.feature-card,
.panel,
.timeline__item,
.path-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero__copy {
  padding: 40px;
}

.hero__card {
  padding: 28px;
  align-self: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 4.4rem);
  line-height: 1.05;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
  margin-bottom: 8px;
}

.hero__text,
.entry-card p,
.feature-card p,
.panel p,
.timeline__item p {
  color: var(--muted);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.primary-btn,
.secondary-link,
.level-chip,
.entry-link {
  border-radius: 999px;
  padding: 14px 20px;
  font-size: 0.98rem;
  text-decoration: none;
}

.primary-btn,
.button-link,
.entry-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary-btn {
  border: none;
  background: linear-gradient(135deg, var(--accent), #298e99);
  color: white;
  cursor: pointer;
}

.secondary-link {
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.hero__card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.progress-stack {
  display: grid;
  gap: 14px;
}

.progress-row,
.assessment-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--surface-strong);
}

.progress-row span,
.assessment-row span,
.panel__label,
.entry-card__tag {
  color: var(--muted);
}

.progress-row strong,
.assessment-row strong {
  color: var(--accent-deep);
  text-align: right;
}

.section-block {
  margin-top: 28px;
}

.section-heading {
  margin-bottom: 16px;
}

.entry-grid,
.feature-grid,
.dashboard-grid,
.path-summary {
  display: grid;
  gap: 18px;
}

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

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

.dashboard-grid,
.path-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.entry-card,
.feature-card,
.panel,
.path-card {
  padding: 24px;
}

.feature-card {
  display: flex;
  flex-direction: column;
}

.feature-card__link {
  margin-top: 18px;
}

.module-progress {
  margin-top: auto;
  padding-top: 18px;
  display: grid;
  gap: 12px;
}

.module-progress__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-size: 0.95rem;
  color: var(--muted);
}

.module-progress__meta span {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.module-progress__meta strong {
  min-width: 60px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(31, 111, 120, 0.12);
  color: var(--accent-deep);
  text-align: center;
}

.module-progress__track {
  position: relative;
  display: block;
  width: 100%;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(31, 111, 120, 0.12);
  background: linear-gradient(180deg, rgba(31, 111, 120, 0.08), rgba(31, 111, 120, 0.18));
  box-shadow: inset 0 1px 2px rgba(21, 75, 82, 0.08);
  overflow: hidden;
}

.module-progress__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #2d98a3 58%, var(--accent-soft));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16) inset;
  transition: width 260ms ease;
}

.entry-card__tag {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.level-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.vocab-home-link {
  white-space: nowrap;
  border-radius: 999px;
}

.vocab-home-link:hover {
  background: linear-gradient(135deg, var(--accent), #298e99);
  color: white;
}

.vocab-footer {
  display: flex;
  justify-content: flex-end;
}

.level-chip {
  border: 1px solid rgba(31, 111, 120, 0.2);
  background: rgba(31, 111, 120, 0.06);
  color: var(--accent-deep);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.level-chip:hover,
.level-chip.active {
  background: linear-gradient(135deg, var(--accent), #298e99);
  color: white;
  transform: translateY(-1px);
}

.entry-link {
  margin-top: 18px;
  border: 1px solid rgba(31, 111, 120, 0.18);
  background: rgba(31, 111, 120, 0.08);
  color: var(--accent-deep);
}

.vocab-summary-grid,
.mode-grid,
.vocab-list {
  display: grid;
  gap: 18px;
}

.vocab-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
}

.vocab-summary-grid__hero {
  grid-column: 1 / -1;
}

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

.mode-card,
.recommendation-card,
.vocab-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.mode-card {
  padding: 22px;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.mode-card.active,
.mode-card:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 111, 120, 0.28);
  background: rgba(255, 250, 242, 0.92);
}

.mode-card strong,
.mode-card p,
.mode-card__tag {
  display: block;
}

.mode-card strong {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.mode-card__tag,
.vocab-card__eyebrow,
.recommendation-card__label {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mode-card p,
.vocab-card__example,
.vocab-card__note,
.recommendation-card__copy p {
  color: var(--muted);
  line-height: 1.7;
}

.category-row,
.tag-row,
.vocab-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-chip,
.tag-chip,
.status-pill {
  border-radius: 999px;
}

.category-chip {
  border: 1px solid rgba(31, 111, 120, 0.16);
  background: rgba(31, 111, 120, 0.06);
  color: var(--accent-deep);
  padding: 10px 16px;
  cursor: pointer;
}

.category-chip.active {
  background: linear-gradient(135deg, var(--accent), #298e99);
  color: white;
}

.recommendation-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 24px;
}

.recommendation-card__copy h3 {
  margin-bottom: 10px;
}

.recommendation-card__meta {
  min-width: 160px;
  padding: 18px;
  border-radius: 20px;
  background: var(--surface-strong);
}

.recommendation-card__meta span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
}

.recommendation-card__meta strong {
  color: var(--accent-deep);
}

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

.vocab-card {
  padding: 24px;
}

.vocab-card__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.vocab-card__meaning {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.vocab-card__example,
.vocab-card__note {
  margin-bottom: 12px;
}

.tag-chip {
  padding: 6px 12px;
  background: rgba(31, 111, 120, 0.08);
  color: var(--accent-deep);
  font-size: 0.9rem;
}

.status-pill {
  padding: 8px 12px;
  font-size: 0.86rem;
  font-weight: 700;
}

.status-pill--new {
  background: rgba(31, 111, 120, 0.1);
  color: var(--accent-deep);
}

.status-pill--review {
  background: rgba(240, 160, 75, 0.2);
  color: #8a4d07;
}

.status-pill--known {
  background: rgba(76, 175, 80, 0.18);
  color: #2e6c31;
}

.vocab-action {
  padding: 10px 16px;
}

.filter-card {
  display: grid;
  gap: 14px;
  align-content: start;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease, border-color 180ms ease;
  cursor: pointer;
}

.filter-card--link {
  color: inherit;
  text-decoration: none;
}

.filter-card--link:visited,
.filter-card--link:hover,
.filter-card--link:focus {
  color: inherit;
  text-decoration: none;
}

.filter-card--link .panel__label,
.filter-card--link .panel__value,
.filter-card--link p {
  text-decoration: none;
}

.dashboard-grid .panel.filter-card:hover {
  background: linear-gradient(135deg, var(--accent), #298e99) !important;
  border-color: rgba(31, 111, 120, 0.2) !important;
  transform: translateY(-2px);
}

.dashboard-grid .panel.filter-card:hover .panel__label,
.dashboard-grid .panel.filter-card:hover .panel__value,
.dashboard-grid .panel.filter-card:hover p {
  color: white !important;
}

.filter-chip {
  appearance: none;
  border: 1px solid rgba(31, 111, 120, 0.16);
  border-radius: 999px;
  background: rgba(31, 111, 120, 0.06);
  color: var(--accent-deep);
  padding: 10px 16px;
  font: inherit;
  line-height: 1;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.filter-chip.active,
.filter-chip:hover {
  background: linear-gradient(135deg, var(--accent), #298e99);
  color: white;
  transform: translateY(-1px);
}

.flashcard {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.flashcard__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.flashcard__meta-line {
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--surface-strong);
}

.flashcard__meta-line strong {
  display: block;
  margin-top: 8px;
  color: var(--accent-deep);
  font-size: 1.05rem;
}

.flashcard__body {
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 250, 242, 0.9);
  border: 1px solid rgba(31, 42, 48, 0.08);
}

.flashcard__eyebrow {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flashcard__term {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.08;
  margin-bottom: 16px;
}

.flashcard__pronunciation {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  margin-bottom: 18px;
}

.flashcard__pronunciation strong {
  color: var(--accent-deep);
}

.flashcard__meaning {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.flashcard__example,
.flashcard__note {
  color: var(--muted);
  line-height: 1.8;
}

.flashcard__actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
}

.flashcard__button[disabled] {
  opacity: 0.42;
  cursor: not-allowed;
}

.word-page {
  min-height: 100vh;
}

.word-topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.word-back-link {
  display: inline-flex;
  text-decoration: none;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), #298e99);
  color: white;
}

.word-back-link:visited,
.word-back-link:hover,
.word-back-link:focus {
  color: white;
  text-decoration: none;
}

.word-session-meta {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.78);
  color: var(--muted);
}

.word-session-meta strong {
  color: var(--accent-deep);
}

.word-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 22px;
  align-items: stretch;
}

.word-side {
  display: grid;
  align-content: start;
  gap: 18px;
}

.word-side h2 {
  margin-bottom: 0;
}

.word-progress {
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(31, 111, 120, 0.14);
  background: rgba(31, 111, 120, 0.08);
  overflow: hidden;
}

.word-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #2d98a3 65%, var(--accent-soft));
  transition: width 220ms ease;
}

.word-stats {
  display: grid;
  gap: 12px;
}

.word-stats div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface-strong);
}

.word-stats span {
  color: var(--muted);
}

.word-stats strong {
  color: var(--accent-deep);
  font-size: 1.25rem;
}

.word-card {
  display: grid;
  gap: 22px;
  min-height: 640px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.92), rgba(255, 250, 242, 0.74)),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.word-card__head,
.word-card__actions,
.word-card__review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.word-card__head {
  justify-content: space-between;
}

.word-card__tag {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(31, 111, 120, 0.12);
  color: var(--accent-deep);
  font-size: 0.9rem;
  font-weight: 700;
}

.word-card__tag--soft {
  background: rgba(240, 160, 75, 0.2);
  color: #8a4d07;
}

.word-card__main {
  display: grid;
  place-items: center;
  min-height: 250px;
  text-align: center;
}

.word-card__main h1 {
  margin-bottom: 12px;
  font-size: clamp(3rem, 8vw, 6.4rem);
  letter-spacing: 0;
}

.word-card__kana {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700;
}

.word-card__hint {
  color: var(--muted);
}

.word-card__answer {
  padding: 22px;
  border: 1px solid rgba(31, 42, 48, 0.08);
  border-radius: 22px;
  background: var(--surface-strong);
}

.word-card__answer span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
}

.word-card__answer strong {
  display: block;
  margin-bottom: 12px;
  color: var(--accent-deep);
  font-size: 1.5rem;
}

.word-card__answer p {
  color: var(--muted);
  line-height: 1.8;
}

.word-example {
  display: grid;
  gap: 12px;
  padding: 20px 22px;
  border: 1px solid rgba(31, 111, 120, 0.12);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(31, 111, 120, 0.07), rgba(240, 160, 75, 0.08));
}

.word-example[hidden] {
  display: none;
}

.word-example__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.word-example__head span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.word-example__head strong {
  color: var(--accent-deep);
}

.word-example__sentence {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.8;
}

.word-example__note {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.8;
}

.mixed-card {
  gap: 20px;
}

.mixed-question {
  display: grid;
  gap: 12px;
  padding: 18px 0 8px;
}

.mixed-question__number {
  margin-bottom: 0;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mixed-question h1 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 3vw, 2.55rem);
  line-height: 1.5;
  letter-spacing: 0;
}

.mixed-options {
  display: grid;
  gap: 12px;
}

.mixed-option {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(31, 42, 48, 0.1);
  border-radius: 18px;
  background: rgba(255, 250, 242, 0.82);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.mixed-option span {
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(31, 111, 120, 0.1);
  color: var(--accent-deep);
  font-weight: 800;
}

.mixed-option strong {
  min-width: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.7;
}

.mixed-option:hover,
.mixed-option.selected {
  transform: translateY(-1px);
  border-color: rgba(31, 111, 120, 0.34);
  background: rgba(31, 111, 120, 0.08);
}

.mixed-option.correct {
  border-color: rgba(31, 111, 120, 0.46);
  background: rgba(31, 111, 120, 0.14);
}

.mixed-option.wrong {
  border-color: rgba(240, 160, 75, 0.58);
  background: rgba(240, 160, 75, 0.12);
}

.mixed-answer {
  margin-top: 2px;
}

.mixed-analysis-list {
  display: grid;
  gap: 10px;
}

.mixed-analysis-item {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid rgba(31, 42, 48, 0.08);
  border-radius: 14px;
  background: rgba(255, 250, 242, 0.72);
}

.mixed-analysis-item.correct {
  border-color: rgba(31, 111, 120, 0.28);
  background: rgba(31, 111, 120, 0.1);
}

.mixed-analysis-item strong {
  color: var(--accent-deep);
  line-height: 1.6;
}

.mixed-analysis-item p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.mixed-jump-form {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-right: auto;
}

.mixed-jump-input {
  width: 96px;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.82);
  color: var(--ink);
  font: inherit;
  text-align: center;
}

.mixed-jump-input:focus {
  border-color: rgba(31, 111, 120, 0.42);
  outline: 3px solid rgba(31, 111, 120, 0.12);
}

.word-card__actions {
  justify-content: space-between;
  margin-top: auto;
}

.word-card__review-actions {
  justify-content: flex-end;
}

.word-action[disabled] {
  opacity: 0.42;
  cursor: not-allowed;
}

.assessment-box {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.accent-panel {
  background: linear-gradient(160deg, rgba(31, 111, 120, 0.95), rgba(21, 75, 82, 0.92));
  color: white;
}

.accent-panel .panel__label,
.accent-panel p,
.accent-panel .panel__value {
  color: white;
}

.panel__value {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.route-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.route-step {
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--muted);
}

.route-step.completed {
  color: var(--accent-deep);
}

.route-step.active {
  background: rgba(240, 160, 75, 0.18);
  color: var(--accent-deep);
  border-color: rgba(240, 160, 75, 0.35);
}

.hero--compact {
  grid-template-columns: 1.1fr 0.9fr;
}

.assessment-form {
  display: grid;
  gap: 18px;
}

.question-card {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.question-card__meta {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.option-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  margin-top: 10px;
  border-radius: 18px;
  border: 1px solid rgba(31, 42, 48, 0.1);
  background: rgba(255, 250, 242, 0.88);
  cursor: pointer;
}

.option-row input {
  margin-top: 4px;
}

.form-actions,
.result-actions {
  display: flex;
  justify-content: flex-start;
}

.result-card[hidden] {
  display: none;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline__item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 18px;
  padding: 22px;
  align-items: start;
}

.timeline__item span {
  display: grid;
  place-items: center;
  height: 64px;
  width: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(31, 111, 120, 0.12), rgba(240, 160, 75, 0.18));
  font-weight: 700;
  color: var(--accent);
}

@media (max-width: 960px) {
  .hero,
  .entry-grid,
  .feature-grid,
  .dashboard-grid,
  .path-summary,
  .vocab-summary-grid,
  .mode-grid,
  .vocab-list {
    grid-template-columns: 1fr 1fr;
  }

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

  .word-layout {
    grid-template-columns: 1fr;
  }

  .word-card {
    min-height: 560px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1120px);
    padding-top: 20px;
  }

  .hero,
  .entry-grid,
  .feature-grid,
  .dashboard-grid,
  .path-summary,
  .timeline__item,
  .vocab-summary-grid,
  .mode-grid,
  .vocab-list {
    grid-template-columns: 1fr;
  }

  .recommendation-card,
  .vocab-card__top,
  .flashcard__actions {
    flex-direction: column;
  }

  .vocab-footer {
    justify-content: flex-start;
  }

  .hero__copy,
  .hero__card,
  .entry-card,
  .feature-card,
  .panel,
  .timeline__item,
  .path-card {
    border-radius: 22px;
  }

  .hero__copy,
  .hero__card,
  .entry-card,
  .feature-card,
  .panel,
  .path-card {
    padding: 24px;
  }

  .progress-row,
  .assessment-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .word-topbar,
  .word-card__actions,
  .word-card__review-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .word-session-meta {
    justify-content: space-between;
  }

  .word-card {
    min-height: 520px;
    padding: 22px;
  }

  .word-action {
    width: 100%;
  }
}
