*{box-sizing:border-box}body{margin:0;background:#101410;color:#e4e5d8;font-family:"Segoe UI","Microsoft YaHei",sans-serif}header{height:84px;border-bottom:1px solid #2b3227;display:flex;align-items:center;justify-content:space-between;padding:0 5vw}.brand{color:#ececdd;text-decoration:none;font-weight:800;font-size:22px;letter-spacing:2px}.brand small{font-size:10px;color:#8d9b7b;margin-left:17px;letter-spacing:3px}.sigil{color:#d4ed85;font-size:29px}.top{color:#89917f;font-size:12px}.top span{margin:0 18px;color:#49523e}button{cursor:pointer;font:inherit;border:1px solid #46513d;color:#bac4ad;background:#222a20;padding:8px 13px;border-radius:4px}button:hover{color:#e4f6ac;border-color:#afc977}.top button{margin-left:26px;font-size:11px}main{max-width:1240px;margin:auto;padding:36px 36px 20px}.heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px}.eyebrow{font-size:10px;letter-spacing:3px;color:#b9cc8e;font-weight:700}h1{font-size:29px;margin:13px 0 0;letter-spacing:1px}h1 em{font-style:normal;color:#bbd58e}.heading>p{font-size:12px;color:#8f9986;line-height:1.9}.shell{border:1px solid #46513a;border-radius:8px;overflow:hidden;box-shadow:0 20px 70px #0004}.gamehead{height:48px;background:#21291e;padding:0 20px;display:flex;align-items:center;justify-content:space-between;font-size:12px}.gamehead i{display:inline-block;width:7px;height:7px;background:#bce17f;box-shadow:0 0 10px #a5d660;margin-right:9px;border-radius:50%}.gamehead small{color:#859578;margin-left:15px}.gamehead button{font-size:11px;padding:5px 10px;margin-left:6px;background:transparent}.viewport{position:relative;background:#171b16;aspect-ratio:5/3}canvas{display:block;width:100%;height:100%;image-rendering:pixelated;cursor:crosshair}.overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#0d130edb;text-align:center;padding:20px;backdrop-filter:blur(3px)}.overlay h2{font-size:66px;letter-spacing:10px;margin:12px 0 15px;color:#f0ebcd;text-shadow:4px 5px #39472b}.overlay h2 span{color:#c0d98e}.overlay>p:not(.eyebrow){font-size:13px;color:#a6b39b}.features{font-size:11px;letter-spacing:2px;margin:20px 0;color:#cad3b5}.features span{color:#839b60;margin:0 14px}.primary{background:#d1e99d;color:#25311c;font-weight:800;padding:14px 32px;min-width:210px;border:0;box-shadow:0 4px #71874b;margin:9px 0 22px}.primary:hover{background:#e0f5b4;color:#1e2915}.primary span{margin-left:30px}.overlay small{font-size:10px;color:#748469}.status{min-height:89px;display:flex;justify-content:space-between;align-items:center;padding:17px 24px;background:#20271d;gap:15px}.label{display:block;font-size:9px;color:#91a080;letter-spacing:1.4px;margin-bottom:10px}.status strong{font-size:13px;font-weight:600;letter-spacing:1px;color:#e7e4ca}#health{color:#ed997b;font-size:16px;letter-spacing:3px}#health b{color:#8dbcd2;font-size:13px}.meter{height:6px;width:130px;background:#3b4433}.meter i{display:block;height:100%;background:#c1dc89;width:100%}.controls{display:flex;flex-wrap:wrap;gap:22px;margin:23px 0;color:#8e9b81;font-size:10px}kbd{font:10px monospace;border:1px solid #414c35;border-bottom-width:3px;background:#252e20;padding:4px 7px;color:#cad6bb;border-radius:3px;margin-right:5px}.note{background:#1c241a;border-left:2px solid #91af65;display:flex;padding:15px 20px;gap:28px;align-items:center;font-size:11px}.note span{color:#c1d59f;white-space:nowrap}.note p{margin:0;color:#8e9e82;line-height:1.6}footer{display:flex;justify-content:space-between;color:#64715b;font-size:9px;letter-spacing:1px;margin-top:25px}#toast{position:absolute;top:20px;left:50%;transform:translateX(-50%);padding:10px 20px;background:#182311ed;border:1px solid #9cb16e;color:#e2edc6;font-size:12px;pointer-events:none;opacity:0;transition:opacity .2s;white-space:nowrap}@media(max-width:700px){header{height:65px;padding:0 20px}.brand small,.top,.heading>p{display:none}main{padding:25px 12px}.heading h1{font-size:23px}.overlay h2{font-size:35px}.overlay .eyebrow,.features,.overlay small{display:none}.overlay>p:not(.eyebrow){font-size:10px}.status{flex-wrap:wrap;padding:12px}.status strong{font-size:10px}#health{font-size:12px}.controls{gap:15px}.note{gap:12px}footer{line-height:1.8;gap:20px}}

/* Touch controls stay outside the arena so thumbs never cover enemies. */
.touch-controls{display:none}canvas{touch-action:none}.touch-mode .touch-controls{display:flex;justify-content:space-around;align-items:center;gap:12px;padding:16px 12px;background:#182016;border-top:1px solid #3b4831;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.joystick{width:112px;height:112px;border:1px solid #73865a;border-radius:50%;position:relative;background:radial-gradient(circle,#3c4d2c66 0 40%,#202c1c 41%);touch-action:none}.joystick:before,.joystick:after{content:'';position:absolute;background:#72865b33;pointer-events:none}.joystick:before{width:1px;top:10px;bottom:10px;left:50%}.joystick:after{height:1px;left:10px;right:10px;top:50%}.stick-knob{position:absolute;left:calc(50% - 22px);top:calc(50% - 22px);width:44px;height:44px;background:#a5c17866;border:2px solid #b8d292;border-radius:50%;pointer-events:none;z-index:1}.stick-cross{position:absolute;inset:0;display:grid;place-items:center;color:#c8e29f;font-size:22px;pointer-events:none}.joystick.active{border-color:#d8e9ad;box-shadow:0 0 22px #b1d87a20}.stick-group{display:flex;align-items:center;flex-direction:column;gap:9px}.stick-group>span{font-size:10px;color:#9faf8c}.aim-stick{border-color:#b39966}.aim-stick .stick-knob{background:#baa16d66;border-color:#e6c98c}.touch-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.touch-actions button{min-width:56px;min-height:52px;font-size:21px;touch-action:none;user-select:none}.touch-actions small{display:block;font-size:10px;margin-top:3px}.touch-actions #touch-roll{grid-column:1 / -1;background:#3b4d2a;color:#d9efb8}.touch-actions button:active{background:#667f44}.touch-actions button:disabled{opacity:.4}.touch-mode .controls{display:none}.touch-mode .overlay small{display:none}.touch-mode .status{gap:10px}.touch-mode .gamehead button{min-height:36px}.touch-mode .viewport{overflow:hidden}.touch-mode #toast{max-width:94%;white-space:normal;width:max-content;text-align:center;line-height:1.5;font-size:11px;padding:7px 12px}.touch-mode .top{display:block;font-size:0}.touch-mode .top span{display:none}.touch-mode .top button{font-size:11px;margin-left:0;min-height:38px}.touch-mode main{padding-bottom:max(20px,env(safe-area-inset-bottom))}.touch-mode header{padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}
@media(max-width:450px){.touch-mode .joystick{width:96px;height:96px}.touch-mode .touch-controls{gap:6px;padding:13px 8px}.touch-mode .gamehead{padding:0 8px;font-size:10px}.touch-mode .gamehead small{margin-left:5px;font-size:9px}.touch-mode .gamehead button{padding:5px 7px;font-size:10px}.touch-mode .overlay{padding:8px}.touch-mode .overlay h2{font-size:30px;margin:4px 0}.touch-mode .overlay>p:not(.eyebrow){margin:7px 0}.touch-mode .primary{padding:11px 20px;margin:6px 0;min-width:180px}.touch-mode .status{display:grid;grid-template-columns:1fr 1fr}.touch-mode .heading{margin-bottom:18px}.touch-mode .note{margin-top:18px}}
@media(pointer:coarse) and (orientation:landscape) and (max-height:600px){body.touch-mode{padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}.touch-mode header,.touch-mode .heading,.touch-mode .bottom,.touch-mode footer{display:none}.touch-mode main{padding:4px;max-width:none}.touch-mode .shell{display:grid;grid-template-columns:minmax(0,1fr) 180px;border-radius:4px;min-height:calc(100dvh - 8px)}.touch-mode .gamehead{grid-column:1 / -1;height:40px}.touch-mode .viewport{grid-column:1;grid-row:2;align-self:center;justify-self:center;width:min(100%, calc((100dvh - 116px)*5/3));aspect-ratio:5/3}.touch-mode .touch-controls{grid-column:2;grid-row:2 / 4;border-top:0;border-left:1px solid #3b4831;flex-direction:column;padding:6px;gap:6px;justify-content:center}.touch-mode .joystick{width:82px;height:82px}.touch-mode .stick-group{gap:3px}.touch-mode .touch-actions{display:flex;gap:5px;flex-wrap:wrap;justify-content:center}.touch-mode .touch-actions button{min-width:45px;min-height:42px;padding:3px 6px;font-size:17px}.touch-mode .touch-actions small{font-size:9px}.touch-mode .status{grid-column:1;grid-row:3;padding:8px 12px;min-height:60px;display:flex}.touch-mode .label{font-size:8px;margin-bottom:5px}.touch-mode .meter{width:75px}.touch-mode #health{font-size:11px;letter-spacing:1px}.touch-mode .status strong{font-size:10px}.touch-mode .overlay h2{font-size:32px;margin:6px}.touch-mode .overlay .eyebrow,.touch-mode .overlay .features{display:none}.touch-mode .overlay .primary{margin:8px 0;padding:10px 24px}.touch-mode .overlay>p:not(.eyebrow){font-size:11px}}
