* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0f1923; font-family: "Arial Narrow", Arial, sans-serif; color: #ece8e1; }
canvas { display: block; }
[hidden] { display: none !important; }
#menu, #over, #pause { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: rgba(15, 25, 35, 0.92); text-align: center; z-index: 5; }
h1 { margin: 0; font-size: 56px; letter-spacing: 6px; color: #ff4655; }
.small { font-size: 14px; opacity: 0.7; }
#agents { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.agent { width: 190px; padding: 16px; border: 2px solid #3b4a58; background: #1b2733; cursor: pointer; text-align: left; transition: 0.15s; }
.agent:hover { border-color: #ff4655; transform: translateY(-3px); }
.agent .dot { width: 100%; height: 8px; margin-bottom: 10px; }
.agent h2 { margin: 0 0 4px; font-size: 24px; letter-spacing: 2px; }
.agent small { display: block; opacity: 0.75; font-size: 13px; line-height: 1.3; }
button { font: inherit; font-size: 22px; padding: 10px 30px; background: #ff4655; color: #fff; border: 0; cursor: pointer; letter-spacing: 2px; }
#hud { position: fixed; inset: 0; pointer-events: none; }
#cross { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; background: #7dffb0; border-radius: 50%; box-shadow: 0 0 0 1px #000; }
#hit { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px; border: 2px solid #fff; transform: rotate(45deg); opacity: 0; }
#hit.on { opacity: 1; } #hit.head { border-color: #ff4655; }
#top { position: absolute; top: 14px; width: 100%; display: flex; justify-content: center; gap: 40px; font-size: 26px; text-shadow: 0 0 4px #000; }
#bottom { position: absolute; bottom: 20px; left: 24px; right: 24px; display: flex; justify-content: space-between; align-items: flex-end; }
#hp { position: relative; width: 260px; height: 28px; background: #0008; border: 2px solid #fff6; }
#hpbar { position: absolute; inset: 0; width: 100%; background: #3fd17a; transition: width 0.1s; }
#hptxt { position: absolute; inset: 0; text-align: center; line-height: 28px; text-shadow: 0 0 3px #000; }
#ability0, #ability1 { font-size: 20px; padding: 8px 16px; background: #0008; border: 2px solid #fff6; }
#ability0.ready, #ability1.ready { border-color: #7dffb0; color: #7dffb0; }
#ammo { font-size: 44px; text-shadow: 0 0 4px #000; }
#msg { position: absolute; top: 28%; width: 100%; text-align: center; font-size: 40px; color: #ffd166; text-shadow: 0 0 6px #000; }
#flash { position: absolute; inset: 0; box-shadow: inset 0 0 120px 40px #ff0000; opacity: 0; transition: opacity 0.3s; }
#ult { font-size: 20px; padding: 8px 16px; background: #0008; border: 2px solid #fff6; margin-left: -40px; }
#ult.ready { border-color: #ffd166; color: #ffd166; animation: pulse 0.8s infinite alternate; }
@keyframes pulse { to { box-shadow: 0 0 14px #ffd166; } }
#shop { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(15, 25, 35, 0.95); z-index: 6; }
#shop h1 { font-size: 40px; } #shop h2 { margin: 4px 0 0; letter-spacing: 3px; }
#shop p { margin: 0; font-size: 24px; color: #ffd166; }
.grid { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; max-width: 900px; }
.item { width: 150px; padding: 10px; border: 2px solid #3b4a58; background: #1b2733; cursor: pointer; text-align: left; }
.item:hover { border-color: #ff4655; } .item.active { border-color: #7dffb0; }
.item b { display: block; font-size: 18px; } .item small { display: block; min-height: 30px; opacity: 0.7; font-size: 12px; } .item span { color: #ffd166; }
#credits { position: absolute; top: 52px; width: 100%; text-align: center; font-size: 18px; color: #ffd166; text-shadow: 0 0 4px #000; }
#abilities { display: flex; gap: 8px; }
.agent { width: 170px; }
#shop button, #pause button, #over button { margin-top: 6px; }
#shop button { margin-top: 10px; }
