: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: #eff7ea; }
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: .14;
  background-image: radial-gradient(#6f9186 1px, transparent 1px);
  background-size: 27px 27px;
  content: "";
}
button { color: inherit; font: inherit; }
button:not(:disabled) { cursor: pointer; }
button:disabled { cursor: default; }
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, .topbar-actions, .section-heading, .study-heading,
.game-heading, .game-tools, .feedback-card, .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 {
  display: grid;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  place-items: center;
  color: white;
  font-family: Georgia, serif;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.04em;
  background: linear-gradient(145deg, #60aa7d, #357b5c);
  border: 4px solid #d7ead9;
  border-radius: 19px;
  box-shadow: 0 7px 16px rgba(67, 87, 78, .14);
  transform: rotate(-4deg);
}
.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; }
.topbar-actions { flex: 0 0 auto; gap: 10px; }
.top-spark { color: var(--gold); font-size: 25px; }
.sound-button, .back-button {
  min-height: 49px;
  font-weight: 900;
  background: rgba(255, 253, 247, .94);
  border: 2px solid var(--line);
  border-radius: 17px;
}
.sound-button { display: flex; align-items: center; gap: 9px; padding: 0 17px; font-size: 12px; }
.back-button { width: 49px; padding: 0; font-size: 23px; }
.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 {
  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.compact { min-height: 48px; padding: 0 17px; box-shadow: none; }
.secondary-button { background: white; border: 3px solid var(--line); }
.picture { display: grid; place-items: center; overflow: hidden; }
.picture img { width: 100%; height: 100%; object-fit: contain; }

.hero {
  display: grid;
  min-height: 515px;
  align-items: center;
  grid-template-columns: 1.04fr .96fr;
  gap: 48px;
  padding: clamp(42px, 6vw, 70px);
  overflow: hidden;
  background: rgba(255, 253, 247, .97);
  border: 3px solid var(--line);
  border-radius: 46px;
  box-shadow: var(--shadow);
}
.hero h1 {
  max-width: 620px;
  margin-bottom: 19px;
  font-size: clamp(49px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .98;
}
.hero-copy > p:not(.eyebrow) {
  max-width: 550px;
  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-book {
  position: relative;
  min-height: 390px;
  padding: 70px 26px 28px;
  background: linear-gradient(145deg, #eaf5e9, #fff2c9);
  border: 8px solid white;
  border-radius: 39px;
  box-shadow: 0 20px 42px rgba(55, 76, 68, .2);
  transform: rotate(1.5deg);
}
.hello-bubble {
  position: absolute;
  top: 22px;
  right: 26px;
  padding: 10px 16px;
  color: #67567f;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 900;
  background: white;
  border: 3px solid #c9badd;
  border-radius: 20px 20px 4px 20px;
}
.hero-pictures { display: flex; align-items: flex-end; justify-content: center; gap: 8px; }
.hero-picture {
  width: 110px;
  height: 150px;
  padding: 7px;
  background: rgba(255, 255, 255, .78);
  border: 3px solid rgba(81, 123, 102, .22);
  border-radius: 23px;
}
.hero-picture:nth-child(2) { height: 126px; transform: translateY(13px); }
.hero-picture:nth-child(3) { height: 142px; transform: translateY(4px); }
.hero-word {
  display: flex;
  width: min(280px, 100%);
  align-items: center;
  gap: 12px;
  margin: 24px auto 0;
  padding: 11px 15px;
  background: white;
  border: 3px solid #d8d0af;
  border-radius: 19px;
  box-shadow: 0 8px 0 rgba(145, 129, 79, .14);
}
.hero-word button { width: 48px; height: 48px; padding: 0; font-size: 22px; background: #fff1bd; border: 0; border-radius: 15px; }
.hero-word strong, .hero-word small { display: block; }
.hero-word strong { font-size: 24px; }
.hero-word small { color: var(--muted); font-weight: 800; }

.how-section, .themes-section { margin-top: 44px; }
.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; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.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; }
.themes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.theme-card {
  display: flex;
  min-height: 390px;
  padding: 18px;
  text-align: left;
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: 30px;
  box-shadow: 0 11px 0 color-mix(in srgb, var(--theme) 28%, #d9d3bf);
  flex-direction: column;
}
.theme-card:hover { border-color: var(--theme); transform: translateY(-2px); }
.theme-top, .theme-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.theme-top > b { display: grid; width: 48px; height: 48px; place-items: center; font-size: 25px; background: color-mix(in srgb, var(--theme) 18%, white); border-radius: 15px; }
.theme-top small { color: var(--theme); font-size: 11px; font-weight: 900; text-align: right; }
.theme-preview { display: flex; height: 145px; align-items: flex-end; justify-content: center; gap: 4px; margin: 16px 0; padding: 10px; background: color-mix(in srgb, var(--theme) 10%, white); border-radius: 23px; }
.preview-picture { width: 31%; height: 116px; }
.theme-copy { flex: 1; }
.theme-copy > small, .theme-copy > strong, .theme-copy > i { display: block; }
.theme-copy > small { color: var(--theme); font-family: Georgia, serif; font-size: 13px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.theme-copy > strong { margin: 4px 0 7px; font-size: 25px; }
.theme-copy > i { color: var(--muted); font-size: 14px; font-weight: 800; font-style: normal; line-height: 1.4; }
.theme-footer { margin-top: 16px; padding-top: 13px; border-top: 2px dashed #ded8c4; }
.theme-footer em { color: var(--muted); font-size: 11px; font-weight: 900; font-style: normal; }
.theme-footer b { color: var(--theme); font-size: 13px; }
.adult-note {
  display: flex;
  align-items: center;
  gap: 17px;
  margin: 28px auto 0;
  padding: 17px 23px;
  background: #eaf4e8;
  border: 2px solid #bed5bb;
  border-radius: 25px;
}
.adult-note > span { font-size: 31px; }
.adult-note p { margin: 0; }
.adult-note strong, .adult-note small { display: block; }
.adult-note small { margin-top: 4px; color: var(--muted); font-weight: 800; line-height: 1.4; }

.study-shell, .game-shell, .result-card {
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: 42px;
  box-shadow: var(--shadow);
}
.study-shell { padding: clamp(23px, 4vw, 44px); }
.study-heading, .game-heading { justify-content: space-between; gap: 24px; }
.study-heading h1, .game-heading h1 { margin-bottom: 7px; font-size: clamp(38px, 5vw, 55px); font-weight: 900; letter-spacing: -.045em; }
.study-heading p:not(.eyebrow), .game-heading p:not(.eyebrow) { margin: 0; color: var(--muted); font-weight: 800; }
.study-count, .round-badge {
  display: grid;
  flex: 0 0 auto;
  width: 82px;
  height: 82px;
  place-items: center;
  align-content: center;
  color: white;
  font-family: Georgia, serif;
  background: var(--theme);
  border: 6px solid color-mix(in srgb, var(--theme) 24%, white);
  border-radius: 50%;
}
.study-count b, .round-badge b { font-size: 28px; line-height: 1; }
.study-count small, .round-badge small { margin-top: 3px; font-size: 10px; font-weight: 900; }
.study-focus {
  display: grid;
  align-items: center;
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  gap: 15px;
  margin: 27px 0 13px;
}
.study-arrow {
  width: 56px;
  height: 56px;
  padding: 0;
  font-size: 25px;
  font-weight: 900;
  background: white;
  border: 3px solid var(--line);
  border-radius: 18px;
}
.study-arrow:disabled { opacity: .32; }
.focus-card {
  display: grid;
  min-height: 310px;
  align-items: center;
  grid-template-columns: minmax(220px, .9fr) minmax(220px, 1.1fr) auto;
  gap: 26px;
  padding: 25px 31px;
  background: color-mix(in srgb, var(--theme) 10%, white);
  border: 3px solid color-mix(in srgb, var(--theme) 38%, white);
  border-radius: 32px;
}
.focus-picture { width: 100%; height: 250px; padding: 8px; background: rgba(255, 255, 255, .72); border-radius: 24px; }
.focus-word p { margin-bottom: 4px; color: var(--theme); font-family: Georgia, serif; font-size: 11px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.focus-word h2 { margin: 0; font-size: clamp(45px, 6vw, 70px); letter-spacing: -.05em; line-height: 1; }
.focus-word span { display: block; margin-top: 10px; color: var(--muted); font-size: 18px; font-weight: 900; }
.listen-button {
  display: grid;
  min-width: 116px;
  min-height: 116px;
  place-items: center;
  align-content: center;
  gap: 4px;
  color: white;
  background: var(--theme);
  border: 0;
  border-radius: 27px;
  box-shadow: 0 8px 0 color-mix(in srgb, var(--theme) 68%, #345b55);
}
.listen-button span { font-size: 34px; }
.listen-button b { font-size: 12px; }
.voice-status { min-height: 21px; margin: 0 0 18px; color: var(--muted); font-size: 12px; font-weight: 900; text-align: center; }
.word-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
.word-strip > button {
  display: grid;
  min-width: 0;
  min-height: 136px;
  place-items: center;
  align-content: center;
  gap: 3px;
  padding: 8px;
  background: #f4f2e8;
  border: 3px solid transparent;
  border-radius: 19px;
}
.word-strip > button.active { background: white; border-color: var(--theme); }
.word-strip > button.learned:not(.active) { background: #e8f3e7; }
.strip-picture { width: 82px; height: 78px; }
.word-strip strong { overflow: hidden; max-width: 100%; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.word-strip small { overflow: hidden; max-width: 100%; color: var(--muted); font-size: 10px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.study-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 23px; }

.game-shell { padding: clamp(23px, 4vw, 43px); }
.progress-track { height: 12px; margin: 22px 0; overflow: hidden; background: #e8e6db; border-radius: 20px; }
.progress-track span { display: block; height: 100%; background: var(--theme); border-radius: inherit; transition: width .25s ease; }
.question-card {
  width: min(650px, 100%);
  margin: 0 auto 22px;
  padding: 20px 26px;
  text-align: center;
  background: color-mix(in srgb, var(--theme) 10%, white);
  border: 3px solid color-mix(in srgb, var(--theme) 36%, white);
  border-radius: 29px;
}
.question-label { color: var(--theme); font-family: Georgia, serif; font-size: 11px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.question-word { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 4px 0 3px; }
.question-word strong { font-size: clamp(48px, 7vw, 76px); letter-spacing: -.045em; line-height: 1; }
.question-word button {
  width: 54px;
  height: 54px;
  padding: 0;
  font-size: 24px;
  background: white;
  border: 3px solid color-mix(in srgb, var(--theme) 42%, white);
  border-radius: 17px;
}
.question-card > small { color: var(--muted); font-weight: 900; }
.picture-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.picture-option {
  position: relative;
  min-width: 0;
  min-height: 225px;
  padding: 13px;
  overflow: hidden;
  background: white;
  border: 3px solid #d9d5c2;
  border-radius: 27px;
  box-shadow: 0 8px 0 #d7d2be;
}
.picture-option:not(:disabled):hover { border-color: var(--theme); transform: translateY(-2px); }
.option-picture { width: 100%; height: 185px; }
.answer-mark {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  min-width: 37px;
  height: 37px;
  place-items: center;
  color: white;
  font-size: 20px;
  font-weight: 900;
  border-radius: 50%;
}
.picture-option.wrong { background: #fff0ed; border-color: #e59f96; box-shadow: 0 8px 0 #dfb2aa; }
.picture-option.wrong .answer-mark { background: var(--coral); }
.picture-option.hinted { background: #fff9dc; border-color: #e2c36b; box-shadow: 0 8px 0 #d7bf76; }
.picture-option.hinted .answer-mark { color: #715a1c; background: var(--gold); }
.picture-option.correct { padding-bottom: 65px; background: #eaf6eb; border-color: #77bd8e; box-shadow: 0 8px 0 #a7ceb0; }
.picture-option.correct .answer-mark { background: var(--green); }
.answer-name { position: absolute; right: 8px; bottom: 7px; left: 8px; padding: 7px; text-align: center; background: rgba(255, 255, 255, .94); border-radius: 14px; }
.answer-name strong, .answer-name small { display: block; }
.answer-name strong { font-size: 18px; }
.answer-name small { color: var(--muted); font-size: 11px; font-weight: 900; }
.game-tools { justify-content: space-between; gap: 15px; margin-top: 20px; }
.game-tools > span { color: var(--muted); font-size: 12px; font-weight: 900; }
.hint-button { min-height: 49px; padding: 0 16px; font-weight: 900; background: #fff1bc; border: 3px solid #dec56d; border-radius: 16px; }
.feedback-card { gap: 13px; min-height: 82px; margin-top: 15px; padding: 14px 16px; background: #f5f7f3; border: 2px solid #d8dfd7; border-radius: 21px; }
.feedback-card > span { display: grid; flex: 0 0 48px; height: 48px; place-items: center; font-size: 24px; font-weight: 900; background: white; border-radius: 14px; }
.feedback-card p { flex: 1; margin: 0; }
.feedback-card strong, .feedback-card small { display: block; }
.feedback-card small { margin-top: 4px; color: var(--muted); font-size: 13px; font-weight: 800; }
.feedback-card.wrong { background: #fff0ed; border-color: #e9aca3; }
.feedback-card.hint { background: #fff7dc; border-color: #e2c879; }
.feedback-card.success { background: #eaf7ed; border-color: #99cbaa; }

.result-card { max-width: 940px; margin: 20px auto; padding: clamp(31px, 5vw, 52px); text-align: center; }
.result-icon { display: grid; width: 92px; height: 92px; place-items: center; margin: 0 auto 17px; font-size: 47px; background: #fff1bd; border: 4px solid #dfc86f; border-radius: 29px; transform: rotate(-3deg); }
.result-card h1 { margin-bottom: 10px; font-size: clamp(43px, 6vw, 64px); letter-spacing: -.05em; }
.result-card > p:not(.eyebrow) { color: var(--muted); font-weight: 800; }
.result-words { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 25px 0; }
.result-words article {
  display: grid;
  min-width: 0;
  min-height: 190px;
  place-items: center;
  align-content: center;
  gap: 5px;
  padding: 10px;
  background: #f2f6ed;
  border: 2px solid #d3dfcb;
  border-radius: 20px;
}
.result-picture { width: 105px; height: 100px; }
.result-words strong, .result-words small { display: block; }
.result-words strong { overflow: hidden; max-width: 130px; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.result-words small { color: var(--muted); font-size: 10px; font-weight: 900; }
.result-words button { width: 44px; height: 44px; padding: 0; font-size: 19px; background: white; border: 2px solid var(--line); border-radius: 14px; }
.stars { margin: 17px 0; color: var(--gold); font-size: 42px; letter-spacing: 4px; text-shadow: 0 3px 0 #d4972b; }
.result-stats { display: flex; justify-content: center; gap: 10px; margin: 17px 0 25px; }
.result-stats span { min-width: 130px; padding: 12px 15px; background: #f3f2e9; border-radius: 16px; }
.result-stats strong, .result-stats small { display: block; }
.result-stats strong { font-family: Georgia, serif; font-size: 25px; }
.result-stats small { color: var(--muted); font-size: 11px; font-weight: 900; }
.result-actions { justify-content: center; gap: 12px; }
.fatal-card { display: grid; min-height: 430px; place-items: center; align-content: center; text-align: center; background: var(--paper); border: 3px solid var(--line); border-radius: 42px; }
.fatal-card > span { font-size: 60px; }
.fatal-card strong, .fatal-card small { display: block; }
.fatal-card small { margin-top: 6px; color: var(--muted); }

@media (max-width: 950px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-copy > p, .hero h1 { margin-right: auto; margin-left: auto; }
  .hero-facts { justify-content: center; }
  .hero-book { width: min(570px, 100%); margin: auto; }
  .themes-grid { grid-template-columns: 1fr; }
  .theme-card { min-height: 245px; display: grid; grid-template-columns: 72px 210px 1fr; grid-template-rows: 1fr auto; gap: 12px 18px; }
  .theme-top { align-self: start; flex-direction: column; }
  .theme-preview { height: 170px; grid-row: 1 / span 2; grid-column: 2; margin: 0; }
  .theme-copy { align-self: center; }
  .theme-footer { grid-column: 3; }
  .focus-card { grid-template-columns: 230px 1fr; }
  .listen-button { grid-column: 1 / -1; width: 100%; min-height: 64px; grid-auto-flow: column; justify-content: center; }
  .listen-button span { font-size: 26px; }
  .picture-options { grid-template-columns: repeat(2, 1fr); }
  .result-words { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  .app { width: auto; max-width: 1120px; margin-right: 10px; margin-left: 10px; padding-top: 11px; }
  .topbar { min-height: 53px; margin-bottom: 13px; }
  .brand { gap: 8px; }
  .brand-mark { width: 47px; height: 47px; font-size: 13px; border-radius: 15px; }
  .brand strong { font-size: 17px; }
  .brand small, .sound-button span:last-child, .top-spark { display: none; }
  .sound-button, .back-button { width: 47px; min-height: 47px; justify-content: center; padding: 0; }
  .hero { min-height: 0; gap: 28px; padding: 34px 20px; border-radius: 31px; }
  .hero h1 { font-size: 44px; }
  .hero-copy > p:not(.eyebrow) { font-size: 16px; }
  .hero-book { min-height: 330px; padding: 64px 12px 22px; border-width: 6px; border-radius: 29px; }
  .hello-bubble { top: 18px; right: 16px; font-size: 18px; }
  .hero-picture { width: 31%; height: 125px; padding: 3px; }
  .hero-picture:nth-child(2) { height: 108px; }
  .hero-picture:nth-child(3) { height: 120px; }
  .how-section, .themes-section { margin-top: 31px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  .section-heading > p { text-align: left; }
  .steps-grid { grid-template-columns: 1fr; }
  .theme-card { display: flex; min-height: 360px; }
  .theme-top { flex-direction: row; }
  .theme-preview { width: 100%; height: 145px; margin: 15px 0; }
  .theme-footer { width: 100%; }
  .adult-note { align-items: flex-start; }
  .study-shell, .game-shell { padding: 20px 13px; border-radius: 29px; }
  .study-heading, .game-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .study-count, .round-badge { width: 66px; height: 66px; align-self: flex-end; margin-top: -76px; }
  .study-focus { grid-template-columns: 46px minmax(0, 1fr) 46px; gap: 6px; }
  .study-arrow { width: 46px; height: 50px; border-radius: 15px; }
  .focus-card { min-height: 430px; grid-template-columns: 1fr; gap: 10px; padding: 18px; text-align: center; }
  .focus-picture { height: 215px; }
  .focus-word h2 { font-size: 48px; }
  .listen-button { min-height: 62px; }
  .word-strip { grid-template-columns: repeat(2, 1fr); }
  .word-strip > button { min-height: 125px; }
  .study-actions { flex-direction: column-reverse; }
  .study-actions button { width: 100%; }
  .question-card { padding: 18px 10px; }
  .question-word strong { overflow-wrap: anywhere; font-size: 48px; }
  .question-word button { flex: 0 0 50px; }
  .picture-options { grid-template-columns: 1fr; }
  .picture-option { min-height: 235px; }
  .option-picture { height: 205px; }
  .game-tools { align-items: stretch; flex-direction: column; }
  .game-tools > span { text-align: center; }
  .hint-button { width: 100%; }
  .feedback-card { align-items: flex-start; flex-wrap: wrap; }
  .feedback-card .primary-button { width: 100%; }
  .result-card { margin: 16px auto; padding: 30px 13px; border-radius: 30px; }
  .result-words { grid-template-columns: repeat(2, 1fr); }
  .result-stats { flex-direction: column; }
  .result-stats span { width: 100%; }
  .result-actions { flex-direction: column-reverse; }
  .result-actions button { width: 100%; }
}

@media (max-width: 390px) {
  .brand strong { font-size: 0; }
  .brand strong::after { font-size: 16px; content: "English words"; }
  .word-strip { grid-template-columns: 1fr 1fr; }
}

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

.listening-mark {
  background: linear-gradient(145deg, #6c78bb, #46579c);
  font-family: inherit;
  font-size: 23px;
}

.listening-hero {
  background:
    radial-gradient(circle at 91% 18%, rgba(111, 124, 190, .14) 0 118px, transparent 119px),
    linear-gradient(135deg, #fffef8, #f7f7ec);
}

.listening-book {
  display: flex;
  min-height: 430px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding-top: 38px;
  background:
    radial-gradient(circle at 50% 33%, rgba(107, 119, 187, .18), transparent 40%),
    #f3f5e9;
}

.sound-rings {
  position: absolute;
  top: 55px;
  left: 50%;
  width: 190px;
  height: 118px;
  transform: translateX(-50%);
  pointer-events: none;
}

.sound-rings i {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 3px solid rgba(75, 88, 153, .2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.sound-rings i:nth-child(1) { width: 78px; height: 78px; }
.sound-rings i:nth-child(2) { width: 124px; height: 104px; }
.sound-rings i:nth-child(3) { width: 176px; height: 128px; }

.demo-listen {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 225px;
  min-height: 112px;
  align-content: center;
  gap: 7px;
  padding: 16px 26px;
  border: 0;
  border-radius: 34px;
  background: #5263a8;
  box-shadow: 0 9px 0 #354481, 0 19px 34px rgba(52, 67, 126, .23);
  color: #fff;
}

.demo-listen:hover { transform: translateY(-2px); }
.demo-listen:active { transform: translateY(4px); box-shadow: 0 5px 0 #354481; }
.demo-listen span { font-size: 38px; }
.demo-listen strong { font-size: 15px; }

.listening-preview {
  width: 100%;
  margin-top: 47px;
}

.listening-preview .hero-picture {
  width: 29%;
  height: 124px;
}

.demo-status {
  min-height: 24px;
  margin: 18px 0 0;
  color: #52615d;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.audio-question {
  display: flex;
  min-height: 235px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 13px;
  background:
    radial-gradient(circle at 50% 38%, rgba(92, 108, 176, .14), transparent 45%),
    #f3f7f2;
}

.listen-title {
  color: #335551;
  font-size: clamp(24px, 3.5vw, 42px);
  text-align: center;
}

.big-listen-button {
  display: inline-grid;
  min-width: 255px;
  min-height: 86px;
  grid-auto-flow: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 15px 25px;
  border: 0;
  border-radius: 27px;
  background: #5263a8;
  box-shadow: 0 7px 0 #354481;
  color: #fff;
}

.big-listen-button:hover { transform: translateY(-2px); }
.big-listen-button:active { transform: translateY(4px); box-shadow: 0 3px 0 #354481; }
.big-listen-button span { font-size: 31px; }
.big-listen-button b { font-size: 16px; }

.revealed-word {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
}

.revealed-word strong {
  color: #2f5550;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1;
}

.revealed-word small {
  color: #74827c;
  font-size: 16px;
  font-weight: 800;
}

.audio-question .voice-status {
  margin: 0;
  text-align: center;
}

.listening-result .result-icon {
  background: #eef0ff;
  border-color: #b9c0e8;
}

@media (max-width: 700px) {
  .listening-book { min-height: 385px; padding-top: 25px; }
  .sound-rings { top: 38px; }
  .listening-preview { margin-top: 39px; }
  .listening-preview .hero-picture { height: 110px; }
  .audio-question { min-height: 235px; padding: 25px 12px; }
  .big-listen-button { width: 100%; min-width: 0; }
  .revealed-word { align-items: center; flex-direction: column; gap: 4px; }
}

@media (max-width: 390px) {
  .brand strong::after { content: "Listen game"; }
}
