:root {
  --ink: #203f3b;
  --muted: #61726b;
  --paper: #f8f7f2;
  --green: #176c56;
  --mint: #d9eee1;
  --yellow: #f8cc57;
  --line: #dedfd6;
  --white: #fffefa;
  --pink: #f4d9d0;
  --blue: #dce9f4;
  --shadow: 0 6px 0 #173f3510;
  font-family: ui-rounded, "Avenir Next", Avenir, "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  touch-action: manipulation;
}
button:disabled {
  cursor: default;
  opacity: 0.6;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #cc6700;
  outline-offset: 4px;
}
button {
  color: inherit;
}
a {
  color: var(--green);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  letter-spacing: -0.055em;
  line-height: 1.08;
}
h2 {
  letter-spacing: -0.035em;
}
p {
  line-height: 1.55;
}
svg {
  display: block;
}
.skip {
  position: fixed;
  top: -80px;
  left: 10px;
  background: white;
  padding: 16px;
  z-index: 100;
}
.skip:focus {
  top: 10px;
}
.shell {
  max-width: 1160px;
  margin: auto;
  padding: 0 36px;
}
.topbar {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  padding: 0;
  background: none;
  text-align: left;
}
.brand-mark {
  font-size: 35px;
  line-height: 1;
}
.brand strong {
  font-size: 24px;
  letter-spacing: -1px;
  display: block;
}
.brand small {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}
.top-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  background: #e8ede5;
  padding: 8px 12px;
  border-radius: 40px;
  white-space: nowrap;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}
.quiet {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  min-height: 48px;
  font-weight: 700;
}
.navrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 21px 0;
}
.tabs {
  display: flex;
  gap: 6px;
}
.tab {
  border: 0;
  background: none;
  padding: 12px 17px;
  border-radius: 30px;
  font-weight: 700;
  min-height: 46px;
}
.tab.active {
  background: var(--ink);
  color: white;
}
.profile-switch {
  display: flex;
  gap: 7px;
}
.profile-button {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 30px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
}
.profile-button.selected {
  background: #fff;
  border-color: var(--line);
}
.profile-button span {
  font-size: 24px;
}
.profile-button strong {
  font-size: 13px;
}
.time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-left: 8px;
  white-space: nowrap;
}
main {
  padding-bottom: 44px;
}
.hero {
  position: relative;
  background: var(--mint);
  border-radius: 28px;
  padding: 40px 44px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  min-height: 340px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 17px;
}
.hero h1 {
  font-size: clamp(36px, 4.8vw, 58px);
  max-width: 520px;
  margin-bottom: 18px;
}
.hero p {
  color: #426257;
  font-size: 16px;
  max-width: 400px;
  margin-bottom: 25px;
}
.primary,
.secondary {
  border: 0;
  border-radius: 15px;
  padding: 15px 23px;
  font-weight: 800;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.primary {
  background: var(--green);
  color: white;
  box-shadow: 0 4px 0 #0e493d;
}
.primary:hover {
  background: #115e4b;
}
.primary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #0e493d;
}
.secondary {
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}
.mascot {
  width: 260px;
  max-width: 100%;
  filter: drop-shadow(0 10px 0 #203f3b0a);
}
.speech-bubble {
  position: absolute;
  right: -6px;
  top: 1px;
  background: #fffefa;
  border-radius: 20px 20px 20px 4px;
  transform: rotate(7deg);
  padding: 17px 24px;
  font-weight: 800;
  font-size: 24px;
  box-shadow: var(--shadow);
}
.spark {
  position: absolute;
  font-size: 31px;
}
.spark.one {
  left: 0;
  top: 30px;
  transform: rotate(-15deg);
}
.spark.two {
  right: 5px;
  bottom: 15px;
}
.hero-foot {
  font-size: 12px;
  display: inline-flex;
  margin-left: 14px;
  color: var(--green);
  font-weight: 700;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 32px 0 17px;
  gap: 15px;
}
.section-heading h2 {
  font-size: 25px;
  margin: 0;
}
.section-heading p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.today-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}
.today-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
}
.big-icon {
  display: grid;
  place-items: center;
  font-size: 37px;
  min-width: 76px;
  height: 76px;
  background: var(--pink);
  border-radius: 22px;
}
.today-card h3 {
  margin: 0 0 5px;
  font-size: 21px;
}
.today-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.today-card .arrow {
  margin-left: auto;
  border: 0;
  background: var(--yellow);
  min-width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 22px;
}
.star-icon {
  background: #fbefc9;
}
.stars {
  font-size: 24px;
  color: #b17500;
  letter-spacing: 4px;
}
.stars .empty {
  color: #d9d8cd;
}
.unit-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.unit {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 21px 13px 17px;
  background: var(--white);
  text-align: left;
  position: relative;
  box-shadow: 0 3px 0 #203f3b06;
  min-height: 160px;
}
.unit:hover {
  transform: translateY(-3px);
  border-color: #90b3a0;
}
.unit.selected {
  border: 2px solid var(--green);
  padding: 20px 12px 16px;
  background: #eef5ed;
}
.unit .emoji {
  font-size: 32px;
  display: block;
  margin-bottom: 18px;
}
.unit strong {
  display: block;
  font-size: 16px;
  margin-bottom: 5px;
}
.unit small {
  font-size: 12px;
  color: var(--muted);
}
.unit .unit-stars {
  position: absolute;
  right: 12px;
  top: 16px;
  color: #b17500;
  font-size: 12px;
  letter-spacing: 1px;
}
.bottom-note {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 20px 0;
  color: var(--muted);
  font-size: 12px;
  margin-top: 32px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 20px 0 25px;
}
.page-heading h1 {
  font-size: 38px;
  margin: 0 0 7px;
}
.page-heading p {
  margin: 0;
  color: var(--muted);
}
.word-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
}
.word-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 25px 18px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow);
}
.word-card .emoji {
  font-size: 55px;
  display: block;
  margin: 12px;
}
.word-card h2 {
  font-size: 22px;
  margin: 13px 0 5px;
}
.word-card p {
  color: var(--muted);
  font-size: 14px;
  min-height: 42px;
}
.word-card button {
  min-height: 46px;
  border: 0;
  background: var(--mint);
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 700;
}
.learned {
  position: absolute;
  right: 15px;
  top: 13px;
  color: #a16a00;
}
.notice {
  padding: 14px 18px;
  border: 1px solid #d5ddd0;
  background: #eff3e9;
  border-radius: 15px;
  font-size: 13px;
  color: #4d6254;
  line-height: 1.5;
  margin: 18px 0;
}
.activity {
  max-width: 780px;
  margin: 20px auto;
}
.activity-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.activity-top strong {
  font-size: 14px;
}
.round-dots {
  display: flex;
  gap: 7px;
}
.round-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #dedfd6;
}
.round-dot.done {
  background: var(--green);
}
.round-dot.current {
  background: var(--yellow);
}
.question {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow);
}
.question .label {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 18px;
}
.question h1 {
  font-size: 44px;
  margin: 15px 0 25px;
}
.listen {
  background: var(--yellow);
  border: 0;
  border-radius: 50px;
  min-height: 52px;
  padding: 13px 23px;
  font-weight: 800;
}
.choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  margin: 26px 0;
}
.choice {
  border: 2px solid var(--line);
  background: var(--white);
  border-radius: 22px;
  padding: 22px 12px;
  min-height: 150px;
  font-weight: 700;
  font-size: 18px;
  box-shadow: var(--shadow);
}
.choice .emoji {
  display: block;
  font-size: 48px;
  margin-bottom: 15px;
}
.choice:hover {
  border-color: var(--green);
  background: #eff5ed;
}
.choice.correct {
  border-color: var(--green);
  background: #d9eee1;
  opacity: 1;
}
.choice.wrong {
  border-color: #bd6c43;
  background: #fbebdb;
  opacity: 1;
}
.feedback {
  border-radius: 18px;
  padding: 20px;
  background: var(--mint);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  min-height: 90px;
}
.feedback p {
  margin: 0;
  font-size: 15px;
}
.feedback strong {
  display: block;
  margin-bottom: 5px;
  font-size: 21px;
}
.activity-tools {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 20px 0;
  flex-wrap: wrap;
}
.answer-form {
  display: flex;
  gap: 12px;
  margin: 25px 0;
}
.answer-form input,
.chat-form input {
  min-width: 0;
  flex: 1;
  background: white;
  border: 2px solid var(--line);
  border-radius: 15px;
  padding: 15px;
  font-size: 20px;
}
.answer-form label {
  position: absolute;
  left: -10000px;
}
.completion {
  text-align: center;
  max-width: 670px;
  margin: 40px auto;
  background: #f9edc9;
  padding: 44px 30px;
  border-radius: 30px;
}
.completion .emoji {
  font-size: 80px;
}
.completion h1 {
  font-size: 48px;
  margin: 20px 0 15px;
}
.completion p {
  color: #655b3b;
}
.completion .primary {
  margin: 10px;
}
.chat-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 26px;
}
.tutor-card {
  background: var(--mint);
  border-radius: 24px;
  padding: 25px;
  text-align: center;
  align-self: start;
}
.tutor-card .mascot {
  width: 160px;
  margin: auto;
}
.tutor-card h2 {
  margin: 10px 0;
  font-size: 28px;
}
.tutor-card p {
  font-size: 14px;
  color: #426257;
}
.chat-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 25px;
}
.messages {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-height: 420px;
  overflow: auto;
  padding: 4px 4px 20px;
  min-height: 240px;
}
.message {
  max-width: 90%;
  border-radius: 19px 19px 19px 3px;
  padding: 17px 20px;
  background: #edf2e8;
  align-self: start;
}
.message.user {
  align-self: end;
  border-radius: 19px 19px 3px 19px;
  background: #dce9f4;
}
.message .pt {
  font-weight: 800;
  font-size: 24px;
  margin: 6px 0;
}
.message p {
  margin: 5px 0;
  font-size: 14px;
}
.message small {
  font-size: 12px;
  color: var(--muted);
}
.message button {
  border: 0;
  background: #ffffff90;
  border-radius: 30px;
  padding: 8px 14px;
  min-height: 44px;
  font-weight: 700;
  margin-top: 8px;
}
.chat-form {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.chat-form input {
  font-size: 16px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}
.chip {
  border: 1px solid #a9c2b2;
  background: #f4f8f1;
  border-radius: 30px;
  padding: 12px 17px;
  min-height: 46px;
  font-weight: 700;
}
.micro-note {
  font-size: 12px;
  color: var(--muted);
  margin: 14px 0 0;
}
.parent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.panel {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 24px;
  padding: 26px;
}
.panel h2 {
  font-size: 23px;
  margin-bottom: 23px;
}
.field {
  display: block;
  margin-bottom: 22px;
}
.field > span {
  font-weight: 700;
  display: block;
  margin-bottom: 9px;
}
.field small {
  color: var(--muted);
  font-size: 12px;
  display: block;
  margin-top: 8px;
  line-height: 1.5;
}
.field select,
.field input[type="number"] {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cbd1c6;
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
  color: var(--ink);
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.5;
  font-size: 14px;
  margin: 20px 0;
}
.check input {
  width: 22px;
  height: 22px;
  accent-color: var(--green);
  flex-shrink: 0;
}
.profile-editor {
  background: #f3f4ed;
  border-radius: 16px;
  padding: 17px;
  margin: 15px 0;
}
.profile-editor h3 {
  margin-bottom: 14px;
}
.profile-editor .fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.profile-editor .field {
  margin: 0;
}
.progress-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.progress-table th {
  text-align: left;
  color: var(--muted);
  font-size: 12px;
  padding: 12px 5px;
  border-bottom: 1px solid var(--line);
}
.progress-table td {
  padding: 13px 5px;
  border-bottom: 1px solid #ebede5;
}
.progress-table .stars {
  font-size: 15px;
  letter-spacing: 1px;
}
.parent-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #193b36a8;
  display: grid;
  place-items: center;
  z-index: 20;
  padding: 22px;
}
.modal {
  background: var(--white);
  border-radius: 26px;
  max-width: 470px;
  width: 100%;
  padding: 30px;
  box-shadow: 0 20px 80px #0003;
}
.modal h2 {
  font-size: 28px;
}
.modal p {
  font-size: 15px;
  color: var(--muted);
}
.modal input {
  font-size: 25px;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: 12px;
  width: 100%;
  margin-bottom: 18px;
}
.modal .actions {
  display: flex;
  gap: 12px;
}
.error {
  color: #9c422a;
  font-weight: 700;
}
.empty {
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  border-radius: 17px;
  padding: 16px 22px;
  font-size: 14px;
  z-index: 50;
  max-width: 90%;
  box-shadow: 0 8px 30px #0002;
}
#toast:empty {
  display: none;
}
.loading {
  padding: 20vh 25px;
  text-align: center;
}
.loading h1 {
  font-size: 48px;
}
.loading-sun {
  font-size: 80px;
}
progress {
  width: 100%;
  height: 8px;
  accent-color: var(--green);
}
.saved {
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}
.icon-button {
  min-width: 48px;
  min-height: 48px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 14px;
  font-size: 20px;
}
.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;
}
@media (min-width: 1000px) {
  .hero-art .mascot {
    width: 285px;
  }
}
@media (max-width: 900px) {
  .shell {
    padding: 0 23px;
  }
  .hero {
    padding: 32px;
    grid-template-columns: 1.25fr 1fr;
  }
  .hero h1 {
    font-size: 45px;
  }
  .hero-foot {
    display: block;
    margin: 15px 0 0;
  }
  .unit-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
  }
  .unit strong {
    font-size: 14px;
  }
  .unit {
    padding: 18px 10px;
  }
  .word-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .profile-button strong {
    display: none;
  }
  .chat-layout {
    grid-template-columns: 190px 1fr;
  }
  .chat-panel {
    padding: 19px;
  }
  .parent-grid {
    grid-template-columns: 1fr;
  }
  .topbar {
    height: 90px;
  }
  .time {
    display: none;
  }
}
@media (max-width: 620px) {
  .shell {
    padding: 0 17px;
  }
  .topbar {
    height: 82px;
  }
  .brand strong {
    font-size: 21px;
  }
  .brand small {
    font-size: 8px;
    letter-spacing: 1.4px;
  }
  .brand-mark {
    font-size: 29px;
  }
  .top-actions .pill {
    display: none;
  }
  .top-actions .quiet {
    padding: 10px 12px;
    font-size: 12px;
  }
  .navrow {
    gap: 15px;
    padding: 16px 0;
  }
  .tabs {
    order: 2;
    width: 100%;
    justify-content: space-between;
    background: #eeeee5;
    border-radius: 30px;
    padding: 3px;
  }
  .tab {
    padding: 11px 15px;
    font-size: 13px;
    flex: 1;
  }
  .profile-switch {
    width: 100%;
    justify-content: space-between;
  }
  .profile-button strong {
    display: inline;
  }
  .profile-button {
    flex: 1;
    justify-content: center;
  }
  .hero {
    padding: 27px;
    display: flex;
    flex-direction: column;
    min-height: auto;
  }
  .hero h1 {
    font-size: 42px;
    max-width: 330px;
  }
  .hero p {
    font-size: 14px;
  }
  .hero-art {
    position: absolute;
    right: -10px;
    bottom: 4px;
    width: 130px;
    opacity: 0.95;
    pointer-events: none;
  }
  .hero-art .mascot {
    width: 130px;
  }
  .speech-bubble,
  .spark {
    display: none;
  }
  .hero .primary {
    max-width: calc(100% - 60px);
    font-size: 14px;
    padding: 14px 18px;
  }
  .hero-foot {
    font-size: 11px;
    max-width: 190px;
  }
  .hero .eyebrow {
    font-size: 9px;
  }
  .today-grid {
    grid-template-columns: 1fr;
  }
  .today-card {
    padding: 18px;
  }
  .unit-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .unit {
    min-height: 145px;
    padding: 19px;
  }
  .unit.selected {
    padding: 18px;
  }
  .unit strong {
    font-size: 16px;
  }
  .unit .emoji {
    margin-bottom: 12px;
  }
  .section-heading h2 {
    font-size: 23px;
  }
  .section-heading p {
    font-size: 11px;
    text-align: right;
    max-width: 130px;
  }
  .bottom-note {
    flex-direction: column;
    font-size: 11px;
  }
  .word-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .word-card {
    padding: 18px 10px;
  }
  .word-card h2 {
    font-size: 19px;
  }
  .word-card .emoji {
    font-size: 45px;
  }
  .page-heading {
    align-items: start;
    flex-direction: column;
    gap: 17px;
  }
  .page-heading h1 {
    font-size: 34px;
  }
  .page-heading p {
    font-size: 14px;
  }
  .question {
    padding: 25px 18px;
  }
  .question h1 {
    font-size: 34px;
    overflow-wrap: anywhere;
  }
  .choices {
    gap: 9px;
  }
  .choice {
    padding: 18px 7px;
    font-size: 13px;
    min-height: 135px;
  }
  .choice .emoji {
    font-size: 39px;
  }
  .answer-form {
    flex-wrap: wrap;
  }
  .answer-form input {
    width: 100%;
  }
  .answer-form .primary {
    width: 100%;
  }
  .feedback {
    flex-direction: column;
    text-align: center;
  }
  .feedback .primary {
    width: 100%;
  }
  .completion {
    padding: 30px 20px;
  }
  .completion h1 {
    font-size: 38px;
  }
  .chat-layout {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .tutor-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px;
    text-align: left;
  }
  .tutor-card .mascot {
    width: 75px;
    flex-shrink: 0;
    margin: 0;
  }
  .tutor-card h2 {
    font-size: 21px;
    margin: 0 0 5px;
  }
  .tutor-card p {
    font-size: 12px;
    margin: 0;
  }
  .tutor-card .pill {
    display: none;
  }
  .chat-panel {
    padding: 16px;
  }
  .chat-form {
    flex-wrap: wrap;
  }
  .chat-form input {
    width: 100%;
  }
  .chat-form .primary {
    padding: 12px 18px;
  }
  .message {
    max-width: 96%;
    padding: 15px;
  }
  .message .pt {
    font-size: 21px;
  }
  .panel {
    padding: 20px;
  }
  .progress-table {
    font-size: 12px;
  }
  .progress-table th {
    font-size: 11px;
  }
  .modal {
    padding: 24px;
  }
  .profile-editor .fields {
    grid-template-columns: 1fr;
  }
  .profile-editor .field {
    margin: 0 0 10px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition:
      background 0.15s,
      transform 0.15s,
      border-color 0.15s;
  }
  .hero-art {
    animation: bob 4s ease-in-out infinite;
  }
  @keyframes bob {
    50% {
      transform: translateY(-6px);
    }
  }
}

.activity-discovery,
.story-tools,
.story-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin: 24px 0;
}
.listening-menu,
.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.listening-menu .panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.listening-menu .panel .primary,
.listening-menu .panel .secondary {
  margin-top: auto;
}
.story-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 24px;
}
.story-cover {
  border: 2px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  box-shadow: var(--shadow);
}
.story-cover:hover,
.story-cover.selected {
  border-color: var(--green);
}
.story-cover strong {
  font-size: 1.3rem;
}
.story-cover small {
  color: var(--muted);
  margin-top: auto;
}
.cover-art,
.story-art {
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(ellipse at 20% 15%, #fff5cf, transparent 60%), var(--mint);
  border-radius: 18px;
  padding: 30px 12px;
  letter-spacing: 0.08em;
  font-size: clamp(1.8rem, 4vw, 3rem);
  min-height: 130px;
  width: 100%;
}
.story-cover:nth-child(3n + 2) .cover-art {
  background-color: var(--blue);
}
.story-cover:nth-child(3n) .cover-art {
  background-color: var(--pink);
}
.storybook {
  max-width: 800px;
  margin: 28px auto;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.story-heading {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  margin: 24px 0;
}
.story-art {
  min-height: 200px;
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  margin-bottom: 28px;
}
.story-text {
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  line-height: 1.65;
}
.story-translation {
  border-left: 4px solid var(--green);
  padding: 12px 20px;
  background: var(--mint);
  border-radius: 0 12px 12px 0;
}
.story-navigation {
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.story-question {
  min-width: 0;
  margin: 24px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.story-question legend {
  font-weight: 700;
  font-size: 1.2rem;
  padding: 0 8px;
}
.story-options {
  display: grid;
  gap: 12px;
}
.story-options button {
  white-space: normal;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  text-align: left;
}
.story-options small {
  font-weight: 400;
}
.story-options .correct {
  background: var(--mint);
  border-color: var(--green);
}
.story-options .wrong {
  background: var(--pink);
  border-color: #a95a32;
}
.navrow {
  flex-wrap: wrap;
}
.tabs {
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .listening-menu,
  .story-grid {
    grid-template-columns: 1fr;
  }
  .storybook {
    padding: 18px;
    border-radius: 20px;
  }
  .storybook .activity-top {
    gap: 12px;
    flex-wrap: wrap;
  }
  .story-art {
    min-height: 150px;
  }
  .story-navigation button,
  .story-tools button,
  .activity-discovery button {
    flex: 1 1 auto;
    white-space: normal;
  }
  .tabs {
    gap: 2px;
  }
  .tabs .tab {
    padding: 12px 10px;
  }
}
.word-illustration {
  width: 1.35em;
  height: 1.35em;
  display: inline-block;
  vertical-align: middle;
}
.scene-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25em;
  width: 100%;
}
.scene-strip .mascot {
  width: 1.6em;
  height: 1.6em;
  flex: 0 0 1.6em;
  filter: none;
  animation: none;
}
.story-wordbank {
  margin: 24px 0;
  padding: 18px;
  border-radius: 16px;
  background: var(--paper);
}
.story-wordbank summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 30px;
}
.story-wordbank summary:focus-visible {
  outline: 3px solid #cc6700;
  outline-offset: 4px;
}
.story-word-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}
.story-word-list button {
  display: flex;
  gap: 10px;
  align-items: center;
  white-space: normal;
}
.story-word-list small {
  font-weight: 400;
}
.wordbank-art {
  font-size: 1.5rem;
}
