html, body { margin: 0; height: 100%; overflow: hidden; background: #02030a; color: #cfe9ff; font-family: "Segoe UI", system-ui, sans-serif; }
canvas#game { display: block; width: 100vw; height: 100vh; cursor: crosshair; }
#hud { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
#hud canvas { position: absolute; }
.hudtxt { font-size: 15px; letter-spacing: 2px; line-height: 1.5; text-shadow: 0 0 8px #28f; z-index: 5; pointer-events: none; color: #9fe8ff; }
.hudtxt b { color: #fff; font-size: 20px; }
.small { font-size: 12px; opacity: 0.8; letter-spacing: 1px; }
#msg { position: absolute; top: 14%; width: 100%; text-align: center; font-size: 26px; letter-spacing: 6px; color: #7ff; text-shadow: 0 0 14px #0ff; opacity: 0; transition: opacity 0.4s; }
#warn { position: absolute; top: 22%; width: 100%; text-align: center; font-size: 22px; letter-spacing: 5px; color: #ff4040; text-shadow: 0 0 12px #f00; opacity: 0; }
#warn::before { content: "\26A0  PROXIMITY ALERT  \26A0"; }
#reticle { position: absolute; left: 0; top: 0; width: 0; height: 0; display: none; }
#reticle::before { content: ""; position: absolute; left: -22px; top: -22px; width: 40px; height: 40px; border: 2px solid rgba(80, 255, 200, 0.85); border-radius: 50%; box-shadow: 0 0 8px #0fc; }
#reticle i { position: absolute; left: -3px; top: -3px; width: 4px; height: 4px; background: #8fe; border-radius: 50%; }
.diamond { position: absolute; left: 0; top: 0; width: 56px; height: 56px; margin: -28px 0 0 -28px; border: 2px solid #ffd23f; display: none; box-shadow: 0 0 10px #fc0; }
.diamond.locked { border-color: #ff3030; box-shadow: 0 0 14px #f00; animation: pulse 0.4s infinite alternate; }
.diamond.locked span { position: absolute; left: 62px; top: 62px; transform: rotate(-45deg); transform-origin: 0 0; color: #ff6060; font-size: 13px; letter-spacing: 1px; white-space: nowrap; }
@keyframes pulse { from { opacity: 0.6; } to { opacity: 1; } }
#radar { right: 50%; margin-right: -75px; bottom: 14px; }
#bl, #br { position: absolute; bottom: 18px; width: 240px; font-size: 12px; letter-spacing: 3px; color: #9fe8ff; text-shadow: 0 0 6px #28f; }
#bl { left: 18px; }
#br { right: 18px; text-align: right; }
.lbl { margin-top: 6px; }
.bar { height: 12px; border: 1px solid rgba(120, 220, 255, 0.7); background: rgba(0, 20, 40, 0.5); }
.bar b { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #14a8ff, #7ff); transition: width 0.15s; }
.bar b.hull { background: linear-gradient(90deg, #ff4a2f, #ffb347); }
.bar b.spd { background: linear-gradient(90deg, #3f6, #ff4); }
#speedTxt { font-size: 22px; margin-top: 4px; color: #fff; }
#missTxt { margin-top: 6px; color: #ffb347; }
#flash { position: absolute; inset: 0; background: radial-gradient(transparent 40%, rgba(255, 0, 0, 0.7)); opacity: 0; }
#panel { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(640px, 90vw); padding: 26px 32px; background: rgba(2, 10, 24, 0.78); border: 1px solid rgba(100, 220, 255, 0.6); box-shadow: 0 0 30px rgba(0, 150, 255, 0.4); text-align: center; display: none; }
#panel h1 { margin: 0 0 10px; font-size: 40px; letter-spacing: 8px; color: #7ff; text-shadow: 0 0 18px #0af; }
#panel h1.red { color: #ff5a4a; text-shadow: 0 0 18px #f00; }
#panel p { margin: 10px 0; line-height: 1.5; }
#panel .ctl { font-size: 13px; opacity: 0.9; }
#panel .go { font-size: 18px; letter-spacing: 4px; color: #ffd23f; animation: pulse 0.7s infinite alternate; }
</parameter>
