:root {
  --ink: #24324a;
  --muted: #627087;
  --paper: #fffdfa;
  --lavender: #f1efff;
  --purple: #4f46a5;
  --purple-dark: #37317f;
  --purple-soft: #e4e0ff;
  --orange: #a84712;
  --yellow: #ffd166;
  --green: #247154;
  --green-soft: #dff5eb;
  --red: #b33c49;
  --red-soft: #ffe5e8;
  --blue: #24678e;
  --blue-soft: #dff3ff;
  --line: #d8d8ea;
  --shadow: 0 18px 45px rgba(46, 42, 102, 0.13);
  --small-shadow: 0 8px 20px rgba(46, 42, 102, 0.09);
  --radius: 24px;
  --tap: 52px;
  --content: 72rem;
  --font: ui-rounded, "SF Pro Rounded", "Avenir Next", Avenir, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: #f8f7ff;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 2% 18%, rgba(255, 209, 102, 0.23) 0 8rem, transparent 8.1rem),
    radial-gradient(circle at 98% 70%, rgba(58, 155, 117, 0.15) 0 10rem, transparent 10.1rem),
    linear-gradient(145deg, #ffffff 0%, #f5f3ff 50%, #fffaf1 100%);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

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

button {
  touch-action: manipulation;
}

:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px #172033;
}

.hidden {
  display: none !important;
}

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

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr) 6.5rem;
  align-items: center;
  width: min(100% - 2rem, var(--content));
  min-height: 5.5rem;
  margin: 0 auto;
  padding-top: env(safe-area-inset-top);
}

.brand {
  display: inline-flex;
  grid-column: 2;
  grid-row: 1;
  align-items: center;
  justify-self: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
}

.brand > span:last-child {
  display: grid;
  line-height: 1.05;
}

.brand strong {
  color: var(--purple);
  font-size: 1.2rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.brand-tiles {
  display: flex;
  gap: 0.15rem;
}

.brand-tiles i {
  display: grid;
  width: 1.3rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 0.3rem;
  background: var(--purple);
  color: #fff;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 950;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}

.brand-tiles i:nth-child(2) { background: var(--orange); }
.brand-tiles i:nth-child(3) { background: var(--green); }
.brand-tiles i:nth-child(4) { background: var(--blue); }
.brand-tiles i:nth-child(5) { background: #94365f; }

.icon-button,
.text-button,
.parent-link {
  min-height: 46px;
  padding: 0.55rem 0.8rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--purple);
  font-weight: 850;
  cursor: pointer;
}

.icon-button {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  border: 2px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.topbar-space {
  grid-column: 3;
  grid-row: 1;
  width: 6.5rem;
}

.view {
  width: min(100% - 2rem, var(--content));
  min-height: calc(100vh - 9rem);
  margin: 0 auto;
  padding: 1rem 0 max(3rem, env(safe-area-inset-bottom));
}

.centered-view {
  display: grid;
  place-items: center;
}

.loading-card,
.message-card,
.summary-card,
.parent-card,
.question-card {
  border: 2px solid #fff;
  border-radius: var(--radius);
  background: rgba(255, 253, 250, 0.95);
  box-shadow: var(--shadow);
}

.loading-card,
.message-card,
.summary-card {
  width: min(100%, 35rem);
  padding: clamp(1.5rem, 6vw, 3rem);
  text-align: center;
}

.loading-card h1,
.message-card h1,
.summary-card h1 {
  margin: 0.5rem 0 1rem;
  font-size: clamp(1.75rem, 6vw, 2.6rem);
  line-height: 1.15;
}

.loading-letters {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.loading-letters span {
  display: grid;
  width: 3.3rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 14px;
  background: var(--purple);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 950;
  animation: letter-bounce 1.1s ease-in-out infinite alternate;
}

.loading-letters span:nth-child(2) {
  background: var(--orange);
  animation-delay: 150ms;
}

.loading-letters span:nth-child(3) {
  background: var(--green);
  animation-delay: 300ms;
}

@keyframes letter-bounce {
  to { transform: translateY(-0.55rem) rotate(3deg); }
}

.section-label {
  margin: 0 0 0.35rem;
  color: var(--orange);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2,
p,
strong,
small {
  overflow-wrap: anywhere;
}

h1,
h2 {
  letter-spacing: -0.035em;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17rem;
  align-items: center;
  min-height: 17rem;
  overflow: hidden;
  padding: clamp(1.6rem, 5vw, 3.4rem);
  border-radius: 30px;
  background: var(--purple);
  color: #fff;
  box-shadow: var(--shadow);
}

.hero::before,
.hero::after {
  position: absolute;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.hero::before {
  width: 12rem;
  height: 12rem;
  top: -6rem;
  left: 40%;
}

.hero::after {
  width: 7rem;
  height: 7rem;
  right: 23%;
  bottom: -3.5rem;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-copy .section-label {
  color: #ffda77;
}

.hero h1 {
  max-width: 42rem;
  margin: 0.25rem 0 0.8rem;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 1.02;
}

.hero p:last-child {
  max-width: 38rem;
  margin: 0;
  color: #e4e2ff;
  font-size: clamp(1rem, 2.5vw, 1.18rem);
}

.letter-cloud {
  position: relative;
  z-index: 1;
  height: 13rem;
}

.letter-cloud span {
  position: absolute;
  display: grid;
  width: 6rem;
  aspect-ratio: 1;
  place-items: center;
  border: 0.45rem solid rgba(255, 255, 255, 0.75);
  border-radius: 24px;
  color: #fff;
  font-size: 3.3rem;
  font-weight: 950;
  box-shadow: inset 0 -7px 0 rgba(0, 0, 0, 0.15), 0 14px 25px rgba(31, 27, 89, 0.25);
}

.letter-a {
  top: 0;
  left: 0.5rem;
  background: var(--orange);
  transform: rotate(-11deg);
}

.letter-b {
  right: 0.5rem;
  top: 1.2rem;
  background: var(--green);
  transform: rotate(9deg);
}

.letter-c {
  bottom: -0.2rem;
  left: 5.6rem;
  background: var(--blue);
  transform: rotate(-3deg);
}

.current-panel {
  display: grid;
  grid-template-columns: minmax(12rem, 0.8fr) minmax(0, 2fr);
  align-items: center;
  gap: 1.5rem;
  margin: 1.2rem 0 2.6rem;
  padding: 1.4rem 1.6rem;
  border: 2px solid #fff;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--small-shadow);
}

.current-panel h2,
.section-heading h2,
.parent-card h2 {
  margin: 0;
  font-size: clamp(1.45rem, 4vw, 2rem);
}

.week-name {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-weight: 700;
}

.word-chip-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.word-chip {
  padding: 0.55rem 0.85rem;
  border: 2px solid #d8d2ff;
  border-radius: 999px;
  background: var(--lavender);
  color: var(--purple-dark);
  font-size: 1rem;
  font-weight: 900;
}

.section-heading {
  margin-bottom: 1.15rem;
}

.section-heading h1,
.activity-heading h1,
.practice-header h1,
.parent-heading h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
}

.section-heading > p:last-child,
.activity-heading > p:last-child,
.parent-heading > div > p:last-child {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

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

.choice-card {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 9.5rem;
  padding: 1.25rem;
  border: 2px solid #fff;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--small-shadow);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.choice-number {
  display: grid;
  width: 5rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 20px;
  background: var(--orange);
  color: #fff;
  font-size: 2rem;
  font-weight: 950;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.12);
}

.all-card .choice-number {
  background: var(--green);
}

.choice-copy {
  display: grid;
  gap: 0.25rem;
}

.choice-copy strong {
  font-size: 1.2rem;
}

.choice-copy small {
  color: var(--muted);
  font-size: 0.9rem;
}

.choice-action {
  color: var(--purple);
  font-size: 0.83rem;
  font-weight: 950;
}

.activity-view {
  max-width: 64rem;
}

.activity-heading {
  margin: 1.2rem 0 2rem;
  text-align: center;
}

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

.activity-card {
  display: grid;
  min-height: 14rem;
  align-content: start;
  justify-items: start;
  gap: 0.5rem;
  padding: 1.25rem;
  border: 2px solid #fff;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--small-shadow);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.activity-badge {
  display: grid;
  min-width: 4.2rem;
  min-height: 4.2rem;
  place-items: center;
  margin-bottom: 0.35rem;
  padding: 0.5rem;
  border-radius: 16px;
  background: var(--purple-soft);
  color: var(--purple);
  font-size: 0.86rem;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.activity-card:nth-child(2) .activity-badge { background: #fff0dc; color: #9a4c1d; }
.activity-card:nth-child(3) .activity-badge { background: var(--green-soft); color: #1f7253; }
.activity-card:nth-child(4) .activity-badge { background: var(--blue-soft); color: #236788; }
.activity-card:nth-child(5) .activity-badge { background: #ffe6f0; color: #944166; }
.surprise-card .activity-badge { background: #fff3c9; color: #805c00; }

.activity-card strong {
  font-size: 1.15rem;
}

.activity-card small {
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.45;
}

.practice-view {
  max-width: 52rem;
}

.practice-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.5rem 0 1rem;
}

.progress-copy {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  flex: 0 0 auto;
  color: var(--muted);
}

.progress-copy strong {
  color: var(--purple);
  font-size: 1.6rem;
}

.progress-track {
  height: 0.85rem;
  margin-bottom: 1.25rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e2f3;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--yellow));
  transition: width 250ms ease;
}

.question-card {
  min-height: 30rem;
  padding: clamp(1.4rem, 5vw, 2.6rem);
  text-align: center;
}

.question-instruction {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 1.03rem;
  font-weight: 750;
}

.question-content {
  display: grid;
  justify-items: center;
  gap: 1rem;
}

.model-word,
.missing-word,
.built-word {
  margin: 0.25rem 0 0.8rem;
  color: var(--purple);
  font-size: clamp(2.5rem, 9vw, 5rem);
  font-weight: 950;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.missing-word {
  white-space: pre-wrap;
  letter-spacing: 0.12em;
}

.answer-form,
.copy-form {
  display: grid;
  width: min(100%, 34rem);
  gap: 0.8rem;
}

.copy-row {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
}

.copy-row span {
  display: grid;
  width: 2.4rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--purple-soft);
  color: var(--purple);
  font-weight: 950;
}

.word-input,
.stacked-form input,
.word-fields input {
  width: 100%;
  min-height: 54px;
  padding: 0.75rem 1rem;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-size: 18px;
}

.word-input {
  text-align: center;
}

.word-input:focus,
.stacked-form input:focus,
.word-fields input:focus {
  border-color: var(--purple);
}

.sound-button {
  display: grid;
  width: min(100%, 18rem);
  min-height: 7rem;
  place-items: center;
  padding: 1rem;
  border: 0;
  border-radius: 22px;
  background: var(--purple);
  box-shadow: 0 7px 0 var(--purple-dark);
  color: #fff;
  cursor: pointer;
}

.sound-button strong {
  font-size: 1.2rem;
}

.sound-lines {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  height: 2.2rem;
}

.sound-lines span {
  width: 0.32rem;
  border-radius: 99px;
  background: var(--yellow);
}

.sound-lines span:nth-child(1),
.sound-lines span:nth-child(5) { height: 0.7rem; }
.sound-lines span:nth-child(2),
.sound-lines span:nth-child(4) { height: 1.4rem; }
.sound-lines span:nth-child(3) { height: 2.1rem; }

.choice-answers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  gap: 0.7rem;
}

.answer-choice,
.letter-tile,
.built-letter {
  min-height: var(--tap);
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.answer-choice {
  padding: 0.8rem;
  font-size: 1.05rem;
}

.answer-choice.is-wrong {
  border-color: var(--red);
  background: var(--red-soft);
}

.answer-choice.is-correct {
  border-color: var(--green);
  background: var(--green-soft);
}

.letter-lengths {
  margin: -0.4rem 0 0.6rem;
  color: var(--muted);
  font-weight: 800;
}

.built-word {
  min-height: 5.8rem;
  min-width: min(100%, 23rem);
  padding: 0.35rem 1rem;
  border-bottom: 4px solid var(--line);
}

.letter-bank,
.built-letter-bank {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.letter-tile,
.built-letter {
  display: grid;
  width: 3.3rem;
  aspect-ratio: 1;
  place-items: center;
  font-size: 1.35rem;
}

.letter-tile {
  border-color: #c9c3f2;
  background: var(--lavender);
  color: var(--purple-dark);
  box-shadow: 0 4px 0 #c9c3f2;
}

.tile-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.feedback {
  min-height: 2.1rem;
  margin: 1.1rem 0 0.5rem;
  padding: 0.55rem;
  border-radius: 12px;
  font-weight: 850;
}

.feedback.success {
  background: var(--green-soft);
  color: #1f7253;
}

.feedback.try-again {
  background: #fff1df;
  color: #8b4b1f;
}

.primary-button,
.secondary-button {
  min-height: var(--tap);
  padding: 0.75rem 1.25rem;
  border: 2px solid transparent;
  border-radius: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 130ms ease, background-color 130ms ease;
}

.primary-button {
  background: var(--purple);
  box-shadow: 0 5px 0 var(--purple-dark);
  color: #fff;
}

.secondary-button {
  border-color: var(--line);
  background: #fff;
  color: var(--purple);
}

.primary-button:active,
.secondary-button:active,
.choice-card:active,
.activity-card:active,
.sound-button:active,
.letter-tile:active {
  transform: translateY(2px);
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.check-button,
.next-button,
.help-button {
  width: min(100%, 22rem);
  margin-top: 0.5rem;
}

.answer-reveal {
  margin: 0.5rem 0 0;
  padding: 0.65rem 1rem;
  border: 3px solid var(--orange);
  border-radius: 16px;
  background: #fff6e9;
  color: var(--purple);
  font-size: clamp(2rem, 7vw, 3.5rem);
  font-weight: 950;
  letter-spacing: 0.04em;
}

.hint-text {
  margin: 0;
  color: var(--purple);
  font-weight: 850;
}

.summary-card > p:not(.section-label):not(.summary-score) {
  color: var(--muted);
}

.stars {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin: 1.4rem 0 0.8rem;
}

.star {
  width: 2.8rem;
  aspect-ratio: 1;
  background: #ddd9ea;
  clip-path: polygon(50% 0%, 61% 34%, 98% 35%, 68% 56%, 79% 92%, 50% 71%, 21% 92%, 32% 56%, 2% 35%, 39% 34%);
}

.star.filled {
  background: var(--yellow);
  filter: drop-shadow(0 3px 0 #d2a83b);
}

.summary-score {
  margin: 0.5rem 0;
  color: var(--purple);
  font-size: 1.25rem;
  font-weight: 950;
}

.summary-actions {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.parent-view {
  max-width: 70rem;
}

.parent-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 0.5rem 0 1.5rem;
}

.parent-heading-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.parent-layout {
  display: grid;
  grid-template-columns: minmax(18rem, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 1.2rem;
}

.parent-card {
  padding: clamp(1.3rem, 4vw, 2rem);
}

.narrow-card {
  width: min(100%, 32rem);
  text-align: center;
}

.narrow-card > p:not(.section-label) {
  color: var(--muted);
}

.stacked-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.2rem;
  text-align: left;
}

.stacked-form > label,
.word-fields label {
  display: grid;
  gap: 0.3rem;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 850;
}

.word-fields {
  display: grid;
  gap: 0.65rem;
  margin: 0.4rem 0;
  padding: 1rem;
  border: 2px solid var(--line);
  border-radius: 16px;
}

.word-fields legend {
  padding: 0 0.4rem;
  color: var(--purple);
  font-weight: 900;
}

.form-message {
  min-height: 1.5rem;
  margin: 0.25rem 0 0;
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

.form-message.success {
  color: #1f7253;
}

.compact-heading {
  margin-bottom: 0.7rem;
}

.admin-week-list {
  display: grid;
  gap: 0.9rem;
}

.admin-week-card {
  padding: 1rem;
  border: 2px solid #fff;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--small-shadow);
}

.admin-week-card.current {
  border-color: var(--green);
}

.admin-week-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}

.admin-week-top h3 {
  margin: 0;
  font-size: 1.13rem;
}

.current-badge {
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: var(--green-soft);
  color: #1f7253;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-word-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
}

.admin-word-list span {
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: var(--lavender);
  color: var(--purple-dark);
  font-size: 0.86rem;
  font-weight: 800;
}

.admin-week-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.small-button {
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  border: 2px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--purple);
  font-weight: 850;
  cursor: pointer;
}

.edit-week-form {
  display: grid;
  gap: 0.65rem;
}

.edit-week-form input {
  width: 100%;
  min-height: 54px;
  padding: 0.75rem 1rem;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
}

.edit-week-form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.88rem;
  font-weight: 850;
}

.site-footer {
  width: min(100% - 2rem, var(--content));
  margin: 0 auto;
  padding: 1.5rem 0 max(2rem, env(safe-area-inset-bottom));
  color: var(--muted);
  text-align: center;
}

.site-footer p {
  margin: 0.1rem 0 0;
  font-size: 0.78rem;
}

.parent-link {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

@media (hover: hover) {
  .choice-card:hover,
  .activity-card:hover {
    border-color: var(--yellow);
    box-shadow: 0 14px 30px rgba(46, 42, 102, 0.15);
    transform: translateY(-3px);
  }

  .primary-button:hover:not(:disabled),
  .sound-button:hover:not(:disabled) {
    background: #6057bc;
  }

  .secondary-button:hover,
  .small-button:hover,
  .icon-button:hover,
  .text-button:hover,
  .parent-link:hover,
  .answer-choice:hover,
  .letter-tile:hover {
    border-color: var(--purple);
    background: var(--lavender);
  }
}

@media (max-width: 850px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 12rem;
  }

  .letter-cloud {
    transform: scale(0.78);
    transform-origin: center;
  }

  .choice-card {
    grid-template-columns: 4rem minmax(0, 1fr);
  }

  .choice-number {
    width: 4rem;
  }

  .choice-action {
    display: none;
  }

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

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

@media (max-width: 620px) {
  .topbar {
    grid-template-columns: 4.8rem minmax(0, 1fr) 4.8rem;
  }

  .brand-tiles {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .letter-cloud {
    display: none;
  }

  .current-panel {
    grid-template-columns: 1fr;
  }

  .word-chip-list {
    justify-content: flex-start;
  }

  .choice-grid,
  .activity-grid {
    grid-template-columns: 1fr;
  }

  .activity-card {
    grid-template-columns: 4rem minmax(0, 1fr);
    min-height: auto;
    align-items: center;
  }

  .activity-card .activity-badge {
    grid-row: 1 / span 2;
    margin: 0;
  }

  .practice-header,
  .parent-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .choice-answers {
    grid-template-columns: 1fr;
  }

  .question-card {
    min-height: 28rem;
  }

  .parent-heading-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
