:root{font-family:Trebuchet MS,sans-serif;color:#f4e5bb;background:#101f22;--background:192 36% 10%;--foreground:44 72% 85%;--primary:44 77% 62%;--primary-foreground:186 30% 14%;--card:184 29% 18%;--card-foreground:44 72% 85%;--border:147 15% 37%;--muted:180 21% 23%;--muted-foreground:99 16% 68%;--accent:89 62% 66%;--accent-foreground:186 30% 14%;--ring:44 77% 62%;--destructive:12 60% 64%;--secondary:180 21% 23%;--secondary-foreground:44 72% 85%;--input:147 15% 37%;--popover:184 29% 18%;--popover-foreground:44 72% 85%;--radius:.6rem}.dark{--background:192 36% 10%;--foreground:44 72% 85%;--primary:44 77% 62%;--primary-foreground:186 30% 14%;--card:184 29% 18%;--card-foreground:44 72% 85%;--border:147 15% 37%;--muted:180 21% 23%;--muted-foreground:99 16% 68%;--accent:89 62% 66%;--accent-foreground:186 30% 14%;--ring:44 77% 62%;--destructive:12 60% 64%;--secondary:180 21% 23%;--secondary-foreground:44 72% 85%;--input:147 15% 37%;--popover:184 29% 18%;--popover-foreground:44 72% 85%}*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #b8e875;outline-offset:4px}.game{min-height:100dvh;display:grid;place-items:center;background:#101f22}.hall-wrap{position:relative;width:min(100vw,177.7778dvh);aspect-ratio:16/9}.kw-workshop{width:100%;height:100%;overflow:hidden;background:#101f22;display:grid;place-items:center;font-family:Trebuchet MS,sans-serif;color:#f4e5bb}.kw-workshop>svg{display:block;width:100%;height:100%;object-fit:contain}.kw-workshop text{font-family:Trebuchet MS,sans-serif}.kw-workshop .kw-title{font-family:Georgia,serif;font-weight:700;letter-spacing:-1px}.kw-workshop .kw-small{font-size:10px;font-weight:700;letter-spacing:1.2px}.kw-workshop .kw-label{font-size:12px;font-weight:800;letter-spacing:1px}.kw-workshop .kw-run{animation:kw-trit .65s ease-in-out infinite alternate}.kw-workshop .kw-paw-a{transform-origin:15px 25px;animation:kw-paws .65s ease-in-out infinite alternate}.kw-workshop .kw-paw-b{transform-origin:43px 25px;animation:kw-paws .65s ease-in-out infinite alternate-reverse}.kw-workshop .kw-light{animation:kw-glimmer 3s ease-in-out infinite alternate}.kw-workshop .kw-steam{animation:kw-steam 3.5s ease-in-out infinite}.kw-workshop .kw-sparrow{transform-origin:1190px 245px;animation:kw-bird 4s ease-in-out infinite}.game[data-phase]:not([data-phase=playing]) .kw-workshop *,.kw-idle *{animation-play-state:paused!important}@keyframes kw-trit{0%{transform:translateY(0)}to{transform:translateY(-1.4px)}}@keyframes kw-paws{0%{transform:rotate(-9deg)}to{transform:rotate(9deg)}}@keyframes kw-glimmer{0%{opacity:.6}to{opacity:1}}@keyframes kw-steam{0%{opacity:0;transform:translateY(3px)}35%{opacity:.55}to{opacity:0;transform:translateY(-12px)}}@keyframes kw-bird{0%,85%,to{transform:rotate(0)}90%{transform:rotate(-4deg)}95%{transform:rotate(3deg)}}.overlay{position:fixed;inset:0;z-index:5;background:#102427d9;display:grid;place-items:center;padding:20px;overflow:auto;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.menu{width:min(660px,100%);background:#213b3d;border:1px solid #6b806b;border-radius:16px;padding:32px 38px;box-shadow:0 22px 90px #0b191c80;position:relative}.menu:before{content:"";display:block;height:5px;width:58px;background:#edc666;margin-bottom:20px}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:800;color:#b5c6a6}.menu h1{font:700 clamp(32px,5vw,58px)/1.05 Georgia,serif;color:#f1d99e;margin:12px 0 16px;letter-spacing:-1.5px}.menu .subtitle{font-size:18px;line-height:1.5;color:#ded5b3;margin:0 0 23px}.steps{padding:0;list-style:none;display:grid;gap:14px;margin:20px 0 26px;counter-reset:steps}.steps li{counter-increment:steps;display:grid;grid-template-columns:30px 1fr;gap:10px;font-size:14px;line-height:1.45;color:#bfccaf}.steps li:before{content:"0" counter(steps);color:#edc666;font-size:12px;font-weight:800;padding-top:2px}.steps strong{color:#f1dfb3}.controls{border-top:1px solid #4c6458;border-bottom:1px solid #4c6458;padding:15px 0;display:flex;gap:14px;flex-wrap:wrap;font-size:12px;color:#bfccaf}kbd{font:700 12px Trebuchet MS,sans-serif;color:#f1d99e;background:#172d31;border:1px solid #607763;border-radius:4px;padding:3px 6px;margin-right:4px}.actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:24px}.primary,.secondary,.sound,.toolbar button{border-radius:6px;padding:12px 17px;border:1px solid #687c66;text-decoration:none;font-weight:800;font-size:14px}.primary{background:#edc666;color:#20383a;border-color:#edc666}.primary:hover{background:#f3d581}.secondary,.sound,.toolbar button{background:#294548;color:#e1d5b0}.secondary:hover,.sound:hover,.toolbar button:hover{background:#365653}.sound{margin-left:auto}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:22px 0;border-top:1px solid #4c6458;border-bottom:1px solid #4c6458}.stats strong{display:block;font:700 34px Georgia,serif;color:#edc666}.stats span{font-size:12px;color:#bfccaf}.rank{font:italic 21px/1.4 Georgia,serif;color:#d6e4b9;margin-top:20px}.toolbar{position:absolute;right:2.5%;top:14.8%;display:flex;gap:8px}.toolbar button{font-size:11px;padding:5px 9px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.touch-controls{position:fixed;bottom:10px;left:12px;right:12px;display:none;justify-content:space-between;pointer-events:none}.touch-controls>div{display:flex;gap:10px}.touch-controls button{pointer-events:auto;touch-action:none;background:#213b3de8;border:1px solid #8c9c79;color:#f1d99e;border-radius:8px;padding:15px 20px;font-size:18px;font-weight:700}@media(pointer:coarse){.touch-controls{display:flex}}@media(max-width:767px){.menu{padding:24px}.menu .subtitle{font-size:15px}.steps,.actions{gap:10px}.sound{margin-left:0}.controls{gap:10px}.toolbar button{font-size:9px;padding:3px 6px}}@media(prefers-reduced-motion:reduce){.kw-workshop *{animation:none!important}}
