:root{font:18px/1.5 system-ui,sans-serif;color:#f5f6e8;background:#093a35}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at top,#276e58,transparent 70%),#093a35}button,select{font:inherit}button,a,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:2px solid #a1c6a7;border-radius:18px;padding:12px 18px;background:#255c50;color:white;font-weight:750;min-height:52px}button:hover{filter:brightness(1.12)}button:disabled{cursor:default;opacity:.65}button:focus-visible,a:focus-visible,select:focus-visible,summary:focus-visible,[data-region]:focus-visible{outline:4px solid #ffdf7d;outline-offset:4px}a{color:#ffe59c}header{display:flex;gap:18px;align-items:center;justify-content:space-between;padding:14px 4vw;background:#072c28}header span{font-size:14px;letter-spacing:.1em}main{max-width:1240px;margin:auto;padding:24px}.game-hero{display:grid;grid-template-columns:1.2fr 1fr;align-items:center;background:#163f36;border:1px solid #7baf83;border-radius:28px;overflow:hidden}.game-hero>div{padding:30px}.game-hero img{width:100%;height:260px;object-fit:cover}.eyebrow{font-size:14px;letter-spacing:.13em;color:#e5cf78}h1{font-family:Georgia,serif;font-size:clamp(2rem,4vw,3.4rem);margin:6px 0;color:#ffdf80}h2{font:700 clamp(1.5rem,3vw,2.1rem) Georgia,serif;margin:0}h3{font-size:1.5rem}.game-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:22px 0}.game-tabs button{background:#204e52;border-color:#85bec4}.game-tabs [aria-pressed=true],.gold{background:linear-gradient(#ffdf82,#edb74b);border-color:#ffeca4;color:#302607;box-shadow:0 4px 0 #8c681b}.game-panel{background:#123e36;border:1px solid #80aa84;border-radius:26px;padding:26px;scroll-margin:20px}.panel-top{display:flex;justify-content:space-between;gap:20px;align-items:center;flex-wrap:wrap}.controls{display:flex;flex-wrap:wrap;gap:20px;align-items:end;margin-top:20px}.controls label{display:grid;gap:6px}select{border-radius:12px;background:#f1f7e5;color:#15372e;padding:10px 32px 10px 14px;border:2px solid #8caf9c;min-height:52px}.match-board{display:grid;grid-template-columns:repeat(6,1fr);gap:12px}.match-card{aspect-ratio:1;display:grid;place-content:center;padding:8px;background:linear-gradient(135deg,#355e91,#153f66);border:3px solid #87b7d1;min-width:0;transition:transform .18s}.match-card .back{font-size:clamp(24px,5vw,45px);color:#f8d781}.match-card svg{display:none;width:100%;height:100%;max-height:140px}.match-card.revealed,.match-card.matched{background:#fff5d1;transform:rotateY(0deg)}.match-card.revealed svg,.match-card.matched svg{display:block}.match-card.revealed .back,.match-card.matched .back{display:none}.match-card.matched{border-color:#9ee0a0;opacity:.6}.tool-picker{display:grid;grid-template-columns:repeat(10,1fr);gap:8px}.tool-picker button{padding:5px;min-width:0;font-size:14px}.tool-picker svg{width:100%;height:64px;display:block}.tool-picker button[aria-pressed=true],.language-picker [aria-pressed=true],.word-tools [aria-pressed=true]{border-color:#ffe28b;background:#624c1d}.color-workspace{display:grid;grid-template-columns:minmax(0,2fr) minmax(230px,1fr);gap:30px;margin-top:20px}#color-canvas{background:#fffdf0;border-radius:20px;display:grid;place-items:center;min-height:320px}#color-canvas svg{width:100%;height:390px;max-height:50svh;padding:20px}#color-canvas [data-region]:not([data-paint-stroke]){stroke:#493c32;stroke-width:3}#color-canvas [data-region]{cursor:pointer;transition:fill .12s}.color-sidebar button{display:block;width:100%;margin-top:16px}#palette{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}#palette button{padding:0;min-height:52px;border:3px solid #eee;position:relative}#palette [aria-pressed=true]::after{content:'✓';color:white;text-shadow:0 1px 3px #000;font-size:32px}#palette [aria-pressed=true]{outline:3px solid #f5cf70;outline-offset:3px}.work-scene{height:340px;background:linear-gradient(#b4e4f2 65%,#cba36a 65%);border-radius:24px;overflow:hidden;position:relative}.work-scene svg{width:100%;height:100%;display:block}.work-scene .moving{transform-box:fill-box;transform-origin:center;animation:work 1.4s ease-in-out infinite}.work-scene[data-tool=hammer] .moving{transform-origin:bottom;animation:hammer .6s ease-in-out infinite}.work-scene[data-tool=saw] .moving{animation:saw .65s ease-in-out infinite}.work-scene[data-tool=jug] .moving{animation:pour 2s ease-in-out infinite}.work-scene[data-tool=ladder] .moving{animation:climb 3s ease-in-out infinite}.work-scene .water{stroke:#39a7e5;stroke-width:8;stroke-dasharray:10 8;animation:water 1s linear infinite}.work-scene .nail{animation:nail 2s ease-in-out infinite}.work-scene .dirt{animation:dirt 1.4s ease-in-out infinite}.language-picker{display:flex;gap:10px;flex-wrap:wrap}.word-detail{display:grid;grid-template-columns:180px 1fr;align-items:center;gap:28px;background:#205449;border-radius:24px;padding:24px;margin:22px 0}#word-picture{background:#fff5d1;border-radius:24px;padding:18px}#word-picture svg{width:100%;display:block}#word-name{font-size:2.5rem;margin:6px 0;color:#ffe68a}#word-language{margin:0;color:#bbdbce}.word-tools{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}.word-tools button{min-width:0;background:#1d5149}.word-tools svg{height:100px;width:100%;display:block}.word-tools small{display:block;font-size:16px}.note{font-size:16px;color:#c3dacb}summary{font-weight:750;cursor:pointer;padding:14px 0}footer{text-align:center;padding:30px;font-size:16px;color:#bad3c1}[hidden]{display:none!important}@keyframes hammer{50%{transform:rotate(-32deg)}}@keyframes saw{50%{transform:translateX(30px)}}@keyframes pour{35%,70%{transform:rotate(-30deg)}}@keyframes climb{50%{transform:translateY(-90px)}}@keyframes work{50%{transform:translate(25px,-25px) rotate(-10deg)}}@keyframes water{to{stroke-dashoffset:-36}}@keyframes nail{50%{transform:translateY(12px)}}@keyframes dirt{50%{transform:translate(30px,-20px)}}@media(max-width:800px){.tool-picker{grid-template-columns:repeat(5,1fr)}.match-board{grid-template-columns:repeat(4,1fr)}.word-tools{grid-template-columns:repeat(3,1fr)}.game-tabs{gap:8px}.game-tabs button{padding:12px 8px}.game-hero{grid-template-columns:1fr}.game-hero img{height:180px}.color-workspace{grid-template-columns:1fr}.color-sidebar{display:grid;grid-template-columns:1fr 1fr;gap:14px}#palette,#color-message{grid-column:1/-1}.color-sidebar button{margin:0}header span{display:none}}@media(max-width:480px){main{padding:12px}.game-panel{padding:16px}.game-tabs{grid-template-columns:1fr}.game-tabs button{min-height:54px}.match-board{gap:8px}.match-card{border-width:2px}.word-detail{grid-template-columns:100px 1fr;padding:14px;gap:14px}#word-picture{padding:6px}#word-name{font-size:1.7rem}.word-tools{grid-template-columns:repeat(2,1fr)}.controls{gap:12px}.controls label{width:100%}header{font-size:16px}.tool-picker button{font-size:12px}.work-scene{height:280px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
