*{box-sizing:border-box}body{margin:0;font:17px/1.5 system-ui,sans-serif;color:#123e31;background:#b5f1dc}button,a{touch-action:manipulation}button{font:inherit;font-weight:750;cursor:pointer;border:3px solid #075539;border-radius:18px;background:#ffcf37;color:#123e31;padding:12px 20px;box-shadow:0 4px 0 #075539}button:hover{filter:brightness(1.06)}button:active{transform:translateY(3px);box-shadow:none}button:focus-visible,a:focus-visible{outline:4px solid #ed3176;outline-offset:4px}[hidden]{display:none!important}#game{height:100dvh;position:relative;overflow:hidden}canvas{width:100%;height:100%;display:block}header{position:absolute;inset:0 0 auto;display:flex;align-items:center;gap:18px;justify-content:space-between;background:#fff9e9ed;padding:10px 20px;z-index:2}header a{color:#075539;font-weight:700}header strong{font-size:clamp(18px,3vw,30px);color:#d21b57}header strong span{color:#087549}.panel{position:absolute;inset:92px max(20px,calc((100vw - 1000px)/2)) auto;max-height:calc(100dvh - 115px);overflow:auto;background:#fffbea;border:4px solid #086647;border-radius:28px;padding:clamp(18px,3vw,32px);box-shadow:0 9px 0 #09634355;z-index:4}.panel h1,.panel h2{line-height:1.15;margin:0 0 14px}.panel h1{font-size:clamp(30px,5vw,48px)}.panel p{margin:10px 0 18px}.team{display:flex;gap:10px;justify-content:center}.team img{width:22%;max-height:180px;object-fit:contain;border-radius:20px}.actions,.choices{display:flex;gap:14px;flex-wrap:wrap;margin:18px 0}.primary{background:#e92b6d;color:#fff;border-color:#a71043;box-shadow:0 4px 0 #a71043}.cards{display:grid;grid-template-columns:1fr 1fr;gap:14px}.cards button{text-align:left;background:#fff;border-color:#067147}.cards small{display:block;font-weight:450;margin-top:6px}#hud{position:absolute;top:80px;left:18px;right:18px;background:#fffbebee;border:2px solid #086647;border-radius:20px;padding:10px 15px;display:flex;gap:15px;align-items:center;justify-content:space-between}#controls{position:absolute;bottom:18px;left:18px;right:18px;display:flex;align-items:end;justify-content:space-between;pointer-events:none}#controls button{pointer-events:auto}.pad{display:grid;grid-template-columns:repeat(3,56px);gap:5px}.pad button{padding:11px;touch-action:none;user-select:none}.pad button:first-child{grid-column:2}.pad button:nth-child(2){grid-column:1;grid-row:2}.pad button:nth-child(3){grid-column:2;grid-row:2}.pad button:nth-child(4){grid-column:3;grid-row:2}#controls p{position:absolute;bottom:-15px;left:200px;font-size:14px}#near{position:absolute;bottom:155px;left:50%;transform:translateX(-50%);background:#fffbe9;border-radius:20px;padding:9px 20px;pointer-events:none}#near:empty{display:none}.feedback{padding:12px;border-radius:14px;border:2px solid #168457;background:#d8f8df}.feedback.wrong{border-color:#b82944;background:#ffedf0}label{display:block;margin:12px 0}.note{font-size:14px}.source{font-size:15px}a{color:#075539}@media(max-width:600px){header{padding:8px 12px;gap:9px}header a{font-size:14px}header button{padding:7px 10px}.panel{inset:76px 12px auto;max-height:calc(100dvh - 95px)}.cards{grid-template-columns:1fr}.team img{max-height:105px}#hud{top:68px;font-size:14px;gap:8px}#hud button{font-size:14px;padding:8px}#controls p{display:none}.pad{grid-template-columns:repeat(3,46px)}#inspect{font-size:15px;padding:13px}#near{font-size:14px;max-width:90%;width:max-content}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}

.guide-portrait{width:125px;height:140px;object-fit:contain;float:right;border-radius:20px;margin-left:15px}#controls{gap:12px}#guide{margin-left:auto}#inspect:disabled{opacity:.6} .panel{background:#fffdf1} @media(max-width:600px){#controls{flex-wrap:wrap;justify-content:end;bottom:20px}.pad{margin-right:auto;grid-row:span 2}#guide{max-width:150px;padding:10px;font-size:14px}#inspect{max-width:140px}#hud{padding:8px;font-size:13px}header{min-height:57px}.guide-portrait{width:90px;height:110px}}

.touch-control{pointer-events:auto;display:grid;justify-items:center;gap:8px;font-size:14px;font-weight:700}#joystick{width:116px;height:116px;background:#fffbea9e;border:4px solid #08714c;border-radius:50%;position:relative;touch-action:none;user-select:none;box-shadow:0 5px 0 #07553940}#stick{position:absolute;left:32px;top:32px;width:44px;height:44px;background:#ec3476;border:3px solid white;border-radius:50%;box-shadow:0 3px 7px #0004;pointer-events:none}#world{touch-action:none}@media(max-width:600px){#controls{display:grid;grid-template-columns:116px 1fr 1fr;align-items:center;gap:8px}.touch-control{grid-row:span 3}#controls button{font-size:14px;padding:9px;max-width:none;margin:0}#guide{grid-column:2/4}#controls p{display:none}}
/* Story-led polish */
.welcome-art{margin:-10px -10px 20px;border-radius:20px;overflow:hidden;background:#b9efce;max-height:280px}.welcome-art img{display:block;width:100%;height:260px;object-fit:contain}.speaker-portrait{float:right;width:100px;height:140px;object-fit:cover;object-position:top;border-radius:22px;margin:0 0 15px 16px;border:3px solid #f7ca4f}.eyebrow{display:block;letter-spacing:.08em;text-transform:uppercase;font-size:14px;font-weight:800;color:#08714c;margin-bottom:8px}.light-scene{width:100%;height:200px;object-fit:cover;object-position:center 35%;border-radius:20px;margin-bottom:18px}.panel{border-color:#0b7053;box-shadow:0 9px 0 #07553938,0 20px 70px #12472d33}.choices{display:grid;grid-template-columns:1fr}.choices button{text-align:left;background:#fff;border:2px solid #40936f;box-shadow:0 4px 0 #c5ddbd;padding:16px 20px}.choices button:hover{background:#e5f6db}.choices button:disabled{opacity:.7}.actions{clear:both}#hud{backdrop-filter:blur(10px)}#guide{background:#ffce3e;border-color:#845e16;color:#453811;box-shadow:0 4px 0 #845e16}#near{max-width:90%;text-align:center;border:2px solid #e4ad23;font-weight:700}#inspect:disabled{opacity:.75;background:#fff1c4;color:#6a6244;box-shadow:none}.panel h3{font-size:21px}header strong{letter-spacing:-.04em}@media(max-width:600px){.welcome-art img{height:170px}.light-scene{height:160px}.speaker-portrait{width:78px;height:108px}.panel h1{font-size:32px}.panel h2{font-size:26px}#near{bottom:200px;font-size:14px}#hud{top:68px;font-size:14px}#hud button{font-size:14px;padding:8px}.panel{inset:75px 10px auto}.touch-control>span{font-size:14px}}

.collect-tick{display:grid;place-items:center;width:76px;height:76px;background:#188756;color:white;border:5px solid #b8edab;border-radius:50%;font-size:48px;font-weight:900;margin-bottom:16px;animation:collect-pop .3s ease-out}.prop-picture{display:block;width:240px;max-width:90%;margin:0 auto}.prop-picture svg{width:100%;height:auto}.prop-button{display:grid;justify-items:center;background:#e3f6d8!important;padding:12px 25px!important;min-width:250px}.prop-button .prop-picture{width:220px}@keyframes collect-pop{from{transform:scale(.7)}to{transform:scale(1)}}@media(prefers-reduced-motion:reduce){.collect-tick{animation:none}}
