html, body { margin: 0; height: 100%; overflow: hidden; background: #080b12; color: #cfeaff; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; user-select: none; }
canvas { display: block; width: 100vw; height: 100vh; }
#game { position: fixed; inset: 0; z-index: 0; }
#ui { position: fixed; inset: 0; z-index: 1; cursor: crosshair; touch-action: none; }
#hud { position: fixed; top: 0; left: 0; right: 0; z-index: 5; padding: 6px 10px 8px; background: linear-gradient(#050810f2, #050810d0); border-bottom: 1px solid #0b3a4a; box-sizing: border-box; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.r2 { margin-top: 6px; }
.brand { font-weight: 700; letter-spacing: 3px; color: #00f0ff; font-size: 15px; text-shadow: 0 0 10px #00f0ff88; }
.brand b { color: #00ff88; margin-left: 6px; }
.chip { border: 1px solid #0b4b5e; background: #06141c; padding: 4px 9px; font-size: 12px; letter-spacing: 1px; color: #8fe8ff; border-radius: 3px; }
.tele { color: #ffaa00; border-color: #5a3d00; display: none; min-width: 230px; }
.budget { min-width: 220px; flex: 0 1 260px; font-size: 11px; letter-spacing: 1px; }
.budget .lbl { display: flex; justify-content: space-between; margin-bottom: 2px; color: #7fcfe6; }
.bar { height: 9px; border: 1px solid #0b4b5e; background: #04101a; border-radius: 2px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #00a8c0, #00f0ff); transition: width .15s; }
.bar i.hot { background: linear-gradient(90deg, #ff9d00, #ff1744); }
.btn { font: inherit; font-size: 12px; letter-spacing: 1.5px; color: #bff4ff; background: #07202c; border: 1px solid #0f6f88; padding: 7px 12px; cursor: pointer; border-radius: 3px; transition: background .12s, box-shadow .12s; }
.btn:hover { background: #0b3446; box-shadow: 0 0 10px #00f0ff55; }
.btn.sm { padding: 4px 9px; font-size: 11px; }
.btn.warn { color: #ffb4a0; border-color: #7a2a1c; background: #1c0c08; }
.btn.warn:hover { background: #30120c; box-shadow: 0 0 10px #ff174455; }
.btn.go { margin-left: auto; font-weight: 700; font-size: 14px; letter-spacing: 3px; color: #021; background: linear-gradient(#00ff88, #00c070); border-color: #00ff88; padding: 9px 22px; box-shadow: 0 0 16px #00ff8877; }
.btn.go:hover { background: linear-gradient(#5dffb0, #00d878); }
.btn.go.abort { color: #fff; background: linear-gradient(#ff5a3c, #c01c0c); border-color: #ff7a5a; box-shadow: 0 0 16px #ff3c1c77; }
#tools { display: flex; gap: 6px; flex-wrap: wrap; }
.tool { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; font: inherit; font-size: 11px; letter-spacing: 1px; background: #06141c; color: #9ad; border: 1px solid #12404f; border-left: 4px solid var(--c); padding: 4px 10px; cursor: pointer; border-radius: 3px; min-width: 112px; }
.tool small { color: #5a8797; font-size: 10px; }
.tool:hover { background: #0a2230; }
.tool.active { background: #0b3040; color: #fff; box-shadow: 0 0 0 1px var(--c), 0 0 12px var(--c); }
.tool kbd { color: var(--c); font-weight: 700; margin-right: 5px; }
#toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 6; padding: 8px 16px; border: 1px solid #00f0ff; background: #031018ee; color: #bff; letter-spacing: 2px; font-size: 13px; opacity: 0; transition: opacity .25s; pointer-events: none; }
#toast.show { opacity: 1; }
#toast.bad { border-color: #ff1744; color: #ff9aa8; }
#hint { position: fixed; left: 10px; bottom: 8px; z-index: 4; font-size: 11px; color: #4f7f90; letter-spacing: 1px; pointer-events: none; }
.overlay { position: fixed; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center; background: radial-gradient(#050a14cc, #02040aee); }
.overlay.clear { background: linear-gradient(transparent 40%, #02040acc); align-items: flex-end; padding-bottom: 40px; }
.panel { border: 1px solid #0f6f88; background: #040c14f2; padding: 22px 28px; max-width: 980px; box-shadow: 0 0 40px #00f0ff22; text-align: center; }
.panel h1 { margin: 0 0 4px; letter-spacing: 8px; color: #00f0ff; text-shadow: 0 0 18px #00f0ff; font-size: 30px; }
.panel h2 { margin: 0 0 8px; letter-spacing: 5px; color: #00ff88; text-shadow: 0 0 14px #00ff88; }
.panel h2.bad { color: #ff3355; text-shadow: 0 0 14px #ff3355; }
.panel p { color: #8fb8c8; font-size: 13px; line-height: 1.5; margin: 6px 0; }
.cards { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; justify-content: center; }
.card { width: 170px; text-align: left; border: 1px solid #12506a; background: #061a26; padding: 10px; cursor: pointer; border-radius: 3px; }
.card:hover { background: #0a2c3e; box-shadow: 0 0 14px #00f0ff44; }
.card b { color: #00f0ff; letter-spacing: 1px; font-size: 12px; }
.card span { display: block; color: #6f9aab; font-size: 11px; margin-top: 5px; line-height: 1.35; }
.card em { display: block; color: #00ff88; font-style: normal; font-size: 11px; margin-top: 6px; }
.btns { display: flex; gap: 10px; justify-content: center; margin-top: 14px; }
</style>
