:root{color-scheme:dark;--cream:#fff1cd;--gold:#ffdb64;--ink:#20281f}
*{box-sizing:border-box}body{margin:0;background:#171f19;color:var(--cream);font:500 14px/1.4 'DM Sans',system-ui,sans-serif}
button{font:inherit;color:inherit;cursor:pointer;border:1px solid #6c745d;background:#303b2d;border-radius:9px;padding:7px 12px;touch-action:manipulation}button:focus-visible{outline:3px solid #fff;outline-offset:2px}button:disabled{opacity:.48;cursor:default}[hidden]{display:none!important}
#app{max-width:1500px;margin:auto;padding:0 max(10px,env(safe-area-inset-left))}
.topbar{height:56px;display:flex;align-items:center;justify-content:space-between;gap:8px}
h1{font:950 clamp(15px,3.8vw,28px)/1 'Archivo Black',system-ui;letter-spacing:-1px;margin:0;white-space:nowrap}h1 span{color:var(--gold)}.topbar>div{display:flex;gap:5px}.topbar button{font-size:12px;padding:5px 9px;min-height:34px}
#arena{height:calc(100dvh - 87px);min-height:280px;position:relative;border:2px solid #657255;border-radius:14px;overflow:hidden;touch-action:none;background:#8bb568;isolation:isolate}
#world{width:100%;height:100%;display:block;cursor:crosshair}
.match-hud{position:absolute;top:10px;left:10px;display:flex;gap:5px;pointer-events:none}.pill{background:#253121ed;border:1px solid #f9ecc33b;border-radius:8px;padding:6px 10px;display:grid;gap:1px}.pill b{font-size:19px;line-height:1;font-variant-numeric:tabular-nums}.pill small{font-size:9px;font-weight:800;letter-spacing:.03em}
#radar{position:absolute;right:10px;top:10px;width:116px;height:auto;border:2px solid #fff4cf7a;border-radius:9px}
#notice{position:absolute;top:69px;left:10px;background:#243021ed;padding:6px 9px;border-radius:7px;font-weight:800;font-size:12px;pointer-events:none}
.bottom{position:absolute;left:50%;bottom:10px;transform:translateX(-50%);display:flex;align-items:stretch;gap:5px;max-width:calc(100% - 12px);white-space:nowrap}
.health{display:flex;align-items:center;gap:6px;padding:6px 9px;border:1px solid #fff3d240;background:#243021ed;border-radius:9px;font-size:12px}.health span{color:#ff98a4}meter{width:80px;height:10px}meter::-webkit-meter-bar{border:0;background:#172217;border-radius:99px}meter::-webkit-meter-optimum-value{background:#96db8d;border-radius:99px}
.quick-slot{position:relative;min-width:95px;display:grid;grid-template-columns:55px 1fr;align-items:center;padding:3px 8px;background:#243021ed}.quick-slot img{width:55px;height:28px;object-fit:contain;grid-row:1/3}.quick-slot small{font-weight:850;color:#ffdc70}.quick-slot b{font-size:10px}.quick-slot[aria-pressed=true]{border-color:#ffda62;background:#4c4729}
#bag{background:var(--gold);color:var(--ink);font-weight:900}#heal{background:#234031}
#field{position:absolute;left:10px;bottom:66px;display:grid;justify-items:start;gap:4px;font-size:11px;pointer-events:none}
#field label,#stealth{background:#273122e8;padding:3px 7px;border-radius:6px;font-weight:800}#field label{display:flex;gap:8px;align-items:center}#stamina{width:65px}#stamina::-webkit-meter-optimum-value{background:#ffd36a}#stealth{background:#29543a}
#prompt{position:absolute;bottom:96px;left:50%;transform:translateX(-50%);background:#253022eb;border:1px solid #fff0b958;padding:6px 11px;border-radius:8px;white-space:nowrap;font-size:12px;font-weight:800}
#inventory{position:absolute;right:8px;bottom:66px;width:min(380px,calc(100% - 16px));max-height:calc(100% - 135px);overflow:auto;touch-action:pan-y;padding:13px;border:1px solid #718063;background:#1e2a20f5;border-radius:12px;z-index:3}
#inventory header{display:flex;align-items:center;justify-content:space-between}h2{margin:0;font-size:24px;letter-spacing:-.05em}.bag-capacity{display:flex;justify-content:space-between;margin:10px 0;font-size:12px}#gear-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}#gear-grid>div{display:grid;justify-items:center;background:#33422e;border-radius:8px;padding:7px 2px;font-size:10px}#gear-grid img{width:48px;height:38px;object-fit:contain}#inventory-hint{font-size:10px;margin:9px 0 0;color:#c0c8af}
#watch{position:absolute;bottom:10px;left:10px;right:10px;display:flex;align-items:center;justify-content:center;gap:8px;background:#202c22ee;padding:8px;border-radius:10px;font-size:12px}
#overlay{position:absolute;inset:0;background:#14251c77;display:grid;place-items:center;padding:14px;z-index:4;overflow:auto;touch-action:pan-y}
.menu{background:#fff1d3;color:#263023;width:min(530px,100%);padding:clamp(16px,3vw,28px);border:3px solid #273022;border-radius:16px;box-shadow:0 7px 0 #273022}
.menu h2{font-size:clamp(28px,5vw,48px);line-height:1.05;font-weight:950}.eyebrow{font-weight:900;font-size:9px;letter-spacing:.12em;margin:0 0 8px;color:#526341}
#summary{font-size:13px;margin:10px 0 16px;max-width:48ch}.menu-actions{display:flex;gap:8px;margin-top:15px}#start{background:var(--gold);color:#252b1e;font-weight:950;border:2px solid #293022;box-shadow:0 3px 0 #293022;padding:8px 22px}#menu-back{background:#e1d5b9;color:#293022}
#map-picker{display:grid;grid-template-columns:1fr 1fr;gap:9px}.map-card{background:#e1e4c2;color:#233022;text-align:left;padding:8px;border:2px solid transparent;display:flex;align-items:center;gap:8px}.map-card.selected{border-color:#445b32;background:#d4dfb3}.map-card img{width:54px;height:64px;object-fit:contain}.map-card span{display:grid;gap:3px}.map-card b{font-size:13px}.map-card small{font-size:10px;line-height:1.3}.instructions,.mobile-instructions{font-size:10px;color:#697052;margin:17px 0 0}
footer{height:29px;display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#b4c0a4}
#touch-controls,.mobile-instructions{display:none}
@media(pointer:coarse),(max-width:560px),(max-height:520px) and (orientation:landscape){#touch-controls{display:flex;position:absolute;left:12px;right:12px;bottom:76px;justify-content:space-between;align-items:flex-end;pointer-events:none}#stick{width:96px;height:96px;border:2px solid #fff2cd88;border-radius:50%;background:#1a2b1d55;display:grid;place-items:center;pointer-events:auto;touch-action:none}#stick i{width:39px;height:39px;background:#fff2cda6;border-radius:50%;pointer-events:none}.actions{width:162px;height:116px;position:relative}.actions button{position:absolute;padding:0;width:47px;height:47px;border-radius:50%;font-size:10px;font-weight:850;background:#293a2adf;border:2px solid #fff2cd77;pointer-events:auto;touch-action:none}#fire{width:66px;height:66px;right:0;bottom:0;background:#6f5528e8;font-size:13px}#pickup{left:0;bottom:0}#grenade{right:68px;bottom:61px}#sprint{left:0;bottom:60px}#reload{right:0;bottom:72px;width:35px;height:35px}#field{bottom:185px}#prompt{bottom:204px}.instructions{display:none}.mobile-instructions{display:block}}
@media(max-width:560px){.topbar{height:47px}.topbar button{padding:4px 7px;font-size:10px}#app{padding:0 max(5px,env(safe-area-inset-left))}#arena{height:calc(100dvh - 74px);border-radius:10px}.match-hud{top:7px;left:7px}.pill{padding:5px 7px}.pill b{font-size:16px}.pill small{font-size:8px}#radar{width:82px;top:7px;right:7px}.quick-slot{min-width:54px;grid-template-columns:33px 1fr;padding:3px 4px}.quick-slot img{width:33px;height:22px}.quick-slot small{font-size:9px}.health{padding:4px;gap:3px;font-size:10px}.health meter{width:36px}.bottom{gap:3px}#bag,#heal{font-size:10px;padding:4px 6px}#notice{top:57px;font-size:10px}.map-card{display:grid;justify-items:center;text-align:center}.map-card img{height:47px;width:50px}.menu{padding:17px}.menu h2{font-size:32px}}
@media(max-height:520px) and (orientation:landscape){.topbar{height:34px}.topbar h1{font-size:18px}.topbar button{min-height:26px;padding:2px 8px}footer{display:none}#arena{height:calc(100dvh - 39px);min-height:0}.menu{max-width:690px;padding:12px 18px}.menu h2{font-size:27px}#summary{margin:6px 0 9px}#map-picker{grid-template-columns:1fr 1fr}.map-card{display:flex;text-align:left;padding:4px 10px}.map-card img{height:42px;width:42px}.menu-actions{margin-top:8px}.mobile-instructions,.instructions{margin-top:9px;font-size:9px}.eyebrow{margin-bottom:5px}#radar{width:85px}#touch-controls{bottom:12px;left:18px;right:18px}#field{bottom:123px}#prompt{bottom:66px}#inventory{bottom:63px;max-height:calc(100% - 72px);width:330px}#gear-grid{grid-template-columns:repeat(5,1fr)}#gear-grid img{width:32px;height:26px}#field label{font-size:9px}#watch{max-width:500px;left:50%;transform:translateX(-50%);right:auto;width:90%}}
#map-picker{grid-template-columns:repeat(3,minmax(0,1fr))}
.map-card{display:grid;justify-items:center;text-align:center;gap:5px}
.map-card img{width:63px;height:66px}
.map-card b{font-size:12px}
@media(max-width:560px){.map-card{padding:7px 4px}.map-card img{width:47px;height:48px}.map-card b{font-size:10px}.map-card small{font-size:9px}.menu{padding:15px}}
@media(max-height:520px) and (orientation:landscape){.map-card{display:flex;text-align:left;padding:5px 7px}.map-card img{width:44px;height:44px}}

/* Illustrated equipment HUD and touch controls. */
#ammo-hud{position:absolute;right:12px;bottom:77px;display:flex;align-items:center;gap:10px;padding:9px 13px;background:#192a24ed;border:1px solid #cce2be55;border-radius:12px;box-shadow:0 5px 20px #08170c44;pointer-events:none}
#ammo-hud img{width:32px;height:42px;object-fit:contain}#ammo-hud div{display:grid}#ammo-name{font-size:10px;color:#c6d5b8}#ammo-count{font-size:24px;line-height:1.1;font-variant-numeric:tabular-nums;letter-spacing:.02em}#ammo-hud.empty{border-color:#ff8e7b;color:#ffb2a4}
#load-meter{display:block;width:100%;height:9px;margin-bottom:12px}#load-meter::-webkit-meter-optimum-value{background:#94dbb1}#load-meter::-webkit-meter-suboptimum-value{background:#ffd26c}#gear-grid>div{position:relative;border:1px solid #8ea38322}#gear-grid>div>button{font-size:10px;padding:2px 9px;margin-top:5px;background:#1d2d22;border-color:#88a17a55;min-height:27px}#gear-grid b{font-variant-numeric:tabular-nums}.bag-capacity{font-weight:800;letter-spacing:.04em}#inventory{box-shadow:0 12px 40px #06140a88}
@media(pointer:coarse),(max-width:560px),(max-height:520px) and (orientation:landscape){
 #stick{border:0;background:transparent url('art/joystick-base.webp') center/contain no-repeat;filter:drop-shadow(0 4px 5px #06180e66)}
 #stick i{width:43px;height:43px;background:transparent url('art/joystick-knob.webp') center/contain no-repeat;box-shadow:none}
 #grenade{background-image:url('art/grenade.webp');background-position:center 3px;background-size:22px 27px;background-repeat:no-repeat;padding-top:25px;font-size:9px}
 #ammo-hud{top:107px;bottom:auto;right:9px;padding:6px 9px;gap:6px}#ammo-hud img{width:23px;height:31px}#ammo-count{font-size:20px}#ammo-name{font-size:8px}
}
@media(max-width:560px){#inventory{max-height:calc(100% - 135px)}#gear-grid img{height:34px}#ammo-hud{top:82px;max-width:150px}.quick-slot small{font-variant-numeric:tabular-nums}}
@media(max-height:520px) and (orientation:landscape){#ammo-hud{top:80px;right:10px}#gear-grid{grid-template-columns:repeat(3,1fr)}#gear-grid>div{padding:4px}#inventory{width:310px}#inventory-hint{font-size:9px}}
/* Magazine: one illustrated round per cartridge, with spent rounds dimmed. */
#ammo-hud{display:grid;grid-template-columns:30px 1fr;width:218px;padding:12px 14px;gap:7px 10px;background:linear-gradient(135deg,#23362af5,#121f1bf5);border:1px solid #d5e1ba55;border-radius:15px;box-shadow:0 6px 24px #05130c66,inset 0 1px #ffffff12}
#ammo-hud>div:not(#magazine){display:grid;gap:3px}#ammo-count{font-size:27px;font-weight:950;letter-spacing:-.03em}#ammo-name{font-size:10px;font-weight:800;color:#e8ecd6}#ammo-status{font-size:8px;letter-spacing:.12em;color:#b2c7a7}#magazine{grid-column:1/-1;display:grid!important;grid-template-columns:repeat(15,1fr);gap:4px 3px;border-top:1px solid #ffffff16;padding-top:9px}#ammo-hud #magazine img{width:8px;height:24px;object-fit:contain;justify-self:center;transition:opacity .12s,filter .12s}#magazine .spent{filter:grayscale(1);opacity:.14}#magazine .loaded{filter:drop-shadow(0 0 3px #ffd77930)}
.quick-slot{border-radius:11px;box-shadow:inset 0 1px #ffffff12}.quick-slot[aria-pressed=true]{border-color:#f9d36d;background:linear-gradient(145deg,#5a5032,#333521)}.health{background:linear-gradient(135deg,#2e4031ed,#19281fed)}
#scope[aria-pressed=true]{background:#74603b;border-color:#ffe19a}
@media(pointer:coarse),(max-width:560px),(max-height:520px) and (orientation:landscape){
 .actions{width:186px;height:168px}#fire{width:96px;height:96px;right:0;bottom:0;background:#273b32d9 url('art/joystick-base.webp') center/contain no-repeat;border:1px solid #ffdda05c;box-shadow:0 5px 18px #0004;display:grid;place-items:center;overflow:visible}
 #fire i{display:block;width:44px;height:44px;border:2px solid #fff1c58c;background:radial-gradient(circle at 35% 30%,#ffda83,#b98b41);border-radius:50%;box-shadow:0 3px 9px #0006;pointer-events:none}
 #fire span{position:absolute;bottom:9px;font-size:8px;letter-spacing:.13em;color:#fff1cc;pointer-events:none}#pickup{left:0;bottom:4px}#grenade{left:28px;right:auto;bottom:62px}#sprint{left:0;bottom:117px}#reload{right:0;bottom:116px;width:42px;height:42px;font-size:15px}#scope{left:65px;bottom:121px;width:42px;height:42px;font-size:23px}
 #prompt{bottom:264px}#ammo-hud{width:158px;max-width:158px;gap:4px 7px;padding:8px 10px;grid-template-columns:23px 1fr}#ammo-count{font-size:22px}#ammo-name{font-size:8px}#ammo-status{font-size:7px}#ammo-hud #magazine img{width:6px;height:18px}#magazine{gap:3px 2px;padding-top:6px}#field{bottom:185px}
}
@media(max-height:520px) and (orientation:landscape){
 .actions{height:132px;width:184px}#fire{width:84px;height:84px}#sprint{bottom:81px}#scope{bottom:86px}#reload{bottom:86px}#grenade{left:41px;bottom:33px}#prompt{bottom:66px}#ammo-hud{top:80px;width:150px;max-width:150px}#ammo-hud #magazine img{height:15px;width:5px}#ammo-count{font-size:20px}
}

#scope-desktop[aria-pressed=true]{background:#756037;color:#fff0be;border-color:#ffd771}
@media(pointer:coarse),(max-width:560px),(max-height:520px) and (orientation:landscape){#scope-desktop{display:none}}
@media(max-height:520px) and (orientation:landscape){
 .bottom{left:44%;gap:3px}.quick-slot{min-width:68px;grid-template-columns:36px 1fr;padding:3px 5px}.quick-slot img{width:36px;height:23px}.quick-slot small{font-size:9px}.health{padding:4px 5px;font-size:10px}.health meter{width:38px}#bag,#heal{font-size:10px;padding:5px 7px}
}
@media(max-width:700px) and (max-height:520px) and (orientation:landscape){.bottom .health{position:absolute;left:0;bottom:43px}}

/* One bottom dock: magazine replaces the duplicated ammunition counters. */
#bottom{align-items:center;padding:7px;background:#14231beb;border:1px solid #bfd1a13b;border-radius:16px;box-shadow:0 7px 24px #06160c55}
#bottom #ammo-hud{position:static;top:auto;right:auto;bottom:auto;transform:none;width:218px;max-width:none;box-shadow:none;padding:7px 10px;border:0;border-right:1px solid #fff2;border-radius:0;background:none}
#bottom .quick-slot{min-width:64px;grid-template-columns:44px 12px;height:43px}#bottom .quick-slot img{width:44px;height:30px;grid-row:auto}#bottom .health{height:35px}#bottom #magazine{padding-top:5px}#bottom #ammo-status{font-size:7px}
@media(pointer:coarse),(max-width:560px),(max-height:520px) and (orientation:landscape){
 #bottom{left:50%;bottom:8px;display:grid;grid-template-columns:54px 54px minmax(0,1fr) 38px;gap:4px;width:min(370px,calc(100% - 18px));max-width:calc(100% - 18px);padding:7px 9px}
 #bottom .health{position:static;grid-column:1/-1;grid-row:1;height:17px;width:100%;padding:0;background:none;border:0;gap:7px}#bottom .health meter{width:auto;flex:1;height:8px}
 #bottom #ammo-hud{grid-column:1/-1;grid-row:2;width:100%;max-width:none;grid-template-columns:23px 82px minmax(0,1fr);gap:6px;min-height:55px;padding:3px 0;border:0;border-top:1px solid #fff1;border-bottom:1px solid #fff1}
 #bottom #ammo-image{width:21px;height:30px}#bottom #ammo-count{font-size:21px}#bottom #ammo-name{font-size:8px;line-height:1.2}#bottom #ammo-status{font-size:6px;letter-spacing:.03em}
 #bottom #magazine{grid-column:3;grid-row:1;align-content:center;gap:3px 2px;padding:0 0 0 7px;border:0;border-left:1px solid #fff1;min-height:38px}#bottom #magazine img{width:7px;height:18px}
 #bottom .quick-slot{grid-row:3;min-width:0;width:54px;height:29px;grid-template-columns:34px 10px;padding:2px 4px}#bottom .quick-slot img{width:34px;height:23px}#bottom #slot0{grid-column:1}#bottom #slot1{grid-column:2}#bottom #bag{grid-column:3;grid-row:3;height:29px;font-size:10px;padding:3px 7px}#bottom #heal{grid-column:4;grid-row:3;height:29px;padding:3px;font-size:10px}
 #touch-controls{bottom:151px}#field{bottom:256px}#prompt{bottom:330px}#inventory{bottom:142px;max-height:calc(100% - 210px)}
}
@media(max-height:520px) and (orientation:landscape){
 #bottom{left:44%;width:345px;bottom:7px;padding:5px 8px;gap:3px}#bottom #ammo-hud{min-height:45px;grid-template-columns:20px 78px minmax(0,1fr)}#bottom #ammo-count{font-size:18px}#bottom #magazine img{height:15px;width:6px}#bottom .health{height:13px}#bottom .quick-slot,#bottom #bag,#bottom #heal{height:26px}
 #touch-controls{bottom:12px}#field{bottom:123px}#prompt{bottom:124px}#inventory{bottom:117px;max-height:calc(100% - 125px)}
}
@media(max-width:700px) and (max-height:520px) and (orientation:landscape){#bottom{width:280px;grid-template-columns:45px 45px minmax(0,1fr) 33px}#bottom .quick-slot{width:45px;grid-template-columns:27px 9px}#bottom .quick-slot img{width:27px}#bottom #ammo-hud{grid-template-columns:18px 66px minmax(0,1fr)}#bottom #magazine img{width:4px;height:13px}#bottom #ammo-name{font-size:7px}}
