@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800;900&family=DM+Sans:wght@400;500;600;700;800&display=swap');
:root{color-scheme:dark;--ink:#edf2e9;--dim:#a5b4af;--gold:#f4d28b;--teal:#85e0c4;--panel:#101a1b;--line:#526764;--safe-bottom:env(safe-area-inset-bottom,0px)}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;height:100dvh;overflow:hidden;background:#11191b;color:var(--ink);font-family:'DM Sans',system-ui,sans-serif;overscroll-behavior:none;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit}#game{position:relative;width:100%;height:100%;min-height:300px;overflow:hidden;background:linear-gradient(#a7bcc0,#e2cda2 66%,#6d7456);isolation:isolate}#world{position:absolute;inset:0;z-index:-1}#world canvas{display:block;width:100%;height:100%;outline:none;touch-action:none}.hud{position:absolute;z-index:2;top:0;left:0;right:0;min-height:76px;padding:max(10px,env(safe-area-inset-top)) 18px 11px;display:flex;align-items:center;justify-content:space-between;gap:18px;background:linear-gradient(180deg,#101a1bea,#101a1bb0 82%,transparent);pointer-events:none}.identity{min-width:160px;display:flex;flex-direction:column;gap:3px}.identity b{font:900 23px/.94 'Barlow Condensed',Impact,sans-serif;letter-spacing:1.7px;color:#f7e3b1;text-shadow:0 2px #51412e}.identity span{font:700 11px 'Barlow Condensed',sans-serif;letter-spacing:1.4px;color:#d9e0ce}.meters{display:flex;align-items:center;justify-content:center;gap:clamp(13px,3vw,38px)}.meter{display:flex;min-width:70px;flex-direction:column;gap:4px}.meter small{font:800 10px 'Barlow Condensed',sans-serif;letter-spacing:1.4px;color:#c2d0c4}.meter>b{font:800 16px 'Barlow Condensed',sans-serif;letter-spacing:.4px;white-space:nowrap}.points-meter>b{color:#ffe4a1;font-size:19px}.health-meter{min-width:108px;position:relative;padding-right:30px}.health-track{width:102px;height:9px;border:1px solid #e0e8df6a;border-radius:12px;background:#152420ad;overflow:hidden}.health-track i{display:block;height:100%;width:100%;border-radius:inherit;background:linear-gradient(90deg,#e8786f,#f2c182);transition:width .2s}.health-meter>b{position:absolute;right:0;bottom:0;font:800 12px 'Barlow Condensed',sans-serif}.top-actions{display:flex;gap:8px;pointer-events:auto}.icon-button{min-height:40px;padding:7px 12px;border:1px solid #dce7d26b;border-radius:10px;background:#172521c9;box-shadow:0 3px 8px #08100b35;font-size:16px;font-weight:800;cursor:pointer}.icon-button span{font:800 10px 'Barlow Condensed',sans-serif;letter-spacing:1px}.icon-button:active{transform:translateY(1px);background:#33463a}#toast{position:absolute;z-index:4;top:91px;left:50%;transform:translate(-50%,-8px);padding:9px 17px;border:1px solid #ffebbb77;border-radius:24px;background:#19231edc;box-shadow:0 5px 16px #1a1c1b40;color:#ffe5ac;font:800 15px 'Barlow Condensed',sans-serif;letter-spacing:.45px;white-space:nowrap;opacity:0;transition:opacity .18s,transform .18s;pointer-events:none}#toast.show{opacity:1;transform:translate(-50%,0)}#damageFlash{position:absolute;z-index:1;inset:0;pointer-events:none;box-shadow:inset 0 0 0 0 #f0717155;transition:box-shadow .12s}#damageFlash.hit{box-shadow:inset 0 0 95px 18px #ef57524d}#cameraHint{position:absolute;z-index:1;top:88px;left:50%;transform:translateX(-50%);padding:5px 9px;background:#101a1b3b;border:0;border-radius:20px;color:#f2f4df99;font:700 9px 'Barlow Condensed',sans-serif;letter-spacing:1.5px;pointer-events:none;opacity:.65}.controls{position:absolute;z-index:3;bottom:calc(12px + var(--safe-bottom));left:0;right:0;display:flex;justify-content:space-between;align-items:flex-end;padding:0 clamp(14px,3vw,38px);pointer-events:none}.stick-area{display:flex;flex-direction:column;align-items:center;gap:4px;color:#edf2e9ba;font:800 10px 'Barlow Condensed',sans-serif;letter-spacing:1.5px;pointer-events:auto}.stick-area>span{text-shadow:0 1px 4px #17201b}.stick-ring{position:absolute;inset:0;border-radius:50%;border:1px solid #f4f0d252;background:#111b1c34;box-shadow:inset 0 0 28px #18262420}.stick-area #stick{width:116px;height:116px;position:relative;border-radius:50%;touch-action:none}.stick-ring:before,.stick-ring:after{content:"";position:absolute;background:#f4f0d226}.stick-ring:before{left:50%;top:11%;bottom:11%;width:1px}.stick-ring:after{top:50%;left:11%;right:11%;height:1px}#stickKnob{position:absolute;width:48px;height:48px;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:50%;border:1px solid #ffffff8a;background:radial-gradient(circle at 35% 28%,#d6e2ccbb,#475950cc 75%);box-shadow:0 4px 13px #0b110da0;pointer-events:none;will-change:transform}.action-pad{display:grid;grid-template-columns:repeat(3,minmax(68px,82px));gap:8px;pointer-events:auto}.action{height:67px;border:1px solid #edf0d270;border-bottom:4px solid #1b2926;border-radius:14px;background:linear-gradient(145deg,#405347ee,#21342deF);box-shadow:0 6px 15px #111a1870;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;touch-action:none;cursor:pointer;color:#f3f1dc;font:800 10px 'Barlow Condensed',sans-serif;letter-spacing:.7px}.action i{font-style:normal;font-size:22px;line-height:25px}.action:active,.action.pressed{transform:translateY(3px);border-bottom-width:1px;filter:brightness(1.25)}.action.melee{background:linear-gradient(145deg,#774b4aee,#452c31)}.action.ranged{background:linear-gradient(145deg,#786643ee,#51432d)}.action.smoke{background:linear-gradient(145deg,#52666aee,#303f42)}.action b{font-size:9px}.desktop-help{position:absolute;z-index:2;bottom:7px;left:50%;transform:translateX(-50%);color:#f3f3df77;font:700 9px 'Barlow Condensed',sans-serif;letter-spacing:.8px;white-space:nowrap;pointer-events:none}.modal-layer{position:absolute;z-index:6;inset:0;display:grid;place-items:center;padding:max(14px,env(safe-area-inset-top)) 14px max(14px,var(--safe-bottom));background:#101719a8;backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px)}.modal-layer[hidden]{display:none!important}.panel{max-width:740px;width:min(740px,100%);max-height:min(90%,780px);overflow:auto;padding:22px;border:1px solid #c2d0bb70;border-radius:21px;background:linear-gradient(145deg,#24332feF,#111b1aF5);box-shadow:0 22px 70px #0a100eb8;touch-action:pan-y}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:14px}.panel-head small,.small-panel>small{font:800 11px 'Barlow Condensed',sans-serif;letter-spacing:2px;color:#b5c5b0}.panel h1{margin:2px 0 0;color:#f5deb0;font:800 34px/.95 'Barlow Condensed',sans-serif;letter-spacing:1px}.panel-head> b{color:var(--gold);font:800 21px 'Barlow Condensed',sans-serif}.shop-intro{margin:10px 0 14px;color:#c4d0c6;font-size:13px;line-height:1.45}.weapon-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.weapon-card{min-height:148px;display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:12px;border:1px solid #8292856e;border-radius:13px;background:linear-gradient(145deg,#30433ad9,#1a2925ed);text-align:left}.weapon-preview{height:38px;width:100%;font-size:27px;line-height:35px;color:#f2d796;text-shadow:0 2px #342b22}.weapon-card strong{font:800 16px/1 'Barlow Condensed',sans-serif;color:#f5e4bc}.weapon-card p{margin:0;min-height:30px;color:#bfcbc0;font-size:10px;line-height:1.35}.weapon-card .weapon-meta{color:#eddaa8;font-size:11px;font-weight:800}.weapon-card button{width:100%;margin-top:auto;min-height:31px;border:1px solid #e4e0c26e;border-radius:8px;background:#c8b77a;color:#202b24;font:800 11px 'Barlow Condensed',sans-serif;letter-spacing:.5px;cursor:pointer}.weapon-card button:disabled{background:#46534a;color:#b9c1b2}.primary-button{width:100%;min-height:46px;margin-top:15px;border:0;border-bottom:4px solid #9e7434;border-radius:11px;background:linear-gradient(#f5dfa9,#e3c47e);color:#263228;font:900 15px 'Barlow Condensed',sans-serif;letter-spacing:1px;cursor:pointer}.primary-button:active{transform:translateY(2px);border-bottom-width:2px}.small-panel{max-width:420px;text-align:center;padding:32px 26px}.small-panel h1{margin-top:8px}.small-panel p{color:#c5d1c6;font-size:14px;line-height:1.5}.quiet-button{margin-top:11px;min-height:38px;background:transparent;border:0;color:#c5d1c6;text-decoration:underline;cursor:pointer;font-size:12px}.result-mark{color:var(--gold);font:800 42px 'Barlow Condensed',sans-serif}.desktop-help{display:none}
@media(min-width:900px) and (pointer:fine){.controls{display:none}.desktop-help{display:block}.hud{padding:16px 24px}.meter{min-width:90px}}
@media(max-width:720px){.hud{min-height:68px;padding-left:12px;padding-right:10px;gap:8px}.identity{min-width:94px}.identity b{font-size:17px;letter-spacing:.7px}.identity span{font-size:9px;letter-spacing:.8px}.meters{gap:clamp(6px,1.6vw,13px)}.meter{min-width:45px}.meter small{font-size:8px;letter-spacing:.8px}.meter>b{font-size:13px}.points-meter>b{font-size:15px}.health-meter{min-width:75px;padding-right:21px}.health-track{width:70px;height:8px}.health-meter>b{font-size:10px}.top-actions{gap:5px}.icon-button{min-height:35px;padding:5px 8px;font-size:14px}.icon-button span{font-size:9px}.weapon-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.panel{padding:17px}.weapon-card{min-height:127px;padding:10px}.weapon-card p{font-size:10px}.controls{padding-left:12px;padding-right:12px;bottom:calc(8px + var(--safe-bottom))}.stick-area #stick{width:102px;height:102px}#stickKnob{width:43px;height:43px}.action-pad{grid-template-columns:repeat(4,minmax(48px,62px));gap:6px}.action{height:58px;border-radius:12px}.action i{font-size:20px;line-height:22px}#toast{top:78px;font-size:13px}}
@media(max-width:430px){.identity{min-width:82px}.identity b{font-size:14px}.identity span{font-size:8px;letter-spacing:.4px}.meters{gap:5px}.meter{min-width:38px}.meter small{font-size:7px;letter-spacing:.5px}.meter>b{font-size:11px}.points-meter>b{font-size:13px}.health-meter{min-width:63px;padding-right:17px}.health-track{width:57px}.health-meter>b{font-size:9px}.top-actions{gap:3px}.icon-button{min-width:34px;padding:5px}.icon-button span{display:none}.controls{padding-left:8px;padding-right:8px}.stick-area #stick{width:88px;height:88px}#stickKnob{width:39px;height:39px}.action-pad{grid-template-columns:repeat(4,minmax(45px,52px));gap:4px}.action{height:52px;font-size:9px}.action i{font-size:18px;line-height:19px}.weapon-grid{gap:6px}.weapon-card{min-height:119px;padding:8px}}
@media(max-height:430px){.hud{min-height:53px;padding-top:max(5px,env(safe-area-inset-top));padding-bottom:4px}.identity b{font-size:16px}.controls{bottom:calc(3px + var(--safe-bottom))}.stick-area #stick{width:76px;height:76px}#stickKnob{width:36px;height:36px}.stick-area{font-size:8px;gap:1px}.action-pad{grid-template-columns:repeat(4,minmax(48px,62px));gap:5px}.action{height:48px}.action i{font-size:17px;line-height:18px}.panel{padding:14px}.weapon-card{min-height:105px}.panel h1{font-size:28px}}


.boss-meter{position:absolute;z-index:2;top:120px;left:50%;transform:translateX(-50%);width:min(310px,74vw);display:flex;flex-direction:column;align-items:center;gap:4px;padding:7px 11px;border:1px solid #e5c89688;border-radius:10px;background:#182320bd;box-shadow:0 3px 12px #14201b55;pointer-events:none}.boss-meter[hidden]{display:none}.boss-meter small{font:800 10px 'Barlow Condensed',sans-serif;letter-spacing:1.6px;color:#f3d49a}.boss-meter div{width:100%;height:8px;overflow:hidden;border:1px solid #fff5d577;border-radius:8px;background:#301e29}.boss-meter i{display:block;width:100%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#a43242,#ed8670);transition:width .15s}.boss-meter b{font:700 10px 'Barlow Condensed',sans-serif;color:#f2e8d2}@media(max-height:430px){.boss-meter{top:54px;width:min(220px,55vw);padding:4px 8px;gap:2px}.boss-meter div{height:5px}}
