:root {
  color-scheme: light;
  --paper: #f4eadb;
  --paper-deep: #e9d9c2;
  --surface: #fffdf9;
  --surface-soft: #fbf5ea;
  --ink: #26312d;
  --ink-soft: #665e56;
  --terracotta: #b84f3d;
  --terracotta-dark: #933a2e;
  --ochre: #cf9544;
  --sage: #657769;
  --blue-grey: #526a75;
  --line: #ddcdb8;
  --success: #39705b;
  --shadow: 0 1.6rem 4rem rgba(78, 51, 35, 0.13);
  --shadow-soft: 0 1rem 2.5rem rgba(78, 51, 35, 0.09);
  --radius-xl: 2rem;
  --radius-lg: 1.35rem;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 255, 255, 0.72), transparent 30rem),
    linear-gradient(145deg, var(--paper), #f8f0e4 58%, #eee0cb);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(184, 79, 61, 0.27);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.screen {
  display: none;
  min-height: 100svh;
}

.screen.is-active {
  display: grid;
}

.home-screen {
  position: relative;
  isolation: isolate;
  place-items: center;
  overflow: hidden;
  padding: 2rem 1.25rem;
}

.home-screen::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(rgba(91, 74, 58, 0.12) 1px, transparent 1px);
  background-size: 27px 27px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.ambient {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  filter: blur(2px);
  pointer-events: none;
}

.ambient-one {
  width: 22rem;
  height: 22rem;
  top: -10rem;
  left: -9rem;
  background: rgba(207, 149, 68, 0.28);
}

.ambient-two {
  width: 28rem;
  height: 28rem;
  right: -13rem;
  bottom: -15rem;
  background: rgba(82, 106, 117, 0.19);
}

.welcome-card {
  width: min(100%, 64rem);
  border: 1px solid rgba(209, 186, 158, 0.82);
  border-radius: 2.35rem;
  padding: clamp(2.1rem, 5vw, 3.8rem);
  text-align: center;
  background: rgba(255, 253, 249, 0.93);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.wordmark {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.25em;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 8vw, 4.35rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.wordmark strong,
.mini-wordmark strong {
  color: var(--terracotta);
  font-style: italic;
  font-weight: 700;
}

.title-flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 1.25rem auto 1.45rem;
}

.title-flourish span {
  width: 2.7rem;
  height: 2px;
  border-radius: 2px;
  background: var(--ochre);
}

.title-flourish i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--sage);
}

.eyebrow,
.round-kicker {
  margin: 0 0 0.75rem;
  color: var(--sage);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.welcome-card h1,
.guess-card h1,
.expression-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.04em;
}

.welcome-card h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.03;
}

.welcome-copy {
  max-width: 33rem;
  margin: 1rem auto 1.6rem;
  color: var(--ink-soft);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  line-height: 1.65;
}

.mode-picker,
.section-picker {
  margin-top: 1.7rem;
}

.mode-picker h2,
.section-picker h2 {
  margin: 0 0 0.9rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mode-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  text-align: left;
}

.mode-option {
  min-width: 0;
  min-height: 5.15rem;
  display: grid;
  align-content: center;
  gap: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 1.05rem;
  padding: 0.9rem 1rem;
  cursor: pointer;
  color: var(--ink);
  background: #fffdf9;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.mode-option:hover,
.mode-option.is-active {
  border-color: var(--terracotta);
  background: #fbefe9;
  box-shadow: 0 0.55rem 1.25rem rgba(78, 51, 35, 0.08);
}

.mode-option:hover {
  transform: translateY(-1px);
}

.mode-option strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}

.mode-option span {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.section-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  text-align: left;
}

.section-card {
  min-width: 0;
  min-height: 11.5rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: 1px solid #ddc9ae;
  border-radius: 1.35rem;
  padding: 1.25rem;
  cursor: pointer;
  color: var(--ink);
  background: linear-gradient(145deg, #fffdf9, #f8efdf);
  box-shadow: 0 0.75rem 1.8rem rgba(78, 51, 35, 0.08);
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.section-card:nth-child(even) {
  border-color: #c7d2d5;
  background: linear-gradient(145deg, #fffdf9, #edf2f1);
}

.section-card:hover {
  border-color: var(--terracotta);
  box-shadow: 0 1rem 2.25rem rgba(78, 51, 35, 0.13);
  transform: translateY(-2px);
}

.section-card-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.section-card-description {
  margin-top: 0.55rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.section-card-footer {
  margin-top: auto;
  padding-top: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--terracotta-dark);
  font-size: 0.9rem;
}

.section-card-footer strong {
  color: var(--sage);
}

.game-note,
.cycle-note {
  margin: 1.15rem 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.load-error {
  margin: 1rem 0 0;
  color: var(--terracotta-dark);
  font-weight: 700;
}

.language-discovery {
  margin-top: 1.35rem;
  border-top: 1px solid #eadcc9;
  padding-top: 1.2rem;
  text-align: left;
}

.language-discovery > p {
  margin: 0 0 0.7rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.language-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid #c7d2d5;
  border-radius: 1rem;
  padding: 0.8rem 0.95rem;
  color: var(--ink);
  background: linear-gradient(145deg, #fffdf9, #edf2f1);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.language-link:hover {
  border-color: var(--sage);
  box-shadow: 0 0.65rem 1.4rem rgba(78, 51, 35, 0.1);
  transform: translateY(-1px);
}

.language-link:focus-visible {
  outline: 3px solid rgba(184, 79, 61, 0.27);
  outline-offset: 3px;
}

.language-link strong,
.language-link small {
  display: block;
}

.language-link strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

.language-link small {
  margin-top: 0.1rem;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.language-flag {
  font-size: 1.45rem;
  line-height: 1;
}

.language-arrow {
  color: var(--terracotta-dark);
  font-size: 1.25rem;
  font-weight: 800;
}

.button {
  min-height: 3.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.8rem 1.45rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 760;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
}

.button-primary {
  color: #fff;
  background: var(--terracotta);
  box-shadow: 0 0.6rem 1.25rem rgba(184, 79, 61, 0.22);
}

.button-primary:hover:not(:disabled) {
  background: var(--terracotta-dark);
  box-shadow: 0 0.75rem 1.45rem rgba(147, 58, 46, 0.25);
  transform: translateY(-1px);
}

.button-primary:active:not(:disabled) {
  transform: translateY(0);
}

.start-button {
  min-width: 12.5rem;
}

.game-screen {
  align-content: start;
  padding: 1.1rem clamp(1rem, 3vw, 2.5rem) 2.5rem;
}

.game-screen::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(184, 79, 61, 0.13) 1px, transparent 1px);
  background-size: 26px 26px;
  content: "";
  opacity: 0.45;
  mask-image: linear-gradient(to bottom, black, transparent 48%);
  pointer-events: none;
}

.game-header {
  width: min(100%, 75rem);
  margin: 0 auto 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.game-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.active-section-title {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.42rem 0.75rem;
  color: var(--terracotta-dark);
  background: rgba(255, 253, 249, 0.75);
  font-size: 0.8rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-wordmark {
  border: 0;
  padding: 0.55rem 0;
  cursor: pointer;
  color: var(--ink);
  background: transparent;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.02rem, 2.5vw, 1.45rem);
  letter-spacing: -0.035em;
}

.progress-block {
  width: min(46vw, 14rem);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.75rem;
}

.progress-block > span {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.progress-track {
  height: 0.58rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e9dac6;
}

.progress-track span {
  display: block;
  width: 10%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--terracotta), var(--ochre));
  transition: width 220ms ease;
}

.game-layout {
  width: min(100%, 75rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(21rem, 0.95fr);
  align-items: stretch;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.image-card {
  min-width: 0;
}

.image-frame {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 0.55rem solid rgba(255, 253, 249, 0.96);
  border-radius: var(--radius-xl);
  background: var(--paper-deep);
  box-shadow: var(--shadow);
}

.image-frame::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(68, 54, 42, 0.12);
  border-radius: calc(var(--radius-xl) - 0.55rem);
  content: "";
  pointer-events: none;
}

.expression-prompt {
  aspect-ratio: 1;
  min-height: 20rem;
  display: grid;
  place-content: center;
  gap: 1rem;
  overflow: hidden;
  border: 0.55rem solid rgba(255, 253, 249, 0.96);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 6vw, 4.6rem);
  background:
    radial-gradient(circle at 22% 18%, rgba(207, 149, 68, 0.17), transparent 12rem),
    linear-gradient(145deg, #fffdf9, #f1e5d3);
  box-shadow: var(--shadow);
  text-align: center;
}

.expression-prompt p {
  margin: 0;
  color: var(--sage);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.expression-prompt blockquote {
  max-width: 31rem;
  margin: 0;
  color: var(--terracotta-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.8vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

#questionImage {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.008);
  transition: opacity 180ms ease, transform 300ms ease;
}

#questionImage.is-loaded {
  opacity: 1;
  transform: scale(1);
}

.image-loader {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  color: var(--ink-soft);
  background: var(--paper-deep);
  font-size: 0.92rem;
}

.cycle-note {
  text-align: center;
}

.play-panel {
  min-width: 0;
  display: flex;
}

.guess-card,
.learning-card {
  border: 1px solid rgba(209, 186, 158, 0.82);
  border-radius: var(--radius-xl);
  padding: clamp(1.45rem, 4vw, 2.5rem);
  background: rgba(255, 253, 249, 0.95);
  box-shadow: var(--shadow-soft);
}

.guess-card {
  width: 100%;
  min-height: min(34rem, calc(100svh - 8.5rem));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.guess-card h1 {
  max-width: 28rem;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.04;
}

.answer-form {
  margin-top: clamp(1.5rem, 5vh, 2.6rem);
  display: grid;
  gap: 0.75rem;
}

.answer-form input {
  width: 100%;
  min-height: 3.6rem;
  border: 1px solid #cdbba5;
  border-radius: 1.05rem;
  padding: 0 1rem;
  color: var(--ink);
  background: #fff;
  font-size: 1.02rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.answer-form input::placeholder {
  color: #91877d;
}

.answer-form input:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(184, 79, 61, 0.1);
}

.check-button {
  width: 100%;
}

.feedback {
  min-height: 1.6rem;
  margin: 0.85rem 0 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 650;
}

.feedback-close {
  color: #9a6b26;
}

.feedback-error {
  color: var(--terracotta-dark);
}

.feedback-success {
  color: var(--success);
}

.meaning-quiz {
  margin-top: 1.2rem;
}

.choice-list {
  display: grid;
  gap: 0.65rem;
}

.choice-button {
  width: 100%;
  min-height: 4.35rem;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  border: 1px solid #d8c8b4;
  border-radius: 1rem;
  padding: 0.72rem 0.85rem;
  cursor: pointer;
  color: var(--ink-soft);
  background: #fff;
  font-size: 0.9rem;
  line-height: 1.38;
  text-align: left;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.choice-button:hover:not(:disabled),
.choice-button.is-selected {
  border-color: var(--terracotta);
  background: #fbefe9;
  box-shadow: 0 0.35rem 0.9rem rgba(78, 51, 35, 0.08);
}

.choice-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.choice-button:disabled {
  cursor: default;
  opacity: 1;
}

.choice-button.is-correct {
  border-color: #79a08c;
  color: #234d3c;
  background: #e5f1e9;
  box-shadow: 0 0 0 2px rgba(57, 112, 91, 0.12);
}

.choice-button.is-incorrect {
  border-color: #d58e80;
  color: #7d3328;
  background: #f9e9e5;
}

.choice-marker {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--terracotta-dark);
  background: #f5e5dd;
  font-size: 0.78rem;
  font-weight: 850;
}

.choice-button.is-correct .choice-marker {
  color: #fff;
  background: var(--success);
}

.choice-button.is-incorrect .choice-marker {
  color: #fff;
  background: var(--terracotta);
}

.meaning-feedback {
  margin-top: 0.75rem;
}

.hints {
  display: grid;
  gap: 0.65rem;
  margin: 0.85rem 0 0;
}

.hints p {
  margin: 0;
  border-left: 3px solid var(--ochre);
  border-radius: 0.75rem;
  padding: 0.75rem 0.9rem;
  color: #554e47;
  background: #fbf1df;
  font-size: 0.94rem;
  line-height: 1.5;
}

.hints span {
  display: block;
  margin-bottom: 0.2rem;
  color: #8b6427;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.secondary-actions {
  margin-top: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.button-outline {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}

.button-outline:hover:not(:disabled) {
  border-color: var(--sage);
  background: var(--surface-soft);
}

.give-up-button {
  border: 0;
  padding: 0.7rem 0;
  cursor: pointer;
  color: var(--ink-soft);
  background: transparent;
  font-size: 0.91rem;
  text-decoration: underline;
  text-decoration-color: #c5b49f;
  text-underline-offset: 0.28rem;
}

.give-up-button:hover {
  color: var(--terracotta-dark);
  text-decoration-color: var(--terracotta);
}

.learning-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.result-banner {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.79rem;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.result-banner-success {
  color: #285642;
  background: #e2efe7;
}

.result-banner-reveal {
  color: #7a4c25;
  background: #f5e7d4;
}

.expression-title {
  margin: 0.6rem 0 0.85rem;
  color: var(--terracotta-dark);
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.03;
}

.lesson-section {
  border-top: 1px solid #eadcc9;
  padding: 0.66rem 0;
}

.lesson-section h3 {
  margin: 0 0 0.35rem;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.13rem;
}

.lesson-section p,
.lesson-section blockquote {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.43;
}

.lesson-section .lesson-lead {
  margin-bottom: 0.45rem;
  color: var(--ink);
  font-weight: 730;
}

.secondary-lessons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0.15rem;
  border-top: 1px solid #eadcc9;
}

.lesson-tab-group {
  display: contents;
}

.lesson-tab {
  min-width: 0;
  min-height: 2.7rem;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0.55rem 0.45rem;
  cursor: pointer;
  color: var(--ink-soft);
  background: transparent;
  font-size: 0.88rem;
  font-weight: 780;
  line-height: 1.2;
}

.lesson-tab:hover,
.lesson-tab.is-active {
  color: var(--terracotta-dark);
  background: rgba(184, 79, 61, 0.045);
}

.lesson-tab.is-active {
  border-bottom-color: var(--terracotta);
}

.lesson-tab-panel {
  grid-column: 1 / -1;
  grid-row: 2;
  min-width: 0;
  padding-top: 0.15rem;
}

.lesson-tab-panel > .lesson-section:first-child {
  border-top: 0;
}

.bonus-section h3 span,
.world-section h3 span {
  color: var(--terracotta);
}

.bonus-section,
.world-section {
  border-radius: 0.75rem;
  padding-right: 0.65rem;
  padding-left: 0.65rem;
}

.bonus-section {
  background: rgba(207, 149, 68, 0.08);
}

.world-section {
  background: rgba(82, 106, 117, 0.07);
}

.learning-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin-top: auto;
  padding-top: 0.75rem;
  background: linear-gradient(to bottom, rgba(255, 253, 249, 0), #fffdf9 0.75rem);
}

.next-button {
  width: 100%;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

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

@media (max-width: 860px) {
  .game-layout {
    grid-template-columns: 1fr;
    width: min(100%, 42rem);
  }

  .image-frame {
    border-radius: 1.6rem;
  }

  .expression-prompt {
    aspect-ratio: auto;
    min-height: 16rem;
    border-radius: 1.6rem;
  }

  .guess-card {
    min-height: auto;
  }

  .learning-card {
    display: block;
  }

  .next-button {
    margin-top: 0;
  }

  .learning-actions {
    position: static;
    margin-top: 1.1rem;
    padding-top: 0;
    background: transparent;
  }
}

@media (max-width: 700px) {
  .secondary-lessons {
    display: block;
  }

  .lesson-tab-group {
    display: block;
    border-bottom: 1px solid #eadcc9;
  }

  .lesson-tab {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 0;
    padding: 0.72rem 0.25rem;
    text-align: left;
  }

  .lesson-tab::after {
    width: 0.48rem;
    height: 0.48rem;
    margin: 0 0.35rem 0.2rem 0.8rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    content: "";
    transform: rotate(45deg);
    transition: transform 160ms ease;
  }

  .lesson-tab.is-active::after {
    transform: translateY(0.18rem) rotate(225deg);
  }

  .lesson-tab-panel {
    padding: 0 0.25rem 0.35rem;
  }
}

@media (max-width: 560px) {
  .home-screen {
    padding: 1rem;
  }

  .welcome-card {
    border-radius: 1.65rem;
    padding: 2.2rem 1.25rem;
  }

  .section-list {
    grid-template-columns: 1fr;
  }

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

  .mode-option {
    min-height: 4.7rem;
  }

  .section-card {
    min-height: 9.75rem;
  }

  .wordmark {
    max-width: 17rem;
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .game-screen {
    padding: 0.65rem 0.8rem 1.5rem;
  }

  .game-header {
    margin-bottom: 0.7rem;
    align-items: flex-start;
  }

  .game-status {
    min-width: 8.2rem;
    align-items: flex-end;
    flex-direction: column;
    gap: 0.45rem;
  }

  .active-section-title {
    max-width: 9.5rem;
  }

  .mini-wordmark {
    max-width: 10.5rem;
    text-align: left;
    line-height: 1.05;
  }

  .progress-block {
    width: 8.2rem;
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .progress-block > span {
    text-align: right;
  }

  .game-layout {
    gap: 0.85rem;
  }

  .image-frame {
    border-width: 0.35rem;
    border-radius: 1.25rem;
  }

  .expression-prompt {
    min-height: 13.5rem;
    border-width: 0.35rem;
    border-radius: 1.25rem;
    padding: 1.7rem 1.25rem;
  }

  .expression-prompt blockquote {
    font-size: clamp(1.9rem, 10vw, 2.7rem);
  }

  .cycle-note {
    margin-top: 0.55rem;
    font-size: 0.79rem;
  }

  .guess-card,
  .learning-card {
    border-radius: 1.35rem;
    padding: 1.25rem;
  }

  .guess-card h1 {
    font-size: clamp(1.85rem, 10vw, 2.55rem);
  }

  .answer-form {
    margin-top: 1.25rem;
  }

  .secondary-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 0.35rem;
  }

  .button-outline,
  .give-up-button {
    width: 100%;
    min-height: 3.05rem;
  }

  .choice-button {
    min-height: 4.6rem;
    padding: 0.78rem;
    font-size: 0.92rem;
  }
}

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