:root{--ink:#354f38;--muted:#7b8d73;--cream:#f2f5ec;--green:#628951;--line:#dbe3d3}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font:14px/1.6 ui-rounded,'Trebuchet MS',Arial,sans-serif}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit;border:0}button:focus-visible,a:focus-visible{outline:3px solid #a7b85e;outline-offset:4px}button:disabled{cursor:default}[hidden]{display:none!important}header{height:88px;max-width:1280px;margin:auto;padding:0 5%;display:flex;align-items:center;gap:26px}.brand{font-size:38px;font-weight:800;letter-spacing:-2px;text-decoration:none;color:#527448;display:flex;align-items:center;gap:12px}.brand span{letter-spacing:2px;font-size:9px;font-weight:600}.stat-pill{border:1px solid var(--line);border-radius:30px;background:#fafbf6;padding:9px 16px;font-size:11px}.edition{margin-left:auto;font-size:10px;letter-spacing:1.8px;color:var(--muted)}main{max-width:1180px;margin:auto;padding:0 28px 118px}#garden{height:calc(100dvh - 210px);min-height:690px;position:relative;border-radius:30px;background:#e8efdf;overflow:hidden;border:1px solid #dfe7d5}#scene{position:absolute;inset:0;overflow:auto;padding:38px 24px 65px;background:radial-gradient(ellipse at 50% 34%,#f2f6e9 0%,#e8efdf 58%)}.garden-heading{text-align:center;position:relative;z-index:1}.eyebrow,.label{font-size:10px;letter-spacing:2.5px;color:#849772;font-weight:700}h1{font-size:clamp(24px,3vw,35px);letter-spacing:-.7px;font-weight:600;line-height:1.2;margin:10px 0}h2{font-size:27px;line-height:1.2;margin:12px 0 20px;font-weight:600}h3{font-size:15px;margin:0 0 9px}.garden-heading p{font-size:12px;color:var(--muted);margin:10px 0}.tree-island{position:relative;height:310px;width:340px;max-width:100%;margin:8px auto 38px;display:flex;align-items:center;justify-content:center}.tree-island>svg{position:relative;width:245px;height:265px;transform:scale(var(--tree-scale));z-index:1}.island-ground{position:absolute;width:275px;height:115px;bottom:25px;background:#b9cf99;border-radius:50%;box-shadow:0 12px 0 #a5bb86,0 21px 0 -2px #c2ae8a,0 26px 30px -10px #73965a35}.island-ground:after{content:'';position:absolute;width:220px;height:68px;background:#c5d9a8;border-radius:50%;left:28px;top:8px}.tree-status{position:absolute;bottom:-19px;font-size:11px;color:#6e825c;z-index:2}.tree-growth{transform-origin:120px 235px;animation:none}@keyframes grow{from{transform:scale(.7);opacity:.65}to{transform:scale(1);opacity:1}}.mini-garden{max-width:550px;margin:0 auto;border-top:1px solid #cedbc0;padding-top:20px}.garden-row-title{display:flex;justify-content:space-between;font-size:12px}.garden-row-title span{color:#819070;font-size:11px}.plots{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin:14px auto}.plot{width:76px;height:85px;background:#dae6c9;border-radius:18px;position:relative;border:2px solid transparent}.plot.selected{border-color:#8bab69}.plot svg{width:100%;height:100%}.empty-plot{border:1px dashed #a7bd92;background:transparent;font-size:24px;color:#849970;line-height:1}.empty-plot small{display:block;font-size:9px;margin-top:6px}.soil-caption{position:absolute;bottom:22px;left:28px;display:flex;gap:9px;font-size:9px;letter-spacing:1px;color:#819472;pointer-events:none}.live-dot{width:6px;height:6px;background:#90aa72;border-radius:50%;align-self:center}.gesture{position:absolute;bottom:22px;right:28px;font-size:10px;color:#819472;pointer-events:none}.camera{display:none}.placement{position:absolute;z-index:3;top:0;left:0;right:0;padding:10px;background:#edf3df;text-align:center;font-size:12px}.placement button{margin-left:10px;background:none;text-decoration:underline}nav{position:fixed;bottom:0;left:0;width:100%;min-height:88px;padding:12px 18px max(12px,env(safe-area-inset-bottom));background:#f5f7eff5;backdrop-filter:blur(12px);border-top:1px solid var(--line);display:flex;align-items:center;justify-content:center;gap:45px;z-index:5}nav button{background:none;font-size:11px;display:flex;gap:9px;align-items:center;position:relative}nav button>span{font-size:25px}nav .plant-button{background:var(--green);color:#fff;padding:9px 25px;border-radius:24px;box-shadow:0 4px 0 #4c713f}nav i{position:absolute;width:6px;height:6px;background:#b28a59;border-radius:50%;top:0;right:-7px}dialog{color:var(--ink);border:1px solid var(--line);background:#fafbf5;border-radius:26px;width:min(500px,calc(100% - 28px));padding:32px;max-height:86dvh;box-shadow:0 25px 100px #2b41262b}dialog::backdrop{background:#334a3745;backdrop-filter:blur(5px)}.close{position:absolute;right:18px;top:12px;background:none;font-size:26px;color:#8c9b7f}.sub{font-size:13px;color:#7c8d72;line-height:1.8}.primary{background:var(--green);color:#fff;border-radius:20px;padding:12px 21px;font-weight:600;font-size:13px}.wide{display:block;width:100%;margin:17px 0 10px}.chips{display:flex;gap:7px;flex-wrap:wrap}.chips span{font-size:10px;background:#e9efde;color:#7a8e67;border-radius:14px;padding:4px 11px}.catalog-tree{height:180px;text-align:center}.catalog-tree svg{height:100%;width:170px}.row{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding:16px 0;gap:15px}.metrics{display:flex;gap:18px;justify-content:space-between;margin:25px 0}.metrics div{flex:1}.metrics strong{display:block;font-size:30px}.metrics span{display:block;font-size:11px;color:var(--muted)}#toast{position:fixed;bottom:108px;left:50%;transform:translateX(-50%);z-index:10;max-width:calc(100vw - 28px);width:max-content;border-radius:18px;background:#3b583e;color:white;padding:12px 20px;font-size:12px;box-shadow:0 10px 30px #354f3833}.learning main{display:grid;grid-template-columns:1fr 1fr;gap:22px}.learning #garden{height:100%;min-height:620px}.learning #scene{padding:30px 15px}.learning .mini-garden{display:none}.learning .tree-island{margin-top:45px}.learning .gesture{display:none}#quiz{align-self:start;background:#fafbf6;border:1px solid var(--line);border-radius:26px;padding:30px;margin-top:0}.qhead{display:flex;justify-content:space-between;gap:15px;font-size:9px;letter-spacing:.8px;color:#879677}.qprogress{display:flex;gap:7px;margin:18px 0 30px}.qprogress i{height:5px;flex:1;background:#e2e8d9;border-radius:6px}.qprogress .done{background:#8bad68}.qprogress .bad{background:#bb936f}.sentence{font-size:24px;font-weight:500;line-height:1.5;margin-bottom:25px}.blank{color:#83a260}.answers{display:grid;gap:10px}.answer{text-align:left;border-radius:15px;border:1px solid #dde5d1;background:#f2f5eb;padding:13px 15px;display:flex;gap:15px;font-size:14px}.answer b{font-size:10px;color:#95a184;line-height:24px}.answer:hover:enabled{background:#e8efdd}.answer.correct{border-color:#a5c38a;background:#e2eed5}.answer.wrong{border-color:#c3a484;background:#efe4d5}.feedback{border-radius:16px;background:#edf3e5;padding:17px;margin:20px 0;font-size:12px;line-height:1.65}.feedback.error{background:#f2eadd}.feedback p{margin:9px 0}.return{display:block;background:none;color:#849476;font-size:11px;margin:18px auto 0;text-decoration:underline}@media(max-width:760px){header{height:73px;padding:0 22px;gap:15px}.brand{font-size:33px}.brand span{font-size:8px}.stat-pill{margin-left:auto;font-size:9px;padding:8px 10px}.edition{display:none}main{padding:0 14px 110px}#garden{min-height:650px;height:calc(100dvh - 185px);border-radius:25px}#scene{padding:32px 16px 60px}.garden-heading p{font-size:11px}.soil-caption{left:18px;bottom:18px}.gesture{display:none}nav{gap:0;justify-content:space-around;min-height:82px}nav button{flex-direction:column;gap:0;font-size:9px}nav .plant-button{padding:4px 22px;border-radius:20px}.learning main{display:block}.learning #garden{height:245px;min-height:245px;margin-bottom:14px}.learning #scene{padding:12px}.learning .garden-heading{display:none}.learning .tree-island{height:200px;margin:-10px auto 0}.learning .tree-island>svg{height:180px;width:170px}.learning .island-ground{width:195px;height:70px;bottom:17px;box-shadow:0 8px 0 #a5bb86,0 14px 0 -2px #c2ae8a}.learning .island-ground:after{width:160px;height:48px;left:18px;top:4px}.learning .tree-status{bottom:-10px}.learning .soil-caption{display:none}#quiz{padding:24px 20px}.sentence{font-size:22px}.qprogress{margin:14px 0 22px}dialog{padding:28px 23px}.catalog-tree{height:160px}}@media(prefers-reduced-motion:reduce){.tree-growth{animation:none}}

/* A single shared isometric garden. */
#garden{min-height:610px}#scene{display:flex;align-items:center;flex-direction:column;padding:36px 20px 60px;overflow:auto}.garden-heading{flex-shrink:0;max-width:540px}.shared-land{width:100%;max-width:790px;flex:1;min-height:330px;display:flex;align-items:center;justify-content:center;margin:-4px auto -12px}.land-svg{display:block;width:100%;max-height:500px;overflow:visible}.land-cell{cursor:pointer;outline:none}.tile-top{stroke:#8eb960;stroke-width:.6;transition:fill .2s}.land-cell.available:hover .tile-top,.land-cell.available:focus-visible .tile-top{fill:#d6e79e;stroke:#577f36;stroke-width:1.7}.land-cell.available{cursor:crosshair}.land-cell[aria-disabled=true]{cursor:default}.plant-hint{stroke:#6a934d;stroke-width:1.7;fill:none;opacity:.6}.land-tree{cursor:pointer;outline:none}.land-tree>svg{overflow:visible}.land-tree .tree-growth{animation:none}.land-tree.changed .tree-growth{animation:grow 2.3s ease-out both}.land-tree:hover>svg,.land-tree:focus-visible>svg{filter:drop-shadow(0 0 4px #faffc0)}.land-caption{display:flex;justify-content:center;align-items:center;gap:7px;font-size:11px;color:#758365;margin:0 0 15px;text-align:center;flex-shrink:0}.status-dot{width:6px;height:6px;border-radius:50%;background:#7d9e5a}.status-dot.dry{background:#a88c64}.land-start{margin:0 auto 8px;flex-shrink:0}.learning #scene{padding:25px 12px 45px}.learning .shared-land{min-height:320px;margin:0 -10px;width:calc(100% + 20px)}.learning .land-start{display:none}.learning .land-caption{font-size:10px}.learning #garden{min-height:560px}.learning .garden-heading p{font-size:10px}@media(max-width:760px){#garden{min-height:540px;height:calc(100dvh - 185px)}#scene{padding:33px 8px 46px}.garden-heading{padding:0 12px}.shared-land{min-height:280px;margin:-5px auto -15px}.land-svg{max-height:390px}.land-caption{font-size:10px;margin:6px 12px 16px}.land-start{font-size:11px;padding:10px 20px}.learning #garden{height:265px;min-height:265px}.learning #scene{padding:0 5px 12px}.learning .shared-land{width:100%;margin:0 auto;min-height:225px;max-height:225px}.learning .land-svg{height:225px;width:100%}.learning .land-caption{margin:0;font-size:9px}.learning .soil-caption{display:none}}@media(prefers-reduced-motion:reduce){.land-tree.changed .tree-growth{animation:none}}

.land-svg.is-placing .land-tree{pointer-events:none}

/* Soft illustrated meadow under the warm reference sky. */
:root{--cream:#efecdc;--line:#d8dac7}#garden{background:#dedec6;border-color:#d6d8bf}#scene{background:linear-gradient(180deg,#f8f2db12,#aab5940d),url('assets/meadow-sky.png') center/cover no-repeat}.tile-top{stroke:#8d9f68;stroke-width:.6}.land-cell.available:hover .tile-top,.land-cell.available:focus-visible .tile-top{fill:#c4d09e;stroke:#718653;stroke-width:1.4}.land-cell.available .tile-top{stroke:#879b62;stroke-width:.65}.plant-hint{stroke:#5e7547;opacity:.8}.land-caption{color:#586749}.garden-heading p{color:#667454}.eyebrow{color:#73815d}

/* Reserve the full isometric drawing height before caption and action. */
.shared-land,.learning .shared-land{flex:0 0 auto;width:100%;max-width:616px;min-height:0;max-height:none;height:auto;aspect-ratio:530/430;margin:0 auto 18px;overflow:hidden}.shared-land>.land-svg,.learning .shared-land>.land-svg{display:block;flex:none;width:100%;height:100%;max-height:none;overflow:hidden}.land-caption{margin:0 12px 16px}.land-start{margin:0 auto 12px}.learning .land-caption{margin:0 12px 12px}@media(max-width:760px){.shared-land{margin:6px auto 18px}.learning .shared-land{width:100%;max-width:245px;min-height:0;max-height:none;height:auto;aspect-ratio:530/430;margin:0 auto 10px}.learning .shared-land>.land-svg{width:100%;height:100%;max-height:none}.learning .land-caption{margin:0 8px 10px}}

/* Garden navigation and the completed-tree moment. */
.land-svg{touch-action:none;user-select:none;cursor:grab}.land-svg:active{cursor:grabbing}.land-svg:focus-visible{outline:2px solid #84966a;outline-offset:-3px;border-radius:18px}.camera{position:absolute;right:17px;bottom:66px;display:flex;flex-direction:column;gap:5px;z-index:2}.camera button{width:35px;height:35px;background:#f8f8eddd;color:#566c45;border:1px solid #c7d0b5;border-radius:11px;font-size:20px;box-shadow:0 2px 8px #475c3510}.camera button:hover{background:#fff}.celebrating-tree>svg{animation:treeGlow 4.5s ease-out both}.celebration-ring{transform-box:fill-box;transform-origin:center;animation:treeRing 1.5s ease-out 3;pointer-events:none}@keyframes treeGlow{0%,100%{filter:drop-shadow(0 0 0 transparent)}18%,55%{filter:drop-shadow(0 0 11px #f7ed8d) drop-shadow(0 0 4px #fdfbe7)}}@keyframes treeRing{from{opacity:.9;transform:scale(.8)}to{opacity:0;transform:scale(1.8)}}@media(max-width:760px){.camera{right:12px;bottom:52px;gap:4px}.camera button{width:31px;height:31px;font-size:18px}.learning .camera{bottom:20px}.gesture{display:none}}@media(prefers-reduced-motion:reduce){.celebrating-tree>svg{animation:none;filter:drop-shadow(0 0 7px #f1e4a5)}.celebration-ring{animation:none;opacity:.7}}

/* Soft clay botanical sprites. */
.garden-decoration{pointer-events:none}.clay-tree-art{filter:drop-shadow(0 2px 2px #33462d14)}.clay-tree-art.clay-dry{filter:grayscale(.9) sepia(.7) saturate(.7) brightness(.73);transform:rotate(7deg);transform-origin:120px 235px}.catalog-tree svg{width:185px;max-width:100%}

/* The whole sky is the camera surface; interface floats above it. */
#scene,.learning #scene{display:block;overflow:hidden;padding:0}.shared-land,.learning .shared-land{position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;min-height:0;aspect-ratio:auto;margin:0;overflow:hidden}.shared-land>.land-svg,.learning .shared-land>.land-svg{width:100%;height:100%;max-height:none;overflow:hidden}.garden-heading{position:absolute;top:24px;left:55px;right:55px;max-width:none;z-index:1;pointer-events:none}.land-caption,.learning .land-caption{position:absolute;bottom:89px;left:30px;right:65px;margin:0;z-index:1;pointer-events:none}.land-start{position:absolute;bottom:43px;left:50%;transform:translateX(-50%);margin:0;z-index:2;white-space:nowrap}.learning .land-caption{bottom:26px}.camera{z-index:3}.learning #garden{height:calc(100dvh - 220px);min-height:560px}@media(max-width:760px){.garden-heading{top:25px;left:22px;right:22px}.garden-heading h1{font-size:clamp(24px,5.8vw,35px)}.land-caption{bottom:94px;left:20px;right:52px;font-size:10px}.land-start{bottom:48px}.learning #garden{height:280px;min-height:280px}.learning .land-caption{bottom:14px;left:12px;right:48px}.camera{bottom:54px}}

.species-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:22px 0}.species-option{min-width:0;border:1px solid #dce3ce;border-radius:18px;padding:8px 5px 13px;background:#f1f4e8;text-align:center}.species-option.chosen{border:2px solid #79945b;background:#e6edd9;padding:7px 4px 12px}.species-preview{height:135px;display:block}.species-preview svg{width:100%;height:100%;display:block}.species-option strong{font-size:12px;font-weight:600}@media(max-width:420px){.species-grid{gap:6px}.species-preview{height:110px}.species-option strong{font-size:11px}}

.species-option strong{display:block;line-height:1.4;overflow-wrap:anywhere;min-height:2.8em;padding:0 3px}.species-option{align-content:start}

.species-level{display:block;margin:7px 2px 0;font-size:10px;line-height:1.5;color:#61714e}.qhead{gap:12px}.qhead>span:first-child{line-height:1.5}

dialog{overflow-y:auto;overscroll-behavior:contain}.species-option{cursor:pointer}.species-option:focus-visible{outline:3px solid #79945b;outline-offset:2px}

/* Keep plant actions visible while information and history scroll. */
dialog:has(.plant-details){height:min(86dvh,820px);overflow:hidden}
#modalBody:has(>.plant-details){height:100%;min-height:0}
.plant-details{height:100%;min-height:0;display:flex;flex-direction:column}
.plant-details-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 3px 18px;scrollbar-width:thin;scrollbar-color:#b4c19e transparent}
.plant-details-scroll:focus-visible{outline:2px solid #8ea370;outline-offset:-2px;border-radius:10px}
.plant-details-actions{flex:0 0 auto;display:grid;gap:10px;background:#fafbf5;border-top:1px solid var(--line);padding-top:14px;padding-bottom:env(safe-area-inset-bottom,0px)}
.plant-details-actions:empty{display:none}
.plant-details-actions .primary{margin:0}

/* Keep catalog controls visible while only the plant list scrolls. */
dialog:has(.plant-catalog){height:min(86dvh,820px);overflow:hidden}
#modalBody:has(>.plant-catalog){height:100%;min-height:0}
.plant-catalog{height:100%;min-height:0;display:flex;flex-direction:column}
.catalog-header,.catalog-footer{flex:0 0 auto;background:#fafbf5}
.catalog-header{padding:0 0 14px;border-bottom:1px solid var(--line)}
.catalog-header h2{margin:8px 0 14px}
.catalog-filter{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;color:#667454}
.catalog-filter select{min-width:0;max-width:62%;font:inherit;color:var(--ink);background:#edf1e3;border:1px solid #d8dfca;border-radius:12px;padding:8px 10px}
.catalog-list{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:14px 3px;scrollbar-width:thin;scrollbar-color:#b4c19e transparent}
.catalog-list:focus-visible{outline:2px solid #8ea370;outline-offset:-2px;border-radius:10px}
.catalog-list .species-grid{margin:0;align-content:start}
.catalog-footer{padding-top:12px;border-top:1px solid var(--line)}
.catalog-selected{font-size:11px;margin:0 0 7px;color:#667454}
.catalog-footer .sub{font-size:11px;line-height:1.6;margin:9px 0}
.catalog-footer .wide{margin:10px 0 0}
@media(max-height:650px){dialog:has(.plant-catalog){height:94dvh;max-height:94dvh;padding:18px 20px}.catalog-header{padding-bottom:9px}.catalog-header h2{font-size:23px;margin:4px 0 8px}.catalog-footer{padding-top:8px}.catalog-footer .sub{font-size:10px;line-height:1.4;margin:6px 0}.catalog-footer .wide{padding:9px 14px;margin-top:7px}.catalog-list .species-preview{height:95px}}

.catalog-location{font-size:11px;color:#628951;margin:7px 0 0}
/* User's forest sky and reference-inspired modular earth plots. */
#scene{background:#d9d8be url('assets/forest-clouds-background.jpeg') center center/cover no-repeat}
.land-cell .tile-top{fill:#fff3bb;fill-opacity:0;stroke:none;stroke-width:0;transition:fill-opacity .18s ease}
.land-cell:hover .tile-top,.land-cell:focus-visible .tile-top{fill:#fff3bb;fill-opacity:.16;stroke:#f7e6a6;stroke-width:1}
.land-cell.available:hover .tile-top,.land-cell.available:focus-visible .tile-top{fill:#fff3bb;fill-opacity:.25;stroke:#f7e6a6;stroke-width:1.2}
.land-cell.selected-cell .tile-top{stroke:#f5e2a0;stroke-width:1.5;fill-opacity:.08}
.land-cell.available .tile-top{stroke:none}
.plant-hint{stroke:#f9e4ae;stroke-width:2;opacity:.95;pointer-events:none;filter:drop-shadow(0 1px 1px #5d411c)}
.plot-texture,.earth-sides{pointer-events:none}
.plot-texture{filter:none}
.land-cell .tile-top{stroke:transparent}
.land-cell.available:hover .tile-top,.land-cell.available:focus-visible .tile-top{stroke:#f4dfac;stroke-width:1.4}
.plant-collar{pointer-events:none}
.land-tree .oak-stage-art{filter:none}
.soil-caption{display:none}
.land-caption:empty{display:none}
.land-caption:not(:empty){background:#f8f4e5e6;border:1px solid #d9ddc6;border-radius:18px;padding:7px 13px;width:max-content;max-width:calc(100% - 110px);left:50%;right:auto;transform:translateX(-50%);text-shadow:none;color:#506146}
.garden-heading h1{text-shadow:0 1px 12px #fff6df80}.garden-heading p,.land-caption{color:#506146;text-shadow:0 1px 6px #fff5dc}
.plant-history{border-top:1px solid var(--line);padding-top:18px;margin-top:18px}.plant-history h3{font-size:16px}.plant-facts{margin:12px 0 18px;font-size:12px}.plant-facts>div{display:grid;grid-template-columns:105px 1fr;gap:12px;padding:6px 0}.plant-facts dt{color:#7b8d73}.plant-facts dd{margin:0;overflow-wrap:anywhere}.plant-timeline{list-style:none;padding:0;margin:0}.plant-timeline li{border-left:2px solid #d3dfc4;padding:0 0 17px 15px;margin-left:3px}.plant-timeline strong,.plant-timeline span,.plant-timeline time{display:block;font-size:12px;line-height:1.6}.plant-timeline strong{font-weight:600}.plant-timeline span,.plant-timeline time{color:#7b8d73;font-size:11px}.plant-timeline li:last-child{padding-bottom:3px}

/* Tap words without choosing an answer or interrupting the test. */
.sentence-word{display:inline;background:transparent;border:0;border-bottom:1px dotted #9aab83;border-radius:3px;padding:0 1px;margin:0;font:inherit;line-height:inherit;color:inherit;text-align:inherit;cursor:pointer}
.sentence-word:hover,.sentence-word[aria-expanded=true]{background:#e6eed8;border-bottom-color:#628951;color:#456b37}
.sentence-word:focus-visible{outline:2px solid #7f9b64;outline-offset:2px}
.sentence:has(.sentence-word){margin-bottom:7px}
.word-help{font-size:10px;color:#7b8d73;margin:0 0 16px}
.word-translation{font-size:13px;line-height:1.65;padding:12px 15px;margin:0 0 16px;background:#eaf0df;border:1px solid #cfdbbe;border-radius:13px;overflow-wrap:anywhere;color:#3d5937}

.garden-sheep{cursor:pointer;outline:none}.garden-sheep:focus-visible>ellipse{stroke:#476f3c;stroke-width:3;opacity:.8}
.garden-sheep .animal-owner{font:700 13px sans-serif;paint-order:stroke;stroke:#fff;stroke-width:3px;fill:#34512d;pointer-events:none}
.nav-animal-avatar{width:30px;height:30px;object-fit:contain;flex-shrink:0}.animal-picker{padding:16px;margin:0 0 18px;border:1px solid #d7dfc9;border-radius:18px;background:#f8faef}.animal-picker h3{margin:0 0 5px;font-size:16px;color:#42623b}.animal-picker .sub{margin:0 0 12px;font-size:12px}.animal-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.animal-options button{display:flex;align-items:center;gap:10px;min-height:68px;padding:8px 12px;border:2px solid #d7dfc9;border-radius:14px;background:#fff;color:#42623b;font:inherit;font-size:14px;cursor:pointer}.animal-options button[aria-pressed="true"]{border-color:#5e914c;background:#e9f3df}.animal-options img{width:52px;height:48px;object-fit:contain}
.sheep-speech{position:absolute;z-index:4;box-sizing:border-box;width:min(252px,calc(100% - 16px));border:1px solid #cdd9bd;border-radius:14px;background:#fffff6;box-shadow:0 5px 15px #344b3524;color:#36543b;padding:9px 24px 9px 11px}
.sheep-speech::after{content:'';position:absolute;left:var(--tail-x,50%);bottom:-8px;width:14px;height:14px;background:#fffff6;border-right:1px solid #cdd9bd;border-bottom:1px solid #cdd9bd;transform:translateX(-50%) rotate(45deg)}.sheep-speech[data-placement="below"]::after{top:-8px;bottom:auto;border:0;border-left:1px solid #cdd9bd;border-top:1px solid #cdd9bd}
.sheep-speech[hidden],.sheep-speech [hidden]{display:none}.sheep-speech button{font:inherit;color:inherit}.sheep-speech-speaker{display:block;margin:0 16px 4px 0;color:#68805b;font-size:10px;font-weight:700;line-height:1.2}.sheep-speech-translate{display:block;width:100%;max-height:180px;overflow-y:auto;border:0;background:none;padding:0;text-align:left;cursor:pointer}.sheep-speech-en,.sheep-speech-ru,.sheep-speech-grammar,.sheep-speech-grammar-note,.sheep-speech-hint{display:block}.sheep-speech-en{font-size:13px;line-height:1.35}.sheep-speech-ru{font-size:12px;line-height:1.35;margin-top:6px;color:#596b50}.sheep-speech-grammar{font-size:10px;line-height:1.3;margin-top:7px;font-weight:700;color:#577145}.sheep-speech-grammar-note{font-size:9px;line-height:1.3;margin-top:3px;color:#697760}.sheep-speech-hint{font-size:9px;margin-top:6px;color:#7b886d}.sheep-speech-close{position:absolute;right:4px;top:3px;border:0;border-radius:50%;background:none;width:23px;height:23px;font-size:17px!important;cursor:pointer}.sheep-speech button:focus-visible{outline:2px solid #7b9d5d;outline-offset:3px}.learning .sheep-speech{display:none}

.account-button{cursor:pointer;color:#4c6747}.account-button #accountLabel{font-size:inherit}.account-button:focus-visible{outline:2px solid #6a8a51;outline-offset:3px}.account-description{line-height:1.6}.account-status{font-size:12px;color:#6d805c}.account-actions{display:grid;gap:12px}.account-login{display:block;text-align:center;text-decoration:none}
.friends-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:26px}.friends-heading h3{margin:0;font-size:18px}.friends-heading .return{width:auto;margin:0;padding:8px}.friends-note{font-size:11px;line-height:1.5;color:#76806a}.friends-list{display:grid;gap:12px;margin-top:16px}.friend-card{border:1px solid #d7dfc9;border-radius:18px;padding:16px;background:#fafbf2}.friend-card h3{margin:0 0 14px;overflow-wrap:anywhere;font-size:17px}.friend-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0}.friend-results div{display:flex;flex-direction:column;gap:7px}.friend-results dt{font-size:10px;line-height:1.4;color:#738166}.friend-results dd{margin:0;font-size:24px;color:#42623b}.friend-remove{border:0;background:none;padding:12px 0 0;color:#7c806e;font:inherit;font-size:10px;cursor:pointer}.friends-empty{text-align:center;padding:24px 10px;color:#748167;line-height:1.6}.friend-link-label{display:block;font-size:11px;margin-top:16px;margin-bottom:7px;color:#748167}.friend-link{width:100%;min-width:0;box-sizing:border-box;border:1px solid #d2dcc2;border-radius:10px;padding:11px;color:#42623b;background:#fafbf3;font:inherit;font-size:12px}.nav-friends-icon{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}nav #friends{gap:9px}@media(max-width:760px){nav #friends{gap:0}.friend-results{gap:8px}nav{padding-left:8px;padding-right:8px}nav .plant-button{padding-left:17px;padding-right:17px}}
.friends-account{border:1px solid #d7dfc9;border-radius:18px;background:#f3f6e9;margin:0 0 22px;padding:16px}.friends-account summary{cursor:pointer;list-style:none;display:flex;flex-direction:column;gap:8px;position:relative;padding-right:22px}.friends-account summary::-webkit-details-marker{display:none}.friends-account summary::after{content:'⌄';position:absolute;right:0;top:12px;font-size:20px}.friends-account[open] summary::after{content:'⌃'}.friends-account summary strong{font-size:17px;color:#42623b;overflow-wrap:anywhere}.friends-account summary .account-status{font-size:11px}.friends-account-body{padding-top:8px}.friends-account .account-description{font-size:12px}.friends-account .label{font-size:9px}.friends-account summary:focus-visible{outline:2px solid #6a8a51;outline-offset:5px;border-radius:4px}
.friend-visit{margin-top:16px;font-size:12px}.visiting-garden{width:min(1000px,calc(100% - 28px));height:90dvh;max-height:90dvh;padding:24px;overflow:hidden}.visiting-garden #modalBody{height:100%}.friend-garden-view{height:100%;display:flex;flex-direction:column;gap:12px}.visit-header{display:block;height:auto;padding:0 28px 0 0;flex-shrink:0;background:none}.visit-header .return{display:block;width:auto;margin:0 0 14px;padding:0;font-size:12px}.visit-header h2{font-size:24px;line-height:1.2;margin:7px 0}.visit-header .sub{font-size:11px;margin:7px 0 0;line-height:1.5}.visit-land{position:relative;flex:1;min-height:210px;border-radius:20px;border:1px solid #d6d8bf;overflow:hidden;background:#d9d8be url('assets/forest-clouds-background.jpeg') center/cover}.visit-land #visitScene{position:absolute;inset:0}.visit-land .garden-heading{display:none}.visit-land .shared-land,.learning .visit-land .shared-land{position:absolute;inset:0;max-width:none;width:100%;height:100%;margin:0}.visit-land .land-caption{position:absolute;bottom:10px;left:16px;right:70px;font-size:11px;pointer-events:none}.visit-camera{position:absolute;bottom:14px;right:12px;display:grid;gap:7px;z-index:2}.visit-camera button{width:34px;height:34px;border:1px solid #cbd8ba;border-radius:11px;background:#fafbf0e8;color:#536f48;font:inherit;font-size:19px;cursor:pointer}.visit-info{font-size:12px;margin:0;min-height:18px;line-height:1.5;color:#4c6843}.visit-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-shrink:0}.visit-footer span{font-size:10px;line-height:1.5;color:#7c876e}.visit-footer button{white-space:nowrap;font-size:12px;padding:12px 18px}@media(max-width:600px){.visiting-garden{height:94dvh;max-height:94dvh;padding:20px 14px}.visit-header{padding-right:24px}.visit-header h2{font-size:21px}.visit-header .return{margin-bottom:12px}.visit-footer{gap:10px}.visit-footer span{font-size:9px}.visit-footer button{padding:11px 13px}.visit-info{font-size:11px}.visit-land{min-height:180px}}
.visit-header{margin:0;width:100%;max-width:none;box-sizing:border-box}
.question-form{font-size:11px;color:#6e805e;letter-spacing:.08em;text-transform:uppercase;line-height:1.4;margin:20px 0 14px}
/* Keep web content below both the device status bar and Telegram's controls. */
:root{--app-height:100dvh;--app-viewport-gap:max(0px,calc(100dvh - var(--app-height)));--app-header-height:88px;--app-nav-height:88px;--app-inset-top:calc(max(env(safe-area-inset-top,0px),var(--flora-system-top,0px)) + var(--flora-content-top,0px));--app-inset-bottom:calc(max(env(safe-area-inset-bottom,0px),var(--flora-system-bottom,0px)) + var(--flora-content-bottom,0px));--app-inset-left:calc(max(env(safe-area-inset-left,0px),var(--flora-system-left,0px)) + var(--flora-content-left,0px));--app-inset-right:calc(max(env(safe-area-inset-right,0px),var(--flora-system-right,0px)) + var(--flora-content-right,0px));--app-available-height:max(0px,calc(var(--app-height) - var(--app-inset-top) - var(--app-inset-bottom)));--app-dialog-height:max(0px,calc(var(--app-available-height) - 24px))}
body{padding-top:var(--app-inset-top);padding-left:var(--app-inset-left);padding-right:var(--app-inset-right)}
body>header{height:var(--app-header-height)}
body>main{padding-bottom:calc(var(--app-nav-height) + var(--app-inset-bottom) + 24px)}
body:not(.learning) #garden{height:max(240px,calc(var(--app-available-height) - var(--app-header-height) - var(--app-nav-height) - 24px));min-height:0}
body>nav{bottom:var(--app-viewport-gap);left:0;right:0;width:auto;height:calc(var(--app-nav-height) + var(--app-inset-bottom));min-height:0;padding-bottom:calc(12px + var(--app-inset-bottom));padding-left:max(12px,var(--app-inset-left));padding-right:max(12px,var(--app-inset-right))}
nav button,.camera button,.visit-camera button,.primary,.catalog-filter select{min-height:44px}nav button{min-width:44px}.camera button,.visit-camera button{min-width:44px}
/* The toolbar stays outside the scrollable modal content. */
dialog[open]{position:fixed;inset:calc(var(--app-inset-top) + 12px) calc(var(--app-inset-right) + 14px) calc(var(--app-viewport-gap) + var(--app-inset-bottom) + 12px) calc(var(--app-inset-left) + 14px);margin:auto;width:min(500px,calc(100vw - var(--app-inset-left) - var(--app-inset-right) - 28px));max-height:min(86dvh,var(--app-dialog-height));display:flex;flex-direction:column;overflow:hidden;padding:12px 20px 20px}
.modal-toolbar{flex:0 0 44px;min-height:44px;display:flex;justify-content:flex-end;margin:0 -6px 4px 0}
.modal-toolbar .close{position:static;display:grid;place-items:center;width:44px;height:44px;min-height:44px;border-radius:14px;line-height:1;background:#edf1e4;color:#526a48;padding:0;font-size:27px;flex-shrink:0}
#modalBody{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain}
dialog[open]:has(.plant-catalog),dialog[open]:has(.plant-details){height:min(820px,var(--app-dialog-height));max-height:var(--app-dialog-height)}
#modalBody:has(>.plant-catalog),#modalBody:has(>.plant-details){overflow:hidden}
dialog[open].visiting-garden{width:min(1000px,calc(100vw - var(--app-inset-left) - var(--app-inset-right) - 28px));height:min(920px,var(--app-dialog-height));max-height:var(--app-dialog-height);padding:12px 16px 18px}
.visiting-garden #modalBody{overflow:hidden}.visit-header{padding-right:0}.visit-header .return{min-height:44px;text-align:left;margin-bottom:4px}.visit-info{flex-shrink:0}
@media(max-width:760px){:root{--app-header-height:73px;--app-nav-height:82px}.learning #garden{height:clamp(160px,calc(var(--app-available-height)*.28),240px);min-height:0}dialog[open]{padding:10px 16px 16px}.catalog-header h2{font-size:22px}.catalog-footer .wide{min-height:44px}.catalog-list .species-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-list .species-preview{height:85px}.visit-land{min-height:150px}}
@media(max-height:600px){#modalBody:has(>.plant-catalog),#modalBody:has(>.plant-details),.visiting-garden #modalBody{overflow-y:auto}.plant-catalog,.plant-details,.friend-garden-view{height:auto}.catalog-list{flex:none;max-height:220px;min-height:100px}.plant-details-scroll{flex:none;max-height:220px}.visit-land{flex:none;height:240px}.visit-footer{padding-bottom:8px}}

.theory-section-menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:850px;margin:34px auto}.theory-section-menu button{min-height:160px;text-align:left;padding:24px;border:1px solid #cdddc2;border-radius:22px;background:#f9fbf5;box-shadow:0 8px 25px #47603b12}.theory-section-menu strong{display:block;font-size:22px;color:#365b3d}.theory-section-menu span{display:block;margin-top:10px;font-size:13px;color:#708069}.theory-section-menu button:hover,.theory-section-menu button:focus-visible{border-color:#83a673;background:#eef6e9}
.theory-section-tabs{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;max-width:850px;margin:0 auto 22px}.theory-section-tabs button{padding:9px 14px;border:1px solid #cbd9c0;border-radius:11px;background:#f8faf4;font-size:12px;font-weight:700}.theory-section-tabs button[aria-pressed=true]{background:#5f8951;color:#fff;border-color:#5f8951}
.theory-story-result mark{background:#ffe282;color:inherit;border-radius:4px;padding:1px 3px;box-decoration-break:clone;-webkit-box-decoration-break:clone}.theory-mistakes{border-top:0;padding-top:0}.theory-mistakes ul{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:6px}.theory-mistakes li{display:flex;justify-content:space-between;gap:12px;padding:5px 0;border-bottom:1px solid #e9efe4;font-size:12px}.theory-mistakes li:last-child{border-bottom:0}.theory-mistakes li strong{color:#41663c;white-space:nowrap}
.theory-rule-picker{max-width:850px;margin:0 auto 18px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.theory-rule-picker>div{display:grid;align-content:start;gap:6px;padding:12px;border:1px solid #dce6d3;border-radius:16px;background:#f9fbf5}.theory-rule-picker>div>strong{color:#69815e;font-size:12px;margin-bottom:3px}.theory-rule-picker button{text-align:left;padding:7px 9px;border-radius:9px;background:#edf4e7;color:#4e6b49;font-size:11px}.theory-rule-picker button[aria-pressed=true]{background:#5f8951;color:#fff}
.theory-rule{max-width:850px;margin:auto;padding:25px;border:1px solid #dce6d3;border-radius:20px;background:#fff}.theory-rule h2{margin:3px 0 7px;color:#365b3d}.theory-rule-lead{font-size:14px;color:#526b4d}.theory-rule section{padding:16px 0;border-top:1px solid #e5eddf}.theory-rule section h3{font-size:15px;color:#41643e}.theory-rule section p{margin:5px 0;font-size:13px;line-height:1.65;color:#53694f}.theory-rule-formula{display:inline-block;padding:7px 11px;border-radius:10px;background:#eaf3e1;font-weight:700!important;color:#375f39!important}.theory-rule-examples{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:10px}.theory-rule-examples>div{padding:11px;border-radius:11px;background:#f5f8f0}.theory-rule-examples strong{font-size:11px;color:#648258}.theory-rule-examples p{font-size:12px!important}
@media(max-width:760px){.theory-section-menu{grid-template-columns:1fr;gap:10px;margin:20px auto}.theory-section-menu button{min-height:115px;padding:19px}.theory-section-menu strong{font-size:19px}.theory-section-tabs button{font-size:11px;padding:8px 10px}.theory-rule-picker{grid-template-columns:1fr}.theory-rule-picker>div{grid-template-columns:repeat(2,minmax(0,1fr))}.theory-rule-picker>div>strong{grid-column:1/-1}.theory-rule-examples{grid-template-columns:1fr}}

body:has(#modal[open])::before{content:'';position:fixed;inset:0;background:#334a3745;backdrop-filter:blur(5px);z-index:6}
dialog[open]{z-index:7;bottom:calc(var(--app-viewport-gap) + var(--app-inset-bottom) + var(--app-nav-height) + 12px);max-height:calc(var(--app-dialog-height) - var(--app-nav-height))}
dialog[open]:has(.plant-catalog),dialog[open]:has(.plant-details),dialog[open].visiting-garden{height:min(820px,calc(var(--app-dialog-height) - var(--app-nav-height)));max-height:calc(var(--app-dialog-height) - var(--app-nav-height))}
nav{z-index:8}

.quiz-navigation{display:flex;align-items:center;gap:10px;margin-top:17px}.quiz-navigation:empty{display:none}.quiz-navigation .primary{flex:1;min-height:44px}.quiz-back{min-height:44px;padding:10px 16px;border:1px solid #cbd8ba;border-radius:20px;background:#edf3e5;color:#526e45;font-weight:600}.quiz-back:hover{background:#e4edda}@media(max-width:420px){.quiz-navigation{gap:8px}.quiz-back{padding:10px 13px}}
.animal-credits{display:inline-block;margin-top:8px;font-size:12px;color:#496d53;text-decoration:underline}
@media(min-width:761px){#garden .land-caption:not(:empty){left:28px;right:auto;bottom:100px;transform:none;max-width:220px;text-align:left}#garden .land-start{left:28px;bottom:48px;transform:none}}
@media(min-width:761px){#garden .garden-heading{top:8px}}
/* Five-place navigation and the separate garden resident control. */
body>nav{display:grid;grid-template-columns:repeat(5,minmax(0,125px));justify-content:center;column-gap:14px}
body>nav button{justify-content:center;white-space:nowrap}
body>nav #friends{gap:8px}
.animal-picker-trigger{width:100%;display:flex;align-items:center;gap:12px;padding:10px 15px;margin:0 0 14px;border:1px solid #d7dfc9;border-radius:18px;background:#f8faef;text-align:left;color:#42623b}
.animal-picker-trigger img{width:53px;height:52px;object-fit:contain;flex:none}
.animal-picker-trigger span:not(.animal-picker-chevron){display:grid;gap:2px}
.animal-picker-trigger strong{font-size:15px;line-height:1.2}
.animal-picker-trigger small{font-size:11px;color:#75856e}
.animal-picker-chevron{margin-left:auto;font-size:23px;color:#6a8463}
.animal-picker{margin:-7px 0 17px;padding:13px 15px}
/* The reference point and action animate only in the theory lesson. */
body.theory-open #garden,body.theory-open #quiz{display:none!important}
body.theory-open main{display:block}
#theory[hidden]{display:none!important}
#theory{max-width:1140px;min-height:calc(var(--app-available-height) - var(--app-header-height) - var(--app-nav-height) - 24px);margin:auto;padding:32px 36px 45px;background:#fafbf3;border:1px solid #d7dfca;border-radius:28px;box-shadow:0 12px 36px #566e3820}
.theory-levels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-width:850px;margin:0 auto 28px}.theory-levels button{display:flex;flex-direction:column;align-items:flex-start;gap:9px;min-height:130px;padding:21px;border:1px solid #d8e5ce;border-radius:20px;background:linear-gradient(135deg,#fff,#edf6e8);text-align:left;color:#385c3d;cursor:pointer}.theory-levels button:hover,.theory-levels button:focus-visible{border-color:#80a671;box-shadow:0 8px 20px #456d3420}.theory-level-number{font-size:12px;font-weight:800;letter-spacing:1px;color:#638859}.theory-levels strong{font-size:21px}.theory-levels small{font-size:12px;color:#6c8064}.theory-topic-list{display:grid;gap:9px;max-width:850px;margin:0 auto}.theory-topic{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:13px;padding:14px 17px;border:1px solid #dde8d6;border-radius:14px;background:#fff;color:#425d43}.theory-topic-number{font-size:11px;font-weight:800;color:#86a57a}.theory-topic strong{font-size:13px;line-height:1.45}.theory-topic-soon{padding:6px 9px;border-radius:999px;background:#edf3e9;color:#688363;font-size:11px;white-space:nowrap}
@media(max-width:760px){.theory-levels{grid-template-columns:1fr;gap:10px}.theory-levels button{min-height:105px;padding:16px}.theory-topic{grid-template-columns:25px minmax(0,1fr);gap:8px;padding:12px}.theory-topic-soon{grid-column:2;justify-self:start}}
.theory-header{text-align:center;max-width:690px;margin:0 auto 23px}
.theory-header h1{font-size:clamp(27px,3vw,39px);line-height:1.15;margin:7px 0 9px;color:#375b3c}
.theory-header p{margin:0;color:#738166;font-size:13px}
.tense-builder{display:grid;grid-template-columns:minmax(0,1fr) 32px minmax(0,1.35fr);align-items:center;gap:13px;max-width:850px;margin:0 auto 14px}
.tense-choice{min-width:0;padding:14px;border:1px solid #dce6d3;border-radius:17px;background:#f8faf3}
.tense-choice-label{display:block;margin:0 0 10px;font-size:10px;font-weight:700;letter-spacing:1.2px;color:#71846b}
.tense-periods,.tense-families{display:grid;gap:7px}.tense-periods{grid-template-columns:repeat(3,minmax(0,1fr))}.tense-families{grid-template-columns:repeat(2,minmax(0,1fr))}
.tense-choice button{min-height:42px;padding:7px 8px;border:1px solid #ccd9bf;border-radius:11px;background:#f0f5e9;font-size:12px;font-weight:600;color:#526c48}
.tense-choice button[aria-pressed=true]{background:#5f8951;border-color:#5f8951;color:#fff;box-shadow:0 3px 0 #426c3b}
.tense-plus{text-align:center;font-size:30px;font-weight:300;color:#73925d}
.tense-combination{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;max-width:850px;margin:0 auto 22px;font-size:13px;color:#496a45}
.tense-combination span,.tense-combination strong{padding:6px 11px;border-radius:999px;background:#eaf2df}.tense-combination strong{background:#5f8951;color:#fff}.tense-combination b{color:#8aa078}
.tense-detail{max-width:850px;margin:auto}
.tense-intro{text-align:center}
.tense-family{font-size:10px;letter-spacing:1.2px;color:#7d925f;text-transform:uppercase;font-weight:700}
.tense-intro h2{font-size:25px;line-height:1.2;margin:5px 0;color:#36543c}
.tense-intro p{margin:0 0 7px;font-size:13px;color:#697a61}
.theory-timeline{margin:13px 0 22px;padding:8px 12px 13px;border-radius:20px;background:linear-gradient(120deg,#edf3e4,#f8f1dd)}
.theory-timeline svg{display:block;width:100%;height:auto;max-height:225px;touch-action:none;cursor:grab}
.theory-timeline svg:active{cursor:grabbing}
.theory-instruction{text-align:center;color:#647a5a;font-size:12px;margin:2px 4px 0}
.theory-axis{stroke:#a7b49a;stroke-width:4;stroke-linecap:round}
.theory-arrow{stroke:#a7b49a;stroke-width:4;fill:none;stroke-linecap:round}
.theory-now{stroke:#aab596;stroke-width:2;stroke-dasharray:5 5}
.theory-reference{fill:#e6dbaa;stroke:#b7a669;stroke-width:2}
.theory-action{stroke:#66934e;stroke-width:16;stroke-linecap:round;stroke-dasharray:640;stroke-dashoffset:640;animation:theory-draw 1.25s ease-out forwards}
.theory-event,.theory-result{fill:#5e914c;stroke:#f7f8e7;stroke-width:3;transform-box:fill-box;transform-origin:center;animation:theory-pulse 1.5s ease-in-out infinite alternate}
.theory-grab,.theory-family-grab{fill:transparent}
.theory-family-axis{stroke:#a7b49a;stroke-width:4;stroke-linecap:round}
.theory-family-stop{fill:#d1dcc7;stroke:#f7f8e7;stroke-width:2}
.theory-family-thumb{fill:#5e914c;stroke:#f7f8e7;stroke-width:4}
.theory-marker-stem{stroke:#ad8457;stroke-width:2;stroke-dasharray:3 2}.theory-marker-pin{fill:#bd8b56;stroke:#fff9ed;stroke-width:2}
.theory-range-accessible{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.theory-timeline:has(input[data-control=period]:focus-visible) .theory-reference,.theory-timeline:has(input[data-control=family]:focus-visible) .theory-family-thumb{stroke:#294f37;stroke-width:4}
.theory-timeline text{font:700 13px ui-rounded,Arial,sans-serif;fill:#7b896f;letter-spacing:1px}
.theory-family-labels{display:grid;grid-template-columns:repeat(4,1fr);text-align:center;color:#73876b;font-size:11px;font-weight:700;margin:-6px 0 8px}
.theory-timeline>.theory-use{text-align:center;color:#50674d;font-size:13px;font-weight:600;margin:0 4px}
.theory-marker{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:7px;margin:12px auto 0;color:#607554;font-size:11px}.theory-marker span{font-size:9px;font-weight:700;letter-spacing:1px}.theory-marker strong{padding:5px 9px;border-radius:999px;background:#fff9e9;color:#86633d}.theory-marker small{font-size:11px}
@keyframes theory-draw{to{stroke-dashoffset:0}}
@keyframes theory-pulse{to{transform:scale(1.22)}}
.tense-grammar{display:grid;grid-template-columns:minmax(190px,.75fr) 1.5fr;gap:12px}
.tense-formula,.tense-examples{background:#fff;border:1px solid #dce6d3;border-radius:17px;padding:15px}
.tense-formula{display:flex;flex-direction:column;justify-content:center;gap:10px}
.tense-formula>span{font-size:9px;font-weight:700;letter-spacing:1px;color:#829474}
.tense-formula strong{font-size:18px;line-height:1.3;color:#406843}
.tense-formula small{font-size:11px;color:#6d8068}
.tense-examples{display:grid;gap:8px}
.tense-examples>div{display:grid;grid-template-columns:24px 110px 1fr;align-items:start;gap:7px;border-bottom:1px solid #e8eee1;padding-bottom:7px}
.tense-examples>div:last-child{border:0;padding-bottom:0}
.tense-examples strong{font-size:12px;color:#536c49}
.tense-examples p{font-size:12px;line-height:1.5;margin:0;color:#435846}
.tense-symbol{display:flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;background:#e8f2dc;color:#5a8d4b;font-size:13px;font-weight:800}
.tense-symbol.no{background:#f3e9dc;color:#a17849}.tense-symbol.ask{background:#e5edf1;color:#557b91}
.tense-note{font-size:11px;line-height:1.6;color:#75816d;margin:13px 3px 0}
.theory-story,.theory-personal,.theory-practice{max-width:850px;margin:24px auto 0;padding:21px;border:1px solid #dce6d3;border-radius:21px;background:#fff}
.theory-section-heading h3,.theory-practice h3{margin:5px 0;color:#36543c;font-size:21px}.theory-section-heading p,.theory-practice p{margin:0 0 16px;color:#6a7d62;font-size:12px;line-height:1.5}
.theory-story-controls{display:grid;grid-template-columns:1fr 1.4fr;gap:15px}.story-options{display:flex;flex-wrap:wrap;gap:6px}.story-options button,.theory-saved-list button{min-height:35px;padding:6px 11px;border:1px solid #cbd8c0;border-radius:10px;background:#f0f5e9;color:#4f6848;font-size:12px;font-weight:600}.story-options button[aria-pressed=true]{background:#5f8951;color:#fff;border-color:#5f8951}
.theory-pronoun-note{font-size:11px;line-height:1.5;color:#738169;margin:13px 0}.theory-story-result{padding:17px;border-radius:16px;background:linear-gradient(120deg,#eef5e5,#faf4e6)}.theory-story-result span{font-size:10px;font-weight:700;letter-spacing:.7px;color:#738966}.theory-story-result p{font-size:clamp(17px,2vw,22px);font-weight:700;color:#365b3d;margin:8px 0}.theory-story-result small{font-size:11px;color:#738169}
.theory-story-result .story-translation{font-size:13px;font-weight:400;color:#61745c;margin-top:0}.animal-options button:disabled{opacity:.62;cursor:not-allowed;background:#f1f3ed}.animal-options button:disabled img{filter:grayscale(1)}
.theory-change-button,.theory-save,.theory-practice button{margin-top:14px;min-height:37px;padding:7px 13px;border:1px solid #8fac80;border-radius:11px;background:#eef5e8;color:#436d42;font-size:12px;font-weight:700}.theory-change-button[aria-pressed=true],.theory-save[aria-pressed=true]{background:#e0eed8}
.theory-difference{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.theory-difference>div{padding:13px;border:1px solid #e2eadc;border-radius:13px}.theory-difference span{font-size:9px;letter-spacing:1px;font-weight:700;color:#77916d}.theory-difference p{font-size:13px;line-height:1.5;margin:6px 0;color:#425d43}.theory-difference mark{background:#f5dda7;border-radius:3px;padding:1px 2px}.theory-difference>small{grid-column:1/-1;color:#75816d}
.theory-saved-list{display:flex;flex-wrap:wrap;gap:7px;margin:13px 0}.theory-saved-list p,.theory-mistakes p{font-size:12px;color:#728369;margin:0}.theory-mistakes{border-top:1px solid #e7eddf;padding-top:13px}.theory-mistakes strong{font-size:12px;color:#49644a}.theory-mistakes p{margin-top:4px}
.theory-practice{display:flex;align-items:center;justify-content:space-between;gap:15px;background:#edf4e6}.theory-practice p{margin-bottom:0}.theory-practice button{margin:0;white-space:nowrap;background:#5f8951;color:#fff;border-color:#5f8951}
@media(max-width:760px){body>nav{grid-template-columns:repeat(5,minmax(0,1fr));column-gap:0;padding-left:6px;padding-right:6px}body>nav button{font-size:9px;min-width:0}body>nav button>span{font-size:23px}body>nav #friends{gap:0}body>nav .plant-button{padding:4px 9px}#theory{padding:24px 14px 30px;border-radius:23px}.tense-builder{grid-template-columns:1fr;gap:4px}.tense-choice{padding:10px}.tense-choice-label{margin-bottom:7px}.tense-plus{line-height:1;font-size:23px}.tense-choice button{font-size:11px;min-height:36px;padding:5px 3px}.tense-combination{gap:5px;font-size:11px;margin-bottom:18px}.tense-combination span,.tense-combination strong{padding:5px 8px}.tense-grammar{grid-template-columns:1fr}.tense-examples>div{grid-template-columns:22px 92px 1fr}.theory-timeline{padding:4px 4px 10px}.theory-timeline>p{font-size:11px}}
@media(max-width:390px){body>nav button{font-size:8px}body>nav button>span{font-size:21px}.tense-choice button{font-size:10px}}
@media(max-width:760px){.theory-story,.theory-personal,.theory-practice{padding:15px;margin-top:16px}.theory-story-controls,.theory-difference{grid-template-columns:1fr}.story-options button{font-size:11px}.theory-practice{align-items:stretch;flex-direction:column}.theory-practice button{align-self:flex-start}.theory-marker{gap:5px}.theory-marker small{flex-basis:100%;text-align:center;font-size:10px}}
@media(prefers-reduced-motion:reduce){.theory-action,.theory-event,.theory-result{animation:none;stroke-dashoffset:0}}
.leaf-balance{margin-left:auto;padding:8px 12px;border:1px solid #d9e6cf;border-radius:999px;background:#f1f8eb;color:#486b42;font-size:12px;font-weight:800;white-space:nowrap}
.theory-topic-ready{width:100%;text-align:left;cursor:pointer;background:linear-gradient(90deg,#d9efce var(--topic-fill),#fff var(--topic-fill))}.theory-topic-ready:hover,.theory-topic-ready:focus-visible{border-color:#7fa976}.theory-topic-ready .theory-topic-soon{background:#e0efda;color:#3f7544}
.theory-lesson,.theory-test,.theory-test-result{max-width:760px;margin:0 auto}.theory-lesson>section{display:grid;grid-template-columns:36px 1fr;gap:15px;margin:0 0 12px;padding:20px;border:1px solid #dce8d5;border-radius:18px;background:#fff}.theory-lesson>section>span{color:#82a375;font-size:13px;font-weight:800}.theory-lesson h2{margin:0 0 8px;color:#385c3d;font-size:18px}.theory-lesson p{margin:0;color:#5d7359;font-size:14px;line-height:1.65}.theory-lesson-action,.theory-test,.theory-test-result{padding:22px;border:1px solid #d1e3c8;border-radius:20px;background:#f0f7ea}.theory-lesson-action strong{color:#385c3d;font-size:19px}.theory-lesson-action p{margin:8px 0 16px}.theory-lesson-action button,.theory-test-feedback button,.theory-test-result button{padding:11px 17px;border:0;border-radius:11px;background:#5f8951;color:#fff;font-weight:800;cursor:pointer}.theory-test-progress{height:8px;border-radius:999px;background:#dce9d4;overflow:hidden}.theory-test-progress span{display:block;height:100%;background:#77a465}.theory-test>p{color:#60775a;font-size:13px}.theory-test h2{margin:12px 0 20px;color:#385c3d;font-size:clamp(18px,3vw,26px)}.theory-test h2 em{color:#7da16f;font-style:normal}.theory-test-options{display:grid;gap:9px}.theory-test-options button{padding:13px;border:1px solid #cbdcc1;border-radius:12px;background:#fff;text-align:left;color:#365b3c;font-size:15px;cursor:pointer}.theory-test-options button:hover:not(:disabled){border-color:#81a774}.theory-test-options button.correct{background:#d9f0d2;border-color:#71a263}.theory-test-options button.wrong{background:#f9dfda;border-color:#cd897e}.theory-test-feedback{margin-top:19px;padding:17px;border-radius:13px;background:#fff}.theory-test-feedback strong{color:#365b3c}.theory-test-feedback p{font-size:13px;color:#61735e}.theory-test-result{text-align:center}.theory-test-result h1{color:#375b3c;font-size:42px}.theory-test-result p{color:#5b7257}.theory-test-result button{margin:6px}
.lesson-path{position:static;width:auto;min-height:0;padding:0;display:flex;justify-content:flex-start;flex-wrap:wrap;gap:8px;margin:0 0 24px;border:0;background:transparent;backdrop-filter:none;z-index:auto}.lesson-path a{padding:8px 12px;border:1px solid #d5e5cd;border-radius:999px;background:#fff;color:#42694a;font-size:12px;font-weight:800;text-decoration:none}.lesson-path a:hover,.lesson-path a:focus-visible{border-color:#7ca771;background:#edf7e8}.lesson-chapter{margin:30px 0 15px;scroll-margin-top:24px}.lesson-chapter h2{margin:7px 0;color:#365b3c;font-size:23px}.lesson-chapter p{max-width:630px}.lesson-guide{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0 28px}.lesson-guide article{padding:18px;border:1px solid #cfe1c8;border-radius:17px;background:#f1f8ec}.lesson-guide article span{color:#5e8a53;font-size:11px;font-weight:900;letter-spacing:.09em}.lesson-guide article p{margin-top:9px}.lesson-example-list,.lesson-practice-list{display:grid;gap:10px}.lesson-example-list article,.lesson-practice-list article{display:grid;grid-template-columns:36px 1fr;gap:14px;padding:17px 18px;border:1px solid #dce8d5;border-radius:16px;background:#fff}.lesson-example-list article>span,.lesson-practice-list article>span{color:#86a77a;font-size:12px;font-weight:900}.lesson-example-list article p,.lesson-practice-list article p{color:#354f38;font-size:16px;font-weight:700}.lesson-example-list mark{padding:1px 4px;border-radius:5px;background:#e4f4d9;color:#2f6634}.lesson-example-list small,.lesson-practice-list small{display:block;margin-top:7px;color:#5d7359;font-size:13px;line-height:1.55}.lesson-practice-list details{margin-top:10px;padding:10px 12px;border-radius:10px;background:#f1f8ed}.lesson-practice-list summary{color:#4c7b49;font-size:13px;font-weight:800;cursor:pointer}.lesson-practice-list details strong{display:block;margin-top:10px;color:#315f35}.theory-lesson-action{margin-top:32px;scroll-margin-top:24px}.theory-lesson-action>.label{display:block;margin-bottom:8px}
@media(max-width:760px){header{gap:5px}.leaf-balance{margin-left:0;padding:6px 8px;font-size:10px}.theory-lesson>section{padding:16px}.theory-test,.theory-test-result{padding:16px}}
@media(max-width:560px){.lesson-guide{grid-template-columns:1fr}.lesson-path a{font-size:11px;padding:7px 9px}.lesson-example-list article,.lesson-practice-list article{grid-template-columns:24px 1fr;padding:15px 13px}.lesson-chapter h2{font-size:20px}}
.theory-levels button{background:linear-gradient(90deg,#d7ebcc var(--level-fill),#f8fbf4 var(--level-fill));transition:background .2s ease}
.lesson-chapter{margin:32px 0 14px}.lesson-chapter h2{font-size:20px}.theory-lesson>section:first-child{margin-top:0}
.test-word{display:inline;padding:0 2px;border:0;border-radius:4px;background:transparent;color:inherit;font:inherit;cursor:pointer}.test-word:hover,.test-word:focus-visible{background:#e1f1d6;outline:2px solid #aacd98}.test-translation{margin:12px 0 18px;padding:11px 14px;border:1px solid #cfe1c8;border-radius:12px;background:#eef7e8;color:#365b3c;font-size:14px}
.theory-test .test-sentence-translate{margin:-8px 0 4px;padding:6px 0;border:0;background:transparent;color:#527d46;font-size:12px;font-weight:800;text-decoration:underline;text-underline-offset:3px}.theory-test-options .test-option-row>.test-option-translate{width:auto;min-width:0;padding:7px 8px;border:0;background:transparent;color:#527d46;font-size:11px;font-weight:800;text-decoration:underline;text-underline-offset:3px}.theory-test-options .test-option-row>.test-option-translate:hover,.theory-test .test-sentence-translate:hover{color:#305b30}
@media(max-width:500px){.test-option-row{flex-wrap:wrap}.test-option-words{flex-basis:100%}.theory-test-options .test-option-row>.test-option-translate{margin-left:auto}}
.weak-topics{margin:22px 0}.weak-topics h3{margin:0 0 12px;color:#365b3c;font-size:17px}.weak-topics ol{list-style:none;margin:0;padding:0;display:grid;gap:8px}.weak-topics li{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 13px;border:1px solid #dce8d5;border-radius:12px;background:#f6faf3}.weak-topics li span{display:grid;gap:3px}.weak-topics li strong{font-size:13px}.weak-topics li small{color:#738a6a}.weak-topics li b{color:#5d8354}
@media(max-width:760px){header .stat-pill{display:none}.leaf-balance{margin-left:auto}.brand{font-size:27px}.brand span{font-size:7px}}
.test-option-row{display:flex;align-items:center;gap:8px;padding:6px 7px 6px 12px;border:1px solid #cbdcc1;border-radius:12px;background:#fff}.test-option-row.correct{background:#d9f0d2;border-color:#71a263}.test-option-row.wrong{background:#f9dfda;border-color:#cd897e}.theory-test-options .test-option-row>[data-answer]{width:auto;min-width:86px;padding:8px 10px;border-color:#aaca9b;background:#edf7e8;text-align:center;font-size:12px;font-weight:800}.test-option-words{display:flex;flex:1;flex-wrap:wrap;gap:2px;font-size:15px}.theory-test-options .test-option-word{padding:3px 2px;border:0;background:transparent;color:#365b3c;font-size:15px;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px}.theory-test-options .test-option-word:hover{background:#e5f0df}.test-option-word:focus-visible{outline:2px solid #507e49}
.textbook-lesson>section p{white-space:pre-line}
.theory-levels .theory-level-locked{display:flex;flex-direction:column;align-items:flex-start;gap:9px;min-height:130px;padding:21px;border:1px dashed #cfdac8;border-radius:20px;background:#f2f5ee;color:#70806b;text-align:left}.theory-level-locked strong{font-size:21px}.theory-level-locked small{font-size:12px;color:#7a8b73}
.lesson-table-section{background:#f8fbf5!important}.lesson-table-section>div{min-width:0}.lesson-table-scroll{max-width:100%;overflow-x:auto;border:1px solid #d9e7d1;border-radius:13px}.lesson-table{width:100%;border-collapse:collapse;background:#fff;font-size:13px;line-height:1.45}.lesson-table th,.lesson-table td{padding:11px 12px;border-right:1px solid #e4ecdf;border-bottom:1px solid #e4ecdf;text-align:left;vertical-align:top;min-width:120px}.lesson-table thead th{background:#e5f1dc;color:#3d6741;font-weight:800}.lesson-table tbody th{background:#f3f8ee;color:#486f4b;min-width:90px}.lesson-table tr:last-child>*{border-bottom:0}.lesson-table tr>*:last-child{border-right:0}
.lesson-table-hint{display:none;margin:0 0 8px;color:#77936b;font-size:11px}
.lesson-confidence{margin:17px 0;padding:18px;border:1px solid #dce8d5;border-radius:17px;background:#fff;color:#385c3d}.lesson-confidence>div{display:flex;flex-wrap:wrap;gap:9px;margin-top:11px}.lesson-confidence button{display:flex;align-items:center;gap:7px;padding:9px 12px;border:1px solid #d2e2c9;border-radius:12px;background:#f6faf3;color:#52714f;cursor:pointer;font-size:20px}.lesson-confidence button span{font-size:12px}.lesson-confidence button[aria-pressed="true"]{border-color:#6e9d62;background:#dcefd3;box-shadow:0 0 0 2px #c7e6b9}
.theory-test .test-restart{margin-top:16px;padding:8px 12px;border:1px solid #9fbea0;border-radius:10px;background:#f7fbf4;color:#4b754a;font-weight:700;cursor:pointer}
@media(max-width:760px){.theory-levels .theory-level-locked{min-height:105px;padding:16px}.lesson-table th,.lesson-table td{padding:9px;min-width:104px}.lesson-table-hint{display:block}.lesson-confidence button span{font-size:11px}}
.island-expand{position:absolute;left:24px;bottom:34px;z-index:3;padding:10px 15px;border-radius:999px;background:#f5f8ea;border:1px solid #aebf91;color:#45663e;font-weight:700;box-shadow:0 4px 16px #40573520}
.island-expand:hover{background:#e7efd5}
.learning .island-expand{display:none}
.plant-translation{margin:-10px 0 12px;color:#657b59;font-size:15px}
@media(max-width:760px){.island-expand{left:14px;bottom:18px;padding:8px 11px;font-size:11px}}
.island-side-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:18px}.island-side-options button{padding:12px;border-radius:12px}@media(max-width:500px){.island-side-options{grid-template-columns:1fr}}
.market-button{margin-left:auto;padding:8px 16px;border:1px solid #aebf91;border-radius:999px;background:#f5f8ea;color:#45663e;font-weight:800}.market-button:hover{background:#e7efd5}header .market-button+.leaf-balance{margin-left:0}@media(max-width:760px){.market-button{padding:7px 10px;font-size:11px}}
.island-plus{cursor:pointer}.island-plus rect{pointer-events:all}.island-plus circle{fill:#f8fbf2;stroke:#8aaa79;stroke-width:1.5}.island-plus text{fill:#52794e;font-size:21px;font-weight:400;pointer-events:none}.island-plus:hover circle,.island-plus:focus-visible circle{fill:#ecf5e5;stroke:#52794e;stroke-width:2}.island-plus:focus{outline:none}
.market-island-preview{display:flex;align-items:center;justify-content:center;min-height:125px;margin:18px auto;background:radial-gradient(ellipse,#eff3e4,#f9f9f0);border:1px solid #dfe6d5;border-radius:18px}.market-island-preview svg{width:auto;max-width:85%;height:104px;filter:drop-shadow(0 8px 6px #5d6d4a44)}.market-island-preview rect{fill:#7fa453;stroke:#547547;stroke-width:1.5}
.market-panel{color:#355b3b}.market-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.market-balance{padding:8px 12px;border:1px solid #d6e6bf;border-radius:999px;background:#f0f7e7;color:#60784e;font-size:12px;white-space:nowrap}.market-balance strong{margin-left:5px;color:#3e693b}.market-panel h2{margin:15px 0 18px;font-size:clamp(24px,4vw,31px);line-height:1.15}.market-product{display:grid;grid-template-columns:47% 1fr;overflow:hidden;margin-bottom:16px;border:1px solid #d9e7cf;border-radius:22px;background:linear-gradient(135deg,#f9fbf2,#edf5e5)}.market-product-art{display:grid;place-items:center;min-height:180px;background:radial-gradient(circle,#f8f7db 5%,#e8f2df 68%,#dcebd7)}.market-product-art img{display:block;width:90%;max-height:175px;object-fit:contain;filter:drop-shadow(0 13px 10px #3c604139)}.market-product-info{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:8px;padding:16px}.market-product-info strong{font-size:18px;line-height:1.2}.market-product-info>span:not(.market-price):not(.market-product-tag){font-size:12px;line-height:1.4;color:#6b8064}.market-product-tag{font-size:10px;font-weight:800;letter-spacing:1px;color:#779951}.market-price{margin-top:4px;padding:7px 11px;border-radius:999px;background:#fff;color:#426c3e;font-size:15px;font-weight:800;box-shadow:0 2px 8px #4d6a3020}.market-hint{margin:10px 0 14px;color:#647b5c;font-size:12px;line-height:1.4}.market-top-up{display:flex;align-items:center;gap:8px;width:100%;margin-top:12px;padding:12px 14px;border:1px solid #c8dcb9;border-radius:14px;background:#f7fbf3;color:#436b40;text-align:left;cursor:pointer}.market-top-up:hover,.market-top-up:focus-visible{border-color:#83aa70;background:#edf6e6}.market-top-up>span:first-child{font-weight:800}.market-top-up small{margin-left:auto;color:#6e8664}.market-top-up>span:last-child{font-size:18px}
.market-house-product{border-color:#d3c8aa;background:linear-gradient(135deg,#fcfbf2,#f0eadb)}.market-house-product .market-product-art{background:radial-gradient(circle,#fff8df 0%,#ede8d3 70%,#d9dfc7)}.market-house-product .market-product-art img{max-height:190px;filter:drop-shadow(0 13px 10px #5b4b3428)}.market-house-status{margin-top:-5px;padding:9px 12px;border-radius:12px;background:#f0f5e9;border:1px solid #dbe7ce}
.farmhouse-decoration{pointer-events:all;cursor:pointer}.farmhouse-sprite{filter:drop-shadow(0 5px 5px #3e4a3026)}
@media(max-width:500px){.market-heading{align-items:flex-start}.market-balance{font-size:11px}.market-product{grid-template-columns:1fr}.market-product-art{min-height:150px}.market-product-art img{max-height:145px}.market-product-info{padding:14px}.market-panel h2{margin:12px 0 15px}.market-top-up{flex-wrap:wrap}.market-top-up small{margin-left:auto}}

.market-tabs{display:flex;gap:7px;overflow-x:auto;margin:20px 0 4px;padding:2px 2px 8px;scrollbar-width:thin}.market-tabs button{flex:none;border:1px solid #d5e3c7;border-radius:999px;background:#f7faf1;color:#5d7852;padding:9px 13px;font:inherit;font-size:12px;font-weight:700;cursor:pointer}.market-tabs button[aria-selected=true]{background:#527a4d;border-color:#527a4d;color:white}.market-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.market-item{overflow:hidden;border:1px solid #d9e7cf;border-radius:18px;background:#f8fbf3}.market-item-art{display:grid;place-items:center;height:125px;background:radial-gradient(circle at 50% 35%,#fffce9,#e6f1df)}.market-item-art .decoration-art{width:100%;height:100%;max-width:180px}.market-item-copy{display:flex;flex-direction:column;gap:5px;padding:11px}.market-item-copy strong{font-size:15px;color:#385c3a}.market-item-copy span{font-size:11px;color:#718366}.market-item-copy b{font-size:13px;color:#55784a}.market-item-copy button{margin-top:5px;border:0;border-radius:10px;background:#527a4d;color:white;padding:9px;font:inherit;font-size:12px;font-weight:700;cursor:pointer}.market-item-copy button:disabled{background:#e3e9dc;color:#819078;cursor:default}.decoration-translation{margin:14px 0;padding:12px 14px;border:1px solid #dce8d0;border-radius:12px;background:#f7faf2}.decoration-translation summary{color:#527a4d;font-weight:800;cursor:pointer}.decoration-translation strong{display:block;margin:12px 0 4px}.decoration-translation p{margin:0;color:#677b60;font-size:13px;line-height:1.5}.decoration-details .catalog-tree .decoration-art{max-width:220px;max-height:180px}@media(max-width:500px){.market-grid{gap:8px}.market-item-art{height:105px}.market-item-copy{padding:9px}.market-item-copy strong{font-size:13px}.market-tabs{margin-top:14px}}
/* Three review stages for completed lesson cards. */
.theory-topic-ready[data-stage="1"]{background:#dff1d7;border-color:#b8d8ad;color:#254c2c}
.theory-topic-ready[data-stage="2"]{background:#84ba79;border-color:#6ca864;color:#173b21}
.theory-topic-ready[data-stage="3"]{background:#185c38;border-color:#185c38;color:#fff}
.theory-topic-ready[data-stage="3"] .theory-topic-number,.theory-topic-ready[data-stage="3"] .theory-topic-soon{color:#fff}
.theory-topic-ready[data-stage="2"] .theory-topic-soon{background:#d8edd2;color:#173b21}
.theory-topic-ready[data-stage="3"] .theory-topic-soon{background:#30734d}
.lesson-quick-hint{margin:18px 0 12px;padding:14px 16px;border-radius:13px;background:#edf6e8;color:#315b38;line-height:1.5}
.theory-lesson>.lesson-table-section{display:block;margin:16px 0;padding:18px;border-radius:16px}
.lesson-table-section>span[aria-hidden]{display:none}
.lesson-table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.lesson-table{min-width:420px}
@media(max-width:760px){.lesson-quick-hint{font-size:14px}.lesson-table-section{padding:12px}.lesson-table{font-size:12px}.lesson-table-section[data-lesson-table="new-0-5"] .lesson-table{min-width:0}.lesson-table-section[data-lesson-table="new-0-5"] thead{display:none}.lesson-table-section[data-lesson-table="new-0-5"] tbody{display:grid;gap:8px;padding:8px}.lesson-table-section[data-lesson-table="new-0-5"] tr{display:grid;grid-template-columns:1fr 1fr;border:1px solid #d9e7d1;border-radius:10px;overflow:hidden}.lesson-table-section[data-lesson-table="new-0-5"] th,.lesson-table-section[data-lesson-table="new-0-5"] td{min-width:0;border-bottom:0;padding:8px;overflow-wrap:anywhere}.lesson-table-section[data-lesson-table="new-0-5"] tbody th{grid-column:1/-1}.lesson-table-section[data-lesson-table="new-0-5"] td:before{display:block;margin-bottom:3px;color:#688363;font-size:10px;font-weight:800}.lesson-table-section[data-lesson-table="new-0-5"] td:nth-child(2):before{content:'Расстояние и число'}.lesson-table-section[data-lesson-table="new-0-5"] td:nth-child(3):before{content:'Перевод'}.lesson-table-section[data-lesson-table="new-0-5"] .lesson-table-hint{display:none}}

.profile-button{display:flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:24px;background:#fff;padding:4px 11px 4px 4px;font-size:12px;font-weight:700}.profile-button img{width:34px;height:34px;object-fit:contain;object-position:center;border-radius:50%;background:#e6efdf;padding:2px}.profile-button[data-character="goose"] img,.profile-button[data-character="frog"] img,.profile-button[data-character="pika"] img{object-position:center}.profile-animals,.profile-themes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0 24px}.profile-animals button,.profile-themes button{border:1px solid #cbd8ba;background:#f5f8ef;border-radius:17px;padding:10px;min-height:54px}.profile-animals img{width:42px;height:42px;object-fit:contain;vertical-align:middle;margin-right:8px}.profile-animals [aria-pressed=true],.profile-themes [aria-pressed=true]{border:2px solid #789b62;background:#edf5e5}body[data-theme=winter]{--cream:#edf3e4;--green:#6f9658;--line:#cbdcc0;--ink:#3f583f;--muted:#748a68}body[data-theme=winter] #garden{background:#dce9d0;border-color:#cbdabf}body[data-theme=winter] #scene{background:linear-gradient(180deg,#f7fbef66,#dbe8cf22),url('assets/forest-clouds-background.jpeg') center center/cover no-repeat;background-blend-mode:soft-light,normal}body[data-theme=winter] .island-ground{background:#f3f8e9;box-shadow:0 12px 0 #d5e4c4,0 21px 0 -2px #c2ae8a,0 26px 30px -10px #79945a44}body[data-theme=winter] .island-ground:after{background:#fffdf1}body[data-theme=winter] .garden-world{filter:saturate(.82) brightness(1.06)}body[data-theme=winter] #garden:after{content:'❄  ·   ❅     ·  ❄    ·    ❅   ·   ❄';position:absolute;inset:-40px 0 auto;z-index:2;color:#fff;font-size:18px;letter-spacing:32px;line-height:130px;opacity:.55;pointer-events:none;animation:flora-snow 18s linear infinite}@keyframes flora-snow{to{transform:translateY(800px)}}body[data-theme=winter] .plot{background:#edf5e5;border-color:#c8dcb9}body[data-theme=winter] .plot svg,body[data-theme=winter] .tree-island svg{filter:drop-shadow(1px 1px 0 #f8fbef) drop-shadow(-1px -1px 0 #c9ddb7)}.quiz-navigation{gap:18px;flex-wrap:wrap}.quiz-navigation button{margin:4px 0}@media(max-width:600px){header{gap:8px;padding:0 12px}.profile-button span{display:none}.profile-button{padding:4px}.quiz-navigation{gap:14px}}@media(prefers-reduced-motion:reduce){body[data-theme=winter] #garden:after{animation:none}}
.table-separator{color:#8aa5a8;font-weight:700;padding:0 .15em}.table-list{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.table-list-item{display:inline-flex;padding:3px 8px;border-radius:8px;font-weight:750;white-space:nowrap;line-height:1.35}.table-list-item[data-lang="en"]{background:#e8eefb;border:1px solid #cbd8f0;color:#36527a}.table-list-item[data-lang="ru"]{background:#eaf4e2;border:1px solid #cfe2c3;color:#416b43}.lesson-table td,.lesson-table th{line-height:1.65}
.winter-gear{display:none;pointer-events:none}.winter-gear path,.winter-gear circle{vector-effect:non-scaling-stroke}body[data-theme=winter] .winter-gear{display:block}
.winter-knit-overlay{display:none;pointer-events:none;opacity:.34}body[data-theme=winter] .winter-knit-overlay{display:block;opacity:.52}
body[data-theme=winter] .garden-sheep[data-riding="true"] .winter-gear{animation:winter-ride 1.1s ease-in-out infinite alternate;transform-origin:center bottom}.garden-sheep .winter-track{display:none}body[data-theme=winter] .garden-sheep[data-riding="true"] .winter-track{display:block;animation:winter-track .75s linear infinite}@keyframes winter-ride{to{translate:0 -3px;rotate:-2deg}}@keyframes winter-track{to{opacity:0;transform:translateY(8px)}}
body[data-theme=winter] #scene:after{content:"";position:absolute;inset:0;pointer-events:none;opacity:.11;background:repeating-linear-gradient(115deg,transparent 0 7px,#fff 8px 9px,transparent 10px 16px),repeating-linear-gradient(25deg,transparent 0 11px,#9bb987 12px 13px,transparent 14px 22px);mix-blend-mode:soft-light}
.winter-snow-layer{display:none;pointer-events:none}.winter-snow-layer polygon{fill:#f7fbed;opacity:.78!important}.winter-snow-layer path{stroke:#ffffff;opacity:.9}
body[data-theme=winter] .winter-snow-layer{display:block;filter:drop-shadow(0 3px 2px #aebfa0)}
.winter-plant-decor{display:none;pointer-events:none;filter:drop-shadow(0 2px 1px #5b784755)}.winter-plant-decor circle{fill:#c9584c;stroke:#f4d58b;stroke-width:2;r:8px}.winter-plant-decor circle+circle{r:7px;fill:#6f9a6c}.winter-plant-decor path{opacity:.95;stroke-width:3}
body[data-theme=winter] .winter-plant-decor{display:block}
body[data-theme=winter] #scene:before{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;background-image:url('assets/knitted-christmas-tree.png'),url('assets/winter-snow-cap.png');background-repeat:no-repeat;background-position:24px calc(100% - 92px),center 58%;background-size:118px auto,min(70vw,620px) auto;opacity:.94;filter:drop-shadow(0 4px 5px #3f5d3c2e)}
@media(max-width:760px){body[data-theme=winter] #scene:before{background-position:12px calc(100% - 94px),center 56%;background-size:88px auto,min(108vw,460px) auto;opacity:.9}}
body[data-theme=winter] #scene:before{background-image:url('assets/knitted-christmas-tree.png');background-position:24px calc(100% - 92px);background-size:118px auto}
body[data-theme=winter] .shared-land{background-image:url('assets/winter-snow-cap.png');background-position:center 58%;background-repeat:no-repeat;background-size:min(70vw,620px) auto}
@media(max-width:760px){body[data-theme=winter] #scene:before{background-position:12px calc(100% - 94px);background-size:88px auto}body[data-theme=winter] .shared-land{background-position:center 56%;background-size:min(108vw,460px) auto}}
/* Winter visual rollback: keep only the gentle falling snow animation. */
.winter-gear,.winter-track,.winter-knit-overlay,.winter-plant-decor,.winter-snow-layer{display:none!important}
body[data-theme=winter] #scene:before,body[data-theme=winter] .shared-land{background-image:none!important}
.profile-themes{display:none!important}h3:has(+.profile-themes){display:none!important}
#garden:after{content:'❄  ·   ❅     ·  ❄    ·    ❅   ·   ❄';position:absolute;inset:-40px 0 auto;z-index:2;color:#fff;font-size:18px;letter-spacing:32px;line-height:130px;opacity:.55;pointer-events:none;animation:flora-snow 18s linear infinite}
@media(max-width:600px){#garden:after{letter-spacing:20px;font-size:15px}}
@media(prefers-reduced-motion:reduce){#garden:after{animation:none}}
.profile-animals img{object-fit:contain;object-position:center}.profile-animals button[data-profile-animal="goose"] img,.profile-animals button[data-profile-animal="frog"] img,.profile-animals button[data-profile-animal="pika"] img{object-position:center}
.inline-translate{margin:4px 0 0;padding:4px 8px;border:1px solid #cfe1c8;border-radius:8px;background:#f4faef;color:#4c7b49;font-size:11px;font-weight:800;cursor:pointer}.inline-translate:hover,.inline-translate:focus-visible{background:#e6f3df}.theory-inline-translation{grid-column:1/-1;margin-top:6px;padding:9px 11px;border-radius:10px;background:#edf6e8;color:#365b3c;font-size:13px}
.farmhouse-sprite{transform:translateY(7px) scale(.72);transform-origin:center bottom;transform-box:fill-box}.farmhouse-decoration>ellipse{opacity:.14}

/* Единый базис предметов: прозрачный canvas, общий нижний якорь и тот же
   изометрический силуэт, что у stone-bridge-isometric. */
.land-decoration .decoration-art{display:block;overflow:visible;transform-origin:50% 100%;shape-rendering:geometricPrecision}
.land-decoration .decoration-art image{preserveAspectRatio:xMidYMax meet}
.land-decoration[data-isometric-angle="33.4"]{transform-origin:center bottom}


.market-item-art img.decoration-art{display:block;width:100%;height:100%;max-width:180px;object-fit:contain;object-position:center bottom}.decoration-details .catalog-tree img.decoration-art{display:block;width:100%;height:180px;object-fit:contain}
.market-item-art{position:relative}.market-item-art img.decoration-art{position:absolute;inset:0;width:100%!important;height:100%!important;max-width:none!important;object-fit:contain;object-position:center}

/* Game progress and a full, gently drifting snow field. */
.game-progress{position:absolute;top:18px;left:22px;z-index:6;width:min(248px,32vw);padding:10px 12px;border:1px solid #d7e3cc;border-radius:14px;background:#fbfcf7e8;box-shadow:0 7px 18px #536b4020;backdrop-filter:blur(7px);pointer-events:none}
.game-progress-top{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#55724b;font-size:11px;font-weight:800;line-height:1.2}
.game-progress-top strong{color:#385f3a;font-size:12px}
.game-progress-track{height:7px;margin-top:8px;overflow:hidden;border-radius:99px;background:#e5eddc;box-shadow:inset 0 1px 2px #50694718}
.game-progress-track span{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#6b9657,#9fbe78);transition:width .35s ease}
.game-progress small{display:block;margin-top:5px;color:#7b8c72;font-size:10px;line-height:1.25}

#garden:before,#garden:after{content:"";position:absolute;inset:-260px -220px;z-index:4;pointer-events:none;opacity:.7;background-repeat:repeat;will-change:background-position,transform}
#garden:before{background-image:radial-gradient(circle at 12px 14px,#fff 0 1.8px,transparent 2.8px),radial-gradient(circle at 94px 74px,#fff 0 1.1px,transparent 2px),radial-gradient(circle at 182px 42px,#fff 0 2.4px,transparent 3.7px),radial-gradient(circle at 245px 116px,#fff 0 1.4px,transparent 2.6px);background-size:280px 220px,340px 300px,430px 330px,250px 260px;animation:flora-snow-fall-a 13s linear infinite,flora-snow-drift-a 8s ease-in-out infinite alternate}
#garden:after{background-image:radial-gradient(circle at 48px 26px,#fff 0 1.2px,transparent 2.4px),radial-gradient(circle at 138px 116px,#fff 0 2.3px,transparent 3.8px),radial-gradient(circle at 218px 64px,#fff 0 1.5px,transparent 2.7px),radial-gradient(circle at 312px 164px,#fff 0 2px,transparent 3.2px);background-size:360px 290px,470px 360px,300px 240px,520px 390px;animation:flora-snow-fall-b 19s linear infinite,flora-snow-drift-b 11s ease-in-out infinite alternate;opacity:.48}
@keyframes flora-snow-fall-a{from{background-position:0 -320px,40px -430px,-120px -280px,90px -360px}to{background-position:170px 960px,260px 1050px,80px 1000px,260px 1080px}}
@keyframes flora-snow-fall-b{from{background-position:120px -460px,-80px -520px,40px -380px,-180px -600px}to{background-position:-90px 1040px,120px 1120px,-120px 980px,80px 1180px}}
@keyframes flora-snow-drift-a{from{transform:translateX(-12px)}to{transform:translateX(15px)}}
@keyframes flora-snow-drift-b{from{transform:translateX(14px)}to{transform:translateX(-18px)}}
@media(max-width:760px){.game-progress{top:12px;left:14px;width:min(205px,55vw);padding:8px 10px}.game-progress-top{font-size:10px}.game-progress-top strong{font-size:11px}.game-progress small{font-size:9px}}
@media(prefers-reduced-motion:reduce){#garden:before,#garden:after{animation:none}}
.land-decoration{cursor:pointer;outline:none;transition:filter .18s ease,opacity .18s ease}.land-decoration:hover,.land-decoration:focus-visible,.land-decoration.selected-decoration{filter:drop-shadow(0 0 5px #f8f4a4) drop-shadow(0 3px 3px #3e4d2b33)}.land-decoration.selected-decoration>ellipse{stroke:#f1d77b;stroke-width:2;opacity:.5}
.table-list{display:grid;gap:4px;width:100%;align-items:start}.table-list-row{display:flex;flex-wrap:wrap;gap:6px;align-items:center;min-height:24px}.table-list-row[data-lang="en"]{padding-bottom:2px}.table-list-row[data-lang="ru"]{padding-top:2px;border-top:1px dashed #d7e1d0}.theory-level-card{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:stretch}.theory-level-card>button[data-level]{min-width:0}.theory-exam{border:1px solid #b8cfaa;border-radius:13px;background:#eef6e8;color:#4d7548;padding:10px 13px;font-size:11px;font-weight:800;white-space:nowrap}.theory-exam:hover,.theory-exam:focus-visible{background:#dfeeda;border-color:#7ea56d}.theory-exam-wide{margin-top:14px}.theory-levels{display:grid;gap:10px}@media(max-width:600px){.theory-level-card{grid-template-columns:1fr}.theory-exam{width:100%}.table-list-row{gap:5px}}
.theory-level-card>button.theory-exam{min-height:0;display:grid;place-items:center;padding:10px 13px;background:#eef6e8}
.game-progress{left:auto!important;right:22px}.land-cell.placement-preview .tile-top{fill:#d9ecb8;stroke:#5d8c4b;stroke-width:1.8;filter:drop-shadow(0 0 3px #d7e99d)}.land-decoration.is-flipped{transform-box:fill-box;transform-origin:center;transform:scaleX(-1)}#statsTop{display:none!important}
.game-progress{position:static;order:5;flex:0 1 248px;width:min(248px,32vw);margin-left:0;padding:8px 11px;pointer-events:none}.game-progress-top{font-size:10px}.game-progress-track{height:6px;margin-top:5px}.game-progress small{font-size:9px;margin-top:3px}header:has(>.game-progress){gap:14px}#garden>.game-progress{display:none!important}
@media(max-width:760px){:root{--app-header-height:116px}header:has(>.game-progress){height:116px;min-height:116px;flex-wrap:wrap;align-content:center;gap:8px}.game-progress{order:6;flex:0 0 205px;width:205px;margin-left:auto}}
.decoration-action-panel{display:grid;gap:0}.decoration-action-buttons{display:grid;grid-template-columns:repeat(3,42px);gap:7px}.decoration-action-buttons button{display:grid;place-items:center;width:42px;height:42px;min-height:42px;padding:0;border:1px solid #cbdcc0;border-radius:10px;background:#f2f8ed;color:#4c7547;font-size:20px;line-height:1}.decoration-action-buttons button span{display:none}.decoration-action-buttons button:hover,.decoration-action-buttons button:focus-visible{background:#e2f0da;border-color:#80a66f}dialog[open]:has(.decoration-action-panel){width:174px;min-height:78px;padding:10px 12px;border-radius:15px}dialog[open]:has(.decoration-action-panel) .modal-toolbar{display:none}body:has(dialog[open]:has(.decoration-action-panel))::before{display:none}dialog[open]:has(.decoration-action-panel)::backdrop{background:transparent;backdrop-filter:none}.decoration-details .catalog-tree{height:108px}.decoration-details .catalog-tree img,.decoration-details .catalog-tree svg{max-width:130px!important;height:102px!important;object-fit:contain}
/* Inline object controls: compact and non-blocking, just below the selected object. */
.land-decoration>ellipse{display:none}
.decoration-inline-actions{position:absolute;z-index:5;display:flex;gap:4px;padding:3px;border:1px solid #cbdcc0;border-radius:12px;background:#f7fbf0e8;box-shadow:0 4px 12px #3e5a3224;pointer-events:auto}
.decoration-inline-actions button{display:grid;place-items:center;width:30px;height:30px;min-height:30px;padding:0;border:1px solid #cbdcc0;border-radius:8px;background:#f2f8ed;color:#4c7547;font-size:16px;line-height:1;cursor:pointer}
.decoration-inline-actions button:hover,.decoration-inline-actions button:focus-visible{background:#e2f0da;border-color:#80a66f}
.market-item-art img[src$="farmhouse-4x4.png"]{max-width:90%;max-height:180px}
/* Grounding is per object: a soft, narrow contact shadow follows the footprint
   instead of the old identical oval under every decoration. */
.land-decoration>ellipse.decoration-ground-shadow{display:block;pointer-events:none;filter:blur(.8px);opacity:.2;transform-origin:center}
.land-decoration .shadow-fountain{opacity:.24}.land-decoration .shadow-bench,.land-decoration .shadow-swing{opacity:.16}
.land-decoration .shadow-lantern,.land-decoration .shadow-fireflies,.land-decoration .shadow-tea-table{opacity:.12}
.land-decoration.selected-decoration>ellipse.decoration-ground-shadow{stroke:#f1d77b;stroke-width:2;opacity:.3}
.garden-heading{padding:5px 20px 14px;border-radius:0 0 24px 24px;background:linear-gradient(180deg,rgba(248,242,219,.94),rgba(248,242,219,.62) 68%,rgba(248,242,219,0));backdrop-filter:blur(2px)}
.garden-heading h1{margin:0 0 3px;font-size:clamp(22px,2.7vw,31px)}.garden-heading p{margin:0;font-size:10px}.garden-heading{top:-10px;padding:4px 18px 7px;background:linear-gradient(180deg,rgba(248,242,219,.96),rgba(248,242,219,.68) 72%,rgba(248,242,219,0))}
#garden .garden-heading{top:-10px}
#garden .shared-land{top:0}
#garden .garden-heading{background:transparent;backdrop-filter:none;box-shadow:none;padding-left:0;padding-right:0}
@media(max-width:760px){.garden-heading{padding:4px 12px 7px;border-radius:0 0 18px 18px}}
