:root{color-scheme:dark;--sand:#e2c26f;--army:#5d7046;--danger:#ff664f;--panel:#252820}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;background:radial-gradient(circle at 50% -20%,#676d52,#2d3329 48%,#151914);color:#fff;font-family:Inter,-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;touch-action:manipulation}
button{font:inherit}
.app-shell{width:min(100%,1060px);margin:auto;padding:max(12px,env(safe-area-inset-top)) 8px max(28px,env(safe-area-inset-bottom))}
header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:7px}
.eyebrow{margin:0;color:#f2d57e;font-size:10px;font-weight:900;letter-spacing:.18em}
h1{margin:1px 0 0;font-size:clamp(25px,7vw,40px);letter-spacing:-.04em;text-shadow:0 3px 0 #111}
.header-actions{display:flex;gap:5px}
.header-actions button{width:40px;height:40px;border:1px solid #ffffff2e;border-radius:10px;background:#ffffff0e;color:#fff;font-size:18px;cursor:pointer}
.stats{display:grid;grid-template-columns:repeat(6,1fr);gap:4px;margin-bottom:6px}
.stats div{padding:5px 2px;border:1px solid #ffffff1b;border-radius:7px;background:#11160fb3;text-align:center}
.stats span{display:block;color:#aaaF98;font-size:7px;font-weight:900;letter-spacing:.08em}
.stats strong{display:block;margin-top:1px;font-family:"SFMono-Regular",Consolas,monospace;font-size:clamp(11px,3vw,17px)}
#health{color:#72e58c}#lives{color:#ff778c}#grenades{color:#ffd56c}
.game-stage{position:relative;width:100%;border:2px solid #9f9c73;border-radius:13px;background:#9bd2e6;box-shadow:0 22px 65px #050703b8;overflow:hidden}
canvas{display:block;width:100%;height:auto;aspect-ratio:16/9;touch-action:none}
.overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px;background:#161b14bd;backdrop-filter:blur(4px);text-align:center}
.overlay p{max-width:420px;margin:3px 0;color:#e1e5d5;font-size:clamp(12px,3vw,15px)}
.overlay h2{margin:4px 0;font-size:clamp(28px,8vw,48px);text-shadow:0 4px 0 #191d16}
.overlay #overlayKicker{color:#ffe07a;font-size:11px;font-weight:900;letter-spacing:.2em}
.overlay button{margin-top:13px;border:0;border-radius:8px;background:#e2c25f;color:#251f09;padding:12px 25px;font-weight:900;box-shadow:0 5px 0 #776423;cursor:pointer}
.message{min-height:21px;margin:7px 0 2px;text-align:center;color:#d6dccd;font-size:13px}
.controls{display:flex;align-items:center;justify-content:space-between;width:min(100%,720px);margin:5px auto 12px;padding:0 4px;gap:8px}
.move-controls,.action-controls{display:flex;gap:7px}
.controls button{width:61px;height:52px;border:1px solid #98a284;border-radius:12px;background:linear-gradient(#54624a,#34402f);color:#fff;font-size:20px;font-weight:900;box-shadow:0 5px 0 #11170e;cursor:pointer;user-select:none;-webkit-user-select:none}
.controls button.active,.controls button:active{transform:translateY(3px);box-shadow:0 2px 0 #11170e;background:#68795a}
.controls .jump{width:70px;border-color:#e7c964;background:linear-gradient(#f1d474,#bda242);color:#31290c;font-size:12px;box-shadow:0 5px 0 #65551c}
.controls .shoot{width:72px;border-color:#ff8a77;background:linear-gradient(#f66c54,#ad392b);font-size:13px;box-shadow:0 5px 0 #651d15}
.controls .grenade{width:58px;background:linear-gradient(#526479,#303d50);border-color:#879cb4;box-shadow:0 5px 0 #151e29}
details{max-width:780px;margin:11px auto;padding:10px 13px;border:1px solid #ffffff18;border-radius:11px;background:#171b15;color:#bdc5b5;font-size:13px;line-height:1.5}
summary{color:#eef0e9;font-weight:800;cursor:pointer}
details p{margin:8px 0 2px}
[hidden]{display:none!important}
@media(max-width:520px){.app-shell{padding-left:4px;padding-right:4px}.stats{gap:2px}.header-actions button{width:37px;height:37px}.controls{margin-top:2px}.controls button{width:54px;height:48px}.controls .jump{width:58px}.controls .shoot{width:61px}.controls .grenade{width:50px}}
