:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;color:#f5e8c9;font-synthesis:none;background:#101d1b;font-family:Trebuchet MS,Verdana,sans-serif}*{box-sizing:border-box}body{margin:0}button,select,input{font:inherit;color:inherit;background:#31483b;border:2px solid #6f8660;border-radius:0;padding:.6rem .75rem}button{cursor:pointer;touch-action:manipulation;min-height:44px;font-weight:700}button:hover{background:#405d47}button:focus-visible,select:focus-visible,input:focus-visible{outline-offset:2px;outline:3px solid #f6d575}button:disabled{opacity:.5;cursor:not-allowed}select{max-width:100%}input{width:5rem}h1,h2,h3,p{margin:0}h2{font-size:1.15rem}h3{color:#f6d575;font-size:.9rem}.game-shell{--screen-height:100dvh;background:repeating-linear-gradient(45deg,#142720 0 8px,#172b23 8px 16px);min-height:100dvh}.playing{width:100%;height:var(--screen-height);position:relative;overflow:hidden}.welcome{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:1rem;width:min(90%,480px);min-height:100dvh;margin:auto;padding:3rem 1.5rem;display:flex}.welcome-icon{color:#f4d378;background:#3d6046;border:4px solid #9db276;width:5rem;font-size:3rem;box-shadow:5px 5px #091812}.eyebrow,.panel-heading small{letter-spacing:.12em;color:#acc59a;font-size:.7rem;font-weight:700}.welcome h1{letter-spacing:.08em;text-shadow:4px 4px #172115;font-size:clamp(2.5rem,8vw,4rem)}.welcome h1 span,.brand span{color:#e3b758}.welcome-channel{color:#bad1ae}.primary{color:#fff3d4;background:#94712e;border-color:#e6c370;box-shadow:inset 0 -3px #725323}.primary:hover{background:#ad873b}.secondary{background:#263a30}.game-header{min-height:64px;padding:max(.45rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) .45rem max(1rem, env(safe-area-inset-left));pointer-events:none;z-index:3;align-items:center;gap:1rem;display:flex;position:absolute;top:0;left:0;right:0}.brand{letter-spacing:.06em;background:#1c3027e8;border:1px solid #50654a;flex-direction:column;flex-shrink:0;padding:.4rem .55rem;line-height:1.1;display:flex}.brand strong{font-size:1.1rem}.brand small{color:#acc59a;text-overflow:ellipsis;max-width:130px;font-size:.7rem;overflow:hidden}.status{flex:1;align-items:center;gap:.45rem;min-width:0;display:flex}.status span{white-space:nowrap;background:#293f31;border:1px solid #50654a;padding:.45rem .6rem;font-size:.78rem}.status .live{color:#abdf90}.status .paused{color:#f3bf80}.status .energy{color:#f5d276}.header-button{white-space:nowrap;pointer-events:auto;background:#3b5741}.stage{position:absolute;inset:0;overflow:hidden}.map-frame{background:#172b28;position:absolute;inset:0}canvas{width:100%;height:100%;image-rendering:pixelated;touch-action:manipulation;cursor:crosshair;display:block}.dpad{flex-direction:column;gap:.2rem;display:flex;position:absolute;bottom:.8rem;left:.8rem}.accessible-movement:not(:focus-within){clip-path:inset(50%);width:1px;height:1px;overflow:hidden}.accessible-movement:focus-within{z-index:3}.joystick{touch-action:none;-webkit-user-select:none;user-select:none;background:#253e32df;border:3px solid #94a97a;border-radius:50%;place-items:center;width:112px;height:112px;display:none;position:absolute;bottom:.8rem;left:.8rem;box-shadow:0 3px #13231b}.has-touch .joystick{display:grid}@media (any-pointer:coarse){.joystick{display:grid}}.action-button{touch-action:none;background:#253e32df;border:3px solid #94a97a;border-radius:50%;place-items:center;width:72px;height:72px;min-height:72px;padding:0;font-size:1.8rem;display:none;position:absolute;bottom:.8rem;right:.8rem;box-shadow:0 3px #13231b}.has-touch .action-button{display:grid}@media (any-pointer:coarse){.action-button{display:grid}}.joystick-cross{color:#94a97a;pointer-events:none;font-size:1.3rem}.joystick-knob{pointer-events:none;background:#698455;border:3px solid #d5dfab;border-radius:50%;width:44px;height:44px;position:absolute;box-shadow:inset 0 -4px #435e40,0 2px #13231b}.dpad-up{justify-content:center;display:flex}.dpad-row{gap:.2rem;display:flex}.direction{touch-action:none;-webkit-user-select:none;user-select:none;background:#253e32ed;border-color:#94a97a;width:48px;height:48px;padding:0;box-shadow:0 3px #13231b}.direction:active{background:#78935b;transform:translateY(2px);box-shadow:0 1px #13231b}.quick-actions{gap:.4rem;display:flex;position:absolute;bottom:.8rem;left:50%;transform:translate(-50%)}.quick-actions button{background:#263e31ed;box-shadow:0 3px #13231b}.panel{z-index:2;overscroll-behavior:contain;background:#20372df5;border:3px solid #849b68;flex-direction:column;gap:.7rem;width:min(330px,55%);padding:1rem;display:flex;position:absolute;top:4.7rem;bottom:.6rem;right:.6rem;overflow-y:auto;box-shadow:4px 4px #0e1c16}.panel-heading{border-bottom:2px solid #526b48;justify-content:space-between;align-items:flex-start;gap:.4rem;padding-bottom:.6rem;display:flex}.panel-heading h2{overflow-wrap:anywhere;margin-top:.2rem}.close{width:44px;min-height:44px;padding:0;font-size:1.5rem;line-height:1}.panel p{overflow-wrap:anywhere;font-size:.85rem;line-height:1.45}.help{color:#bed0ac}.info-card{background:#172a21;flex-direction:column;gap:.3rem;padding:.6rem;font-size:.85rem;display:flex}.inventory{grid-template-columns:repeat(3,1fr);gap:.3rem;display:grid}.inventory div{background:#172a21;border:1px solid #50654a;flex-direction:column;gap:.2rem;padding:.4rem;font-size:.75rem;display:flex}.inventory strong{color:#f4d378;font-size:1rem}.equipment-row{background:#172a21;border:1px solid #50654a;justify-content:space-between;align-items:center;gap:.5rem;padding:.35rem;font-size:.8rem;display:flex}label{justify-content:space-between;align-items:center;gap:.5rem;font-size:.85rem;display:flex}.buttons{flex-wrap:wrap;gap:.4rem;display:flex}.buttons button{flex:1}.full{width:100%}.error{color:#fff1dc;overflow-wrap:anywhere;background:#672e29;border:2px solid #d78067;padding:.6rem}.playing>.error{z-index:4;justify-content:space-between;align-items:center;gap:1rem;width:min(90%,560px);display:flex;position:absolute;top:4.7rem;left:50%;transform:translate(-50%)}.error button{min-height:32px;padding:.2rem .5rem}footer{color:#93aa89;text-align:center;padding:.5rem;font-size:.75rem}footer span{color:#e3b758}.playing footer{display:none}@media (height<=600px),(width<=700px){.game-header{min-height:48px;padding:max(.25rem, env(safe-area-inset-top)) max(.5rem, env(safe-area-inset-right)) .25rem max(.5rem, env(safe-area-inset-left));gap:.4rem}.brand strong{font-size:.85rem}.brand small{max-width:75px;font-size:.6rem}.status{gap:.2rem}.status span{padding:.3rem;font-size:.67rem}.status .online{display:none}.header-button{padding:.35rem .55rem}.header-button span{display:none}.panel{top:calc(3.4rem + env(safe-area-inset-top));bottom:max(.3rem, env(safe-area-inset-bottom));right:max(.3rem, env(safe-area-inset-right));gap:.5rem;padding:.65rem}.dpad,.joystick,.quick-actions{bottom:max(.4rem, env(safe-area-inset-bottom))}.dpad,.joystick{left:max(.4rem, env(safe-area-inset-left))}.action-button{right:max(.4rem, env(safe-area-inset-right));bottom:max(.4rem, env(safe-area-inset-bottom))}.playing>.error{top:calc(3.3rem + env(safe-area-inset-top))}footer{display:none}}@media (width<=500px) and (orientation:portrait){.quick-actions{bottom:calc(max(.4rem, env(safe-area-inset-bottom)) + 120px)}.panel{width:min(330px,100% - 1rem)}}@media (width<=370px){.brand{display:none}}
