:root {
  color-scheme:light;
  --ink:#294f4b;
  --muted:#6b817d;
  --paper:#fffdf7;
  --cream:#f8f7ee;
  --line:#ddd5b9;
  --green:#56a77b;
  --green-dark:#347e61;
  --yellow:#f3be4d;
  --coral:#ec776c;
  --blue:#5c9fca;
  --purple:#8a72bc;
  --shadow:0 18px 42px rgba(43, 72, 65, .11);
}

* { box-sizing:border-box; }
html { scroll-behavior:smooth; }

body {
  margin:0;
  min-width:320px;
  min-height:100vh;
  overflow-x:hidden;
  color:var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(243,190,77,.18) 0 115px, transparent 116px),
    radial-gradient(circle at 94% 16%, rgba(92,159,202,.12) 0 150px, transparent 151px),
    radial-gradient(circle at 82% 87%, rgba(86,167,123,.12) 0 185px, transparent 186px),
    linear-gradient(90deg, rgba(41,79,75,.045) 1px, transparent 1px),
    linear-gradient(rgba(41,79,75,.045) 1px, transparent 1px),
    #f8f8f1;
  background-size:auto, auto, auto, 30px 30px, 30px 30px, auto;
  font-family:"Trebuchet MS", "Segoe UI", Arial, sans-serif;
}

button { font:inherit; }
button:focus-visible { outline:4px solid rgba(243,190,77,.78); outline-offset:4px; }

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

.loading-card {
  width:min(430px, 100%);
  margin:25vh auto 0;
  padding:38px;
  border:2px solid var(--line);
  border-radius:32px;
  background:var(--paper);
  box-shadow:var(--shadow);
  text-align:center;
  font-size:19px;
  font-weight:900;
}
.loading-card span { font-size:48px; }

.topbar {
  min-height:62px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:22px;
}

.brand,
.top-button,
.back-button,
.secondary-button,
.hint-button {
  border:0;
  color:var(--ink);
  cursor:pointer;
}

.brand {
  display:flex;
  align-items:center;
  gap:11px;
  padding:0;
  background:transparent;
  text-align:left;
}

.brand-mark {
  position:relative;
  display:block;
  width:55px;
  height:52px;
  border:2px solid #d7cc9f;
  border-radius:15px;
  background:#fffdf7;
  box-shadow:0 6px 14px rgba(54,75,64,.08);
}
.brand-mark i { position:absolute; left:9px; top:9px; width:26px; height:32px; border-radius:4px 9px 9px 4px; background:#e3f2e9; transform:rotate(-4deg); }
.brand-mark b { position:absolute; left:15px; top:15px; z-index:2; color:#438b69; font-family:Georgia,serif; font-size:18px; }
.brand-mark em { position:absolute; right:-8px; bottom:6px; padding:2px 5px; border-radius:5px; color:#fff; background:var(--coral); font-size:8px; font-style:normal; font-weight:900; transform:rotate(-5deg); }
.brand strong,
.brand small,
.top-button b,
.top-button small { display:block; }
.brand strong { font-size:21px; line-height:1.12; }
.brand small { margin-top:3px; color:var(--muted); font-size:11px; }

.top-actions { display:flex; gap:10px; }
.top-button {
  display:flex;
  align-items:center;
  gap:8px;
  min-height:48px;
  padding:8px 14px;
  border:2px solid #ddd3ad;
  border-radius:16px;
  background:rgba(255,253,247,.95);
  box-shadow:0 5px 14px rgba(49,77,67,.06);
  text-align:left;
}
.top-button:hover { transform:translateY(-1px); box-shadow:0 8px 18px rgba(49,77,67,.11); }
.top-button b { font-size:12px; }
.top-button small { margin-top:2px; color:var(--muted); font-size:10px; }

.eyebrow {
  display:block;
  margin:0 0 9px;
  color:#438b6d;
  font-family:Georgia,serif;
  font-size:12px;
  font-weight:900;
  letter-spacing:.16em;
  line-height:1.35;
  text-transform:uppercase;
}

.hero {
  position:relative;
  isolation:isolate;
  display:grid;
  grid-template-columns:1.08fr .92fr;
  align-items:center;
  min-height:430px;
  overflow:hidden;
  padding:48px 44px;
  border:2px solid #d9cfaa;
  border-radius:38px;
  background:
    linear-gradient(128deg, rgba(234,250,241,.95), rgba(255,250,236,.96) 55%, rgba(240,239,255,.94));
  box-shadow:var(--shadow);
}
.hero::before { content:""; position:absolute; z-index:-1; right:-70px; top:-95px; width:300px; height:300px; border:45px solid rgba(92,159,202,.12); border-radius:50%; }
.hero::after { content:""; position:absolute; z-index:-1; left:48%; bottom:-110px; width:220px; height:220px; border-radius:50%; background:rgba(243,190,77,.1); }

.hero h1,
.section-heading h2,
.result-card h1,
.library-hero h1 {
  margin:0;
  color:var(--ink);
  font-family:"Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  letter-spacing:-.045em;
}
.hero h1 { max-width:600px; font-size:clamp(43px,5vw,64px); line-height:1.01; }
.hero-copy > p { max-width:565px; margin:21px 0 27px; color:var(--muted); font-size:17px; font-weight:700; line-height:1.55; }

.primary-button,
.secondary-button,
.hint-button {
  min-height:49px;
  padding:12px 19px;
  border-radius:15px;
  font-weight:900;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.primary-button { border:0; color:#fff; background:var(--green-dark); box-shadow:0 9px 20px rgba(52,126,97,.25); cursor:pointer; }
.primary-button:hover { transform:translateY(-2px); box-shadow:0 12px 25px rgba(52,126,97,.3); }
.secondary-button,
.hint-button { border:2px solid #d9cfaa; background:var(--paper); }
.secondary-button:hover,
.hint-button:hover:not(:disabled) { transform:translateY(-2px); background:#fff8e6; }
.hint-button:disabled { cursor:default; opacity:.72; }

.hero-scene {
  position:relative;
  justify-self:end;
  width:min(100%, 410px);
  height:300px;
}
.hero-sheet { position:absolute; width:330px; min-height:190px; padding:22px; border:3px solid; border-radius:24px; box-shadow:0 18px 30px rgba(45,64,62,.14); }
.hero-sheet--back { right:35px; top:13px; border-color:#a9cce0; background:#deeff8; transform:rotate(8deg); }
.hero-sheet--middle { right:57px; top:45px; border-color:#e5bf65; background:#fff0b8; transform:rotate(-6deg); }
.hero-sheet--front { right:14px; top:70px; border-color:#a4ceb6; background:#fffdf7; transform:rotate(1.5deg); }
.hero-sheet--back > span,
.hero-sheet--middle > span { color:rgba(41,79,75,.36); font-family:Georgia,serif; font-size:15px; }
.hero-sheet__label { color:#438b6d; font-family:Georgia,serif; font-size:10px; font-weight:900; letter-spacing:.15em; }
.hero-sheet--front p { margin:14px 0 18px; font-family:Georgia,serif; font-size:23px; font-weight:800; line-height:1.35; }
.hero-sheet mark { padding:2px 5px; background:#ffe07a; color:inherit; box-decoration-break:clone; -webkit-box-decoration-break:clone; }
.hero-sheet--front div { display:flex; flex-wrap:wrap; gap:7px; }
.hero-sheet--front i,
.hero-sheet--front b { padding:7px 9px; border-radius:9px; font-size:10px; font-style:normal; }
.hero-sheet--front i { color:#79908a; background:#edf0ed; }
.hero-sheet--front b { color:#fff; background:var(--green); }

.section { margin-top:48px; }
.section-heading { margin-bottom:18px; }
.section-heading--split { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; }
.section-heading h2 { font-size:clamp(34px,4vw,48px); line-height:1; }
.section-heading > p { max-width:365px; margin:0 0 5px; color:var(--muted); font-size:13px; font-weight:800; line-height:1.5; text-align:right; }

.steps { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.steps article { display:grid; grid-template-columns:60px 1fr; align-items:center; min-height:120px; padding:18px; border:2px solid #e1dcc8; border-radius:24px; background:rgba(255,253,247,.95); }
.steps article > span,
.shelf-number,
.answer-button > span { display:grid; place-items:center; border-radius:50%; font-family:Georgia,serif; font-weight:900; line-height:1; }
.steps article > span { width:48px; height:48px; color:#fff; background:var(--green); box-shadow:0 0 0 7px #e3f4ea; font-size:24px; transform:translateY(-1px); }
.steps article:nth-child(2) > span { background:#e7ae39; box-shadow:0 0 0 7px #fff0c8; }
.steps article:nth-child(3) > span { background:var(--purple); box-shadow:0 0 0 7px #ece6fa; }
.steps strong { display:block; font-size:17px; }
.steps p { margin:5px 0 0; color:var(--muted); font-size:12px; font-weight:700; line-height:1.45; }

.levels-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.level-card {
  position:relative;
  display:flex;
  flex-direction:column;
  min-height:370px;
  padding:24px;
  overflow:hidden;
  border:3px solid color-mix(in srgb,var(--accent) 54%,white);
  border-radius:30px;
  color:var(--ink);
  background:color-mix(in srgb,var(--accent) 14%,#fffdf7);
  box-shadow:0 13px 28px rgba(49,77,67,.08);
  text-align:left;
  cursor:pointer;
  transition:transform .2s ease,box-shadow .2s ease;
}
.level-card::after { content:""; position:absolute; right:-40px; top:-45px; width:155px; height:155px; border:24px solid color-mix(in srgb,var(--accent) 17%,transparent); border-radius:50%; }
.level-card:hover { transform:translateY(-5px); box-shadow:0 18px 36px rgba(49,77,67,.14); }
.level-card__top { display:flex; align-items:center; justify-content:space-between; }
.level-icon { display:grid; place-items:center; width:63px; height:63px; border-radius:19px; background:rgba(255,255,255,.78); font-size:32px; }
.age-pill { display:inline-flex; align-items:center; min-height:31px; padding:5px 11px; border-radius:999px; color:color-mix(in srgb,var(--accent,var(--green)) 75%,#244f49); background:rgba(255,255,255,.84); font-size:12px; font-weight:900; }
.level-card .eyebrow { margin:23px 0 6px; color:var(--accent); }
.level-card > strong { font-size:27px; letter-spacing:-.025em; }
.level-description { margin-top:9px; color:var(--muted); font-size:14px; font-weight:700; line-height:1.48; }
.level-mini-demo { display:flex; align-items:center; gap:6px; margin:18px 0; }
.level-mini-demo i,
.level-mini-demo b { padding:7px 8px; border-radius:8px; font-size:9px; font-style:normal; }
.level-mini-demo i { color:var(--muted); background:rgba(255,255,255,.65); }
.level-mini-demo b { color:#fff; background:var(--accent); }
.level-card__foot { display:grid; grid-template-columns:auto 1fr; align-items:center; gap:6px 12px; margin-top:auto; padding-top:15px; border-top:1px solid color-mix(in srgb,var(--accent) 27%,transparent); color:var(--muted); font-size:11px; }
.level-card__foot b { color:var(--ink); }
.level-card__foot .stars { justify-self:end; }
.level-card__foot em { grid-column:1/-1; color:var(--accent); font-size:14px; font-style:normal; font-weight:900; }
.stars { color:#d59c27; font-size:16px; letter-spacing:.05em; }

.library-preview { padding:30px; border:2px solid #e1dcc8; border-radius:32px; background:rgba(255,255,255,.46); }
.library-preview__grid { display:grid; grid-template-columns:repeat(6,1fr); gap:10px; }
.shelf-card { position:relative; min-width:0; min-height:245px; padding:12px; border:2px solid #ddd9ca; border-radius:21px; background:rgba(255,253,247,.96); box-shadow:0 8px 18px rgba(49,77,67,.06); text-align:center; }
.shelf-card.is-opened { border-color:color-mix(in srgb,var(--accent) 55%,white); }
.shelf-number { position:absolute; z-index:2; left:9px; top:9px; width:28px; height:28px; border:2px solid #ddd7c2; background:#fff; color:#766f67; font-size:12px; transform:translateY(-1px); }
.book-cover { position:relative; display:grid; place-items:center; height:118px; margin-bottom:11px; overflow:hidden; border-radius:13px 21px 21px 13px; background:linear-gradient(145deg,color-mix(in srgb,var(--accent) 17%,#fff),#eef0ee); box-shadow:inset 7px 0 rgba(41,79,75,.06); }
.book-cover::after { content:""; position:absolute; right:8px; top:10px; bottom:10px; width:4px; border-radius:99px; background:rgba(255,255,255,.5); }
.book-cover span { font-size:44px; filter:grayscale(1); opacity:.3; }
.shelf-card.is-opened .book-cover span { filter:none; opacity:1; }
.shelf-card strong { display:-webkit-box; overflow:hidden; font-size:12px; line-height:1.3; -webkit-line-clamp:3; -webkit-box-orient:vertical; }
.shelf-card small { display:block; margin-top:7px; color:var(--accent); font-size:9px; font-weight:900; }
.shelf-card--compact { min-height:205px; padding:9px; }
.shelf-card--compact .book-cover { height:90px; }
.shelf-card--compact .book-cover span { font-size:36px; }

.adult-note { display:flex; align-items:center; gap:14px; margin-top:26px; padding:18px 22px; border:2px solid #dcd6bf; border-radius:22px; background:rgba(255,250,232,.88); }
.adult-note > span { font-size:30px; }
.adult-note b { font-size:14px; }
.adult-note p { margin:3px 0 0; color:var(--muted); font-size:12px; font-weight:700; }

.game-toolbar { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:18px; margin-bottom:12px; }
.back-button { justify-self:start; padding:10px 0; background:transparent; color:var(--muted); font-size:12px; font-weight:900; }
.back-button:hover { color:var(--ink); }
.game-toolbar > div { text-align:center; }
.game-toolbar > div span { display:block; font-size:13px; font-weight:800; }
.game-toolbar > div strong { display:block; margin-top:2px; color:var(--accent); font-size:11px; }
.game-toolbar > .age-pill { justify-self:end; --accent:var(--green); border:2px solid #e0dcc9; }
.progress-track { height:9px; overflow:hidden; margin-bottom:18px; border-radius:999px; background:#e9e7dc; }
.progress-track span { display:block; height:100%; border-radius:inherit; background:var(--accent); transition:width .3s ease; }

.game-layout { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(420px,.95fr); gap:20px; align-items:stretch; }
.reading-card,
.choice-card { min-width:0; min-height:640px; border:2px solid #ded8bc; border-radius:32px; box-shadow:var(--shadow); }
.reading-card {
  position:relative;
  overflow:hidden;
  padding:35px 40px 66px;
  background:
    linear-gradient(90deg,transparent 37px,rgba(236,119,108,.16) 38px,rgba(236,119,108,.16) 39px,transparent 40px),
    repeating-linear-gradient(#fffdf7 0 38px,#dfece6 39px,#fffdf7 40px);
}
.reading-card::after { content:""; position:absolute; right:30px; top:27px; width:72px; height:23px; background:rgba(243,190,77,.34); transform:rotate(2deg); }
.reading-card__top { position:relative; z-index:1; display:flex; align-items:center; justify-content:space-between; gap:15px; min-height:60px; padding-bottom:18px; }
.text-number { padding:8px 11px; border-radius:9px; color:#fff; background:var(--accent); font-family:Georgia,serif; font-size:11px; font-weight:900; letter-spacing:.12em; }
.story-setting { padding:7px 10px; border-radius:999px; background:rgba(255,255,255,.8); color:var(--muted); font-size:12px; font-weight:900; }
.reading-text { position:relative; z-index:1; padding:17px 4px 0 15px; }
.reading-text p { margin:0 0 22px; font-family:Georgia,"Times New Roman",serif; font-size:20px; font-weight:600; line-height:1.75; }
.sentence { padding:3px 2px; border-radius:7px; box-decoration-break:clone; -webkit-box-decoration-break:clone; }
.sentence.is-clue { background:#ffe07a; box-shadow:0 0 0 4px rgba(255,224,122,.3); }
.reading-note { position:absolute; left:56px; right:36px; bottom:25px; padding-top:12px; border-top:2px dashed #d7d4c7; color:#7c8e87; font-size:11px; font-weight:900; }

.choice-card { display:flex; flex-direction:column; padding:32px; background:linear-gradient(155deg,#fffdf8 40%,color-mix(in srgb,var(--accent) 8%,#fffdf8)); }
.choice-card .eyebrow { color:var(--accent); }
.choice-card h1 { margin:0 0 16px; font-family:Georgia,"Times New Roman",serif; font-size:clamp(23px,2.7vw,31px); line-height:1.25; letter-spacing:-.02em; }
.answers { display:grid; gap:9px; }
.answer-button { display:grid; grid-template-columns:38px 1fr 24px; align-items:center; gap:10px; min-height:65px; padding:10px 13px; border:2px solid #dcd7c8; border-radius:17px; color:var(--ink); background:#fff; text-align:left; cursor:pointer; transition:transform .16s ease,border .16s ease,box-shadow .16s ease,opacity .16s ease; }
.answer-button > span { width:32px; height:32px; color:var(--accent); background:color-mix(in srgb,var(--accent) 13%,white); font-size:14px; transform:translateY(-1px); }
.answer-button strong { font-size:13px; line-height:1.35; }
.answer-button > i { color:var(--accent); font-style:normal; font-weight:900; text-align:center; }
.answer-button:hover:not(:disabled) { transform:translateY(-2px); border-color:var(--accent); box-shadow:0 7px 15px rgba(49,77,67,.09); }
.answer-button:disabled { cursor:default; }
.answer-button.is-wrong { opacity:.36; border-color:#e4aaa4; background:#f6efed; }
.answer-button.is-correct { border-color:#62b486; background:#eefbf3; box-shadow:0 0 0 4px rgba(98,180,134,.15); }
.answer-button.is-correct > span { color:#fff; background:#56a77b; }
.answer-button.is-correct > i { color:#3d8d69; }

.feedback { display:grid; grid-template-columns:32px 1fr; align-items:center; min-height:72px; margin-top:14px; padding:11px 14px; border:2px solid; border-radius:17px; }
.feedback > span { font-size:21px; }
.feedback p { margin:0; font-size:11px; font-weight:800; line-height:1.45; }
.feedback--neutral { border-color:#e2dece; background:#faf9f3; color:var(--muted); }
.feedback--wrong { border-color:#f1b2aa; background:#fff0ed; color:#98514a; }
.feedback--hint { border-color:#e8c768; background:#fff8dc; color:#85671d; }
.feedback--success { border-color:#92cbaa; background:#ecfbf2; color:#347858; }
.game-actions { display:flex; align-items:center; gap:9px; margin-top:auto; padding-top:14px; }
.game-actions > * { flex:1 1 0; }
.keyboard-note { margin:12px 0 0; color:#87938f; font-size:10px; font-weight:700; text-align:center; }
kbd { display:inline-grid; place-items:center; min-width:20px; height:20px; border:1px solid #d4cfbd; border-radius:5px; background:#fff; box-shadow:0 2px 0 #d4cfbd; font-family:inherit; font-size:10px; }

.result-card {
  position:relative;
  width:min(760px,100%);
  margin:68px auto 0;
  padding:54px 50px;
  overflow:hidden;
  border:3px solid color-mix(in srgb,var(--accent) 48%,white);
  border-radius:38px;
  background:linear-gradient(145deg,#fffdf7,color-mix(in srgb,var(--accent) 12%,white));
  box-shadow:var(--shadow);
  text-align:center;
}
.result-card::before,
.result-card::after { content:""; position:absolute; width:150px; height:150px; border:25px solid color-mix(in srgb,var(--accent) 16%,transparent); border-radius:50%; }
.result-card::before { left:-75px; top:-75px; }
.result-card::after { right:-75px; bottom:-75px; }
.result-icon { display:grid; place-items:center; width:96px; height:96px; margin:0 auto 23px; border-radius:28px; background:#fff; box-shadow:0 12px 27px rgba(49,77,67,.12); font-size:50px; transform:rotate(-3deg); }
.result-card .eyebrow { color:var(--accent); }
.result-card h1 { font-size:clamp(38px,6vw,57px); }
.result-card > p { max-width:570px; margin:17px auto 0; color:var(--muted); font-size:16px; font-weight:700; line-height:1.55; }
.result-stars { margin:24px 0; color:#dfa835; font-size:47px; letter-spacing:.12em; }
.result-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:28px; }
.result-stats div { padding:15px; border:2px solid rgba(218,211,187,.82); border-radius:18px; background:rgba(255,255,255,.66); }
.result-stats strong,
.result-stats span { display:block; }
.result-stats strong { font-size:26px; }
.result-stats span { margin-top:3px; color:var(--muted); font-size:10px; font-weight:800; }
.result-actions { position:relative; z-index:1; display:flex; flex-wrap:wrap; justify-content:center; gap:9px; }

.library-hero { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:26px; margin-bottom:30px; padding:30px 34px; border:2px solid #dcd5b8; border-radius:30px; background:linear-gradient(120deg,#f0fff6,#fff9ed 55%,#f4efff); box-shadow:var(--shadow); }
.library-hero .back-button { align-self:start; }
.library-hero .eyebrow { margin-bottom:5px; }
.library-hero h1 { font-size:clamp(35px,5vw,52px); }
.library-hero p { margin:10px 0 0; color:var(--muted); font-size:13px; font-weight:700; line-height:1.5; }
.library-meter { display:grid; place-items:center; width:100px; height:100px; border-radius:50%; background:conic-gradient(var(--green) var(--progress),#e4e1d5 0); }
.library-meter span { display:grid; place-items:center; width:75px; height:75px; border-radius:50%; background:#fffdf7; font-size:18px; font-weight:900; }
.library-group { margin-top:28px; }
.library-group__heading { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; padding:0 5px; }
.library-group__heading > div { display:flex; align-items:center; gap:9px; }
.library-group__heading span { font-size:26px; }
.library-group__heading h2 { margin:0; font-size:28px; letter-spacing:-.03em; }
.library-group__heading strong { padding:7px 11px; border-radius:999px; color:var(--accent); background:color-mix(in srgb,var(--accent) 12%,white); font-size:12px; }
.shelf-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:12px; }
.shelf-grid .shelf-card { min-height:280px; }
.shelf-grid .book-cover { height:135px; }

@media (max-width:900px) {
  .hero { grid-template-columns:1fr; gap:25px; padding:40px; }
  .hero-scene { justify-self:center; }
  .steps,
  .levels-grid { grid-template-columns:1fr; }
  .level-card { min-height:300px; }
  .library-preview__grid { grid-template-columns:repeat(3,1fr); }
  .game-layout { grid-template-columns:1fr; }
  .reading-card,
  .choice-card { min-height:auto; }
  .choice-card { min-height:590px; }
  .shelf-grid { grid-template-columns:repeat(3,1fr); }
}

@media (max-width:650px) {
  .app { width:min(100% - 20px,1120px); padding-top:10px; }
  .topbar { align-items:flex-start; }
  .brand-mark { width:46px; height:44px; }
  .brand-mark i { width:23px; height:27px; top:7px; }
  .brand-mark b { left:14px; top:13px; font-size:15px; }
  .brand strong { font-size:16px; }
  .brand small { display:none; }
  .top-actions { gap:6px; }
  .top-button { min-width:44px; min-height:44px; justify-content:center; padding:7px; }
  .top-button > span:last-child { display:none; }
  .hero { min-height:0; padding:34px 22px; border-radius:28px; }
  .hero h1 { font-size:38px; }
  .hero-copy > p { font-size:15px; }
  .hero-scene { width:100%; height:278px; transform:scale(.92); transform-origin:center; }
  .hero-sheet { width:min(330px,92vw); }
  .section { margin-top:38px; }
  .section-heading--split { align-items:flex-start; flex-direction:column; gap:10px; }
  .section-heading h2 { font-size:35px; }
  .section-heading > p { text-align:left; }
  .steps article { grid-template-columns:54px 1fr; }
  .level-card { min-height:340px; padding:21px; }
  .library-preview { padding:20px 14px; }
  .library-preview__grid { grid-template-columns:repeat(2,1fr); }
  .adult-note { align-items:flex-start; }
  .game-toolbar { grid-template-columns:auto 1fr auto; gap:8px; }
  .game-toolbar .back-button { width:34px; overflow:hidden; font-size:0; white-space:nowrap; }
  .game-toolbar .back-button::after { content:"←"; font-size:20px; }
  .game-toolbar > .age-pill { padding:4px 8px; font-size:10px; }
  .reading-card { padding:25px 20px 65px 27px; border-radius:25px; }
  .reading-card__top { align-items:flex-start; flex-direction:column; gap:7px; }
  .reading-card::after { right:15px; top:20px; width:58px; }
  .reading-text { padding-left:9px; }
  .reading-text p { font-size:18px; line-height:1.72; }
  .reading-note { left:37px; right:22px; }
  .choice-card { min-height:0; padding:25px 18px; border-radius:25px; }
  .choice-card h1 { font-size:25px; }
  .answer-button { min-height:70px; grid-template-columns:37px 1fr 20px; padding:10px; }
  .answer-button strong { font-size:12px; }
  .game-actions { align-items:stretch; flex-direction:column; }
  .keyboard-note { display:none; }
  .result-card { margin-top:30px; padding:40px 20px; border-radius:30px; }
  .result-stars { font-size:38px; }
  .result-stats { grid-template-columns:1fr; }
  .result-actions { flex-direction:column; }
  .library-hero { grid-template-columns:1fr auto; gap:16px; padding:24px 20px; }
  .library-hero .back-button { grid-column:1/-1; }
  .library-meter { width:76px; height:76px; }
  .library-meter span { width:57px; height:57px; font-size:14px; }
  .shelf-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .shelf-grid .shelf-card { min-height:255px; }
  .shelf-grid .book-cover { height:112px; }
}

@media (max-width:380px) {
  .hero h1 { font-size:34px; }
  .library-preview__grid,
  .shelf-grid { grid-template-columns:1fr; }
}

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