:root {
  color-scheme: light;
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", Arial, sans-serif;
  --ink: #2d504d;
  --muted: #6b817d;
  --paper: #fffdf7;
  --line: #ddd5b9;
  --green: #58a879;
  --green-dark: #347a59;
  --gold: #f0b944;
  --coral: #e97668;
  --blue: #62acd6;
  --purple: #8b73bd;
  --shadow: 0 20px 48px rgba(52, 79, 68, .14);
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: #eef7ea; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 8%, rgba(240, 185, 68, .2) 0 125px, transparent 127px),
    radial-gradient(circle at 92% 28%, rgba(98, 172, 214, .15) 0 170px, transparent 172px),
    linear-gradient(145deg, #eef7e9, #fffaf1 58%, #f2eef9);
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .13;
  background-image: radial-gradient(#6f9186 1px, transparent 1px);
  background-size: 27px 27px;
  content: "";
}
button { color: inherit; font: inherit; }
button:not(:disabled) { cursor: pointer; }
button:focus-visible { outline: 4px solid rgba(240, 185, 68, .78); outline-offset: 4px; }
img { display: block; max-width: 100%; }
h1, h2, p { margin-top: 0; }

.app {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 22px 0 50px;
}

.topbar,
.brand,
.top-actions,
.section-heading,
.game-heading,
.panel-heading,
.feedback,
.result-actions {
  display: flex;
  align-items: center;
}
.topbar { min-height: 66px; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.brand { min-width: 0; gap: 12px; padding: 0; text-align: left; background: none; border: 0; }
.brand-mark {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 62px;
  height: 58px;
}
.brand-mark b,
.brand-mark i,
.brand-mark em {
  position: absolute;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: white;
  border: 3px solid white;
  border-radius: 12px;
  box-shadow: 0 5px 10px rgba(67, 87, 78, .14);
  font-family: Georgia, serif;
  font-size: 17px;
  font-style: normal;
}
.brand-mark b { top: 0; left: 0; z-index: 3; background: var(--blue); transform: rotate(-5deg); }
.brand-mark i { top: 8px; left: 18px; z-index: 2; background: var(--green); transform: rotate(3deg); }
.brand-mark em { top: 20px; left: 8px; z-index: 4; background: var(--gold); transform: rotate(-2deg); }
.brand strong,
.brand small { display: block; }
.brand strong { overflow: hidden; font-size: 23px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.top-actions { flex: 0 0 auto; gap: 10px; }
.top-spark { color: var(--gold); font-size: 25px; }
.back-button,
.calm-badge {
  min-height: 49px;
  background: rgba(255, 253, 247, .94);
  border: 2px solid var(--line);
  border-radius: 17px;
}
.back-button { width: 49px; padding: 0; font-size: 23px; font-weight: 900; }
.calm-badge { display: inline-flex; align-items: center; gap: 7px; padding: 0 15px; color: var(--muted); font-size: 12px; font-weight: 900; }
.calm-badge span { color: var(--coral); font-size: 20px; }

.eyebrow {
  margin: 0 0 8px;
  color: #397b62;
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.primary-button,
.secondary-button,
.hint-button {
  display: inline-flex;
  min-height: 53px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 21px;
  font-weight: 900;
  border-radius: 17px;
}
.primary-button { color: white; background: var(--green-dark); border: 0; box-shadow: 0 8px 0 #286248; }
.primary-button:hover:not(:disabled) { background: #2f704f; transform: translateY(-1px); }
.primary-button:active:not(:disabled) { box-shadow: 0 4px 0 #286248; transform: translateY(4px); }
.primary-button:disabled { opacity: .45; box-shadow: none; }
.primary-button.compact { min-height: 47px; padding-inline: 16px; box-shadow: none; }
.secondary-button { background: white; border: 3px solid var(--line); }
.secondary-button:disabled { opacity: .45; }
.hint-button { color: #5e563c; background: #fff1bd; border: 2px solid #e3c86a; }
.hint-button:disabled { opacity: .58; }

.role-subject { --role: #62acd6; --role-light: #e6f4fb; }
.role-verb { --role: #58a879; --role-light: #e5f4e9; }
.role-object { --role: #d99c43; --role-light: #fff1d3; }
.role-helper { --role: #8b73bd; --role-light: #eee8f8; }
.role-detail { --role: #df766c; --role-light: #ffebe8; }
.role-time { --role: #4e9b96; --role-light: #e2f4f1; }

.hero {
  display: grid;
  min-height: 535px;
  align-items: center;
  grid-template-columns: 1.02fr .98fr;
  gap: 42px;
  padding: clamp(40px, 6vw, 68px);
  overflow: hidden;
  background: rgba(255, 253, 247, .97);
  border: 3px solid var(--line);
  border-radius: 46px;
  box-shadow: var(--shadow);
}
.hero h1 { max-width: 640px; margin-bottom: 19px; font-size: clamp(49px, 6vw, 72px); font-weight: 900; letter-spacing: -.055em; line-height: .96; }
.hero-copy > p:not(.eyebrow) { max-width: 520px; margin-bottom: 27px; color: var(--muted); font-size: 18px; font-weight: 800; line-height: 1.52; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; }
.hero-facts span { color: var(--muted); font-size: 13px; font-weight: 900; }
.hero-facts strong { margin-right: 4px; color: var(--ink); font-size: 24px; }

.hero-builder {
  position: relative;
  min-height: 420px;
  padding: 80px 20px 20px;
  overflow: hidden;
  background: linear-gradient(145deg, #eaf5e9, #fff2c9);
  border: 8px solid white;
  border-radius: 41px 34px 46px 33px;
  box-shadow: 0 20px 42px rgba(55, 76, 68, .18);
  transform: rotate(1.5deg);
}
.hero-builder > img {
  position: absolute;
  right: -15px;
  bottom: -18px;
  width: 185px;
  height: 210px;
  object-fit: contain;
  opacity: .85;
}
.hero-translation {
  position: absolute;
  top: 22px;
  left: 22px;
  padding: 9px 14px;
  color: #67567f;
  background: white;
  border: 3px solid #c9badd;
  border-radius: 18px 18px 18px 5px;
  font-family: Georgia, serif;
  font-weight: 900;
}
.hero-sentence,
.hero-bank {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-sentence { min-height: 76px; align-items: center; padding: 13px; background: rgba(255, 255, 255, .86); border: 3px solid #d8d0af; border-radius: 20px; }
.hero-sentence span,
.hero-bank span {
  padding: 12px 15px;
  border: 3px solid var(--role);
  border-radius: 14px;
  background: var(--role-light);
  font-weight: 900;
  box-shadow: 0 5px 0 rgba(78, 81, 67, .1);
}
.hero-bank { margin-top: 25px; padding-top: 18px; border-top: 3px dashed #cfc3a6; }
.hero-bank span { color: var(--muted); background: white; border-color: #cfc7b4; transform: rotate(-2deg); }
.hero-bank span:nth-child(2) { transform: rotate(3deg); }
.hero-bank span:nth-child(3) { transform: rotate(-1deg); }
.hero-check {
  position: absolute;
  right: 21px;
  top: 20px;
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  color: white;
  background: var(--green);
  border: 4px solid white;
  border-radius: 50%;
  font-weight: 900;
}

.how-section,
.levels-section { margin-top: 45px; }
.section-heading { justify-content: space-between; gap: 28px; margin-bottom: 20px; }
.section-heading h2 { margin: 0; font-size: clamp(34px, 4vw, 47px); font-weight: 900; letter-spacing: -.035em; }
.section-heading > p { max-width: 440px; margin: 0; color: var(--muted); font-size: 14px; font-weight: 800; line-height: 1.45; text-align: right; }
.role-legend { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; }
.role-legend span {
  display: grid;
  min-height: 86px;
  place-items: center;
  padding: 10px;
  color: var(--ink);
  text-align: center;
  background: var(--role-light);
  border: 3px solid var(--role);
  border-radius: 19px;
  font-size: 11px;
  font-weight: 900;
}
.role-legend b { display: block; font-size: 14px; }

.level-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.level-card {
  position: relative;
  display: flex;
  min-height: 390px;
  flex-direction: column;
  padding: 20px;
  overflow: hidden;
  text-align: left;
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: 30px;
  box-shadow: 0 10px 0 color-mix(in srgb, var(--accent) 24%, #d9d3bf);
  transition: transform 150ms ease, border-color 150ms ease;
}
.level-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.level-top,
.level-footer { display: flex; align-items: center; justify-content: space-between; }
.level-top > b {
  display: grid;
  width: 47px;
  height: 47px;
  place-items: center;
  color: white;
  background: var(--accent);
  border-radius: 16px;
  font-family: Georgia, serif;
  font-size: 22px;
}
.level-top small { max-width: 180px; color: var(--muted); font-size: 10px; font-weight: 900; text-align: right; }
.level-icon {
  display: grid;
  min-height: 115px;
  place-items: center;
  margin: 18px 0;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, white);
  border-radius: 24px;
  font-family: Georgia, serif;
  font-size: 66px;
  font-weight: 900;
}
.level-copy small,
.level-copy strong,
.level-copy span,
.level-copy em { display: block; }
.level-copy > small { color: var(--accent); font-family: Georgia, serif; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.level-copy strong { margin: 4px 0 7px; font-size: 24px; line-height: 1.05; }
.level-copy span { color: var(--ink); font-size: 13px; font-weight: 900; }
.level-copy em { margin-top: 6px; color: var(--muted); font-size: 12px; font-style: normal; font-weight: 800; line-height: 1.4; }
.level-footer { margin-top: auto; padding-top: 16px; }
.level-footer b { color: var(--muted); font-size: 11px; }
.level-footer span { color: var(--accent); font-weight: 900; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 34px; }
.steps-grid article { display: flex; min-height: 120px; align-items: center; gap: 15px; padding: 20px; background: var(--paper); border: 2px solid var(--line); border-radius: 25px; }
.steps-grid article > b { display: grid; flex: 0 0 51px; height: 51px; place-items: center; color: white; font-family: Georgia, serif; font-size: 25px; background: var(--green); border: 5px solid #d8efe0; border-radius: 50%; }
.steps-grid article:nth-child(2) > b { background: #dca33e; border-color: #fff0bd; }
.steps-grid article:nth-child(3) > b { background: var(--purple); border-color: #e9e0f7; }
.steps-grid strong,
.steps-grid small { display: block; }
.steps-grid strong { margin-bottom: 6px; font-size: 18px; }
.steps-grid small { color: var(--muted); font-size: 13px; font-weight: 800; line-height: 1.4; }
.grownup-tip { display: flex; align-items: center; gap: 15px; margin-top: 18px; padding: 18px 22px; background: #fff9e6; border: 2px solid #eadcb1; border-radius: 22px; }
.grownup-tip > span { font-size: 28px; }
.grownup-tip p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.grownup-tip strong { display: block; color: var(--ink); }

.game-heading { justify-content: space-between; gap: 24px; margin: 15px 0 14px; }
.game-heading h1 { margin-bottom: 7px; font-size: clamp(39px, 5vw, 58px); font-weight: 900; letter-spacing: -.045em; line-height: 1; }
.game-heading > div > p:last-child { margin: 0; color: var(--muted); font-size: 15px; font-weight: 800; }
.round-badge { display: grid; flex: 0 0 auto; min-width: 95px; min-height: 76px; place-items: center; padding: 9px; background: var(--paper); border: 3px solid var(--line); border-radius: 24px; }
.round-badge strong { font-family: Georgia, serif; font-size: 25px; line-height: 1; }
.round-badge span { color: var(--muted); font-size: 11px; font-weight: 900; }
.progress-dots { display: flex; gap: 5px; margin-bottom: 14px; }
.progress-dots i { height: 8px; flex: 1; background: #ddd8ca; border-radius: 10px; }
.progress-dots i.current { background: var(--gold); }
.progress-dots i.done { background: var(--green); }

.sentence-workspace { display: grid; grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr); gap: 18px; align-items: stretch; }
.prompt-card,
.builder-panel {
  position: relative;
  overflow: hidden;
  border: 3px solid var(--line);
  box-shadow: var(--shadow);
}
.prompt-card {
  min-height: 670px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--level-accent) 12%, #fffdf7) 0 73%, #e6d1aa 73%);
  border-radius: 40px 31px 45px 33px;
}
.prompt-card > img { position: absolute; right: 5%; bottom: 61px; left: 5%; width: 90%; height: 410px; object-fit: contain; }
.translation-card {
  position: absolute;
  top: 22px;
  right: 20px;
  left: 20px;
  z-index: 3;
  padding: 15px 17px;
  background: white;
  border: 3px solid #c9badd;
  border-radius: 22px 22px 6px 22px;
  box-shadow: 0 8px 0 rgba(92, 76, 119, .1);
}
.translation-card small,
.translation-card strong,
.translation-card span { display: block; }
.translation-card small { color: var(--muted); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.translation-card strong { margin: 4px 0 6px; color: #67567f; font-family: Georgia, serif; font-size: 22px; line-height: 1.3; }
.translation-card span { color: var(--muted); font-size: 11px; font-weight: 800; }
.role-mini-legend { position: absolute; right: 0; bottom: 0; left: 0; z-index: 3; display: flex; min-height: 75px; align-items: center; justify-content: center; gap: 7px; padding: 10px; background: #a97c52; }
.role-mini-legend span { padding: 7px 9px; background: var(--role-light); border: 2px solid var(--role); border-radius: 11px; font-size: 10px; font-weight: 900; }

.builder-panel {
  padding: 24px;
  background: rgba(255, 253, 247, .98);
  border-radius: 34px 27px 39px 29px;
}
.builder-panel::before { position: absolute; top: 0; right: 0; left: 0; height: 9px; background: repeating-linear-gradient(90deg, var(--blue) 0 27px, var(--green) 27px 54px, var(--gold) 54px 81px, var(--purple) 81px 108px); content: ""; }
.panel-heading { justify-content: space-between; gap: 16px; margin: 7px 0 18px; }
.panel-heading h2 { margin: 0; font-size: 32px; letter-spacing: -.03em; }
.panel-heading > span { font-size: 39px; }

.sentence-line {
  display: flex;
  min-height: 190px;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  gap: 9px;
  padding: 17px;
  background: #f5f3eb;
  border: 3px dashed #cfc7b3;
  border-radius: 25px;
}
.sentence-line.solved { border-style: solid; border-color: var(--green); background: #edf8ec; }
.sentence-slot {
  min-width: 68px;
  min-height: 60px;
  border-radius: 15px;
}
.sentence-slot.empty { display: grid; place-items: center; background: rgba(255, 255, 255, .62); border: 2px dashed #c8c0ad; }
.sentence-slot.empty i { width: 28px; height: 4px; background: #d6ceba; border-radius: 5px; }
.sentence-slot.filled {
  display: grid;
  place-items: center;
  padding: 8px 13px;
  background: var(--role-light);
  border: 3px solid var(--role);
  box-shadow: 0 5px 0 color-mix(in srgb, var(--role) 25%, #bbb29f);
  font-size: 17px;
  font-weight: 900;
}
.sentence-slot.filled small { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; font-weight: 900; }
.sentence-slot.wrong { border-color: var(--coral); background: #fff0ed; animation: shake 360ms ease; }
.sentence-slot.hinted { outline: 5px solid rgba(240, 185, 68, .35); animation: hintPulse 1s ease-in-out infinite; }
.bank-label { margin: 20px 0 9px; color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.word-bank { display: flex; min-height: 120px; flex-wrap: wrap; align-content: center; gap: 9px; padding: 14px; background: #fffaf1; border: 2px solid #e6ddcc; border-radius: 22px; }
.word-token {
  min-width: 66px;
  min-height: 60px;
  padding: 8px 13px;
  background: var(--role-light);
  border: 3px solid var(--role);
  border-radius: 15px;
  box-shadow: 0 5px 0 color-mix(in srgb, var(--role) 25%, #bbb29f);
}
.word-token strong,
.word-token small { display: block; }
.word-token strong { font-size: 17px; }
.word-token small { margin-top: 2px; color: var(--muted); font-size: 8px; font-weight: 900; }
.word-token:hover:not(:disabled) { transform: translateY(-2px); }
.word-token:disabled { opacity: .25; box-shadow: none; }
.word-token.hinted { opacity: 1; animation: hintPulse 1s ease-in-out infinite; }

.feedback { min-height: 76px; gap: 11px; margin-top: 14px; padding: 12px 14px; background: #f3f1e9; border-radius: 19px; }
.feedback > span { display: grid; flex: 0 0 38px; height: 38px; place-items: center; color: white; background: var(--purple); border-radius: 50%; font-weight: 900; }
.feedback p { min-width: 0; flex: 1; margin: 0; }
.feedback strong,
.feedback small { display: block; }
.feedback strong { margin-bottom: 3px; font-size: 14px; overflow-wrap: anywhere; }
.feedback small { color: var(--muted); font-size: 12px; font-weight: 800; line-height: 1.35; }
.feedback.try { background: #fff0ed; }
.feedback.try > span { background: var(--coral); }
.feedback.hint { background: #fff6d7; }
.feedback.hint > span { background: #dca33e; }
.feedback.good { background: #e9f6e8; }
.feedback.good > span { background: var(--green); }
.builder-actions { display: grid; grid-template-columns: auto auto 1fr; gap: 9px; margin-top: 13px; }
.check-button { width: 100%; }

.result-card {
  display: grid;
  min-height: 735px;
  grid-template-columns: minmax(330px, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 34px;
  padding: clamp(28px, 5vw, 62px);
  overflow: hidden;
  background: rgba(255, 253, 247, .97);
  border: 3px solid var(--line);
  border-radius: 46px;
  box-shadow: var(--shadow);
}
.result-art { position: relative; min-height: 590px; overflow: hidden; background: linear-gradient(155deg, #e9f5e8, #fff1c8); border: 7px solid white; border-radius: 39px; }
.result-art > img { position: absolute; right: 7%; bottom: 30px; left: 7%; width: 86%; height: 440px; object-fit: contain; }
.result-sentence { position: absolute; top: 35px; right: 20px; left: 20px; z-index: 3; display: flex; min-height: 85px; align-items: center; justify-content: center; gap: 8px; padding: 12px; background: white; border: 3px solid #c9badd; border-radius: 22px; }
.result-sentence span { padding: 10px 13px; background: #e5f4e9; border: 3px solid var(--green); border-radius: 13px; font-weight: 900; }
.result-sentence b { display: grid; width: 35px; height: 35px; place-items: center; color: white; background: var(--green); border-radius: 50%; }
.medal { position: absolute; top: 135px; right: 18px; z-index: 4; display: grid; width: 70px; height: 70px; place-items: center; background: white; border: 4px solid #c9badd; border-radius: 24px; font-size: 34px; transform: rotate(3deg); }
.result-copy h1 { margin-bottom: 12px; font-size: clamp(46px, 6vw, 68px); font-weight: 900; letter-spacing: -.05em; line-height: .98; }
.result-copy > p:not(.eyebrow) { color: var(--muted); font-size: 17px; font-weight: 800; }
.result-list { display: grid; gap: 7px; margin: 17px 0; }
.result-list span { padding: 9px 11px; background: #f3f2e9; border: 2px solid #e2dcc9; border-radius: 13px; }
.result-list strong,
.result-list small { display: block; }
.result-list strong { font-size: 12px; }
.result-list small { margin-top: 2px; color: var(--muted); font-size: 9px; font-weight: 800; }
.result-stars { margin: 15px 0; color: #e3a82f; font-size: 42px; letter-spacing: .08em; }
.result-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.result-stats span { display: grid; min-height: 70px; place-items: center; padding: 8px; background: #f3f2e9; border-radius: 16px; }
.result-stats strong { font-family: Georgia, serif; font-size: 24px; line-height: 1; }
.result-stats small { color: var(--muted); font-size: 10px; font-weight: 900; }
.result-actions { flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.loading-card { display: grid; min-height: 300px; place-items: center; padding: 40px; background: var(--paper); border: 3px solid var(--line); border-radius: 35px; }
.loading-card span { font-size: 50px; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
@keyframes hintPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(240, 185, 68, 0); }
  50% { box-shadow: 0 0 0 7px rgba(240, 185, 68, .24); }
}

@media (max-width: 980px) {
  .role-legend { grid-template-columns: repeat(3, 1fr); }
  .sentence-workspace { grid-template-columns: 1fr; }
  .prompt-card { min-height: 610px; }
  .builder-panel { width: min(100%, 850px); margin: 0 auto; }
  .result-card { grid-template-columns: 1fr; }
  .result-art { min-height: 520px; }
  .result-art > img { height: 390px; }
}

@media (max-width: 760px) {
  .hero { min-height: 820px; grid-template-columns: 1fr; align-items: start; padding: 32px 25px; }
  .hero-builder { min-height: 410px; }
  .level-grid,
  .steps-grid { grid-template-columns: 1fr; }
  .level-card { min-height: 330px; }
  .section-heading { display: block; }
  .section-heading > p { max-width: none; margin-top: 9px; text-align: left; }
  .game-heading { align-items: flex-end; }
}

@media (max-width: 520px) {
  .app { width: min(100% - 18px, 1120px); padding-top: 11px; }
  .topbar { align-items: flex-start; margin-bottom: 15px; }
  .brand { gap: 7px; }
  .brand-mark { width: 52px; height: 52px; transform: scale(.85); transform-origin: left top; }
  .brand strong { max-width: 190px; font-size: 17px; white-space: normal; line-height: 1.05; }
  .brand small,
  .calm-badge { display: none; }
  .back-button { width: 50px; min-height: 50px; }
  .hero { min-height: 760px; padding: 27px 20px; border-radius: 34px; }
  .hero h1 { font-size: 47px; }
  .hero-copy > p:not(.eyebrow) { font-size: 16px; }
  .hero-builder { min-height: 375px; padding-inline: 12px; }
  .hero-builder > img { width: 150px; height: 175px; }
  .hero-sentence span,
  .hero-bank span { padding: 10px 11px; }
  .role-legend { grid-template-columns: repeat(2, 1fr); }
  .level-card { min-height: 325px; }
  .game-heading { gap: 9px; }
  .game-heading h1 { font-size: 34px; }
  .game-heading > div > p:last-child { font-size: 13px; }
  .round-badge { min-width: 78px; min-height: 67px; padding: 7px; }
  .round-badge strong { font-size: 21px; }
  .progress-dots { gap: 3px; }
  .prompt-card { min-height: 555px; }
  .translation-card { top: 14px; right: 12px; left: 12px; padding: 12px 13px; }
  .translation-card strong { font-size: 19px; }
  .prompt-card > img { bottom: 58px; height: 360px; }
  .role-mini-legend { gap: 4px; padding-inline: 5px; }
  .role-mini-legend span { padding-inline: 6px; }
  .builder-panel { padding: 19px 12px; }
  .panel-heading h2 { font-size: 27px; }
  .panel-heading > span { font-size: 32px; }
  .sentence-line { min-height: 210px; gap: 7px; padding: 11px; }
  .sentence-slot { min-width: 59px; min-height: 56px; }
  .sentence-slot.filled,
  .word-token { padding: 7px 10px; font-size: 15px; }
  .word-bank { min-height: 145px; gap: 7px; padding: 10px; }
  .word-token { min-width: 59px; min-height: 56px; }
  .builder-actions { grid-template-columns: 1fr 1fr; }
  .check-button { grid-column: 1 / -1; }
  .feedback { align-items: flex-start; flex-wrap: wrap; }
  .feedback .primary-button { width: 100%; }
  .result-card { padding: 18px 13px 27px; border-radius: 34px; }
  .result-art { min-height: 455px; }
  .result-art > img { height: 340px; }
  .result-copy h1 { font-size: 44px; }
  .result-actions { display: grid; }
  .result-actions button { width: 100%; }
}

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