﻿:root {
  color-scheme: light;
  --paper: #fff9ed;
  --white: #fffdf7;
  --ink: #243f32;
  --muted: #536558;
  --forest: #214c3d;
  --dark: #143b30;
  --line: #e6ddc8;
  --lemon: #ffdc72;
  --font: "Trebuchet MS", system-ui, sans-serif;
  --display: Georgia, "Times New Roman", serif;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #a74322; outline-offset: 4px; }
.hero :focus-visible, .board :focus-visible { outline-color: #ffedaa; }
.skip { position: fixed; left: 12px; top: 12px; z-index: 5; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); background: white; }
.skip:focus { width: auto; height: auto; padding: 14px; clip-path: none; }
.shell { width: min(1144px, calc(100% - 64px)); margin-inline: auto; }
.top { border-bottom: 1px solid var(--line); background: #fffaf0; }
.bar { min-height: 78px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 26px; align-items: center; }
.brand { display: inline-flex; justify-self: start; gap: 12px; align-items: center; white-space: nowrap; font: bold 26px/1 var(--display); letter-spacing: -.04em; text-decoration: none; }
.brand img { border-radius: 50%; border: 2px solid #dfcb9c; }
.nav { display: flex; align-items: center; gap: 10px; }
.nav a { color: var(--muted); min-height: 44px; display: inline-grid; place-items: center; text-decoration: none; padding: 8px 15px; border-radius: 10px; font-size: .94rem; font-weight: bold; }
.nav a[aria-current], .nav a:hover { color: var(--forest); background: #e7efdc; }
.languages { justify-self: end; display: flex; border: 1px solid var(--line); padding: 3px; border-radius: 999px; background: var(--white); }
.languages button { border: 0; background: none; min-width: 43px; min-height: 39px; border-radius: 999px; font-size: .82rem; font-weight: bold; }
.languages button[aria-pressed="true"] { color: white; background: var(--forest); }
h1,h2,h3,p { margin: 0; }
h1,h2 { font-family: var(--display); letter-spacing: -.045em; }
h1 { font-size: clamp(2.5rem, 5.3vw, 4.8rem); line-height: 1.01; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.8rem); line-height: 1.13; }
p { line-height: 1.55; }
.hero { display: grid; grid-template-columns: .91fr 1.09fr; margin-top: 32px; border-radius: 26px; overflow: hidden; color: #fffbee; background: var(--forest); min-height: 397px; box-shadow: 0 5px 0 #dcdcbf; }
.hero-copy { position: relative; z-index: 1; padding: clamp(30px, 4.6vw, 64px); align-self: center; }
.kicker { text-transform: uppercase; font-size: .77rem; letter-spacing: .16em; font-weight: bold; margin-bottom: 15px; color: #43634f; }
.hero .kicker { color: #f9db83; }
.hero h1 em { color: var(--lemon); font-weight: inherit; }
.hero p:not(.kicker) { color: #e7eee1; margin: 20px 0 25px; font-size: 1.06rem; max-width: 27ch; }
.hero-art { position: relative; overflow: hidden; min-height: 100%; display: block; border: 0; padding: 0; background: #486c3c; text-align: left; }
.hero-art img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; object-position: 72% 45%; transform: scale(1.025); }
.hero-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #214c3d80, transparent 17%); pointer-events: none; }
.hero-art[aria-pressed="true"] img { animation: greet 680ms ease both; }
.speech { position: absolute; top: 18px; left: 20px; z-index: 1; color: var(--ink); background: var(--white); border-radius: 13px 13px 13px 2px; padding: 10px 14px; max-width: min(42%, 190px); font-weight: bold; box-shadow: 0 4px 0 #213c2c42; }
@keyframes greet { 30% { transform: scale(1.075) rotate(-1deg); } 70% { transform: scale(1.03) rotate(.7deg); } }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 11px; min-height: 49px; padding: 10px 18px; border-radius: 12px; border: 1px solid transparent; background: var(--forest); color: white; font-weight: bold; font-size: 1rem; text-decoration: none; }
.btn:hover { background: var(--dark); }
.btn:active { translate: 0 2px; }
.btn.gold { background: var(--lemon); color: #263f2e; box-shadow: 0 4px 0 #b78138; }
.btn.gold:hover { background: #ffe897; }
.btn.secondary { background: transparent; border-color: #c9cdb9; color: var(--ink); }
.btn.secondary:hover { background: #f0f1e3; }
.btn:disabled { opacity: .54; }
.section { margin-top: 43px; }
.section h2 + p { margin-top: 6px; color: var(--muted); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 19px; }
.stars { color: #684403; font-weight: bold; white-space: nowrap; }
.stars span { color: #a06008; margin-right: 4px; }
.destinations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.destination { min-width: 0; display: grid; grid-template-columns: auto 1fr auto; gap: 13px; align-items: center; min-height: 106px; padding: 15px; background: var(--white); border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 15px; text-decoration: none; transition: translate 160ms, border-color 160ms; }
.destination:hover { translate: 0 -3px; border-color: #7f9a71; }
.destination h3 { font-size: 1rem; line-height: 1.19; }
.destination p { margin-top: 5px; font-size: .89rem; line-height: 1.3; color: var(--muted); }
.tile { width: 52px; height: 55px; display: grid; place-items: center; border-radius: 11px; font: bold 2rem/1 var(--display); }
.mint { background: #e3eed7; color: #23523a; }
.peach { background: #ffdfc5; color: #84402c; }
.lilac { background: #eee0f5; color: #634278; }
.lemon { background: #f9ecc1; color: #694711; }
.sky { background: #e0ecf7; color: #2e5276; }
.rose { background: #f5e0e5; color: #803b56; }
.arrow { font-size: 1.22em; }
.footer { margin-top: 48px; border-top: 1px solid var(--line); color: var(--muted); min-height: 70px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .88rem; padding-block: 12px; }
.footer button { border: 0; background: none; text-decoration: underline; min-height: 44px; }
.page { max-width: 900px; margin: 29px auto 0; }
.page.narrow { max-width: 720px; }
.back { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: var(--forest); font-weight: bold; text-decoration: none; margin-bottom: 14px; }
.page h1 { font-size: clamp(2.2rem, 6vw, 3.55rem); margin-bottom: 11px; }
.lead { color: var(--muted); max-width: 61ch; }
.tabs { display: flex; gap: 9px; margin-block: 21px 15px; flex-wrap: wrap; }
.tabs .btn[aria-pressed="true"] { background: #e1eed8; border-color: #80a17d; color: var(--forest); }
.book { background: var(--white); border: 1px solid var(--line); border-radius: 19px; padding: clamp(16px, 3.5vw, 30px); box-shadow: 0 4px 0 #e9e1c8; }
.book h2 { margin-bottom: 10px; }
.book > p + p { margin-top: 8px; }
.lesson-grid { display: grid; grid-template-columns: 1fr; gap: 15px; margin-block: 16px; }
.guide { background: #f4efdf; border: 1px solid var(--line); display: flex; align-items: center; gap: 15px; border-radius: 13px; padding: 10px 15px; }
.guide p { flex: 1; }
.guide img { width: 82px; height: 82px; object-fit: contain; animation: capy-in 380ms ease both; }
@keyframes capy-in { from { opacity: .4; transform: translateY(5px) scale(.93); } to { opacity: 1; transform: none; } }
.read-button { min-width: 44px; min-height: 44px; border-radius: 10px; border: 1px solid #d8d1b9; background: var(--white); font-weight: bold; }
.board { min-height: 120px; border-radius: 13px; background: var(--forest); color: #fff9e2; display: grid; place-items: center; padding: 18px 12px; text-align: center; }
.equation { font: bold clamp(1.28rem, 5.7vw, 2.7rem)/1.22 var(--font); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stack { display: grid; justify-items: end; text-align: right; white-space: pre; font: bold clamp(1.5rem, 6vw, 2.3rem)/1.22 ui-monospace, monospace; }
.stack span { min-width: 6ch; }
.stack .barline { border-bottom: 2px solid #d1e5d0; padding-bottom: 3px; }
.stack .first { color: #ffe096; }
.stack .second { color: #a8e5fa; }
.actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 15px; }
.actions.start { justify-content: flex-start; }
.step-count { font-weight: bold; font-size: .86rem; color: var(--muted); }
.trail { display: flex; gap: 7px; margin-bottom: 8px; }
.trail i { width: 31px; height: 6px; border-radius: 10px; background: #e2e6d8; }
.trail i.active { background: #508264; }
.tablet { display: grid; gap: 5px; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); width: min(100%, calc(var(--cols) * 77px)); margin: 5px auto; }
.part { aspect-ratio: 1; min-width: 0; border: 2px solid #a6bba2; background: #345d4c; border-radius: 7px; display: grid; place-items: center; font-size: 1.42em; font-weight: bold; }
button.part { min-height: 44px; }
.part.selected { border-color: #ffdfa1; background: #e9af54; color: #422e18; }
.baskets { width: min(100%, 460px); display: grid; gap: 12px; }
.basket-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.basket { display: grid; gap: 4px; min-height: 65px; place-content: center; border: 2px solid #9dba9f; border-radius: 6px 6px 17px 17px; }
.fruits { color: #ffe68a; letter-spacing: 4px; min-height: 1em; }
.feedback { min-height: 20px; }
.feedback p { border-left: 4px solid #c38c43; padding: 9px 12px; border-radius: 0 7px 7px 0; background: #fff2d7; margin-top: 12px; }
.feedback p.good { border-color: #4f8152; background: #e6f1e0; }
.practice-form .fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; margin-top: 16px; }
label { display: grid; line-height: 1.4; gap: 5px; font-weight: bold; }
input, select { color: var(--ink); display: block; width: 100%; min-height: 48px; border: 1px solid #abbca8; border-radius: 9px; background: white; padding: 9px 11px; }
input[aria-invalid="true"] { border: 2px solid #ad542b; background: #fff7eb; }
.settings { margin-top: 18px; }
.score-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 17px 0; }
.score { padding: 14px; border-radius: 12px; background: #e9efdc; }
.score strong { display: block; font: bold 2rem/1.12 var(--display); }
.score small { display: block; margin-top: 6px; }
.history { display: grid; margin: 15px 0 0; padding: 0; list-style: none; }
.history li { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); padding: 10px 0; }
.history li small { display: block; margin-top: 3px; color: var(--muted); }
.poster { display: block; width: min(100%, 760px); margin: 15px auto 0; border-radius: 15px; }
.summary { margin-top: 17px; }
.summary .book { margin-bottom: 15px; }
.sync-form { display: grid; gap: 10px; margin-top: 13px; }
.sync-form input { max-width: 390px; }
.sync-message { color: var(--muted); }
.ruler { width: min(100%, 450px); padding: 9px; background: #ffdb78; color: #473711; border-radius: 6px; }
.ruler span { display: flex; justify-content: space-between; gap: 6px; border-bottom: 11px solid transparent; border-image: repeating-linear-gradient(90deg,#675224 0 2px,transparent 2px 10px) 1; }
@media (max-width: 900px) { .destinations { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 660px) {
  .shell { width: calc(100% - 30px); }
  .bar { grid-template-columns: 1fr auto; gap: 2px 12px; padding-block: 9px 5px; }
  .brand { font-size: 23px; }
  .brand img { width: 39px; height: 39px; }
  .nav { grid-row: 2; grid-column: 1 / -1; justify-content: center; }
  .hero { margin-top: 19px; grid-template-columns: 1fr; border-radius: 19px; min-height: 0; }
  .hero-copy { padding: 25px 23px 26px; }
  .hero h1 { font-size: clamp(2.6rem, 10vw, 3.55rem); }
  .hero p:not(.kicker) { margin: 11px 0 15px; }
  .hero-art { min-height: 200px; }
  .hero-art img { object-position: 70% 37%; }
  .hero-art::after { background: linear-gradient(180deg, #214c3d40, transparent 20%); }
  .section { margin-top: 32px; }
  .destinations { grid-template-columns: 1fr; gap: 9px; }
  .destination { min-height: 82px; }
  .section-head { align-items: start; flex-wrap: wrap; gap: 7px; }
  .footer { margin-top: 36px; }
  .guide { gap: 10px; padding: 8px; }
  .guide img { width: 61px; height: 61px; }
  .score { padding: 9px; }
  .book .actions > .btn { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.actions.help { margin-top: 0; }
.reaction { display: flex; align-items: center; gap: 9px; margin-top: 12px; }
.reaction img { flex-shrink: 0; animation: capy-in 380ms ease both; }
.feedback .reaction p { margin-top: 0; flex: 1; }
.projecting .board { animation: show-panel 600ms ease both; }
@keyframes show-panel { from { opacity: .25; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.garden { width: min(94%, 390px); display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px; margin: 6px auto; }
.garden > span:first-child { grid-column: 2; }
.garden-grid { grid-column: 2; display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 2px; border: 3px solid #afe1a6; border-radius: 4px; padding: 2px; }
.garden-grid.outline { border-color: #ffdc72; }
.garden-grid i { display: block; aspect-ratio: 1; background: #92c28a; }
.garden-grid.outline i { background: #416852; }
.chart { display: grid; width: min(100%, 360px); gap: 10px; text-align: left; }
.chart-row { display: grid; align-items: center; grid-template-columns: minmax(6em, 1fr) 2fr; gap: 12px; }
.chart-row div { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.chart-row i { background: #ffdb76; border-radius: 3px; height: 24px; }
.clock-wrap { display: grid; justify-items: center; gap: 12px; margin-bottom: 6px; }
.clock { position: relative; width: 134px; height: 134px; background: #f9edce; border: 4px solid #ddac57; border-radius: 50%; color: var(--ink); }
.clock b { position: absolute; }
.clock b:nth-child(1) { left: 50%; top: 4px; transform: translateX(-50%); }
.clock b:nth-child(2) { right: 7px; top: 50%; transform: translateY(-50%); }
.clock b:nth-child(3) { left: 50%; bottom: 4px; transform: translateX(-50%); }
.clock b:nth-child(4) { left: 7px; top: 50%; transform: translateY(-50%); }
.clock i { position: absolute; top: calc(50% - 3px); left: 50%; width: 31%; height: 6px; border-radius: 5px; background: #214c3d; transform-origin: left; transform: rotate(var(--angle)); }
.clock i:last-child { background: #ad4d28; height: 4px; top: calc(50% - 2px); width: 39%; }
.cookie-boxes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cookie-boxes div { border: 2px solid #b2d0a0; border-radius: 8px; color: #f2cc73; padding: 6px 15px; font-size: 1.3rem; }
.clip-button { display: block; border: 0; background: transparent; color: #fff2bd; text-decoration: underline; text-underline-offset: 4px; padding: 7px 0; min-height: 44px; margin-top: 7px; }
.intro-dialog { width: min(92%, 740px); border: 1px solid var(--line); border-radius: 18px; background: var(--white); color: var(--ink); padding: 20px; }
.intro-dialog::backdrop { background: #11271bd1; }
.intro-dialog h2 { margin-bottom: 12px; }
.intro-dialog video { display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--forest); border-radius: 10px; }
.intro-dialog form { display: flex; justify-content: end; margin-top: 12px; }
.quiz-listen { margin: 0 0 12px; }
