gigaslop/src/ui/hud.css
type-two 03bb13aff9 M3: VC mandates and rival CEO events
Raise Seed through Series C for cash against views-delta mandates with
deadlines; success advances the round ladder, failure burns 25% of cash
and permanently dilutes income 15%. Four fictional rival archetypes fire
on a seeded timer: Doomsworth congressional panics (ALGO HEAT spikes),
Hypeman fake demos and Poogle algo tweaks (view debuffs), Freeman Weights
clone drops (API price crash) — with a paid 60/40 CLAP BACK gamble.
HUD: mandate progress banner, rival effect badges, total views stat.
Fix: scene texture list now derives from the catalog (new sprites were
rendering as purple placeholders).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-01 10:30:55 +10:00

112 lines
6.3 KiB
CSS

:root {
--bg: #0b0b12;
--panel: rgba(16, 16, 26, 0.92);
--edge: #23233a;
--text: #e6e6f0;
--dim: #8a8aa3;
--purple: #8b5cf6;
--cyan: #22d3ee;
--amber: #f59e0b;
--red: #ef4444;
--green: #34d399;
font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
* { box-sizing: border-box; }
#hud { position: fixed; inset: 0; pointer-events: none; color: var(--text); font-size: 12px; }
#hud .panel { background: var(--panel); border: 1px solid var(--edge); border-radius: 10px; pointer-events: auto; }
#topbar {
position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
display: flex; gap: 18px; align-items: center; padding: 8px 16px; white-space: nowrap;
}
#topbar .stat { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
#topbar .stat .label { color: var(--dim); font-size: 9px; letter-spacing: 0.08em; }
#topbar .stat .val { font-size: 14px; font-weight: 700; }
#cash { color: var(--green); font-size: 18px !important; }
#income.neg, #watts.hot, #temp.hot { color: var(--red); }
.bar { width: 90px; height: 5px; background: #1c1c2e; border-radius: 3px; overflow: hidden; }
.bar > div { height: 100%; background: var(--amber); width: 0%; transition: width 0.2s; }
.bar.train > div { background: var(--purple); }
#breaker-reset {
display: none; background: var(--red); color: #fff; border: 0; border-radius: 6px;
padding: 6px 10px; font: inherit; font-weight: 700; cursor: pointer; animation: flash 0.6s infinite alternate;
}
@keyframes flash { from { opacity: 1; } to { opacity: 0.55; } }
#controls { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; padding: 10px; }
.chip {
background: #16162a; border: 1px solid var(--edge); color: var(--dim); border-radius: 6px;
padding: 5px 9px; cursor: pointer; font: inherit; text-align: left;
}
.chip.on { color: var(--text); border-color: var(--purple); background: #221a3a; }
#alloc-row { display: flex; flex-direction: column; gap: 3px; margin-top: 4px; }
#alloc { width: 130px; accent-color: var(--purple); }
#shop {
position: absolute; right: 10px; top: 10px; bottom: 10px; width: 195px;
padding: 10px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px;
}
#shop h3 { margin: 0 0 2px; font-size: 11px; color: var(--dim); letter-spacing: 0.15em; }
.shop-item {
display: flex; gap: 8px; align-items: center; border: 1px solid var(--edge); border-radius: 8px;
padding: 6px; cursor: pointer; background: #12121f;
}
.shop-item:hover { border-color: var(--cyan); }
.shop-item.selected { border-color: var(--green); background: #12281f; }
.shop-item.dim { opacity: 0.45; cursor: default; }
.shop-item img { width: 40px; height: 40px; object-fit: contain; }
.shop-item .nm { font-weight: 700; font-size: 11px; }
.shop-item .cost { color: var(--green); font-size: 11px; }
.shop-item .lock { color: var(--dim); font-size: 10px; }
#feed {
position: absolute; left: 10px; bottom: 10px; width: 320px; max-height: 46vh;
padding: 10px; display: flex; flex-direction: column; gap: 6px; overflow: hidden;
}
#feed h3 { margin: 0; font-size: 11px; color: var(--dim); letter-spacing: 0.15em; }
#feed h3 b { color: var(--red); }
.vid { display: flex; gap: 8px; align-items: center; }
.vid img { width: 76px; height: 44px; object-fit: cover; border-radius: 5px; }
.vid .t { font-size: 10.5px; line-height: 1.25; }
.vid .v { color: var(--dim); font-size: 10px; }
.vid .v b.viral { color: var(--amber); }
#toasts { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; align-items: center; }
.toast { padding: 8px 14px; border-radius: 8px; font-weight: 700; animation: rise 4s forwards; }
.toast.bad { background: #3a1214; border: 1px solid var(--red); color: #ffb4b4; }
.toast.good { background: #12312a; border: 1px solid var(--green); color: #a7f3d0; }
.toast.info { background: #16162a; border: 1px solid var(--edge); color: var(--dim); }
.toast.rival { background: #251330; border: 1px solid var(--purple); color: #d8b4fe; }
#fxrow { position: absolute; top: 64px; left: 50%; transform: translateX(-50%);
display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; max-width: 60vw; }
.fxbadge { background: var(--panel); border: 1px solid var(--edge); border-radius: 999px;
padding: 3px 10px; font-size: 10.5px; pointer-events: none; }
.fxbadge.down { border-color: var(--red); color: #fda4af; }
.fxbadge.up { border-color: var(--green); color: #a7f3d0; }
#mandate { padding: 4px 2px; }
#mandate #mtext { font-size: 10.5px; margin-bottom: 3px; }
#clap { background: #7c2d12; border: 1px solid var(--amber); color: #fed7aa; border-radius: 6px;
padding: 6px 9px; font: inherit; font-size: 11px; cursor: pointer; text-align: left;
animation: flash 0.5s infinite alternate; }
@keyframes rise { 0% { opacity: 0; transform: translateY(8px); } 8% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; } }
#hint { position: absolute; bottom: 12px; right: 215px; color: var(--dim); font-size: 11px; text-align: right; }
#adapt.hot { color: var(--red); }
#flash { position: fixed; inset: 0; pointer-events: none; z-index: 99;
background: radial-gradient(circle at 50% 45%, rgba(245, 158, 11, 0.35), transparent 60%);
animation: flashfade 0.7s forwards; }
@keyframes flashfade { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }
#name-modal { position: fixed; inset: 0; background: rgba(5, 5, 10, 0.85); display: flex; align-items: center; justify-content: center; pointer-events: auto; }
#name-box { padding: 28px 32px; text-align: center; width: 360px; }
#name-box h2 { margin: 0 0 4px; letter-spacing: 0.3em; color: var(--purple); }
#name-box p { color: var(--dim); margin: 0 0 16px; }
#name-box .row { display: flex; gap: 6px; margin-bottom: 14px; }
#name-box input { flex: 1; background: #0c0c16; border: 1px solid var(--edge); color: var(--text); font: inherit; font-size: 14px; padding: 8px 10px; border-radius: 6px; }
#name-box #reroll { background: #16162a; border: 1px solid var(--edge); border-radius: 6px; font-size: 16px; cursor: pointer; padding: 0 12px; }
#name-box #cstart { width: 100%; background: var(--purple); color: #fff; border: 0; border-radius: 8px; padding: 10px; font: inherit; font-weight: 700; letter-spacing: 0.08em; cursor: pointer; }
#name-box #cstart:hover { filter: brightness(1.15); }