html, body { margin: 0; height: 100%; overflow: hidden; background: #0b0d12; color: #e8ecf1; font-family: system-ui, sans-serif; }
canvas { display: block; width: 100vw; height: 100vh; }
.ib-hud { position: fixed; inset: 0; pointer-events: none; font-family: "Courier New", monospace; color: #cfe; user-select: none; }
.ib-panel { position: fixed; left: 16px; top: 12px; background: rgba(5,12,8,0.6); border: 1px solid #3a6; padding: 8px 14px; line-height: 1.5; font-size: 14px; letter-spacing: 1px; }
.ib-panel b { color: #7fffb0; font-size: 18px; }
.ib-obj { color: #ffcc66; font-size: 12px; margin-top: 4px; }
.ib-bottom { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ib-bar { position: relative; width: 340px; height: 18px; background: rgba(0,0,0,0.6); border: 1px solid #3a6; }
.ib-fill { height: 100%; width: 100%; background: linear-gradient(90deg, #d33, #7f7); transition: width 0.1s; }
.ib-bar span { position: absolute; inset: 0; text-align: center; font-size: 12px; line-height: 18px; color: #fff; text-shadow: 0 0 3px #000; }
.ib-weapons { display: flex; gap: 8px; }
.ib-slot { position: relative; width: 112px; height: 46px; background: rgba(5,12,8,0.65); border: 1px solid #355; overflow: hidden; text-align: center; font-size: 10px; }
.ib-slot.active { border-color: #7fffb0; box-shadow: 0 0 10px #4f8; }
.ib-slot b { display: block; font-size: 14px; margin-top: 5px; color: #7fffb0; position: relative; }
.ib-slot span { position: relative; }
.ib-cd { position: absolute; left: 0; bottom: 0; width: 100%; height: 0; background: rgba(255,80,60,0.45); }
.ib-toast { position: fixed; top: 16%; left: 50%; transform: translateX(-50%); font-size: 22px; letter-spacing: 3px; color: #ffe08a; text-shadow: 0 0 10px #000; opacity: 0; transition: opacity 0.4s; text-align: center; font-weight: bold; }
.ib-vig { position: fixed; inset: 0; opacity: 0; box-shadow: inset 0 0 140px 40px rgba(255,0,0,0.7); }
.ib-mini { position: fixed; left: 16px; bottom: 16px; width: 180px; height: 180px; pointer-events: none; }
.ib-menu { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,0.45); }
.ib-card { background: rgba(8,14,10,0.92); border: 1px solid #4c8; padding: 22px 30px; max-width: 560px; text-align: center; font-family: "Courier New", monospace; }
.ib-card h1 { margin: 0 0 8px; color: #7fffb0; letter-spacing: 4px; }
.ib-card h2 { margin: 0 0 8px; color: #ffcc66; letter-spacing: 3px; }
.ib-card p { margin: 6px 0; color: #cde; font-size: 14px; }
.ib-help { font-size: 12px !important; color: #8ab !important; }
.ib-scrap { margin: 10px 0; color: #ffcc66; font-weight: bold; }
.ib-ups { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.ib-up { background: #12201a; color: #cfe; border: 1px solid #386; padding: 8px; cursor: pointer; font-family: inherit; text-align: left; display: flex; flex-direction: column; gap: 2px; }
.ib-up:hover:not(:disabled) { background: #1d3a2a; }
.ib-up:disabled { opacity: 0.45; cursor: default; }
.ib-up small { color: #8ab; }
.ib-up em { color: #ffcc66; font-style: normal; }
.ib-up i { color: #7fffb0; font-style: normal; font-size: 12px; }
.ib-go { background: #2a7; color: #021; border: 0; padding: 12px 26px; font-size: 16px; font-weight: bold; cursor: pointer; font-family: inherit; letter-spacing: 2px; }
.ib-go:hover { background: #4fc; }
