.landscape-ui .ui-stage .garden-game .mini-board-area{container-type:size;container-name:garden-space;align-items:center;justify-content:center}
.garden-board{width:min(100%,560px);height:min(100%,470px);min-height:0;display:grid;grid-template-rows:42px minmax(0,1fr) auto;gap:8px;padding:12px;border:2px solid #b7bc96;border-radius:24px;background:linear-gradient(#fff8dce8,#e5e9c9e8);overflow:hidden}.shadow-game .garden-board{background:linear-gradient(#dfdff2eb,#f7edceeb)}
.garden-companion{display:flex;align-items:center;justify-content:center;gap:10px;font-size:14px;font-weight:bold}.garden-companion img{width:42px;height:42px;object-fit:contain}
.flower-bed{min-height:0;display:flex;align-items:center;justify-content:center;border-bottom:9px solid #9ba96d;border-radius:35%;background:radial-gradient(ellipse at bottom,#dbe8ad,transparent 70%)}.flower-slot{flex:1;max-width:105px;min-width:0;height:90%;display:grid;place-items:center}.flower-slot svg{width:100%;height:100%;max-height:180px}.flower-bud{font-size:clamp(26px,8cqw,64px);color:#82965d}.flower-bed.watch{background:#fff2d4;border:2px dashed #b9a66e;border-bottom:9px solid #a8b574}
.garden-controls{min-height:0}.flower-palette{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.flower-choice,.shadow-choice{min-width:0;min-height:44px;padding:5px;border:2px solid #a7b58c;border-radius:16px;background:#fffbef;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}.flower-choice svg{height:64px;width:100%;max-width:70px}.flower-choice span,.shadow-choice span{font-size:12px}.garden-actions{display:flex;gap:5px;justify-content:center;flex-wrap:wrap;margin-top:7px}.garden-actions button,.garden-instruction button{min-height:38px;font-size:13px;padding:6px 10px}.garden-instruction{text-align:center;display:grid;gap:8px;justify-items:center;font-size:14px}.garden-result{text-align:center}.garden-result img{width:80px;height:80px;object-fit:contain}.garden-result h2{font-size:22px;margin:4px 0 10px}.garden-result button{min-height:40px}.shadow-stage{min-height:0;position:relative;display:grid;place-items:center;isolation:isolate;overflow:hidden}.shadow-moon{position:absolute;width:80%;height:94%;border-radius:50%;background:radial-gradient(ellipse,#fffcebe8,#e5d7ef80 65%,transparent 70%);z-index:-1}.dino-silhouette{height:94%;width:90%;object-fit:contain;filter:brightness(0) saturate(0);opacity:.78}.dino-silhouette.mirrored{transform:scaleX(-1)}.shadow-ground{position:absolute;bottom:1%;height:5%;width:65%;border-radius:50%;background:#8b89a43b;z-index:-1}.shadow-choices{display:flex;justify-content:center;gap:7px}.shadow-choice{flex:1;max-width:115px}.shadow-choice img{width:100%;height:90px;object-fit:contain}
.garden-celebrate .flower-slot svg{animation:garden-bloom .8s ease both}.garden-celebrate .dino-silhouette{filter:none;opacity:1;animation:garden-bloom .8s ease}.garden-celebrate .garden-companion img{animation:garden-bloom .8s ease}@keyframes garden-bloom{0%{transform:scale(.8)}45%{transform:scale(1.08) rotate(-4deg)}100%{transform:scale(1)}}
html:not([data-tablet-layout="true"]) .landscape-ui .ui-stage .garden-game .mini-task-area{container-type:size;container-name:garden-math}
html[data-game-orientation="portrait"] .landscape-ui .ui-stage .garden-game .mini-workspace:not(.no-task){grid-template-rows:minmax(0,1.1fr) minmax(0,1fr)}
@container garden-space (max-height:340px){.garden-board{padding:6px;gap:4px;grid-template-rows:26px minmax(0,1fr) auto}.garden-companion{font-size:11px}.garden-companion img{height:26px;width:26px}.flower-choice svg{height:40px}.flower-choice span{font-size:10px}.garden-actions{gap:3px;margin-top:3px}.garden-actions button,.garden-instruction button{min-height:32px;font-size:11px;padding:4px 7px}.garden-instruction{gap:4px;font-size:11px}.shadow-choice img{height:52px}.shadow-choice span{font-size:11px}.garden-result img{height:40px;width:40px}.garden-result h2{font-size:16px}.garden-result button{min-height:32px;font-size:12px}}
@container garden-space (max-height:235px){.garden-board{grid-template-rows:18px minmax(0,1fr) auto;padding:4px;gap:2px}.garden-companion img{height:18px;width:18px}.garden-companion{font-size:10px}.flower-choice{padding:2px;border-radius:10px}.flower-choice svg{height:28px}.flower-choice span{font-size:8px}.flower-slot svg{max-height:75px}.garden-actions button,.garden-instruction button{min-height:28px;font-size:10px}.garden-instruction{font-size:10px}.shadow-choice img{height:40px}.shadow-choice{padding:2px}.shadow-choice span{font-size:10px}.garden-result img{display:none}.garden-result h2{font-size:14px;margin:3px}.garden-result p{font-size:11px;margin:2px}}
@container garden-math (max-height:210px){.landscape-ui .ui-stage .combined-game.garden-game .mini-task-area .memory-math{gap:3px}.landscape-ui .ui-stage .combined-game.garden-game .mini-task-area .memory-math .equation{font-size:25px;min-height:32px}.landscape-ui .ui-stage .combined-game.garden-game .mini-task-area .memory-math .answer{height:32px;font-size:25px}.landscape-ui .ui-stage .combined-game.garden-game .mini-task-area .memory-math .keypad button{height:25px;font-size:18px}.landscape-ui .ui-stage .garden-game .mini-task-status{font-size:10px;margin:0}}
@media(prefers-reduced-motion:reduce){.garden-celebrate *{animation:none!important}}

@container garden-math (max-height:210px){.landscape-ui .ui-stage .combined-game.garden-game .mini-task-area .memory-math .mini-task-status{min-height:14px;line-height:12px;font-size:10px;margin:0}}
@container garden-math (max-height:175px){.landscape-ui .ui-stage .combined-game.garden-game .mini-task-area .memory-math .keypad{gap:2px}.landscape-ui .ui-stage .combined-game.garden-game .mini-task-area .memory-math .keypad button{height:22px;font-size:17px}.landscape-ui .ui-stage .combined-game.garden-game .mini-task-area .memory-math .mini-task-status{display:none}}

.shadow-stage .dino-silhouette{position:absolute;inset:3% 5%;width:90%;height:94%;min-height:0}
