@font-face { font-family: 'Chakra Petch'; font-weight: 400; font-display: swap; src: url(/fonts/chakra-petch-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-weight: 500; font-display: swap; src: url(/fonts/chakra-petch-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-weight: 600; font-display: swap; src: url(/fonts/chakra-petch-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-weight: 700; font-display: swap; src: url(/fonts/chakra-petch-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Press Start 2P'; font-weight: 400; font-display: swap; src: url(/fonts/press-start-2p-latin-400-normal.woff2) format('woff2'); }
:root {
  --bg: #0b0420;
  --bg2: #140a33;
  --card: #1a1040;
  --card2: #24164f;
  --line: #3a2a78;
  --text: #f4f0ff;
  --mute: #a99bd8;
  --blue: #3d7bff;
  --cyan: #00f0ff;
  --red: #ff2e63;
  --green: #39ff88;
  --lime: #b6ff3b;
  --amber: #ffd60a;
  --pink: #ff4fd8;
  --violet: #a46bff;
  --orange: #ff8a3d;
  --radius: 10px;
  --font: 'Chakra Petch', system-ui, sans-serif;
  --pixel: 'Press Start 2P', 'Chakra Petch', monospace;
  --mono: 'Press Start 2P', ui-monospace, monospace;
  --heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 6' shape-rendering='crispEdges'%3E%3Cpath d='M1 0h2v1h1V0h2v1h1v2H6v1H5v1H4v1H3V5H2V4H1V3H0V1h1z'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
body {
  min-height: 100vh;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(255,79,216,.22), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(0,240,255,.14), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
/* CRT scanlines */
body::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 100;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.16) 2px 3px); mix-blend-mode: multiply; }
button { font: inherit; color: inherit; border: 0; cursor: pointer; background: none; }
.mono { font-family: var(--mono); }
.pixel { font-family: var(--pixel); }
.mute { color: var(--mute); }
.hp { display: inline-block; width: 1em; height: .86em; background: #3a2a78; -webkit-mask: var(--heart) center/contain no-repeat; mask: var(--heart) center/contain no-repeat; image-rendering: pixelated; }
.hp.on { background: var(--red); }
.lifebar { display: inline-flex; gap: 2px; height: .42em; width: 100%; }
.lifebar i { flex: 1; background: #2d1f60; transition: background .4s; }
.lifebar i.on { background: var(--amber); box-shadow: 0 0 6px rgba(255,214,10,.5); }
.lifebar.hi i.on { background: var(--green); box-shadow: 0 0 6px rgba(57,255,136,.5); }
.lifebar.low i.on { background: var(--red); box-shadow: 0 0 6px rgba(255,46,99,.6); }
.brand { font-family: var(--pixel); letter-spacing: .04em; text-transform: uppercase; color: var(--amber); text-shadow: 3px 3px 0 var(--pink); }
.brand b { color: var(--cyan); font-weight: 400; text-shadow: 3px 3px 0 var(--violet); }
.pill { display: inline-flex; align-items: center; gap: .35em; padding: .3em .7em; border-radius: 6px; background: var(--card2); border: 2px solid var(--line); font-size: .85em; font-weight: 600; white-space: nowrap; }
.pill.red { background: rgba(255,46,99,.16); border-color: var(--red); color: #ffc2d1; }
.pill.green { background: rgba(57,255,136,.12); border-color: var(--green); color: #c4ffdc; }
.pill.amber { background: rgba(255,214,10,.12); border-color: var(--amber); color: #fff1a8; }
.pill.blue { background: rgba(0,240,255,.1); border-color: var(--cyan); color: #c4fbff; }
/* chunky arcade button */
.arcade { font-family: var(--pixel); text-transform: uppercase; color: #1a0b00; background: var(--amber); border: 3px solid #000; border-radius: 10px;
  box-shadow: 0 6px 0 #b8860b, 0 6px 0 3px #000, 0 0 30px rgba(255,214,10,.35); transition: transform .06s, box-shadow .06s; }
.arcade:active { transform: translateY(5px); box-shadow: 0 1px 0 #b8860b, 0 1px 0 3px #000; }
.arcade:disabled { filter: grayscale(1) brightness(.6); box-shadow: 0 6px 0 #555, 0 6px 0 3px #000; }
.arcade.go { background: var(--green); box-shadow: 0 6px 0 #14a356, 0 6px 0 3px #000, 0 0 30px rgba(57,255,136,.4); }
.blink { animation: blink 1.1s steps(1) infinite; }
#conn { position: fixed; top: 0; left: 0; right: 0; z-index: 99; text-align: center; font-size: 13px; padding: 6px; background: var(--amber); color: #1a1300; font-weight: 700; transform: translateY(-100%); transition: transform .3s; }
#conn.show { transform: none; }
.snd { font-size: 20px; padding: 4px 6px; opacity: .8; }
/* area "rarity" colors */
.a-Data { --rar: var(--cyan); } .a-Agent { --rar: var(--violet); } .a-Trust { --rar: var(--lime); } .a-Ops { --rar: var(--orange); } .a-People { --rar: var(--pink); }
@keyframes pop { from { transform: scale(.6); opacity: 0 } 70% { transform: scale(1.06) } to { transform: none; opacity: 1 } }
@keyframes rise { from { transform: translateY(18px); opacity: 0 } to { transform: none; opacity: 1 } }
@keyframes shake { 0%,100% { transform: none } 20% { transform: translate(-7px, 3px) } 40% { transform: translate(7px,-3px) } 60% { transform: translate(-5px,2px) } 80% { transform: translate(4px,-1px) } }
@keyframes floatUp { from { transform: translateY(0) scale(1.2); opacity: 1 } to { transform: translateY(-50px) scale(1); opacity: 0 } }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .45 } }
@keyframes blink { 50% { opacity: 0 } }
@keyframes slam { 0% { transform: scale(3); opacity: 0 } 60% { transform: scale(.9); opacity: 1 } 100% { transform: scale(1) } }
@keyframes glow { 0%,100% { text-shadow: 0 0 10px currentColor } 50% { text-shadow: 0 0 26px currentColor } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
