:root {
  --navy-950: #102f45;
  --navy-900: #173c57;
  --navy-800: #23516d;
  --navy-100: #e9f2f6;
  --ink: #183042;
  --muted: #5d7180;
  --paper: #fffdf9;
  --surface: #ffffff;
  --canvas: #f4f7f5;
  --line: #d9e3e4;
  --coral-700: #a7442e;
  --coral-600: #c55339;
  --coral-100: #fff0e9;
  --coral-50: #fff8f3;
  --teal-800: #176455;
  --teal-700: #1e7665;
  --teal-100: #dcf2e9;
  --teal-50: #f2fbf7;
  --blue-700: #2c5c91;
  --blue-100: #e7f0fb;
  --gold-500: #e8ad37;
  --gold-100: #fff2c9;
  --success: #16734d;
  --success-bg: #e8f7ef;
  --danger: #a8322a;
  --danger-bg: #fff0ed;
  --shadow-sm: 0 3px 12px rgba(16, 47, 69, 0.08);
  --shadow-md: 0 14px 36px rgba(16, 47, 69, 0.13);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --page: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  background: var(--canvas);
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

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

button {
  color: inherit;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--navy-950);
  line-height: 1.12;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.75rem, 7vw, 5.8rem);
  font-weight: 700;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 5vw, 3.8rem);
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
}

p {
  margin-top: 0;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px 16px;
  color: white;
  background: var(--navy-950);
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 4px solid var(--gold-500);
  outline-offset: 3px;
}

.page-shell {
  width: min(var(--page), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  color: white;
  background: rgba(16, 47, 69, 0.97);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--page), calc(100% - 32px));
  min-height: 76px;
  margin-inline: auto;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 4px;
  color: white;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  gap: 11px;
  text-align: left;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--navy-950);
  background: var(--gold-100);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-weight: 800;
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-kicker {
  margin-bottom: 4px;
  color: #bcd0dc;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-copy strong {
  font-size: 1.02rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-button {
  min-height: 44px;
  padding: 9px 14px;
  color: #dae7ed;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}

.nav-button[aria-current="page"] {
  color: var(--navy-950);
  background: white;
}

.view {
  min-height: calc(100vh - 76px);
}

.eyebrow,
.card-kicker,
.question-label {
  margin-bottom: 10px;
  color: var(--coral-700);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  align-items: center;
  min-height: 620px;
  padding-block: 76px;
  gap: 62px;
}

.hero-subtitle {
  max-width: 670px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2.3vw, 1.3rem);
}

.hero-actions,
.title-actions,
.form-actions,
.summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 20px;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.button-primary {
  color: white;
  background: var(--navy-900);
  box-shadow: 0 5px 15px rgba(16, 47, 69, 0.18);
}

.button-secondary {
  color: var(--navy-900);
  background: white;
  border-color: var(--line);
}

.button-light {
  align-self: flex-start;
  color: var(--navy-950);
  background: white;
}

.button-full {
  width: 100%;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.hero-board {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 30px;
  color: white;
  background: var(--navy-900);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  gap: 14px;
  transform: rotate(1.3deg);
}

.hero-board::before {
  position: absolute;
  top: -17px;
  left: 50%;
  width: 86px;
  height: 32px;
  background: rgba(255, 239, 185, 0.83);
  content: "";
  transform: translateX(-50%) rotate(-2deg);
}

.hero-board p {
  grid-column: 1 / -1;
  margin: 10px 2px 0;
  color: #dae8ed;
}

.hero-stat {
  display: grid;
  min-height: 155px;
  padding: 20px;
  align-content: center;
  border-radius: var(--radius-md);
}

.hero-stat strong {
  font-family: Georgia, serif;
  font-size: clamp(3rem, 8vw, 4.8rem);
  line-height: 0.9;
}

.hero-stat span {
  margin-top: 12px;
  font-weight: 800;
}

.hero-stat-emotions {
  color: #7b2d20;
  background: #ffd8c8;
}

.hero-stat-verbs {
  color: #125547;
  background: #c9f0e2;
}

.section-block {
  padding-block: 70px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.home-grid {
  display: grid;
  gap: 22px;
}

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

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

.home-card {
  position: relative;
  min-height: 290px;
  padding: 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.home-card::after {
  position: absolute;
  right: -28px;
  bottom: -52px;
  width: 170px;
  height: 170px;
  border: 24px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  content: "";
}

.home-card-coral {
  background: var(--coral-50);
}

.home-card-teal {
  background: var(--teal-50);
}

.card-icon,
.mode-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 24px;
  place-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.65rem;
  box-shadow: var(--shadow-sm);
}

.home-card h3 {
  font-family: Georgia, serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.home-card p:not(.card-kicker) {
  max-width: 500px;
  color: var(--muted);
}

.text-button {
  position: relative;
  z-index: 1;
  min-height: 44px;
  margin-top: 12px;
  padding: 4px 0;
  color: var(--navy-900);
  background: transparent;
  border: 0;
  border-bottom: 2px solid currentColor;
  cursor: pointer;
  font-weight: 850;
}

.practice-band {
  color: white;
  background: var(--navy-950);
}

.section-heading-light h2,
.section-heading-light .eyebrow {
  color: white;
}

.practice-tile {
  display: flex;
  min-height: 280px;
  padding: 28px;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.07);
}

.practice-tile h3 {
  color: white;
  font-family: Georgia, serif;
  font-size: 1.65rem;
}

.practice-tile p {
  color: #bfd0da;
}

.practice-tile .button {
  margin-top: auto;
}

.practice-number {
  margin-bottom: 42px;
  color: #f0ca77;
  font-family: Georgia, serif;
  font-size: 1.25rem;
  font-weight: 800;
}

.page-top {
  padding-top: 58px;
  padding-bottom: 36px;
}

.compact-top {
  padding-bottom: 25px;
}

.page-top > p:not(.eyebrow),
.title-row p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
}

.back-button {
  min-height: 44px;
  margin-bottom: 36px;
  padding: 8px 0;
  color: var(--navy-800);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.title-row > div:first-child {
  min-width: 0;
}

.guide-legend {
  display: flex;
  flex-wrap: wrap;
  margin-top: 26px;
  gap: 10px;
}

.legend-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 15px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  gap: 8px;
}

.legend-chip-challenging {
  background: var(--coral-100);
}

.legend-chip-constructive {
  background: var(--teal-100);
}

.guide-stack {
  display: grid;
  padding-bottom: 80px;
  gap: 34px;
}

.emotion-group {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 100px;
}

.emotion-group-challenging {
  background: var(--coral-50);
}

.emotion-group-constructive {
  background: var(--teal-50);
}

.group-heading {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  gap: 14px;
}

.group-heading p {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.group-heading h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.group-icon {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  place-items: center;
  background: white;
  border-radius: 50%;
  font-size: 1.6rem;
}

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

.emotion-card {
  display: grid;
  grid-template-columns: minmax(190px, 0.5fr) minmax(0, 1fr);
  min-height: 118px;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.emotion-word {
  display: flex;
  padding: 18px;
  align-items: center;
  color: var(--navy-950);
  border-right: 1px solid var(--line);
  font-family: Georgia, serif;
  font-size: 1.08rem;
  font-weight: 800;
}

.emotion-definition {
  display: flex;
  margin: 0;
  padding: 17px 18px;
  align-items: center;
  color: #465c6a;
  font-size: 0.94rem;
}

.verb-guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.58fr);
  align-items: start;
  padding-bottom: 80px;
  gap: 26px;
}

.table-card,
.memory-panel,
.practice-settings,
.question-card,
.summary-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.table-card {
  overflow: hidden;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.verb-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--ink);
}

.verb-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.verb-table th,
.verb-table td {
  padding: 17px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.verb-table th:last-child,
.verb-table td:last-child {
  border-right: 0;
}

.verb-table tr:last-child td,
.verb-table tr:last-child th {
  border-bottom: 0;
}

.verb-table thead th {
  color: white;
  background: var(--navy-900);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.verb-reference-table tbody td {
  font-size: 1.12rem;
  font-weight: 750;
}

.verb-reference-table tbody tr:nth-child(even) {
  background: #f6f9fa;
}

.memory-panel {
  position: sticky;
  top: 102px;
  padding: 27px;
}

.memory-panel ol {
  margin: 20px 0;
  padding-left: 22px;
}

.memory-panel li {
  margin-bottom: 10px;
}

.grammar-note,
.worksheet-note {
  padding: 16px;
  border-radius: var(--radius-sm);
}

.grammar-note {
  margin-top: 24px;
  background: var(--blue-100);
}

.grammar-note p,
.worksheet-note {
  margin-bottom: 0;
}

.worksheet-note {
  margin-top: 13px;
  background: var(--gold-100);
}

.mode-grid {
  display: grid;
  padding-bottom: 80px;
  gap: 18px;
}

.mode-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  gap: 22px;
}

.mode-card-coral {
  background: var(--coral-50);
}

.mode-card-teal {
  background: var(--teal-50);
}

.mode-card-blue {
  background: #f2f7fd;
}

.mode-card .mode-icon {
  margin: 0;
}

.mode-card h3 {
  margin-bottom: 5px;
}

.mode-card p:not(.card-kicker) {
  margin-bottom: 0;
  color: var(--muted);
}

.practice-layout {
  display: grid;
  grid-template-columns: minmax(245px, 0.4fr) minmax(0, 1fr);
  align-items: start;
  padding-bottom: 80px;
  gap: 25px;
}

.practice-settings {
  position: sticky;
  top: 102px;
  padding: 24px;
}

.segmented-options {
  display: grid;
  margin: 18px 0;
  padding: 0;
  border: 0;
  gap: 8px;
}

.segmented-options label {
  display: block;
  cursor: pointer;
}

.segmented-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented-options span {
  display: flex;
  min-height: 48px;
  padding: 11px 13px;
  align-items: center;
  background: var(--canvas);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 750;
}

.segmented-options input:checked + span {
  color: var(--navy-950);
  background: var(--gold-100);
  border-color: var(--gold-500);
}

.segmented-options input:focus-visible + span {
  outline: 4px solid var(--gold-500);
  outline-offset: 2px;
}

.settings-tip {
  margin: 17px 2px 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.question-stage {
  min-width: 0;
}

.progress-row,
.score-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted);
  gap: 16px;
}

.progress-row strong,
.score-banner strong {
  color: var(--navy-950);
}

.progress-track {
  display: block;
  width: 100%;
  height: 10px;
  margin: 0 0 20px;
  overflow: hidden;
  appearance: none;
  background: #dce6e8;
  border: 0;
  border-radius: 999px;
}

.progress-track::-webkit-progress-bar {
  background: #dce6e8;
  border-radius: 999px;
}

.progress-track::-webkit-progress-value {
  background: var(--coral-600);
  border-radius: 999px;
  transition: width 180ms ease;
}

.progress-track::-moz-progress-bar {
  background: var(--coral-600);
  border-radius: 999px;
}

.question-card {
  min-height: 465px;
  padding: clamp(24px, 5vw, 44px);
}

.question-card h3 {
  max-width: 850px;
  margin-bottom: 28px;
  font-family: Georgia, serif;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
}

.question-label {
  color: var(--blue-700);
}

.answer-options {
  display: grid;
  gap: 11px;
}

.answer-option {
  min-height: 58px;
  padding: 14px 17px;
  color: var(--ink);
  background: #f7f9f9;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  line-height: 1.4;
  text-align: left;
}

.answer-option.is-correct {
  color: #0b5135;
  background: var(--success-bg);
  border-color: var(--success);
}

.answer-option.is-wrong {
  color: #7e241d;
  background: var(--danger-bg);
  border-color: var(--danger);
}

.feedback-region {
  min-height: 28px;
  margin-top: 18px;
}

.feedback-card {
  padding: 15px 17px;
  border-left: 5px solid;
  border-radius: var(--radius-sm);
}

.feedback-card p {
  margin: 4px 0 0;
}

.feedback-correct {
  color: #0b5135;
  background: var(--success-bg);
  border-color: var(--success);
}

.feedback-wrong {
  color: #7e241d;
  background: var(--danger-bg);
  border-color: var(--danger);
}

.feedback-neutral {
  color: var(--navy-800);
  background: var(--blue-100);
  border-color: var(--blue-700);
}

.next-button {
  margin-top: 16px;
}

.round-summary {
  display: grid;
  min-height: 340px;
  place-items: center;
  align-content: center;
  text-align: center;
}

.round-summary .summary-icon {
  margin-bottom: 12px;
}

.round-summary p {
  max-width: 560px;
  color: var(--muted);
}

.grid-practice-shell,
.listening-shell {
  padding-bottom: 80px;
}

.score-banner {
  padding: 13px 18px;
  background: var(--gold-100);
  border-radius: var(--radius-sm);
}

.practice-verb-table {
  min-width: 720px;
}

.practice-verb-table th,
.practice-verb-table td {
  width: 33.333%;
}

.verb-cue {
  display: flex;
  min-height: 48px;
  padding: 10px 12px;
  align-items: center;
  color: var(--navy-950);
  background: var(--gold-100);
  border: 2px solid #e1b34d;
  border-radius: 8px;
  font-size: 1.08rem;
  font-weight: 850;
}

.verb-input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--ink);
  background: white;
  border: 2px solid #afc1c8;
  border-radius: 8px;
  font-size: 16px;
}

.verb-input.is-correct,
.listening-form input.is-correct {
  background: var(--success-bg);
  border-color: var(--success);
}

.verb-input.is-wrong,
.listening-form input.is-wrong {
  background: var(--danger-bg);
  border-color: var(--danger);
}

.answer-correction {
  display: block;
  margin-top: 5px;
  color: var(--danger);
  font-size: 0.82rem;
  font-weight: 800;
}

.grid-feedback {
  min-height: 34px;
}

.listening-shell {
  max-width: 850px;
}

.listening-card {
  min-height: 500px;
}

.audio-button {
  display: flex;
  width: 100%;
  min-height: 98px;
  padding: 18px;
  align-items: center;
  color: white;
  background: var(--navy-900);
  border: 0;
  border-radius: var(--radius-md);
  cursor: pointer;
  gap: 17px;
  text-align: left;
}

.audio-button.is-playing {
  background: var(--teal-800);
}

.audio-icon {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--navy-950);
  background: var(--gold-100);
  border-radius: 50%;
  font-size: 1.2rem;
}

.audio-button span:last-child {
  display: grid;
}

.audio-button strong {
  font-size: 1.15rem;
}

.audio-button small {
  margin-top: 3px;
  color: #c8d9e1;
}

.audio-status {
  min-height: 24px;
  margin: 9px 3px 22px;
  color: var(--muted);
  font-size: 0.9rem;
}

.listening-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 14px;
}

.listening-form label {
  color: var(--navy-950);
  font-weight: 800;
}

.listening-form input {
  display: block;
  width: 100%;
  min-height: 52px;
  margin-top: 6px;
  padding: 11px 13px;
  color: var(--ink);
  background: white;
  border: 2px solid #afc1c8;
  border-radius: var(--radius-sm);
  font-size: 16px;
}

.listening-form .button {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 5px;
}

.summary-card {
  min-height: 430px;
  padding: 45px;
  text-align: center;
}

.summary-icon {
  display: block;
  font-size: 3rem;
}

.summary-card .summary-actions {
  justify-content: center;
  margin-top: 25px;
}

.site-footer {
  padding: 24px 20px;
  color: #bdd0d9;
  background: var(--navy-950);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (hover: hover) {
  .button:hover:not(:disabled),
  .audio-button:hover:not(:disabled) {
    box-shadow: 0 8px 22px rgba(16, 47, 69, 0.2);
    transform: translateY(-2px);
  }

  .nav-button:hover,
  .brand:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .answer-option:hover:not(:disabled) {
    border-color: var(--navy-800);
  }

  .text-button:hover {
    color: var(--coral-700);
  }
}

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

  .hero-board {
    max-width: 620px;
    transform: none;
  }

  .home-grid-three,
  .emotion-grid {
    grid-template-columns: 1fr;
  }

  .verb-guide-layout,
  .practice-layout {
    grid-template-columns: 1fr;
  }

  .memory-panel,
  .practice-settings {
    position: static;
  }

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

  .mode-card .button {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .header-inner {
    min-height: 68px;
    align-items: center;
  }

  .brand-copy,
  .nav-button[data-view-target="emotion-guide"],
  .nav-button[data-view-target="verb-guide"] {
    display: none;
  }

  .main-nav {
    margin-left: auto;
  }

  .nav-button {
    padding-inline: 12px;
  }

  .page-shell {
    width: min(100% - 28px, var(--page));
  }

  .home-grid-two,
  .listening-form {
    grid-template-columns: 1fr;
  }

  .title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-card,
  .emotion-group,
  .question-card,
  .summary-card {
    padding: 22px;
  }

  .emotion-card {
    grid-template-columns: 1fr;
  }

  .emotion-word {
    padding-bottom: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .emotion-definition {
    padding-top: 13px;
  }

  .listening-form .button {
    grid-column: auto;
  }
}

@media (max-width: 600px) {
  .practice-verb-table {
    display: block;
    min-width: 0;
  }

  .practice-verb-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .practice-verb-table tbody {
    display: grid;
  }

  .practice-verb-table tr {
    display: grid;
    padding: 14px;
    background: white;
    border-bottom: 2px solid var(--line);
    gap: 10px;
  }

  .practice-verb-table tr:last-child {
    border-bottom: 0;
  }

  .practice-verb-table td {
    display: grid;
    width: 100%;
    padding: 0;
    align-items: center;
    border: 0;
    grid-template-columns: minmax(92px, 0.38fr) minmax(0, 1fr);
    gap: 10px;
  }

  .practice-verb-table td::before {
    color: var(--muted);
    content: attr(data-label);
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .verb-cell-content {
    min-width: 0;
  }
}

@media (max-width: 440px) {
  .header-inner {
    width: calc(100% - 20px);
    gap: 8px;
  }

  .brand-mark {
    width: 39px;
    height: 39px;
  }

  .nav-button {
    padding-inline: 10px;
    font-size: 0.91rem;
  }

  .hero {
    padding-top: 44px;
  }

  .hero-board,
  .mode-card {
    padding: 20px;
  }

  .hero-stat {
    min-height: 125px;
    padding: 14px;
  }

  .hero-stat strong {
    font-size: 3rem;
  }

  .mode-card {
    grid-template-columns: 1fr;
  }

  .mode-card .button {
    grid-column: auto;
  }

  .title-actions,
  .title-actions .button,
  .form-actions,
  .form-actions .button,
  .summary-actions,
  .summary-actions .button {
    width: 100%;
  }

  .progress-row,
  .score-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .audio-button {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .back-button,
  .title-actions,
  .memory-panel,
  .view[hidden] {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 12pt;
  }

  .page-shell {
    width: 100%;
  }

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

  .verb-guide-layout {
    display: block;
    padding: 0;
  }

  .table-card {
    border: 1px solid #555;
    box-shadow: none;
  }

  .verb-table thead th {
    color: #000;
    background: #eee;
  }

  .verb-table th,
  .verb-table td {
    padding: 12px;
    border-color: #777;
  }
}
