:root {
  color-scheme: light;
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", Arial, sans-serif;
  --ink: #2b5049;
  --muted: #687d76;
  --paper: #fffdf7;
  --line: #ddd1b2;
  --green: #459a78;
  --green-dark: #32775d;
  --coral: #eb7562;
  --gold: #f1ba45;
  --blue: #5ca2c7;
  --purple: #7474b5;
  --shadow: 0 18px 46px rgba(73, 69, 47, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: #f7f2e4;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(247, 194, 75, 0.2) 0 95px, transparent 97px),
    radial-gradient(circle at 94% 28%, rgba(78, 155, 124, 0.14) 0 140px, transparent 142px),
    linear-gradient(145deg, #f8f3e6, #fffaf0 53%, #eef4e8);
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(rgba(93, 111, 82, 0.22) 1px, transparent 1px);
  background-size: 27px 27px;
  content: "";
  opacity: 0.18;
}

.app {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 52px;
}

.app button {
  color: inherit;
  font: inherit;
}

.app button:not(:disabled) {
  cursor: pointer;
}

.app button:focus-visible {
  outline: 4px solid rgba(241, 186, 69, 0.82);
  outline-offset: 4px;
}

.app h1,
.app h2,
.app p {
  margin-top: 0;
}

.topbar,
.brand-button,
.topbar-actions,
.journal-button,
.sound-button,
.section-heading,
.game-heading,
.feedback-card,
.result-actions {
  display: flex;
  align-items: center;
}

.topbar {
  min-height: 66px;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.brand-button {
  min-width: 0;
  gap: 12px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
  border: 3px solid #dfd1ad;
  border-radius: 19px;
  background: #fff9e7;
  box-shadow: 0 7px 15px rgba(75, 82, 60, 0.13);
  transform: rotate(-3deg);
}

.brand-mark i,
.brand-mark b {
  position: absolute;
  display: grid;
  width: 33px;
  height: 24px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.brand-mark i {
  top: 7px;
  left: 6px;
  background: var(--coral);
}

.brand-mark b {
  right: 5px;
  bottom: 6px;
  background: var(--green);
}

.brand-button strong,
.brand-button small,
.journal-button strong,
.journal-button small {
  display: block;
}

.brand-button strong {
  overflow: hidden;
  font-size: 24px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-button small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.topbar-actions {
  gap: 9px;
}

.journal-button,
.sound-button,
.back-button {
  min-height: 50px;
  border: 2px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 253, 247, 0.94);
  box-shadow: 0 5px 0 rgba(130, 111, 72, 0.13);
  font-weight: 900;
}

.journal-button {
  gap: 9px;
  padding: 7px 14px;
  text-align: left;
}

.journal-button > span:first-child {
  font-size: 23px;
}

.journal-button strong {
  font-size: 12px;
}

.journal-button small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.sound-button {
  gap: 8px;
  padding: 0 16px;
  font-size: 12px;
}

.back-button {
  width: 50px;
  padding: 0;
  font-size: 23px;
}

.eyebrow {
  margin: 0 0 9px;
  color: #467b65;
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.primary-button,
.secondary-button,
.hint-button,
.check-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border-radius: 16px;
  font-weight: 900;
}

.app .primary-button {
  border: 0;
  background: var(--green);
  box-shadow: 0 7px 0 var(--green-dark);
  color: #fff;
}

.secondary-button,
.hint-button {
  border: 2px solid var(--line);
  background: #fffdf8;
}

.primary-button:active,
.secondary-button:active,
.hint-button:active,
.check-button:active {
  translate: 0 2px;
}

.hero-card {
  display: grid;
  min-height: 488px;
  grid-template-columns: minmax(0, 1.02fr) minmax(430px, 0.98fr);
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 42px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-copy {
  align-self: center;
  padding: clamp(42px, 5vw, 66px);
}

.hero-copy h1 {
  max-width: 550px;
  margin-bottom: 19px;
  font-size: clamp(46px, 5.2vw, 60px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 560px;
  margin-bottom: 27px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
}

.hero-art {
  min-width: 0;
  overflow: hidden;
  background: #f3dfb3;
}

.hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-top: 24px;
}

.how-grid article {
  display: grid;
  min-height: 126px;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 14px;
  padding: 19px;
  border: 2px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 247, 0.96);
}

.how-grid article > span {
  display: grid;
  width: 55px;
  height: 55px;
  place-items: center;
  border: 5px solid #d9f0e3;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 900;
}

.how-grid article:nth-child(2) > span {
  border-color: #fff0bd;
  background: var(--gold);
}

.how-grid article:nth-child(3) > span {
  border-color: #e3e2f7;
  background: var(--purple);
}

.how-grid p {
  margin: 0;
}

.how-grid strong,
.how-grid small {
  display: block;
}

.how-grid strong {
  margin-bottom: 6px;
  font-size: 17px;
}

.how-grid small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.routes-section {
  margin-top: 47px;
}

.section-heading {
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 900;
  letter-spacing: -0.025em;
}

.section-heading > strong {
  padding: 12px 15px;
  border-radius: 14px;
  background: #e7f3e8;
  color: #3b7358;
}

.routes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.route-card {
  --route: var(--green);
  display: flex;
  min-height: 355px;
  flex-direction: column;
  padding: 21px;
  border: 3px solid #fff;
  border-radius: 29px;
  background: color-mix(in srgb, var(--route) 11%, #fffdf8);
  box-shadow: 0 8px 0 color-mix(in srgb, var(--route) 30%, #d7cba9);
  text-align: left;
  transition: translate 0.18s ease;
}

.route-card:hover {
  translate: 0 -3px;
}

.route-card__top,
.route-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.route-card__top > i {
  font-size: 35px;
  font-style: normal;
}

.route-card__top > small {
  color: var(--route);
  font-size: 12px;
  font-weight: 900;
}

.route-card__copy {
  display: block;
  margin-top: 15px;
}

.route-card__copy em,
.route-card__copy strong,
.route-card__copy > span {
  display: block;
}

.route-card__copy em {
  margin-bottom: 5px;
  color: var(--route);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.route-card__copy strong {
  margin-bottom: 8px;
  font-size: 23px;
}

.route-card__copy > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.route-card__sample {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 18px 0;
  padding: 13px;
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.78);
}

.route-card__sample i {
  display: grid;
  min-width: 43px;
  height: 43px;
  place-items: center;
  padding: 0 8px;
  border: 3px solid #fff;
  border-radius: 12px;
  background: var(--route);
  box-shadow: 0 4px 0 color-mix(in srgb, var(--route) 62%, #685f52);
  color: #fff;
  font-size: 15px;
  font-style: normal;
  font-weight: 900;
}

.route-card__sample b {
  font-size: 21px;
}

.route-card__footer {
  margin-top: auto;
  color: var(--route);
  font-size: 12px;
  font-weight: 900;
}

.game-shell {
  --route: var(--green);
  padding: clamp(25px, 4vw, 43px);
  border: 3px solid var(--line);
  border-radius: 38px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.game-heading {
  justify-content: space-between;
  gap: 20px;
}

.game-heading h1 {
  margin-bottom: 7px;
  font-size: clamp(35px, 4.5vw, 50px);
  font-weight: 900;
  letter-spacing: -0.035em;
}

.game-heading > div > p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.round-badge {
  display: grid;
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  place-items: center;
  align-content: center;
  border: 6px solid color-mix(in srgb, var(--route) 26%, #fff);
  border-radius: 50%;
  background: var(--route);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 900;
}

.round-badge small {
  display: block;
  font-family: inherit;
  font-size: 10px;
}

.progress-track {
  height: 11px;
  margin: 19px 0 25px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8e2d0;
}

.progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--route);
  transition: width 0.2s ease;
}

.activity-board {
  min-height: 405px;
  padding: clamp(20px, 3vw, 34px);
  border: 3px solid color-mix(in srgb, var(--route) 25%, #d7d6c7);
  border-radius: 29px;
  background:
    radial-gradient(circle at 10% 15%, rgba(255, 255, 255, 0.9) 0 65px, transparent 67px),
    color-mix(in srgb, var(--route) 9%, #fffdf8);
}

.letter-bridge {
  display: flex;
  min-height: 210px;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.letter-bridge > span {
  display: flex;
  align-items: center;
  gap: 14px;
}

.letter-bridge i,
.letter-bridge strong {
  display: grid;
  width: 100px;
  height: 100px;
  place-items: center;
  border: 6px solid #fff;
  border-radius: 26px;
  background: var(--blue);
  box-shadow: 0 8px 0 #3b7898;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 55px;
  font-style: normal;
  font-weight: 900;
}

.letter-bridge i.vowel {
  background: var(--coral);
  box-shadow: 0 8px 0 #b95343;
}

.letter-bridge strong {
  border-style: dashed;
  border-color: var(--purple);
  background: #fff;
  box-shadow: 0 8px 0 #ccc6e5;
  color: var(--purple);
}

.letter-bridge b,
.letter-bridge em {
  color: var(--ink);
  font-size: 40px;
  font-style: normal;
}

.word-options,
.picture-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.word-option {
  min-height: 93px;
  border: 4px solid #fff;
  border-radius: 22px;
  background: #fffdf8;
  box-shadow: 0 7px 0 #d9d3be;
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: 900;
}

.word-option:hover,
.word-option.is-hinted {
  border-color: var(--gold);
}

.word-option.is-wrong,
.picture-option.is-wrong {
  border-color: #eda899;
  background: #fff0ec;
}

.builder-layout {
  display: grid;
  min-height: 340px;
  grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.3fr);
  gap: 18px;
}

.picture-card,
.word-workshop {
  border: 3px solid #fff;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.82);
}

.picture-card {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 22px;
  text-align: center;
}

.picture-card > span {
  font-size: 98px;
  line-height: 1;
  filter: drop-shadow(0 8px 5px rgba(75, 67, 48, 0.15));
}

.picture-card strong {
  font-size: 18px;
}

.picture-card small {
  color: var(--muted);
  font-weight: 700;
}

.word-workshop {
  display: grid;
  align-content: center;
  gap: 20px;
  padding: 25px;
}

.word-slots,
.syllable-tray {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.word-slots button {
  position: relative;
  display: grid;
  width: min(170px, 42%);
  min-height: 105px;
  place-items: center;
  border: 4px dashed #b9ae91;
  border-radius: 22px;
  background: #fbf7eb;
  color: #8c826c;
}

.word-slots button.is-filled {
  border-style: solid;
  border-color: #fff;
  background: var(--green);
  box-shadow: 0 7px 0 var(--green-dark);
  color: #fff;
}

.word-slots button small {
  position: absolute;
  top: 7px;
  left: 9px;
  font-size: 10px;
}

.word-slots button strong {
  font-family: Georgia, serif;
  font-size: 34px;
}

.syllable-tray button {
  min-width: 91px;
  min-height: 70px;
  padding: 0 13px;
  border: 4px solid #fff;
  border-radius: 18px;
  background: #f1bb4c;
  box-shadow: 0 6px 0 #bf8730;
  color: #4e473a;
  font-family: Georgia, serif;
  font-size: 27px;
  font-weight: 900;
}

.syllable-tray button:disabled {
  opacity: 0.28;
}

.check-button {
  justify-self: center;
  border: 0;
  background: var(--green);
  box-shadow: 0 6px 0 var(--green-dark);
  color: #fff;
}

.reading-ribbon {
  display: flex;
  min-height: 145px;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.reading-ribbon span {
  display: grid;
  min-width: 102px;
  min-height: 79px;
  place-items: center;
  padding: 8px 15px;
  border: 5px solid #fff;
  border-radius: 20px;
  background: var(--purple);
  box-shadow: 0 7px 0 #53578d;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 29px;
  font-weight: 900;
}

.reading-ribbon i {
  font-size: 25px;
  font-style: normal;
  font-weight: 900;
}

.picture-option {
  min-height: 158px;
  padding: 13px;
  border: 4px solid #fff;
  border-radius: 23px;
  background: #fffdf8;
  box-shadow: 0 7px 0 #d8d2bd;
}

.picture-option:hover,
.picture-option.is-hinted {
  border-color: var(--gold);
}

.picture-option > span {
  display: block;
  font-size: 74px;
  line-height: 1.05;
}

.picture-option small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.activity-actions {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.hint-button {
  min-height: 47px;
  color: #7a6942;
}

.feedback-card {
  min-height: 88px;
  gap: 14px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 2px solid #d8dfd5;
  border-radius: 21px;
  background: #f3f7f1;
}

.feedback-card > span {
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  place-items: center;
  border-radius: 15px;
  background: #fff;
  font-size: 25px;
}

.feedback-card p {
  min-width: 0;
  margin: 0;
}

.feedback-card strong,
.feedback-card small {
  display: block;
}

.feedback-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.feedback-card[data-kind="error"] {
  border-color: #efb1a5;
  background: #fff1ed;
}

.feedback-card[data-kind="hint"] {
  border-color: #e7cd71;
  background: #fff8dd;
}

.feedback-card[data-kind="success"] {
  border-color: #9ecfaf;
  background: #eaf7ed;
}

.primary-button.compact {
  min-height: 45px;
  margin-left: auto;
  box-shadow: 0 5px 0 var(--green-dark);
}

.result-card {
  max-width: 760px;
  margin: 55px auto 0;
  padding: clamp(38px, 6vw, 68px);
  border: 3px solid var(--line);
  border-radius: 40px;
  background: var(--paper);
  box-shadow: var(--shadow);
  text-align: center;
}

.result-card h1 {
  margin-bottom: 13px;
  font-size: clamp(40px, 5.5vw, 61px);
  letter-spacing: -0.04em;
}

.result-card > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

.result-icon {
  display: block;
  margin-bottom: 15px;
  font-size: 70px;
}

.result-stars {
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 42px;
  letter-spacing: 6px;
}

.result-actions {
  justify-content: center;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 26px;
}

.journal-shell {
  padding: clamp(25px, 4vw, 43px);
  border: 3px solid var(--line);
  border-radius: 38px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.journal-intro {
  max-width: 660px;
  margin-bottom: 22px;
  color: var(--muted);
  font-weight: 700;
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 11px;
}

.journal-card {
  position: relative;
  display: grid;
  min-height: 150px;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 15px 9px;
  border: 2px solid #d9d4c3;
  border-radius: 20px;
  background: #f0eee6;
  text-align: center;
}

.journal-card.is-open {
  border-color: #b9d9c0;
  background: #edf7ed;
}

.journal-card > i {
  font-size: 38px;
  font-style: normal;
}

.journal-card > strong {
  font-family: Georgia, serif;
  font-size: 16px;
}

.journal-card > small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.journal-number {
  position: absolute;
  top: 8px;
  left: 9px;
  color: #948b77;
  font-size: 9px;
  font-weight: 900;
}

.qa-active {
  background: #edf4e9;
}

.qa-report {
  max-width: 860px;
  margin: 28px auto;
  padding: clamp(25px, 4vw, 43px);
  border: 3px solid #aed1b8;
  border-radius: 31px;
  background: #fff;
  box-shadow: var(--shadow);
}

.qa-report.has-failures {
  border-color: #e3a297;
}

.qa-report h1 {
  margin-bottom: 8px;
  font-size: clamp(37px, 5vw, 55px);
}

.qa-summary {
  color: var(--muted);
  font-weight: 900;
}

.qa-report ul {
  display: grid;
  gap: 7px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.qa-report li {
  display: grid;
  grid-template-columns: 29px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f1f7ee;
}

.qa-report li.fail {
  background: #fff0ec;
}

.qa-report li > span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 900;
}

.qa-report li.fail > span {
  background: var(--coral);
}

.qa-report li small {
  color: var(--muted);
}

@media (max-width: 1000px) {
  .hero-card {
    grid-template-columns: minmax(0, 1fr) 42%;
  }

  .hero-copy {
    padding: 42px;
  }

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

  .route-card {
    min-height: 235px;
    display: grid;
    grid-template-columns: 1fr 230px;
    grid-template-rows: auto 1fr auto;
    column-gap: 22px;
  }

  .route-card__sample {
    grid-column: 2;
    grid-row: 1 / 4;
    margin: 0;
  }

  .route-card__footer {
    grid-column: 1;
  }

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

@media (max-width: 820px) {
  .hero-card {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 335px;
  }

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

  .how-grid article {
    min-height: 105px;
  }

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

  .picture-card {
    min-height: 205px;
    grid-template-columns: auto 1fr;
    text-align: left;
  }

  .picture-card > span {
    grid-row: 1 / 3;
    font-size: 78px;
  }

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

@media (max-width: 620px) {
  .app {
    width: min(1120px, calc(100% - 20px));
    padding-top: 12px;
  }

  .topbar {
    min-height: 54px;
    margin-bottom: 13px;
  }

  .brand-mark {
    width: 47px;
    height: 47px;
    flex-basis: 47px;
    border-radius: 15px;
  }

  .brand-mark i,
  .brand-mark b {
    width: 27px;
    height: 20px;
    font-size: 10px;
  }

  .brand-button strong {
    max-width: 150px;
    font-size: 18px;
  }

  .brand-button small,
  .journal-button span:last-child,
  .sound-button span:last-child {
    display: none;
  }

  .journal-button,
  .sound-button,
  .back-button {
    width: 45px;
    min-height: 45px;
    justify-content: center;
    padding: 0;
  }

  .journal-button > span:first-child {
    font-size: 21px;
  }

  .hero-card {
    min-height: 0;
    border-radius: 29px;
  }

  .hero-copy {
    padding: 32px 21px 35px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: 15px;
  }

  .hero-art {
    min-height: 255px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .route-card {
    min-height: 345px;
    display: flex;
  }

  .route-card__sample {
    width: 100%;
    margin: 18px 0;
  }

  .game-shell,
  .journal-shell {
    padding: 20px 13px;
    border-radius: 28px;
  }

  .game-heading {
    align-items: flex-start;
  }

  .game-heading h1 {
    font-size: 32px;
  }

  .round-badge {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
    border-width: 4px;
    font-size: 22px;
  }

  .activity-board {
    min-height: 0;
    padding: 17px 10px;
    border-radius: 23px;
  }

  .letter-bridge {
    min-height: 185px;
    gap: 10px;
  }

  .letter-bridge > span {
    gap: 7px;
  }

  .letter-bridge i,
  .letter-bridge strong {
    width: 67px;
    height: 67px;
    border-width: 4px;
    border-radius: 18px;
    font-size: 36px;
  }

  .letter-bridge b,
  .letter-bridge em {
    font-size: 25px;
  }

  .word-options,
  .picture-options {
    grid-template-columns: 1fr;
  }

  .word-option {
    min-height: 72px;
    font-size: 28px;
  }

  .picture-card {
    min-height: 175px;
    padding: 17px;
  }

  .picture-card > span {
    font-size: 67px;
  }

  .word-workshop {
    padding: 17px 10px;
  }

  .word-slots button {
    min-height: 88px;
  }

  .syllable-tray {
    gap: 7px;
  }

  .syllable-tray button {
    min-width: 75px;
    min-height: 62px;
    padding: 0 8px;
    font-size: 23px;
  }

  .reading-ribbon {
    min-height: 125px;
    gap: 5px;
  }

  .reading-ribbon span {
    min-width: 75px;
    min-height: 65px;
    padding: 6px 9px;
    border-width: 4px;
    font-size: 23px;
  }

  .picture-option {
    min-height: 112px;
    display: grid;
    grid-template-columns: 90px 1fr;
    align-items: center;
    text-align: left;
  }

  .picture-option > span {
    font-size: 58px;
    text-align: center;
  }

  .feedback-card {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .feedback-card .primary-button {
    width: 100%;
    margin-left: 0;
  }

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

  .qa-report li {
    grid-template-columns: 29px 1fr;
  }

  .qa-report li small {
    grid-column: 2;
  }
}

@media (max-width: 390px) {
  .app {
    width: min(1120px, calc(100% - 16px));
  }

  .brand-button strong {
    max-width: 122px;
    font-size: 16px;
  }

  .topbar-actions {
    gap: 5px;
  }

  .journal-button,
  .sound-button,
  .back-button {
    width: 42px;
    min-height: 42px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-art {
    min-height: 230px;
  }

  .letter-bridge i,
  .letter-bridge strong {
    width: 59px;
    height: 59px;
    font-size: 32px;
  }

  .letter-bridge b,
  .letter-bridge em {
    font-size: 21px;
  }

  .reading-ribbon span {
    min-width: 68px;
    font-size: 21px;
  }
}

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