:root {
  --bg: #0b0f1a; --panel: #141a2c; --panel2: #1c2440; --line: #2c3760; --ink: #e8ecff; --dim: #8a93b8;
  --green: #3ddc84; --cyan: #35e0ff; --pink: #ff4fd8; --yellow: #ffd23f; --red: #ff5a5a; --orange: #ff9f43; --purple: #9b6bff;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* phones never resize the text by themselves (they enlarge long paragraphs in the middle of a tap, and the buttons under the finger move) */
html, body, button, input, select, textarea { -webkit-text-size-adjust: 100%; -moz-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; height: 100%; background: #05070d; color: var(--ink); overscroll-behavior: none; }
body { font-family: ui-monospace, "Cascadia Mono", Consolas, Menlo, "Courier New", monospace; font-size: 14px; line-height: 1.35; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
#app { position: relative; max-width: 480px; height: 100vh; height: 100dvh; margin: 0 auto; background: var(--bg); display: flex; flex-direction: column; overflow: hidden; }
canvas, img.ico, img.pix { image-rendering: pixelated; image-rendering: crisp-edges; }
.hidden { display: none !important; }
img.ico { width: 16px; height: 16px; vertical-align: -3px; }
img.ico.big { width: 32px; height: 32px; }
img.ico.rk { width: 18px; height: 18px; vertical-align: -4px; }
img.ico.rk.hrk { width: 16px; height: 16px; margin-right: 4px; vertical-align: -2px; }
img.ico.rk.big { width: 48px; height: 48px; }
.rkcard { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.rkcard > div { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.rkcard .xp { height: 6px; }
.ladder .kv { padding: 4px 2px; border-bottom: 1px solid var(--line); }
.ladder .kv.locked b, .ladder .kv.locked .small { opacity: .5; }
.ladder .kv.me { background: rgba(61,220,132,.08); }
.seg { display: flex; gap: 6px; margin: 4px 0 6px; }
.seg button { flex: 1; padding: 6px; background: var(--panel); border: 1px solid var(--line); color: var(--dim); font: inherit; font-size: 12px; cursor: pointer; }
.seg button.on { color: var(--ink); border-color: var(--cyan); background: var(--panel2); }

/* HUD */
#hud { display: flex; gap: 8px; align-items: center; padding: 8px 10px; padding-top: max(8px, env(safe-area-inset-top)); background: var(--panel); border-bottom: 2px solid var(--line); }
#hud .face { width: 40px; height: 40px; background: #221d36; border: 2px solid var(--line); }
#hud .facebox { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; }
#hud .facebox .lv { font-size: 10px; line-height: 1; color: var(--yellow); white-space: nowrap; }
#hud .bwhud { cursor: pointer; }
#hud .who { flex: 1; min-width: 0; }
#hud .who b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#hud .who small { color: var(--dim); font-size: 11px; }
.xp { height: 4px; background: #0b0f1a; margin-top: 3px; }
.xp i { display: block; height: 100%; background: var(--purple); }
#hud .stats { display: grid; grid-template-columns: repeat(3, auto); gap: 3px 12px; font-size: 13px; text-align: right; align-items: center; font-variant-numeric: tabular-nums; }
#hud .stats span { white-space: nowrap; display: flex; align-items: center; justify-content: flex-end; gap: 4px; line-height: 1; }
#hud .stats span .ico { flex: none; margin: 0; }
#hud .stats.n2 { grid-template-columns: repeat(2, auto); }
#hud .stats:not(.n2) .bwhud { grid-column: 2; }
#hud .stats .tag { grid-column: 1 / -1; justify-content: center; text-align: center; padding: 3px 6px; margin-top: 1px; }
#hud .stats [data-a] { cursor: pointer; padding: 4px 5px; margin: -4px -5px; } /* a bigger tap area for the ⚡ and Chips counters, same look */
.tag { display: inline-block; padding: 1px 6px; font-size: 11px; border: 1px solid currentColor; }
.tag.cy { color: var(--cyan); } .tag.rd { color: var(--red); } .tag.gr { color: var(--green); } .tag.yl { color: var(--yellow); } .tag.pk { color: var(--pink); }

/* layout */
#main { flex: 1; overflow-y: auto; padding: 10px; -webkit-overflow-scrolling: touch; }
#nav { display: flex; background: var(--panel); border-top: 2px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
#nav button { flex: 1; background: none; border: 0; color: var(--dim); font: inherit; font-size: 11px; padding: 8px 0 7px; position: relative; }
#nav button img { display: block; width: 24px; height: 24px; margin: 0 auto 2px; opacity: 0.55; }
#nav button.on { color: var(--green); } #nav button.on img { opacity: 1; }
#nav .dot { position: absolute; top: 5px; right: 22%; width: 8px; height: 8px; background: var(--red); }
h2 { font-size: 15px; margin: 14px 0 6px; color: var(--cyan); text-transform: uppercase; letter-spacing: 1px; }
h2:first-child { margin-top: 0; }
p { margin: 6px 0; } .dim { color: var(--dim); } .small { font-size: 12px; }
.g { color: var(--green); } .r { color: var(--red); } .y { color: var(--yellow); } .c { color: var(--cyan); } .pk { color: var(--pink); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 6px 12px; font: inherit; font-weight: bold; color: var(--ink); background: var(--panel2); border: 2px solid var(--line); box-shadow: 0 3px 0 #05070d; cursor: pointer; text-align: center; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #05070d; }
.btn.go { background: #14432b; border-color: var(--green); color: var(--green); }
.btn.bad { background: #431a1a; border-color: var(--red); color: var(--red); }
.btn.hot { background: #3a2f10; border-color: var(--yellow); color: var(--yellow); }
.btn.wide { display: flex; width: 100%; margin: 8px 0; }
.btn.sm { min-height: 32px; padding: 3px 8px; font-size: 12px; }
.btn[disabled], .btn.off { opacity: 0.4; }
.btn small { font-weight: normal; color: var(--dim); display: block; }

.card { background: var(--panel); border: 2px solid var(--line); padding: 8px 10px; margin: 8px 0; }
.card.alert { border-color: var(--red); } .card.good { border-color: var(--green); } .card.gold { border-color: var(--yellow); }
.card > img.banner { display: block; width: calc(100% + 20px); max-width: none; height: auto; margin: -8px -10px 8px; image-rendering: pixelated; image-rendering: crisp-edges; border-bottom: 2px solid var(--line); }
.card .top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.card .btns { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.card .btns .btn { flex: 1; }
.kv { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 1px 0; }
.kv span:first-child { color: var(--dim); }
.paydone { text-align: center; padding: 6px 0 2px; }
.paydone img { width: 48px; height: 48px; image-rendering: pixelated; animation: paypop .5s ease-out; }
#modal .paydone h3 { color: var(--green); font-size: 20px; margin: 10px 0 6px; letter-spacing: 1px; text-shadow: 0 0 12px rgba(61,220,132,.55); }
.paydone .got { font-size: 16px; font-weight: bold; color: #ffd84a; margin: 0 0 6px; }
@keyframes paypop { 0% { transform: scale(.3); } 70% { transform: scale(1.2); } 100% { transform: scale(1); } }
.qbtn { display: inline-block; width: 18px; height: 18px; line-height: 16px; padding: 0; margin-left: 4px; border-radius: 50%; border: 1px solid var(--dim); background: transparent; color: var(--dim); font: inherit; font-size: 11px; font-weight: bold; cursor: pointer; vertical-align: middle; }
.chatlog p.sos { border-left: 3px solid #ff5a5a; padding: 4px 6px; background: rgba(255,90,90,.08); }
.chatlog p.sos .btn { margin-left: 4px; }
.help p { font-size: 13px; margin: 0 0 10px; line-height: 1.45; }
.bsep { text-align: center; color: var(--dim); opacity: .5; font-size: 11px; letter-spacing: 4px; line-height: 1; margin: 4px 0 3px; border-top: 1px dashed rgba(255,255,255,.12); padding-top: 3px; }

/* room */
.frame { border: 2px solid var(--line); background: #000; position: relative; }
.frame canvas { display: block; width: 100%; }
.say { position: absolute; left: 6px; right: 6px; top: 6px; background: rgba(11,15,26,0.85); border: 1px solid var(--line); padding: 4px 8px; font-size: 12px; }
.bars { margin: 10px 0 4px; display: grid; gap: 6px; }
.bar { display: grid; grid-template-columns: 20px 74px 1fr 34px; align-items: center; gap: 6px; font-size: 12px; }
.track { height: 12px; background: #05070d; border: 2px solid var(--line); }
.track i { display: block; height: 100%; }
.bar .hint { grid-column: 2 / -1; color: var(--dim); font-size: 11px; margin-top: -4px; }
.acts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 10px; }
.acts .btn { flex-direction: column; gap: 0; font-size: 12px; padding: 6px 2px; min-height: 52px; }

/* net graphs */
.crt { position: relative; border: 2px solid var(--line); background: #070a14; }
.crt canvas { display: block; width: 100%; }
.crt::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,0.22) 0 1px, transparent 1px 3px); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; background: var(--panel2); border: 2px solid var(--line); font: inherit; font-size: 12px; color: var(--ink); max-width: 100%; }
.chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip.empty { opacity: 0.35; border-style: dashed; }
.stars { color: var(--yellow); letter-spacing: 1px; } .stars i { color: var(--line); font-style: normal; }

/* run */
#run { position: absolute; inset: 0; background: var(--bg); z-index: 20; display: flex; flex-direction: column; padding: 8px; padding-top: max(8px, env(safe-area-inset-top)); gap: 6px; overflow-y: auto; }
.runtop { display: flex; align-items: center; gap: 8px; }
.runtop b { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trace { position: relative; height: 26px; border: 2px solid var(--red); background: #1a0808; }
.trace i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--red); }
.trace span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 13px; text-shadow: 1px 1px 0 #000; }
.trace.frozen { border-color: var(--cyan); } .trace.frozen i { background: var(--cyan); }
#rinfo { min-height: 86px; background: var(--panel); border: 2px solid var(--line); padding: 6px 8px; font-size: 13px; }
#rdeck { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
#rdeck .btn { flex-direction: column; gap: 1px; font-size: 11px; padding: 4px 2px; min-height: 54px; }
#rdeck .btn.dead { opacity: 0.25; text-decoration: line-through; }
#rdeck.eight { grid-template-columns: repeat(4, 1fr); gap: 4px; }
#rdeck.eight .btn { font-size: 10px; padding: 3px 1px; min-height: 52px; line-height: 1.15; word-break: break-word; }
#rdeck.eight .btn .lkn { font-size: 8px; letter-spacing: 0; }
#rdeck.ten { grid-template-columns: repeat(5, 1fr); gap: 3px; }
#rdeck.ten .btn { font-size: 9px; }
.lock { display: inline-block; padding: 0 5px; font-size: 11px; color: #000; font-weight: bold; margin-right: 4px; }

/* modal + toast */
#modal { position: absolute; inset: 0; z-index: 30; background: rgba(3,5,12,0.82); display: flex; align-items: center; justify-content: center; padding: 14px; }
.mbox { width: 100%; max-height: 92%; overflow-y: auto; background: var(--panel); border: 2px solid var(--cyan); padding: 12px; box-shadow: 0 6px 0 #000; }
.mbox h3 { margin: 0 0 8px; font-size: 16px; color: var(--cyan); }
.opt { display: flex; gap: 8px; align-items: center; width: 100%; text-align: left; margin: 6px 0; padding: 8px; background: var(--panel2); border: 2px solid var(--line); color: var(--ink); font: inherit; }
.opt .o1 { flex: 1; min-width: 0; } .opt small { color: var(--dim); display: block; font-size: 11px; }
.opt.on { border-color: var(--green); } .opt.off { opacity: 0.45; }
#toast { position: absolute; left: 10px; right: 10px; top: 64px; z-index: 60; pointer-events: none; display: flex; flex-direction: column; gap: 4px; align-items: center; }
#toast div { background: #000; border: 2px solid var(--yellow); color: var(--yellow); padding: 5px 10px; font-size: 13px; font-weight: bold; animation: pop 2.6s forwards; text-align: center; }
#toast div.shake { animation: pop 2.6s forwards, tshake .4s ease-out; } /* the same message again: it shakes and its timer starts over */
@keyframes tshake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
@keyframes pop { 0% { opacity: 0; transform: translateY(-6px); } 8%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* create */
.create { text-align: center; padding-top: 10px; }
.create h1 { font-size: 26px; margin: 6px 0 0; color: var(--green); letter-spacing: 2px; text-shadow: 3px 3px 0 #14432b; }
.create img.pix { width: 128px; height: 128px; margin: 8px auto; display: block; background: #221d36; border: 2px solid var(--line); }
input[type=text] { width: 100%; font: inherit; font-size: 16px; padding: 10px; background: #05070d; color: var(--green); border: 2px solid var(--line); text-align: center; user-select: text; -webkit-user-select: text; }
.sw { display: flex; gap: 8px; justify-content: center; margin: 10px 0; }
.sw button { width: 36px; height: 36px; border: 2px solid var(--line); }
.sw button.on { border-color: #fff; box-shadow: 0 0 0 2px #fff; }

/* shop */
#nav button { font-size: 10px; }
.items { display: grid; gap: 8px; margin: 8px 0; }
.items.three { grid-template-columns: repeat(3, 1fr); } .items.two { grid-template-columns: repeat(2, 1fr); }
.item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 4px 8px; background: var(--panel); border: 2px solid var(--line); color: var(--ink); font: inherit; font-size: 12px; text-align: center; min-width: 0; }
.item img.pix { width: 100%; background: #10121c; }
.item.skins img.pix, .item.skins canvas.pix { width: 64px; height: 64px; background: #10121c; }
.item b { max-width: 100%; overflow-wrap: anywhere; line-height: 1.15; } /* long names (Portuguese ones too) wrap instead of being cut */
.item small { font-size: 10px; } .item .btn { width: 100%; }
.items.deals .item .pix { width: auto; height: 84px; max-width: 100%; object-fit: contain; flex: none; }
.items.deals .item > b { min-height: 2.3em; display: flex; align-items: center; justify-content: center; }
.items.deals .item > :last-child { margin-top: auto; }
.item .badge { position: absolute; top: -2px; right: -2px; background: var(--red); color: #000; font-style: normal; font-weight: bold; font-size: 10px; padding: 1px 4px; z-index: 1; }
.item.pack .ico.big { width: 40px; height: 40px; margin: 6px 0; }
s { color: var(--dim); font-weight: normal; }
.offer { display: flex; gap: 10px; align-items: center; } .offer img, .offer canvas { width: 64px; image-rendering: pixelated; height: 64px; background: #10121c; border: 2px solid var(--line); flex: none; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 4px 0 6px; }
.day { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; background: var(--panel2); border: 2px solid var(--line); font-size: 10px; }
.day.done { opacity: 0.35; } .day.now { border-color: var(--green); }
.pass { display: grid; gap: 4px; margin-top: 8px; }
.pr { display: grid; grid-template-columns: 22px 1fr 1fr; gap: 4px; align-items: stretch; opacity: 0.5; } .pr.open { opacity: 1; } .pr b { align-self: center; color: var(--dim); }
.pc { font: inherit; font-size: 11px; padding: 6px 4px; background: var(--panel2); border: 2px solid var(--line); color: var(--ink); }
.pc.prem { border-color: #6a5a20; } .pc.can { border-color: var(--green); color: var(--green); font-weight: bold; } .pc.got { opacity: 0.4; }

/* online */
input[type=password], input[type=number] { width: 100%; font: inherit; font-size: 16px; padding: 10px; background: #05070d; color: var(--green); border: 2px solid var(--line); text-align: center; user-select: text; -webkit-user-select: text; }
.create input { margin-top: 8px; }
.mbox input { margin: 8px 0; }
.inrow { display: flex; gap: 6px; margin-top: 8px; } .inrow input { flex: 1; min-width: 0; text-align: left; font-size: 14px; padding: 6px 8px; } .inrow .btn { flex: none; }
.chatlog { max-height: 220px; overflow-y: auto; margin-top: 6px; } .chatlog p { margin: 3px 0; word-break: break-word; user-select: text; -webkit-user-select: text; }
.rep { background: none; border: 0; color: var(--dim); font: inherit; padding: 0 4px; }
#nav button { font-size: 9px; } #nav button img { width: 22px; height: 22px; }

/* logo, pets, themes, calling cards, mini-game */
.create .logo { display: block; width: min(78%, 300px); margin: 0 auto 4px; image-rendering: pixelated; }
.item.pets img.pix { width: 72px; height: 72px; }
.swatch { width: 100%; height: 44px; border: 2px solid; display: flex; align-items: flex-end; gap: 3px; padding: 5px; }
.swatch i { flex: 1; height: 100%; } .swatch i:nth-child(2) { height: 60%; } .swatch i:nth-child(3) { height: 30%; }
pre.ccard { margin: 4px 0; padding: 6px 8px; background: #000; border: 1px dashed var(--line); color: var(--green); font: 11px/1.25 ui-monospace, Consolas, monospace; white-space: pre; overflow: hidden; text-align: left; align-self: stretch; min-height: 44px; }
.mg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 260px; margin: 10px auto; }
.mg button { aspect-ratio: 1; background: var(--panel2); border: 2px solid var(--line); }
.mg button.lit { background: var(--green); border-color: #fff; box-shadow: 0 0 12px var(--green); }
/* rigs that still link ICE to ICE: a red bar on the Rig and the Net, and a window that names the links */
.icebar { display: flex; flex-direction: column; gap: 2px; margin: 0 0 10px; padding: 8px 12px; border: 2px solid var(--red); background: rgba(255,90,90,.12); color: var(--ink); font-size: 12px; cursor: pointer; animation: soldpulse 1.4s ease-in-out infinite; }
.icebar b { color: var(--red); font-family: 'Silkscreen', ui-monospace, monospace; letter-spacing: 1px; font-size: 13px; }
#modal .mbox:has(.icewarn) { border-color: var(--red); box-shadow: 0 0 0 2px #05070d, 0 0 26px rgba(255,90,90,.45); }
.icewarn h3 { color: var(--red); }
.icewarn .icebad { margin: 4px 0; padding: 5px 8px; border-left: 3px solid var(--red); background: rgba(255,90,90,.1); color: #fff; font-weight: bold; }
@media (prefers-reduced-motion: reduce) { .icebar { animation: none; } }
/* crew bosses: encrypted files (locked until the boss is down) and the core's Consensus shield */
.chip.enc { opacity: .75; border-style: dashed; border-color: #ff4fd8; color: var(--dim); cursor: not-allowed; }
.cshield { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin: 6px 0; padding: 6px 8px; border: 1px solid #ff4fd8; background: rgba(255,79,216,.08); }
.cshield > .small:first-child { color: #ff4fd8; font-family: 'Silkscreen', ui-monospace, monospace; letter-spacing: 1px; }
.cs-pips { display: flex; gap: 3px; } .cs-pips i { width: 10px; height: 12px; background: #ff4fd8; box-shadow: 0 0 5px rgba(255,79,216,.7); } .cs-pips i.off { background: transparent; box-shadow: inset 0 0 0 1px #5a2c55; }
/* the Rig's Defense check: traced, got in empty-handed, robbed */
.dbar { display: flex; height: 10px; margin: 6px 0 4px; background: var(--panel2); border: 1px solid var(--line); }
.dbar i { display: block; height: 100%; }
.dbar .dc, .dkey .dc { background: #3ddc84; } .dbar .de, .dkey .de { background: #ffd23f; } .dbar .dr, .dkey .dr { background: #ff5a5a; }
.dkey { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-bottom: 6px; } .dkey span { display: inline-flex; align-items: center; gap: 5px; } .dkey i { display: inline-block; width: 8px; height: 8px; }
.copy { margin: 18px 0 6px; text-align: center; font-size: 11px; color: var(--dim); }
.sitedesc { margin: 22px 0 6px; text-align: center; font-size: 12px; line-height: 1.5; color: var(--dim); }
.sitelinks { margin: 0; text-align: center; font-size: 12px; line-height: 1.9; color: var(--dim); }
.sitelinks a { color: var(--cyan); }
input[type=email] { width: 100%; font: inherit; font-size: 16px; padding: 10px; background: #05070d; color: var(--green); border: 2px solid var(--line); text-align: center; user-select: text; -webkit-user-select: text; }
.boot { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: var(--bg); }
.boot .logo { width: min(70%, 280px); image-rendering: pixelated; }
.boot p { margin: 0; color: var(--dim); letter-spacing: 1px; text-align: center; padding: 0 20px; }
.btn.gbtn { min-height: 52px; gap: 12px; font-size: 16px; letter-spacing: 1px; color: #10131f; background: #ffffff; border: 2px solid #10131f; box-shadow: 0 0 0 2px #ffffff, 0 6px 0 2px #4285f4, 0 0 22px rgba(66, 133, 244, 0.55); margin: 12px 0 16px; }
.btn.gbtn:active { transform: translateY(3px); box-shadow: 0 0 0 2px #ffffff, 0 3px 0 2px #4285f4; }
.gico { width: 24px; height: 24px; flex: none; }
.or { display: flex; align-items: center; gap: 10px; margin: 4px 0; color: var(--dim); font-size: 11px; text-transform: uppercase; letter-spacing: 2px; }
.or::before, .or::after { content: ""; flex: 1; height: 2px; background: var(--line); }
/* guided first session: everything is dimmed except the next thing to tap */
#coach { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
#coach .cb { position: fixed; background: rgba(3, 5, 12, 0.74); pointer-events: auto; }
#coach .cb.hole { background: transparent; }
#coach .cring { position: fixed; border: 2px solid var(--green); box-shadow: 0 0 0 2px #05070d, 0 0 18px var(--green); pointer-events: none; animation: cpulse 0.9s steps(2) infinite; }
#coach .carrow { position: fixed; width: 24px; margin-left: -12px; text-align: center; font-size: 20px; line-height: 20px; color: var(--green); text-shadow: 2px 2px 0 #05070d; pointer-events: none; animation: cbounce 0.6s steps(3) infinite alternate; }
#coach .cbub { position: fixed; pointer-events: auto; background: var(--panel); border: 2px solid var(--green); box-shadow: 0 4px 0 #05070d; padding: 10px 12px 8px; font-size: 13px; }
#coach .cbub p { margin: 0 0 8px; }
#coach .cbub .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#coach .cbub .skip { background: none; border: 0; padding: 4px 0; color: var(--dim); font: inherit; font-size: 11px; text-decoration: underline; cursor: pointer; }
#coach .cbub .cstep { color: var(--dim); font-size: 11px; }
@keyframes cpulse { 50% { box-shadow: 0 0 0 2px #05070d, 0 0 4px var(--green); } }
#coach .cbub.nudge { animation: cnudge 0.3s steps(4) 1; }
@keyframes cnudge { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes cbounce { to { transform: translateY(6px); } }
#hud .face { cursor: pointer; }
#hud .gear { flex: none; width: 30px; height: 30px; padding: 5px; background: var(--panel2); border: 2px solid var(--line); color: var(--dim); cursor: pointer; }
#hud .gear svg { display: block; width: 100%; height: 100%; }
.acct { display: flex; gap: 10px; align-items: center; margin: 4px 0 8px; }
.acct img, .acct canvas { width: 56px; image-rendering: pixelated; height: 56px; background: #221d36; border: 2px solid var(--line); }
.acct small { display: block; color: var(--dim); }
.clipv { display: block; width: 100%; max-height: 62vh; object-fit: contain; margin: 6px auto; background: #05070d; border: 2px solid var(--line); }
#clipbox canvas.clipv { width: auto; height: 58vh; max-width: 100%; }
#reflink { width: 100%; margin: 6px 0; font-size: 13px; }
/* the Net map */
.card.mut { border-color: var(--yellow); background: linear-gradient(90deg, rgba(255,210,63,.10), transparent); cursor: pointer; }
.dmap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin: 6px 0 8px; }
.dz { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 10px 9px; background: var(--panel); border: 2px solid var(--dc); color: var(--ink); font: inherit; text-align: left; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.4), 0 0 10px -4px var(--dc); }
.dz b { color: var(--dc); font-size: 13px; letter-spacing: .5px; text-transform: uppercase; }
.dz small { color: var(--dim); font-size: 11px; }
.dz.on { background: var(--panel2); box-shadow: inset 0 0 0 1px var(--dc), 0 0 14px -2px var(--dc); }
.dz.locked { border-style: dashed; filter: saturate(.55); }
.dz.locked::after { content: ''; position: absolute; top: 8px; right: 8px; width: 8px; height: 6px; border: 2px solid var(--dc); border-radius: 0; box-shadow: 0 -5px 0 -2px var(--dc); }
.dz.core { grid-column: 1 / -1; align-items: center; text-align: center; animation: coreglitch 2.6s steps(1) infinite; }
@keyframes coreglitch { 0%, 88%, 100% { transform: none; filter: saturate(.55); } 90% { transform: translateX(2px); filter: hue-rotate(60deg) saturate(1.4); } 93% { transform: translateX(-3px); } 96% { transform: translateX(1px) skewX(-6deg); } }
.card.dzinfo { border-left: 3px solid var(--dc); }
.card.dzinfo > b { color: var(--dc); text-transform: uppercase; letter-spacing: .5px; }
.card.locked { opacity: .75; border-style: dashed; }
/* crew bosses and titles */
.card.boss { border: 2px solid var(--dc); box-shadow: 0 0 14px -6px var(--dc); background: linear-gradient(180deg, rgba(255,255,255,.03), transparent 40%), var(--panel); }
.card.boss.locked { border-style: dashed; opacity: .85; }
.card.boss > .top b { color: var(--dc); font-size: 15px; }
.skulls { color: var(--red); letter-spacing: 1px; font-size: 13px; }
b.m, .m { color: var(--pink); }
small.ttl { display: block; color: var(--yellow); font-size: 10px; letter-spacing: .3px; }
.kv small.ttl { display: inline; margin-left: 6px; }
.ttls { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ttls button { padding: 5px 8px; background: var(--panel); border: 1px solid var(--line); color: var(--dim); font: inherit; font-size: 11px; cursor: pointer; }
.ttls button.on { color: var(--yellow); border-color: var(--yellow); }
/* live events and anomalies */
.card.live { border-color: var(--green); background: linear-gradient(90deg, rgba(61,220,132,.12), transparent); }
.card.anom { border: 2px solid var(--pink); background: repeating-linear-gradient(0deg, rgba(255,79,216,.05) 0 2px, transparent 2px 4px), var(--panel); animation: anomshake 3s steps(1) infinite; }
.glitch { color: var(--pink); text-shadow: 2px 0 var(--cyan), -2px 0 var(--red); letter-spacing: 1px; }
@keyframes anomshake { 0%, 90%, 100% { transform: none; } 92% { transform: translate(2px, -1px); } 95% { transform: translate(-2px, 1px); } }
.achi img { width: 40px; height: 40px; }
/* the Net map */
.nmap { position: relative; width: 100%; aspect-ratio: 130 / 116; margin: 6px 0 8px; border: 2px solid var(--line); background: #05070d; }
.nmap canvas { display: block; width: 100%; height: 100%; cursor: pointer; }
.nlbl { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 3px 6px; min-height: 28px; justify-content: center; background: rgba(5,7,13,.8); border: 1px solid var(--dc); color: var(--dc); font: inherit; cursor: pointer; }
.nlbl b { display: flex; align-items: center; gap: 4px; font-size: 10px; letter-spacing: .5px; text-transform: uppercase; white-space: nowrap; }
.nlbl small { font-size: 9px; color: #b8c0e0; white-space: nowrap; }
.nlbl.locked { color: #c3c9e6; }
.nlbl.on { border-width: 2px; color: var(--dc); background: rgba(5,7,13,.93); box-shadow: 0 0 12px var(--dc); z-index: 1; }
.seg.nettabs { margin: 8px 0 10px; }
.seg.nettabs button { padding: 9px 6px; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
/* the Map tab, laid out like the sample: header + rule chip, the map, a district panel with compact rows, a legend */
.nethead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 2px 0 8px; }
.nethead small { color: #9aa3c7; font-size: 11px; }
h2.nettitle { margin: 0; font-family: 'Silkscreen', ui-monospace, monospace; font-weight: 400; font-size: 22px; letter-spacing: 1px; color: var(--cyan); text-transform: uppercase; }
.rulechip { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; padding: 5px 8px; background: transparent; border: 1px solid var(--yellow); color: var(--yellow); font: inherit; cursor: pointer; text-align: right; }
.rulechip small { font-size: 9px; color: var(--yellow); letter-spacing: .5px; }
.rulechip b { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }
.nlbl b { font-family: 'Silkscreen', ui-monospace, monospace; font-weight: 400; }
.dpanel { display: flex; flex-direction: column; gap: 8px; padding: 10px 0 4px; }
.dhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dhead b { font-family: 'Silkscreen', ui-monospace, monospace; font-weight: 400; font-size: 17px; letter-spacing: 1px; color: var(--dc); text-transform: uppercase; }
.dchip { font-size: 10px; padding: 3px 7px; border: 1px solid; white-space: nowrap; }
.dchip.ok { color: var(--green); border-color: var(--green); }
.dchip.lk { color: var(--yellow); border-color: var(--yellow); }
.dpanel > p { margin: 0; font-size: 11.5px; line-height: 1.45; color: #c3c9e6; }
.dpanel > p.dim { color: var(--dim); font-size: 10.5px; }
.dpanel > p.y { color: var(--yellow); }
.dlist { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: 4px; }
.drow { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 34px; padding: 4px 2px; background: none; border: 0; border-bottom: 1px solid rgba(44,55,96,.45); color: var(--ink); font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.drow > span:first-child { display: flex; align-items: center; gap: 8px; }
.drow > span:last-child { font-size: 10.5px; text-align: right; }
.drow:hover, .drow:active { background: rgba(255,255,255,.04); }
.drow.off { color: #b8c0e0; cursor: default; }
button.drow.off { cursor: pointer; }
.drow .bossn { color: #ff8a8a; }
svg.px { flex: none; }
.nlegend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 10px; color: #9aa3c7; border-top: 1px solid var(--line); padding-top: 8px; margin: 6px 0 4px; }
.nlegend span { display: flex; align-items: center; gap: 5px; }
.drow > span.dname { flex-direction: column; align-items: flex-start; gap: 2px; }
.drow > span.dname > span { display: flex; align-items: center; gap: 8px; }
.dstars { padding-left: 17px; font-size: 10px; color: var(--dim); }
.dstars .stars { font-size: 10px; letter-spacing: 0; margin-right: 6px; }
.drow.off .dstars .stars { opacity: .6; }
/* sub-tabs inside Crew, Lab and Shop, styled like the Net tab's Scanner / Map */
.seg.subtabs { margin: 8px 0 10px; }
.seg.subtabs button { position: relative; padding: 9px 4px; font-size: 12px; letter-spacing: .5px; text-transform: uppercase; }
.seg.subtabs.n4 button { font-size: 10.5px; letter-spacing: 0; }
.sdot { position: absolute; top: 4px; right: 5px; width: 6px; height: 6px; background: var(--red); border-radius: 50%; }

/* puzzle locks */
.pzbar { position: relative; height: 14px; background: #05070d; border: 1px solid var(--line); margin: 4px 0 6px; }
.pzbar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, var(--red), var(--yellow)); }
.pzbar span { position: absolute; right: 4px; top: -1px; font-size: 10px; color: var(--ink); }
.pzshow { min-height: 64px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; padding: 6px; background: #05070d; border: 1px solid var(--line); margin-bottom: 8px; }
.pzsym { font-size: 22px; line-height: 1; } .pzsym.big { font-size: 46px; }
.pzkeys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
.pzkey { font-size: 28px; padding: 10px 0; background: var(--panel2); border: 2px solid var(--line); cursor: pointer; }
.pzgrid { position: relative; margin: 6px auto 10px; }
.pzgrid svg { position: absolute; inset: 0; }
.pzdot { position: absolute; width: 36px; height: 36px; border-radius: 50%; border: 3px solid #3a4256; background: #0b0f1a; cursor: pointer; padding: 0; }
.pzdot.on { border-color: var(--pink); background: rgba(255,79,216,.35); }
.pzwave { display: block; width: 100%; max-width: 300px; margin: 4px auto 8px; border: 1px solid var(--line); image-rendering: auto; }
.pzknobs { display: flex; justify-content: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.pzknob { display: flex; align-items: center; gap: 4px; background: var(--panel2); border: 1px solid var(--line); padding: 4px; }
.pzknob button { width: 34px; height: 34px; font-size: 18px; background: #0b0f1a; color: var(--ink); border: 1px solid var(--line); cursor: pointer; }
.pzknob b { min-width: 16px; text-align: center; font-size: 16px; color: var(--green); }
.pzknob i { width: 8px; height: 8px; border-radius: 50%; background: #3a4256; } .pzknob i.ok { background: var(--green); box-shadow: 0 0 6px var(--green); }
.pzcirc { margin: 4px auto 10px; }
.pzrow { display: flex; align-items: center; }
.pzio { width: 20px; text-align: center; color: var(--yellow); font-size: 14px; }
.pztile { padding: 0; margin: 1px; background: #0b0f1a; border: 1px solid #2c3760; cursor: pointer; }
.pzmaze { display: block; margin: 4px auto 8px; image-rendering: pixelated; max-width: 100%; }
.pzpad { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 8px; }
.pzpad div { display: flex; gap: 4px; }
.pzpad button { width: 52px; height: 44px; font-size: 18px; background: var(--panel2); color: var(--ink); border: 1px solid var(--line); cursor: pointer; }

/* the skill tree */
.sktop { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--yellow); padding: 8px 10px; margin: 4px 0 8px; }
.sktop b { display: block; color: var(--yellow); font-size: 12px; letter-spacing: .5px; text-transform: uppercase; }
.sktop small { color: var(--dim); font-size: 10px; }
.sktop > span { font-size: 24px; color: var(--yellow); font-weight: bold; }
.sktabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-bottom: 8px; }
.sktabs button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px 6px; background: var(--panel); border: 1px solid var(--line); color: var(--dim); font: inherit; font-size: 10px; cursor: pointer; text-transform: uppercase; }
.sktabs button img { width: 24px; height: 24px; image-rendering: pixelated; }
.sktabs button small { font-size: 9px; }
.sktabs button.on { border-color: var(--bc); color: var(--bc); background: var(--panel2); box-shadow: 0 0 10px -3px var(--bc); }
.sktree { position: relative; height: 560px; border: 1px solid var(--line); overflow: hidden; background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--bc) 14%, transparent), transparent 60%), repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 22px), repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 22px), #070a12; }
.sktree svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sktag { position: absolute; left: 10px; top: 8px; font-family: 'Silkscreen', ui-monospace, monospace; font-size: 12px; color: var(--bc); letter-spacing: 1px; text-transform: uppercase; }
.sktag small { display: block; font-family: ui-monospace, monospace; font-size: 10px; color: var(--dim); letter-spacing: 0; text-transform: none; }
.sknode { position: absolute; transform: translate(-50%, -50%); width: 52px; height: 52px; padding: 0; background: #0b0f1a; border: 2px solid #3a4256; cursor: pointer; display: flex; align-items: center; justify-content: center; clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px); }
.sknode img { width: 32px; height: 32px; image-rendering: pixelated; }
.sknode.cap { width: 68px; height: 68px; } .sknode.cap img { width: 44px; height: 44px; }
.sknode.got { border-color: var(--bc); background: color-mix(in srgb, var(--bc) 22%, #0b0f1a); box-shadow: inset 0 0 12px color-mix(in srgb, var(--bc) 50%, transparent); }
.sknode.can { border-color: var(--yellow); animation: skpulse 1.2s steps(2) infinite; }
.sknode.locked img { filter: grayscale(1) brightness(.45); }
.sknode.sel { outline: 2px solid #fff; outline-offset: 3px; }
@keyframes skpulse { 50% { border-color: #8a6a10; } }
.skrank { position: absolute; transform: translate(-50%, 0); font-size: 9px; padding: 0 4px; background: #05070d; border: 1px solid #3a4256; color: var(--dim); white-space: nowrap; }
.skrank.got { color: var(--bc); border-color: var(--bc); }
.skpanel { margin: 10px 0 4px; border: 1px solid var(--line); background: var(--panel); padding: 12px; display: flex; flex-direction: column; gap: 7px; }
.skph { display: flex; gap: 10px; align-items: center; }
.skph img { width: 44px; height: 44px; image-rendering: pixelated; border: 2px solid var(--bc); padding: 4px; background: #0b0f1a; }
.skph b { font-family: 'Silkscreen', ui-monospace, monospace; font-weight: 400; font-size: 15px; color: var(--bc); letter-spacing: .5px; text-transform: uppercase; }
.skph small { display: block; font-size: 10px; color: var(--dim); }
.skpanel > p { margin: 0; font-size: 12px; line-height: 1.45; }
.connbar { position: relative; height: 8px; background: #05070d; border: 1px solid var(--line); overflow: hidden; margin: 6px 0 8px; }
.connbar i { position: absolute; top: 0; bottom: 0; width: 30%; background: linear-gradient(90deg, transparent, var(--cyan), transparent); animation: connrun 1.1s linear infinite; }
@keyframes connrun { from { left: -30%; } to { left: 100%; } }

/* the Rig's edit mode */
.card.edit { border-color: var(--yellow); background: linear-gradient(90deg, rgba(255,210,63,.08), transparent); }
.layerr { margin: 6px 0; padding: 6px 8px; border-left: 3px solid var(--red); background: rgba(255,90,90,.07); }
.layerr p { margin: 2px 0; }
.lklist { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.lklist .btn { margin: 0; }
.crt.editing { outline: 2px dashed var(--yellow); outline-offset: 2px; }

/* ================= the look: every screen like the map and the skill tree ================= */
#main { --ac: var(--cyan); }
.shead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 2px 0 10px; }
.shead h1 { margin: 0; font-family: 'Silkscreen', ui-monospace, monospace; font-weight: 400; font-size: 22px; letter-spacing: 1px; color: var(--ac); text-transform: uppercase; line-height: 1.1; }
.shead small { display: block; font-size: 11px; color: var(--dim); margin-top: 2px; }
.schip { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; padding: 4px 8px; border: 1px solid var(--yellow); color: var(--yellow); background: transparent; font: inherit; text-align: right; white-space: nowrap; }
button.schip { cursor: pointer; }
.schip span { font-size: 9px; letter-spacing: .5px; text-transform: uppercase; }
.schip b { font-size: 15px; }
.schip.ok { border-color: var(--green); color: var(--green); } .schip.bad { border-color: var(--red); color: var(--red); }
h2 { font-family: 'Silkscreen', ui-monospace, monospace; font-weight: 400; font-size: 14px; letter-spacing: 1px; color: var(--ac); margin: 16px 0 6px; }
.mbox h3 { font-family: 'Silkscreen', ui-monospace, monospace; font-weight: 400; letter-spacing: .5px; }
/* panels: a faint grid, a glow in the section colour */
#main .card { --pc: var(--ac); border: 1px solid var(--line); padding: 10px; margin: 0 0 10px;
  background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--pc) 12%, transparent), transparent 65%), repeating-linear-gradient(0deg, rgba(255,255,255,.022) 0 1px, transparent 1px 22px), repeating-linear-gradient(90deg, rgba(255,255,255,.022) 0 1px, transparent 1px 22px), #070a12; }
#main .card.alert { --pc: var(--red); border-left: 3px solid var(--red); }
#main .card.good { --pc: var(--green); border-left: 3px solid var(--green); }
#main .card.gold { --pc: var(--yellow); border-left: 3px solid var(--yellow); }
#main .card .top b { font-size: 14px; }
#main .card .kv { min-height: 30px; align-items: center; padding: 3px 0; border-bottom: 1px solid rgba(44,55,96,.45); }
#main .card .kv:last-child { border-bottom: 0; }
/* an icon at the start of a row sits in a clipped frame, like the skill tree */
#main .card .kv > span:first-child > img.ico:first-child:not(.rk) { width: 26px; height: 26px; padding: 3px; margin-right: 6px; vertical-align: middle; border: 2px solid color-mix(in srgb, var(--pc) 70%, var(--line)); background: color-mix(in srgb, var(--pc) 14%, #0b0f1a); clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px); }
.ptitle { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.ptitle b { font-family: 'Silkscreen', ui-monospace, monospace; font-weight: 400; font-size: 12px; letter-spacing: 1px; color: var(--ac); text-transform: uppercase; }
.ptitle small { font-size: 10px; color: var(--dim); }
/* buttons: outlined, tinted, the wide ones in the pixel font */
.btn { background: color-mix(in srgb, var(--line) 35%, #0b0f1a); border-color: var(--line); box-shadow: none; }
.btn.go { background: color-mix(in srgb, var(--green) 14%, #0b0f1a); }
.btn.hot { background: color-mix(in srgb, var(--yellow) 14%, #0b0f1a); }
.btn.bad { background: color-mix(in srgb, var(--red) 14%, #0b0f1a); }
.btn.wide { font-family: 'Silkscreen', ui-monospace, monospace; font-weight: 400; letter-spacing: 1px; min-height: 46px; }
.btn.wide small { font-family: ui-monospace, monospace; letter-spacing: 0; }
/* the sub-tab bars */
.seg button { text-transform: uppercase; letter-spacing: .5px; }
.seg button.on { color: var(--ac, var(--cyan)); border-color: var(--ac, var(--cyan)); box-shadow: 0 0 10px -3px var(--ac, var(--cyan)); }
/* the Room: the four needs in a panel, framed icons, segmented bars */
.bars { border: 1px solid var(--line); padding: 10px; margin: 10px 0; gap: 8px;
  background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--ac) 12%, transparent), transparent 65%), #070a12; }
.bar { grid-template-columns: 34px 70px 1fr 30px; }
.bar > img.ico { width: 30px; height: 30px; padding: 4px; border: 2px solid var(--fc); background: color-mix(in srgb, var(--fc) 16%, #0b0f1a); clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px); }
.track { position: relative; height: 9px; border: 0; background: #1a2036; }
.track i { box-shadow: 0 0 6px color-mix(in srgb, var(--fc) 70%, transparent); }
.track::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 2px), #070a12 calc(10% - 2px) 10%); }
.bar .hint { grid-column: 2 / -1; }
.acts .btn { background: #0b0f1a; border-width: 1px; }
.frame { border: 1px solid var(--line); }
/* the top bar and the bottom bar */
#hud { background: linear-gradient(180deg, #121a2e, #0b0f1a); }
#hud .who b { font-family: 'Silkscreen', ui-monospace, monospace; font-weight: 400; font-size: 13px; letter-spacing: .5px; }
#nav { background: #070a12; }
#nav button { border-top: 2px solid transparent; margin-top: -2px; }
#nav button.on { color: var(--nc, var(--green)); border-top-color: var(--nc, var(--green)); background: linear-gradient(180deg, color-mix(in srgb, var(--nc, var(--green)) 16%, transparent), transparent); }

/* leaderboard rows: fixed columns */
#main .card .kv.lbr { display: grid; grid-template-columns: 3.2ch 42px 1fr auto; column-gap: 8px; align-items: center; margin: 0 -8px; padding: 5px 8px; }
/* the face in the skin they wear, framed in its rarity colour; Legendary glows */
.lbr .pf { position: relative; width: 38px; height: 38px; display: block; border: 2px solid var(--rc, #3a4258); background: #0b0f1a; box-shadow: 0 0 0 1px #05070d; }
.lbr .pf img, .lbr .pf canvas { width: 100%; height: 100%; image-rendering: pixelated; display: block; }
.tgcard .top b { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tgf { flex: none; display: inline-block; }
#hud canvas.face { display: block; image-rendering: pixelated; }
.lbr .pf.Uncommon { --rc: #3ddc84; } .lbr .pf.Rare { --rc: #35e0ff; } .lbr .pf.Epic { --rc: #9b6bff; }
.lbr .pf.Legendary { --rc: #ffd23f; animation: pfglow 1.4s ease-in-out infinite alternate; }
@keyframes pfglow { 0% { box-shadow: 0 0 0 1px #05070d, 0 0 4px rgba(255,210,63,.4); } 100% { box-shadow: 0 0 0 1px #05070d, 0 0 12px rgba(255,210,63,.95); } }
.lbr .lbh .ico.rk { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
/* Legendary rows light up gold, Epic rows get a purple edge, with the skin's name under the handle */
#main .card .kv.lbr.leg { background: linear-gradient(90deg, rgba(255,210,63,.18), rgba(255,210,63,.03) 70%); box-shadow: inset 3px 0 0 var(--yellow); }
#main .card .kv.lbr.leg .hn { color: var(--yellow); text-shadow: 0 0 8px rgba(255,210,63,.5); }
/* ROOT: level 50 players shine gold, prestige stars after the name */
#main .card .kv.lbr .hn.root { color: #ffd23f; text-shadow: 0 0 6px rgba(255,210,63,.75), 0 0 14px rgba(255,159,67,.35); }
.lbr .pstar { color: #ffd23f; margin-left: 4px; font-size: 10px; letter-spacing: -1px; }
#main .card .kv.lbr.epic { background: linear-gradient(90deg, rgba(155,107,255,.14), transparent 70%); box-shadow: inset 3px 0 0 #9b6bff; }
.lbr .sk { display: block; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; font-family: 'Silkscreen', ui-monospace, monospace; line-height: 1.2; }
.lbr .sk.Legendary { color: var(--yellow); } .lbr .sk.Epic { color: #b99bff; }
/* the DEV skin (Source): one of a kind. A frame that flickers between code-green and white, a row with code scrolling down it, a glitching green name */
.lbr .pf.DEV { --rc: #39ff8a; animation: pfdev 1.8s steps(1) infinite; }
@keyframes pfdev { 0% { border-color: #39ff8a; box-shadow: 0 0 0 1px #05070d, 0 0 14px rgba(57,255,138,.9); } 46% { border-color: #1f8a4f; box-shadow: 0 0 0 1px #05070d, 0 0 8px rgba(57,255,138,.5); } 50% { border-color: #e8ffee; box-shadow: 0 0 0 1px #05070d, 0 0 16px rgba(232,255,238,.9); } 54% { border-color: #39ff8a; } }
#main .card .kv.lbr.dev { position: relative; overflow: hidden; background: linear-gradient(90deg, rgba(57,255,138,.2), rgba(57,255,138,.03) 75%), repeating-linear-gradient(0deg, rgba(57,255,138,.05) 0 1px, transparent 1px 3px); box-shadow: inset 3px 0 0 #39ff8a, inset 0 0 0 1px rgba(57,255,138,.35); }
#main .card .kv.lbr.dev::after { content: ''; position: absolute; left: 0; right: 0; height: 2px; top: 0; background: linear-gradient(90deg, transparent, rgba(232,255,238,.7), transparent); animation: devscan 2.2s linear infinite; pointer-events: none; }
@keyframes devscan { 0% { transform: translateY(-2px); } 100% { transform: translateY(60px); } }
#main .card .kv.lbr.dev .hn { color: #39ff8a; text-shadow: -1px 0 0 rgba(232,255,238,.6), 1px 0 0 rgba(31,138,79,.8), 0 0 8px rgba(57,255,138,.6); animation: devname 3s steps(1) infinite; }
@keyframes devname { 0%, 90% { transform: none; } 92% { transform: translateX(-2px); } 94% { transform: translateX(2px); } 96% { transform: none; } }
.lbr .sk.DEV { color: #e8ffee; text-shadow: 0 0 6px rgba(57,255,138,.8); }
@media (prefers-reduced-motion: reduce) { .lbr .pf.Legendary, .lbr .pf.DEV, #main .card .kv.lbr.dev::after, #main .card .kv.lbr.dev .hn { animation: none; } }
.lbr .lbn { font-style: normal; text-align: right; color: var(--dim); font-variant-numeric: tabular-nums; }
.lbr .lbb { font-style: normal; display: flex; align-items: center; justify-content: center; }
.lbr .lbh { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lbr .lbv { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.lbr .lbv b { min-width: 5ch; text-align: right; font-variant-numeric: tabular-nums; }

/* a debuff's connection rows: the move button and a small "+ also" */
.optrow { display: flex; gap: 6px; align-items: stretch; }
.optrow .opt { flex: 1; }
.optrow > .btn.sm { flex: 0 0 auto; align-self: center; }

/* hack screen: nothing shrinks under its content, so the scripts never sit on top of the files. The map is full width;
   the node panel keeps its normal size and scrolls inside itself when a node holds many files. */
#run > * { flex-shrink: 0; }
#run #rinfo { flex: 0 0 auto; min-height: 104px; max-height: 150px; overflow-y: auto; } /* always room for a full row of files, at most about three rows; more scrolls inside it */
/* on a short screen (a phone with browser bars) the map gives up height, not the files: it stays square, as big as the room left */
#run .crtbox { flex: 0 1 auto; width: 100%; aspect-ratio: 1 / 1; min-height: 150px; container-type: size; display: flex; justify-content: center; align-items: flex-start; }
#run .crtbox .crt { width: min(100cqw, 100cqh); height: min(100cqw, 100cqh); }
#run .crtbox .crt canvas { width: 100%; height: 100%; }
#run #rinfo::-webkit-scrollbar { width: 6px; } #run #rinfo::-webkit-scrollbar-thumb { background: var(--line); }
#run #rinfo { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.acct .pen { display: inline-flex; vertical-align: -2px; margin-left: 6px; width: 20px; height: 20px; padding: 3px; background: var(--panel2); border: 1px solid var(--line); color: var(--cyan); cursor: pointer; }
.acct .pen svg { display: block; width: 100%; height: 100%; }
.acct .pen:hover { border-color: var(--cyan); }
/* the trace bar throbs once the trace is high */
.trace.hot { animation: tracehot 0.6s steps(2) infinite; }
/* an awake Sentry: a red glow around the trace bar that blinks with each siren blast */
.trace.sentry { box-shadow: 0 0 6px 1px rgba(255, 59, 74, 0.35); transition: box-shadow 0.4s ease-out; }
.trace.sentry.beep { animation: none; box-shadow: 0 0 0 2px #ff3b4a, 0 0 24px 6px rgba(255, 59, 74, 0.8); transition: none; }
@keyframes tracehot { 0% { box-shadow: 0 0 0 0 rgba(255, 90, 90, 0.0); } 100% { box-shadow: 0 0 10px 2px rgba(255, 90, 90, 0.75); } }
#runc { will-change: transform; }

/* the chosen skill: a bright border inside, and pulsing corner brackets around it (the octagon clip would cut an outline) */
.sknode.sel { border-color: #fff; filter: brightness(1.25); z-index: 2; }
.skring { position: absolute; transform: translate(-50%, -50%); width: 70px; height: 70px; pointer-events: none; z-index: 1; animation: skring 0.8s steps(2) infinite;
  --rc: #fff; background:
    linear-gradient(var(--rc), var(--rc)) top left / 16px 3px no-repeat, linear-gradient(var(--rc), var(--rc)) top left / 3px 16px no-repeat,
    linear-gradient(var(--rc), var(--rc)) top right / 16px 3px no-repeat, linear-gradient(var(--rc), var(--rc)) top right / 3px 16px no-repeat,
    linear-gradient(var(--rc), var(--rc)) bottom left / 16px 3px no-repeat, linear-gradient(var(--rc), var(--rc)) bottom left / 3px 16px no-repeat,
    linear-gradient(var(--rc), var(--rc)) bottom right / 16px 3px no-repeat, linear-gradient(var(--rc), var(--rc)) bottom right / 3px 16px no-repeat; }
.skring.cap { width: 88px; height: 88px; }
@keyframes skring { 0% { transform: translate(-50%, -50%) scale(1); } 100% { transform: translate(-50%, -50%) scale(1.08); } }
/* sub-tabs (Lab, Shop, Crew, Net, Leaderboard): a framed strip in the screen's colour, so they read as navigation and are not missed.
   Unselected tabs are bright on a tinted box; the selected one is filled solid and points down at its content; one with news pulses. */
.seg { gap: 4px; padding: 4px; margin: 8px 0 14px; background: #05070d; border: 2px solid var(--ac, var(--cyan)); box-shadow: 0 0 0 1px #000, 0 0 16px -6px var(--ac, var(--cyan)); }
.seg button, .seg.subtabs button, .seg.nettabs button { position: relative; min-height: 40px; font-weight: bold; color: var(--ink); background: var(--panel2); background: color-mix(in srgb, var(--ac, var(--cyan)) 12%, var(--panel)); border: 2px solid var(--line); border-color: color-mix(in srgb, var(--ac, var(--cyan)) 40%, var(--line)); }
.seg button:hover { border-color: var(--ac, var(--cyan)); }
.seg button.on { color: #05070d; background: var(--ac, var(--cyan)); border-color: var(--ac, var(--cyan)); box-shadow: 0 0 12px -2px var(--ac, var(--cyan)); }
.seg button.on::after { content: ''; position: absolute; left: 50%; bottom: -11px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: var(--ac, var(--cyan)); }
.seg button.on .sdot { box-shadow: 0 0 0 2px #05070d; }
.seg button:not(.on):has(.sdot) { animation: segnews 1.2s ease-in-out infinite alternate; }
@keyframes segnews { 0% { border-color: var(--line); } 100% { border-color: var(--ac, var(--cyan)); box-shadow: 0 0 10px -2px var(--ac, var(--cyan)); } }
/* crew members: one grid for the list, so names, trophies and buttons each keep a column */
.crewlist { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: stretch; column-gap: 0; font-size: 13px; margin-top: 4px; }
.crewlist > span { display: flex; align-items: center; min-height: 44px; padding: 4px 0; border-bottom: 1px solid rgba(44,55,96,.45); }
.crewlist > span:nth-last-child(-n+3) { border-bottom: 0; }
.crewlist .cm-n { gap: 8px; min-width: 0; }
.crewlist .cm-n img.rk { flex: 0 0 auto; }
/* the crew owner: a tiny pixel crown on top of their rank icon */
.crewlist .rkw { position: relative; display: inline-flex; flex: 0 0 auto; min-width: 14px; min-height: 14px; }
.crewlist .rkw.own::before { content: ''; position: absolute; left: 50%; top: -8px; transform: translateX(-50%); width: 14px; height: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 5' shape-rendering='crispEdges'%3E%3Cpath fill='%23ffd23f' d='M0 1h1v1h1v1h1V0h1v3h1V2h1V1h1v4H0z'/%3E%3C/svg%3E") no-repeat center / contain; filter: drop-shadow(0 1px 0 #05070d) drop-shadow(0 0 3px rgba(255,210,63,.6)); pointer-events: none; }
.crewlist .cm-h { display: flex; flex-direction: column; min-width: 0; font-style: normal; line-height: 1.25; }
.crewlist .cm-h b { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crewlist .cm-h small { font-size: 11px; color: var(--dim); white-space: nowrap; } .crewlist .cm-h em { font-style: normal; }
/* trophies last: the cup on the left of the column, the number right-aligned, so cups and digits both line up */
.crewlist .cm-t { justify-content: space-between; gap: 6px; min-width: 66px; padding-left: 12px; font-weight: bold; color: var(--ink); }
.crewlist .cm-t b { font-variant-numeric: tabular-nums; }
.crewlist .cm-a { justify-content: flex-end; gap: 6px; padding-left: 8px; }
.crewlist .cm-a .btn.sm { padding: 3px 7px; }
@media (max-width: 400px) { .crewlist .cm-a { gap: 4px; } .crewlist .cm-a .btn.sm { padding: 3px 5px; font-size: 11px; } .crewlist .cm-t { min-width: 56px; padding-left: 8px; } .crewlist .cm-n { gap: 6px; } }
/* each member: name and trophies on one line, their buttons centred on the line under it */
.crewlist { grid-template-columns: minmax(0, 1fr) auto; grid-auto-flow: row dense; }
.crewlist > span { min-height: 0; border-bottom: 0; }
.crewlist .cm-n { grid-column: 1; padding: 8px 0 2px; }
.crewlist .cm-t { grid-column: 2; padding: 8px 0 2px 12px; }
.crewlist .cm-a { grid-column: 1 / -1; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 6px 0 8px; border-bottom: 1px solid rgba(44,55,96,.45); }
.crewlist .cm-a { box-sizing: border-box; min-height: 46px; } /* your own row has no buttons: it keeps the same height as the others */
.crewlist > span:nth-last-child(-n+3) { border-bottom: 0; }
/* level-up screen and the tutorial's last screen */
.lvup { text-align: left; }
.lvup > small { display: block; text-align: center; font-family: 'Silkscreen', ui-monospace, monospace; letter-spacing: 3px; color: var(--yellow); font-size: 12px; }
.lvup .lvn { display: block; text-align: center; font-family: 'Silkscreen', ui-monospace, monospace; font-weight: 400; font-size: 34px; line-height: 1.1; margin: 2px 0 10px; color: var(--yellow); text-shadow: 0 0 14px rgba(255,210,63,.5); }
.lvup h2, .tutend h2 { margin-top: 12px; }
.lvup .kv b, .tutend .kv b { color: var(--ink); }
.tutend h3 { color: var(--green); }
.tutend .kv { padding: 4px 0; border-bottom: 1px solid rgba(44,55,96,.45); }
/* while the guide points into a window, the window moves up to leave room for the guide's bubble below it */
#modal.coached { align-items: flex-start; }
/* level-up burst: the window explodes in, with a flash, two shockwaves and pixels flying out of its centre */
.mbox.lvbox { position: relative; z-index: 1; border-color: var(--yellow); box-shadow: 0 6px 0 #000, 0 0 40px rgba(255,210,63,.35); animation: lvboom .62s cubic-bezier(.2,1.5,.4,1) both; }
.mbox.lvbox .lvn { animation: lvnum .5s .22s cubic-bezier(.2,1.8,.4,1) both, lvglow 1.4s .8s ease-in-out infinite alternate; }
.lvfx { position: fixed; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.lvfx .lvflash { position: absolute; inset: 0; background: radial-gradient(circle at var(--cx) var(--cy), rgba(255,255,255,.95), rgba(255,210,63,.55) 18%, rgba(255,210,63,0) 55%); animation: lvflash .5s ease-out forwards; }
.lvfx .lvring { position: absolute; left: var(--cx); top: var(--cy); width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 4px solid var(--yellow); box-shadow: 0 0 0 2px #05070d, 0 0 18px var(--yellow); animation: lvring .7s ease-out forwards; }
.lvfx .lvring.two { border-color: var(--green); box-shadow: 0 0 0 2px #05070d, 0 0 18px var(--green); animation-delay: .12s; }
.lvfx i { position: absolute; left: var(--cx); top: var(--cy); width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); background: var(--c); box-shadow: 0 0 6px var(--c); animation: lvpx var(--t) cubic-bezier(.1,.7,.3,1) forwards; }
#app.lvshake { animation: lvshake .45s steps(6) both; }
@keyframes lvboom { 0% { transform: scale(.15) rotate(-6deg); opacity: 0; } 55% { transform: scale(1.12) rotate(1.5deg); opacity: 1; } 78% { transform: scale(.97) rotate(0); } 100% { transform: scale(1); } }
@keyframes lvnum { 0% { transform: scale(3); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes lvglow { 0% { text-shadow: 0 0 10px rgba(255,210,63,.45); } 100% { text-shadow: 0 0 22px rgba(255,210,63,.95), 0 0 2px #fff; } }
@keyframes lvflash { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes lvring { 0% { transform: scale(.2); opacity: 1; } 100% { transform: scale(9); opacity: 0; } }
@keyframes lvpx { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(var(--x), var(--y)) rotate(180deg); opacity: 0; } }
@keyframes lvshake { 0%, 100% { transform: none; } 20% { transform: translate(-5px, 3px); } 40% { transform: translate(5px, -3px); } 60% { transform: translate(-3px, -2px); } 80% { transform: translate(3px, 2px); } }
@media (prefers-reduced-motion: reduce) { .mbox.lvbox, .mbox.lvbox .lvn, #app.lvshake { animation: none; } .lvfx { display: none; } }
/* a defended attack opens with who tried */
.card p.held { margin: 4px 0 2px; font-size: 13px; color: var(--ink); }
.card p.held b { color: var(--green); }
/* the guide's bubble pulses so it is never missed */
#coach .cbub { animation: cbubpulse 1.1s ease-in-out infinite; }
@keyframes cbubpulse { 0%, 100% { border-color: var(--green); box-shadow: 0 4px 0 #05070d, 0 0 0 0 rgba(61,220,132,0); } 50% { border-color: #9dffc7; box-shadow: 0 4px 0 #05070d, 0 0 0 3px rgba(61,220,132,.35), 0 0 18px rgba(61,220,132,.55); } }
@media (prefers-reduced-motion: reduce) { #coach .cbub { animation: none; } }
/* the guide pops: a yellow bubble with black text, and yellow rings and arrow to match */
#coach .cbub { background: var(--yellow); color: #05070d; border-color: #05070d; box-shadow: 0 4px 0 #05070d; animation: cbubpulse2 1.1s ease-in-out infinite; }
#coach .cbub p, #coach .cbub b, #coach .cbub .cstep { color: #05070d; }
#coach .cbub .cstep { opacity: .7; }
#coach .cbub .btn { background: #05070d; color: var(--yellow); border-color: #05070d; box-shadow: none; }
#coach .cbub .cskip { background: none; border: 0; padding: 6px 2px; color: #05070d; font: inherit; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; opacity: .8; } /* only when replaying the tutorial */
#coach .cring { border-color: var(--yellow); box-shadow: 0 0 0 2px #05070d, 0 0 18px var(--yellow); }
#coach .carrow { color: var(--yellow); }
@keyframes cbubpulse2 { 0%, 100% { box-shadow: 0 4px 0 #05070d, 0 0 0 0 rgba(255,210,63,0); } 50% { box-shadow: 0 4px 0 #05070d, 0 0 0 4px rgba(255,210,63,.45), 0 0 22px rgba(255,210,63,.7); } }
/* a lock the guide is talking about pulses */
#rinfo .lock.lit { animation: locklit .7s ease-in-out infinite alternate; }
@keyframes locklit { 0% { box-shadow: 0 0 0 0 rgba(255,210,63,0); filter: brightness(1); } 100% { box-shadow: 0 0 0 3px var(--yellow), 0 0 16px var(--yellow); filter: brightness(1.35); } }
@media (prefers-reduced-motion: reduce) { #rinfo .lock.lit { animation: none; box-shadow: 0 0 0 3px var(--yellow); } }
/* the warning before the tutorial: yellow like the guide's bubbles, black text, a red WARNING; it bursts in like a level-up */
#modal .mbox:has(.warnscr) { background: var(--yellow); border: 3px solid #05070d; box-shadow: 0 6px 0 #000, 0 0 0 3px var(--yellow), 0 0 44px rgba(255,210,63,.6); animation: lvboom .62s cubic-bezier(.2,1.5,.4,1) both, warnpulse 1.1s .7s ease-in-out infinite; }
.warnscr { text-align: center; padding: 10px 4px 2px; color: #05070d; }
.warnscr .wtitle { font-family: 'Silkscreen', ui-monospace, monospace; font-size: 28px; line-height: 1.15; letter-spacing: 2px; color: #e01b1b; text-shadow: 2px 2px 0 #05070d; margin: 6px 0 16px; animation: lvnum .5s .22s cubic-bezier(.2,1.8,.4,1) both, warnblink 1s .8s steps(2) infinite, warnglitch 2.6s steps(1) infinite; }
.warnscr .wbig { font-family: 'Silkscreen', ui-monospace, monospace; font-size: 18px; color: #05070d; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 10px; }
.warnscr p { font-size: 15px; line-height: 1.5; margin: 0 0 18px; color: #05070d; }
.warnscr .btn { margin-top: 4px; background: #05070d; color: var(--yellow); border-color: #05070d; box-shadow: 0 4px 0 #000; }
.lvfx.warn .lvflash { background: radial-gradient(circle at var(--cx) var(--cy), rgba(255,255,255,.95), rgba(255,59,59,.55) 18%, rgba(255,59,59,0) 55%); }
.lvfx.warn .lvring.two { border-color: #ff3b3b; box-shadow: 0 0 0 2px #05070d, 0 0 18px #ff3b3b; }
@keyframes warnpulse { 0%, 100% { box-shadow: 0 6px 0 #000, 0 0 0 3px var(--yellow), 0 0 30px rgba(255,210,63,.4); } 50% { box-shadow: 0 6px 0 #000, 0 0 0 6px var(--yellow), 0 0 56px rgba(255,210,63,.85); } }
@keyframes warnblink { 0% { opacity: 1; } 50% { opacity: .55; } }
@keyframes warnglitch { 0%, 88% { transform: none; } 90% { transform: translate(-3px, 1px); } 93% { transform: translate(3px, -1px); } 96% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .warnscr .wtitle, #modal .mbox:has(.warnscr) { animation: none; } }
/* Mythic: hot pink-violet, alive. A file that carries one glows and shimmers in the hack */
.chip.myth { animation: mythchip 0.9s ease-in-out infinite alternate; background: linear-gradient(90deg, rgba(255,92,225,.25), rgba(53,224,255,.18)); color: #fff; }
@keyframes mythchip { 0% { box-shadow: 0 0 0 1px #05070d, 0 0 6px rgba(255,92,225,.5); border-color: #ff5ce1; } 100% { box-shadow: 0 0 0 1px #05070d, 0 0 18px rgba(255,92,225,1), 0 0 30px rgba(53,224,255,.5); border-color: #ffffff; } }
.mythwin { text-align: center; margin: 10px 0 14px; padding: 12px 8px; border: 2px solid #ff5ce1; background: radial-gradient(circle at 50% 40%, rgba(255,92,225,.28), rgba(5,7,13,0) 70%); box-shadow: 0 0 24px rgba(255,92,225,.45); animation: mythpulse 1.2s ease-in-out infinite alternate; }
.mythwin small { display: block; font-family: 'Silkscreen', ui-monospace, monospace; font-size: 20px; letter-spacing: 3px; color: #ff5ce1; text-shadow: -2px 0 0 rgba(53,224,255,.7), 2px 0 0 rgba(255,210,63,.5), 0 0 14px rgba(255,92,225,.9); animation: lvnum .5s .2s cubic-bezier(.2,1.8,.4,1) both; }
.mythwin img, .mythwin canvas { width: 112px; height: 112px; image-rendering: pixelated; display: block; margin: 8px auto; }
.mythwin b { display: block; font-family: 'Silkscreen', ui-monospace, monospace; font-size: 18px; color: #fff; letter-spacing: 1px; }
@keyframes mythpulse { 0% { box-shadow: 0 0 14px rgba(255,92,225,.35); } 100% { box-shadow: 0 0 34px rgba(255,92,225,.8), 0 0 60px rgba(53,224,255,.25); } }
.lvfx.myth .lvflash { background: radial-gradient(circle at var(--cx) var(--cy), rgba(255,255,255,.95), rgba(255,92,225,.6) 18%, rgba(255,92,225,0) 55%); }
.lvfx.myth .lvring { border-color: #ff5ce1; box-shadow: 0 0 0 2px #05070d, 0 0 18px #ff5ce1; }
.lvfx.myth .lvring.two { border-color: #35e0ff; box-shadow: 0 0 0 2px #05070d, 0 0 18px #35e0ff; }
/* Mythic on the leaderboard: a frame that cycles pink, cyan and gold, a shimmering row */
.lbr .pf.Mythic { --rc: #ff5ce1; animation: pfmyth 2.4s linear infinite; }
@keyframes pfmyth { 0% { border-color: #ff5ce1; box-shadow: 0 0 0 1px #05070d, 0 0 12px rgba(255,92,225,.9); } 33% { border-color: #35e0ff; box-shadow: 0 0 0 1px #05070d, 0 0 12px rgba(53,224,255,.9); } 66% { border-color: #ffd23f; box-shadow: 0 0 0 1px #05070d, 0 0 12px rgba(255,210,63,.9); } 100% { border-color: #ff5ce1; box-shadow: 0 0 0 1px #05070d, 0 0 12px rgba(255,92,225,.9); } }
#main .card .kv.lbr.myth { background: linear-gradient(100deg, rgba(255,92,225,.2), rgba(53,224,255,.1) 45%, rgba(255,210,63,.05) 80%); background-size: 200% 100%; animation: mythrow 4s linear infinite; box-shadow: inset 3px 0 0 #ff5ce1; }
@keyframes mythrow { 0% { background-position: 0% 0; } 50% { background-position: 100% 0; } 100% { background-position: 0% 0; } }
#main .card .kv.lbr.myth .hn { color: #ff9bed; text-shadow: 0 0 8px rgba(255,92,225,.7); }
.lbr .sk.Mythic { color: #ff9bed; text-shadow: 0 0 6px rgba(255,92,225,.7); }
/* the full-storage warning on Disconnect, and the Lab card it leads to */
.storwarn p { margin: 6px 0; }
#modal .mbox:has(.storwarn) { border-color: var(--red); box-shadow: 0 6px 0 #000, 0 0 24px rgba(255, 90, 90, .35); }
.storwarn .sfull { color: var(--red); text-align: center; letter-spacing: 2px; animation: warnblink 0.6s steps(2) infinite; }
.soldbar { margin: 10px 0; padding: 10px 12px; background: rgba(255, 90, 90, .14); border: 2px solid var(--red); box-shadow: 0 0 0 2px #05070d, 0 0 16px rgba(255, 90, 90, .45); animation: soldpulse 1s ease-in-out infinite alternate; }
.soldbar b { display: block; color: var(--red); font-size: 16px; letter-spacing: 1px; }
.soldbar small { display: block; margin-top: 4px; color: var(--ink); }
@keyframes soldpulse { to { box-shadow: 0 0 0 2px #05070d, 0 0 4px rgba(255, 90, 90, .2); } }
.chip.gone { border-color: var(--red) !important; opacity: .85; } .chip.gone span { text-decoration: line-through; text-decoration-color: var(--red); }
@media (prefers-reduced-motion: reduce) { .storwarn .sfull, .soldbar { animation: none; } }
.storwarn .btns { display: flex; gap: 8px; margin-top: 12px; } .storwarn .btns .btn { flex: 1; }
.card.flashme { animation: locklit .6s ease-in-out 6 alternate; }
/* sign-up: the handle box glows until the player types in it, so it is the first thing they see */
#handle.shine:placeholder-shown { border-color: var(--green); animation: hshine 1.6s ease-in-out infinite; }
@keyframes hshine { 0%, 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } 50% { box-shadow: 0 0 0 3px rgba(61,220,132,.35), 0 0 16px rgba(61,220,132,.6); } }
@media (prefers-reduced-motion: reduce) { #handle.shine:placeholder-shown { animation: none; box-shadow: 0 0 0 3px rgba(61,220,132,.35); } }
/* Lab > Hardware: technicians strip and square upgrade tiles */
.techs { display: flex; align-items: center; gap: 8px; background: var(--panel); border: 2px solid var(--line); padding: 8px 10px; margin-bottom: 6px; }
.techs .lbl { flex: 1; min-width: 0; }
.techs .lbl b { font-family: 'Silkscreen', ui-monospace, monospace; font-weight: 400; font-size: 12px; letter-spacing: 1px; display: block; }
.techs .lbl small { color: var(--dim); font-size: 11px; }
.tslot { flex: none; width: 34px; height: 34px; border: 2px solid var(--line); background: #0b0f1a; display: grid; place-items: center; position: relative; }
.tslot img { width: 24px; height: 24px; image-rendering: pixelated; }
.tslot.off { opacity: .3; border-style: dashed; }
.tslot.busy { border-color: var(--yellow); }
.tslot.busy::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: 2px; height: 3px; background: linear-gradient(90deg, var(--yellow) var(--p), #2c3760 var(--p)); }
.kv.tjob { padding: 4px 2px; }
/* hardware being installed: its tile, its job row and the busy technician pop out in yellow and pulse on one beat (--ph keeps the beat across redraws) */
.tslot.busy { animation: instslot 1.2s ease-in-out var(--ph, 0s) infinite; }
@keyframes instslot { 0%, 100% { box-shadow: 0 0 4px rgba(255,210,63,.35); } 50% { box-shadow: 0 0 0 2px var(--yellow), 0 0 16px rgba(255,210,63,.8); } }
.kv.tjob { border: 2px solid var(--yellow); border-left-width: 5px; padding: 5px 8px; margin: 4px 0; animation: instrow 1.2s ease-in-out var(--ph, 0s) infinite; }
.kv.tjob { align-items: center; gap: 10px; }
.kv.tjob .tjl { flex: 1; min-width: 0; }
.kv.tjob .tjl > span { color: var(--yellow); font-weight: bold; }
.kv.tjob .bar { display: block; height: 8px; background: #232b45; border: 1px solid var(--yellow); margin-top: 4px; box-shadow: 0 0 6px rgba(255,210,63,.35); }
.kv.tjob .bar i { display: block; height: 100%; background: linear-gradient(45deg, rgba(5,7,13,.28) 25%, transparent 25%, transparent 50%, rgba(5,7,13,.28) 50%, rgba(5,7,13,.28) 75%, transparent 75%) var(--yellow); background-size: 12px 12px; animation: inststripe .6s linear infinite; }
@keyframes instrow { 0%, 100% { background: rgba(255,210,63,.05); box-shadow: 0 0 4px rgba(255,210,63,.25); } 50% { background: rgba(255,210,63,.18); box-shadow: 0 0 16px rgba(255,210,63,.6); } }
.hw.inst { z-index: 1; border-color: var(--yellow); background: linear-gradient(160deg, rgba(255,210,63,.2) 0%, var(--panel) 65%); animation: insttile 1.2s ease-in-out var(--ph, 0s) infinite; }
@keyframes insttile { 0%, 100% { border-color: #c9a22c; box-shadow: 0 0 0 1px #05070d, 0 0 8px rgba(255,210,63,.35), inset 0 0 10px rgba(255,210,63,.1); } 50% { border-color: #fff1a8; box-shadow: 0 0 0 2px var(--yellow), 0 0 26px rgba(255,210,63,.8), inset 0 0 24px rgba(255,210,63,.28); } }
.hw.inst .ic { border-color: var(--yellow); animation: instic 1.2s ease-in-out var(--ph, 0s) infinite; }
@keyframes instic { 0%, 100% { transform: scale(1); box-shadow: 0 0 6px rgba(255,210,63,.4); } 50% { transform: scale(1.1); box-shadow: 0 0 18px rgba(255,210,63,.95); } }
.hw.inst .hwinst small { font-weight: bold; font-size: 12px; text-shadow: 0 0 6px rgba(255,210,63,.6); }
.hw.inst .hwinst .bar { height: 11px; border: 1px solid var(--yellow); box-shadow: 0 0 8px rgba(255,210,63,.45); }
.hw.inst .hwinst .bar i { background: linear-gradient(45deg, rgba(5,7,13,.28) 25%, transparent 25%, transparent 50%, rgba(5,7,13,.28) 50%, rgba(5,7,13,.28) 75%, transparent 75%) var(--yellow); background-size: 12px 12px; animation: inststripe .6s linear infinite; }
@keyframes inststripe { to { background-position: 12px 0; } }
/* install and research bars: fill from the job's start to its end, smoothly (--d: total ms, --e: minus the time already gone) */
@keyframes jobfill { from { width: 0; } to { width: 100%; } }
@keyframes jobscale { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.bar i.fill { width: 0; animation: jobfill var(--d, 1ms) linear var(--e, 0ms) both; }
.kv.tjob .bar i.fill, .hw.inst .hwinst .bar i.fill { animation: inststripe .6s linear infinite, jobfill var(--d, 1ms) linear var(--e, 0ms) both; }
.tslot.busy::after { background: var(--yellow); transform-origin: left center; animation: jobscale var(--d, 1ms) linear var(--e, 0ms) both; }
@media (prefers-reduced-motion: reduce) { .tslot.busy, .kv.tjob, .hw.inst, .hw.inst .ic, .hw.inst .hwinst .bar i, .kv.tjob .bar i { animation: none; } .hw.inst { box-shadow: 0 0 0 2px var(--yellow), 0 0 16px rgba(255,210,63,.6); } }
/* Lab > Skills: a ranked skill's value now and next */
.skval { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin: 4px 0 10px; padding: 6px 8px; background: #0b0f1a; border-left: 3px solid var(--bc, var(--cyan)); }
.skval span { color: var(--dim); font-size: 12px; flex-basis: 100%; }
.skval b { font-size: 18px; color: var(--bc, var(--cyan)); } .skval b.g { color: var(--green); } .skval i { font-style: normal; color: var(--dim); } .skval small { color: var(--yellow); font-size: 11px; }
/* Lab > Scripts: Source Code strip and square script tiles */
.srcbar { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 2px solid var(--line); padding: 8px 10px; margin-bottom: 10px; }
.srcbar .ic { width: 38px; height: 38px; background: #0b0f1a; border: 2px solid #1f6b45; display: grid; place-items: center; flex: none; }
.srcbar .ic img { width: 28px; height: 28px; image-rendering: pixelated; }
.srcbar .lbl { flex: 1; min-width: 0; }
.srcbar .lbl b { font-family: 'Silkscreen', ui-monospace, monospace; font-weight: 400; font-size: 12px; letter-spacing: 1px; display: block; }
.srcbar .lbl small { color: var(--dim); font-size: 11px; }
.srcbar .n { font-size: 26px; color: var(--green); }
.scgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sc { position: relative; aspect-ratio: 1 / 1; background: linear-gradient(160deg, color-mix(in srgb, var(--hc) 14%, var(--panel)) 0%, var(--panel) 55%); border: 2px solid color-mix(in srgb, var(--hc) 45%, var(--line)); padding: 8px; display: flex; flex-direction: column; overflow: hidden; cursor: pointer; }
.sc > * { flex-shrink: 0; }
.sc.locked { filter: saturate(.35); }
.sc .hd { display: flex; align-items: flex-start; justify-content: space-between; }
.sc .ic { width: 44px; height: 44px; background: #0b0f1a; border: 2px solid color-mix(in srgb, var(--hc) 60%, #0b0f1a); display: grid; place-items: center; box-shadow: 0 0 10px color-mix(in srgb, var(--hc) 25%, transparent); }
.sc .ic img { width: 32px; height: 32px; image-rendering: pixelated; }
.sc .pips { display: flex; gap: 2px; flex-wrap: wrap; justify-content: flex-end; max-width: 80px; }
.sc .pips i { width: 6px; height: 9px; background: #232b45; }
.sc .pips i.on { background: var(--hc); box-shadow: 0 0 4px var(--hc); }
.sc .pips i.lk { background: transparent; box-shadow: inset 0 0 0 1px #5a4818; } /* level 6: Script Mastery at player level 46 */
.sc .shots { font-family: 'Silkscreen', ui-monospace, monospace; color: var(--hc); font-size: 13px; }
.sc .nm { font-family: 'Silkscreen', ui-monospace, monospace; font-size: 12px; letter-spacing: 1px; margin-top: 7px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc .vs { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--hc); opacity: .9; }
.sc .val { display: flex; align-items: baseline; gap: 6px; margin-top: 3px; }
.sc .val b { font-size: 22px; color: var(--hc); line-height: 1.1; }
.sc .val .nx { color: var(--green); font-size: 13px; }
.sc .un { color: var(--dim); font-size: 11px; }
.sc .ft { margin-top: auto; }
.sc .scup { width: 100%; margin: 0; padding: 7px 4px; font-size: 11px; display: flex; justify-content: center; align-items: center; gap: 5px; }
.sc .scup img { width: 14px; height: 14px; image-rendering: pixelated; margin: 0 2px; }
.sc .sclock { display: flex; align-items: center; justify-content: center; padding: 6px; border: 2px dashed #5a4818; color: var(--yellow); font-size: 11px; background: rgba(255,210,63,.05); }
.sc .scmax { text-align: center; padding: 5px; font-family: 'Silkscreen', ui-monospace, monospace; font-size: 13px; letter-spacing: 2px; color: #0b0f1a; background: var(--yellow); box-shadow: 0 0 10px rgba(255,210,63,.4); }
.sc .schint { text-align: center; padding: 6px 4px; border: 2px solid color-mix(in srgb, var(--hc) 40%, var(--line)); color: var(--dim); font-size: 10px; line-height: 1.3; }
.hwgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.hw { position: relative; aspect-ratio: 1 / 1; background: linear-gradient(160deg, color-mix(in srgb, var(--hc) 14%, var(--panel)) 0%, var(--panel) 55%); border: 2px solid color-mix(in srgb, var(--hc) 45%, var(--line)); padding: 8px; display: flex; flex-direction: column; overflow: hidden; }
.hw.flashme { animation: locklit .6s ease-in-out 6 alternate; }
.hw .hd { display: flex; align-items: flex-start; justify-content: space-between; }
.hw .ic { width: 44px; height: 44px; background: #0b0f1a; border: 2px solid color-mix(in srgb, var(--hc) 60%, #0b0f1a); display: grid; place-items: center; box-shadow: 0 0 10px color-mix(in srgb, var(--hc) 25%, transparent); }
.hw .ic img { width: 32px; height: 32px; image-rendering: pixelated; }
.hw .pips { display: flex; gap: 2px; flex-wrap: wrap; justify-content: flex-end; max-width: 70px; }
.hw .pips i { width: 6px; height: 9px; background: #232b45; }
.hw .pips i.on { background: var(--hc); box-shadow: 0 0 4px var(--hc); }
.hw .nm { font-family: 'Silkscreen', ui-monospace, monospace; font-size: 12px; letter-spacing: 1px; margin-top: 8px; text-transform: uppercase; }
.hw .val { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; }
.hw .val b { font-size: 22px; color: var(--hc); line-height: 1.1; }
.hw .val .nx { color: var(--green); font-size: 13px; }
.hw .un { color: var(--dim); font-size: 11px; }
.hw .ft { margin-top: auto; }
.hw .hwup { width: 100%; margin: 0; padding: 7px 4px; font-size: 11px; }
.hw .hwlock { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 6px; border: 2px dashed #5a4818; color: var(--yellow); font-size: 11px; background: rgba(255,210,63,.05); }
.hw .hwmax { text-align: center; padding: 5px; font-family: 'Silkscreen', ui-monospace, monospace; font-size: 13px; letter-spacing: 2px; color: #0b0f1a; background: var(--yellow); box-shadow: 0 0 10px rgba(255,210,63,.4); }
.hw .hwinst small { color: var(--yellow); font-size: 11px; display: flex; justify-content: space-between; }
.hw .hwinst .bar { display: block; height: 8px; background: #232b45; margin-top: 3px; } .hw .hwinst .bar i { display: block; height: 100%; background: var(--yellow); }
/* every footer box on a Lab tile (upgrade, locked, maxed, installing; scripts too) has one height, so tiles line up on any phone */
.hw .ft > *, .sc .ft > * { box-sizing: border-box; height: 42px; margin: 0; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.25; overflow: hidden; }
.hw .ft > .hwinst { flex-direction: column; align-items: stretch; justify-content: center; }
/* tiles grow with their text on narrow phones instead of clipping it; tiles in a row stay the same height (grid stretch), so their footers line up */
.hw, .sc { aspect-ratio: auto; min-height: 168px; }
#rinfo .stopjob { margin-top: 6px; padding: 6px; font-size: 12px; }
/* out of Bandwidth: the way to the refill calls for the tap, "not now" stays quiet */
.bwout .btn.pop { animation: btnpop .8s ease-in-out infinite alternate; background: color-mix(in srgb, var(--green) 24%, var(--panel)); color: #eafff3; }
@keyframes btnpop { from { transform: scale(1); box-shadow: 0 0 0 0 transparent; } to { transform: scale(1.04); box-shadow: 0 0 14px var(--green); } }
.bwout .btn.later { opacity: .55; color: var(--dim); border-color: var(--line); background: transparent; }
@media (prefers-reduced-motion: reduce) { .bwout .btn.pop { animation: none; } }
@media (prefers-reduced-motion: reduce) { .chip.myth, .mythwin, .mythwin small, .lbr .pf.Mythic, #main .card .kv.lbr.myth, .card.flashme { animation: none; } }
/* rewarded ads: the button (with how many are left today), the out-of-Bandwidth choice, and the test stand-in ad */
.btn.adbtn { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; border-color: var(--yellow); color: var(--yellow); background: rgba(255,210,63,.08); margin-top: 8px; }
.btn.adbtn .ico { width: 14px; height: 14px; }
.btn.adbtn small { flex-basis: 100%; font-size: 10px; opacity: .75; letter-spacing: 0; text-transform: none; }
.btn.adbtn .adplay { display: inline-grid; place-items: center; width: 18px; height: 18px; background: var(--yellow); color: #05070d; font-size: 10px; }
.btn.adbtn.off { opacity: .45; pointer-events: none; }
.bwout .btn { margin-top: 8px; }
.adsim { position: fixed; inset: 0; z-index: 9999; background: #000; display: grid; place-items: center; }
.adsim .adbox { width: min(320px, 90vw); text-align: center; color: #e8ecff; border: 2px dashed #3a4258; padding: 24px 16px; }
.adsim small { font-family: 'Silkscreen', ui-monospace, monospace; color: var(--yellow); letter-spacing: 2px; }
.adsim .adleft { display: block; font-family: 'Silkscreen', ui-monospace, monospace; font-size: 42px; margin: 12px 0; color: #fff; }

/* a script wears the colour of the lock it beats (Brute Force = Password cyan, Exploit = Firewall orange, Decrypt = Encryption purple) */
#rdeck .btn.lk { border-color: var(--lc); color: var(--lc); background: linear-gradient(180deg, color-mix(in srgb, var(--lc) 16%, transparent), color-mix(in srgb, var(--lc) 4%, transparent)); box-shadow: inset 0 -3px 0 var(--lc); }
#rdeck .btn .lkn { font-size: 9px; letter-spacing: 1px; text-transform: uppercase; opacity: .85; line-height: 1; }
/* the script made for the selected node's lock pulses */
#rdeck .btn.match { animation: lkmatch .7s ease-in-out infinite alternate; }
@keyframes lkmatch { 0% { box-shadow: inset 0 -3px 0 var(--lc), 0 0 0 0 transparent; } 100% { box-shadow: inset 0 -3px 0 var(--lc), 0 0 0 2px var(--lc), 0 0 14px var(--lc); } }
@media (prefers-reduced-motion: reduce) { #rdeck .btn.match { animation: none; box-shadow: inset 0 -3px 0 var(--lc), 0 0 0 2px var(--lc); } }
/* Room buttons wear the colour of the need they raise; a button for two needs is split half and half */
.acts .btn.need { border-color: var(--c1); background: linear-gradient(90deg, color-mix(in srgb, var(--c1) 14%, #0b0f1a), color-mix(in srgb, var(--c2) 14%, #0b0f1a)); box-shadow: inset 0 -3px 0 var(--c1); }
.acts .btn.need.two { border-image: linear-gradient(90deg, var(--c1) 50%, var(--c2) 50%) 1; background: linear-gradient(90deg, color-mix(in srgb, var(--c1) 14%, #0b0f1a) 50%, color-mix(in srgb, var(--c2) 14%, #0b0f1a) 50%); }
.acts .btn.need.two::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--c1) 50%, var(--c2) 50%); }
.acts .btn.need.two { position: relative; box-shadow: none; }
/* the Frequency Tuner as an equalizer: a column per band, a green bar, a pink line where its top must go */
.pzeq { display: flex; justify-content: center; gap: 10px; margin: 8px 0 12px; }
.pzband { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px; border: 1px solid var(--line); background: var(--panel2); }
.pzband.ok { border-color: var(--green); box-shadow: 0 0 10px rgba(61,220,132,.6); }
.pzband button { width: 46px; height: 36px; font-size: 20px; background: #0b0f1a; color: var(--ink); border: 1px solid var(--line); cursor: pointer; }
.pzcol { display: flex; flex-direction: column; gap: 3px; padding: 4px 0; }
.pzcol i { display: block; width: 40px; height: 11px; background: #141a2c; position: relative; }
.pzcol i.on { background: var(--green); box-shadow: 0 0 4px rgba(61,220,132,.5); }
.pzcol i.tg::after { content: ''; position: absolute; left: -5px; right: -5px; top: -3px; height: 3px; background: #ff4fd8; box-shadow: 0 0 6px #ff4fd8; }
.card.dboss .top b svg { margin-right: 7px; vertical-align: -1px; } /* the solo boss skull, with room before the name */

/* the big HACK button under the room (new players) */
.btn.bighack { min-height: 64px; font-size: 22px; letter-spacing: 3px; margin: 10px 0; }
.btn.bighack img.ico { width: 28px; height: 28px; vertical-align: -6px; }

/* ================= LANDSCAPE: the game is a 16:9 stage (720x405), scaled to fit the screen, never scrolled ================= */
html, body { overflow: hidden; }
#app { position: absolute; left: 0; top: 0; width: 720px; height: 405px; max-width: none; margin: 0; transform-origin: 0 0; display: block; }
#hud { position: absolute; left: 0; right: 0; top: 0; height: 44px; box-sizing: border-box; padding: 4px 8px; gap: 8px; z-index: 5; }
#hud .face { width: 30px; height: 30px; }
#hud .facebox .lv { font-size: 9px; }
#hud .who { max-width: 200px; }
#hud .who b { font-size: 12px; } #hud .who small { font-size: 10px; }
#hud .who .xp { height: 4px; margin-top: 2px; }
#hud .stats, #hud .stats.n2 { display: flex; grid-template-columns: none; gap: 14px; margin-left: auto; font-size: 13px; }
#hud .stats .tag { grid-column: auto; margin: 0; padding: 2px 6px; }
#hud .gear { flex: none; }
#main { position: absolute; left: 0; right: 0; top: 44px; bottom: 0; padding: 6px 8px 70px; box-sizing: border-box; scrollbar-width: none; }
#main::-webkit-scrollbar { display: none; }
/* corner buttons: Room and Map bottom-left, everything else bottom-right */
#nav { position: absolute; left: 0; right: 0; bottom: 0; height: 0; padding: 0; background: none; border: 0; z-index: 6; display: block; }
#nav .nl, #nav .nr { position: absolute; bottom: 6px; display: flex; gap: 6px; }
#nav .nl { left: 6px; } #nav .nr { right: 6px; }
#nav button { flex: none; width: 62px; height: 56px; padding: 4px 0 2px; background: var(--panel); border: 2px solid var(--line); box-shadow: 0 3px 0 #000; color: var(--ink); font-size: 10px; font-weight: bold; text-transform: uppercase; letter-spacing: .5px; }
#nav .nl button { width: 74px; height: 62px; font-size: 12px; }
#nav button img { width: 28px; height: 28px; opacity: 0.9; }
#nav button.on { border-color: var(--nc, var(--green)); color: var(--nc, var(--green)); background: color-mix(in srgb, var(--nc, var(--green)) 18%, var(--panel)); }
#nav .dot { top: 4px; right: 4px; }
/* the Room: the room in the middle, full height; your hacker's bars on the left, what to do on the right */
#main[data-s=room] { padding: 0; overflow: hidden; }
.rooml { display: grid; grid-template-columns: 1fr auto 1fr; height: 100%; gap: 6px; }
.rooml .frame { height: 100%; border-width: 0 2px; box-sizing: border-box; }
.rooml .frame canvas { height: 100%; width: auto; }
.rooml .rl, .rooml .rr { overflow-y: auto; scrollbar-width: none; padding: 6px 4px 74px; font-size: 11px; }
.rooml .rl::-webkit-scrollbar, .rooml .rr::-webkit-scrollbar { display: none; }
.rooml .bars { margin: 0; gap: 4px; } .rooml .bar { grid-template-columns: 22px 1fr 24px; font-size: 10px; gap: 3px; } .rooml .bar > span:nth-of-type(1), .rooml .bar .hint { display: none; } .rooml .bar > img.ico { width: 22px; height: 22px; padding: 2px; }
.rooml .ptitle small { display: none; }
.rooml .card { padding: 5px 6px; margin: 6px 0; font-size: 10px; } .rooml .kv { font-size: 10px; }
.rooml .acts { grid-template-columns: 1fr 1fr; gap: 4px; margin: 0; } .rooml .acts .btn { min-height: 40px; font-size: 10px; } .rooml .acts .btn small { font-size: 8px; }
.rooml .rr > .btn { font-size: 11px; min-height: 34px; margin-bottom: 4px; }
/* the Map: the chain on the left, the map of the Net on the right */
#main[data-s=map] { padding: 6px 8px; overflow: hidden; }
.mapl { display: flex; gap: 10px; height: 100%; }
.mapl .chainp { flex: 1; min-width: 0; position: relative; }
.mapl .nmap { height: 100%; width: auto; aspect-ratio: 130 / 116; margin: 0; flex: none; box-sizing: border-box; }
.chead { display: flex; align-items: center; gap: 8px; min-height: 34px; margin-bottom: 8px; }
.chead .dzn { font-size: 20px; letter-spacing: 2px; text-transform: uppercase; }
.chead .ctabs { order: 3; margin-left: auto; display: flex; gap: 4px; }
.pick { position: absolute; inset: 40px 0 80px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; color: var(--cyan); font-size: 18px; letter-spacing: 2px; }
.pick span { animation: pickp .8s steps(2) infinite; } @keyframes pickp { 50% { transform: translateX(6px); } }
.chain { position: relative; margin: 0 auto; }
.chain .cline { position: absolute; left: 0; top: 0; pointer-events: none; }
.chain .cline polyline { fill: none; stroke: #2c3552; stroke-width: 6; stroke-dasharray: 6 4; }
.csq { position: absolute; width: 78px; height: 78px; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 3px; font: inherit; color: var(--ink); text-align: center; background: color-mix(in srgb, var(--dc) 20%, #0b0f1a); border: 3px solid var(--dc); box-shadow: 0 4px 0 #000; cursor: pointer; }
.csq b { font-size: 10px; line-height: 1.1; }
.csq small { font-size: 9px; color: var(--yellow); }
.csq .ci { display: block; height: 32px; } .csq .ci img.ico.big { width: 30px; height: 30px; } .csq .ci svg { width: 20px; height: 22px; margin-top: 5px; color: #7a819a; }
.csq.next { border-color: var(--yellow); animation: sqpulse 1s ease-in-out infinite; }
@keyframes sqpulse { 50% { box-shadow: 0 4px 0 #000, 0 0 16px rgba(255,210,63,.8); } }
.csq.beat { border-color: var(--green); }
.csq.lk { background: #10131d; border-color: #2c3552; color: #7a819a; } .csq.lk small { color: #7a819a; }
.csq.boss { border-color: var(--red); } .csq.lk.boss { border-color: #4a2430; }
.csq .okm { position: absolute; top: -9px; right: -9px; width: 20px; height: 20px; line-height: 20px; background: var(--green); color: #05070d; font-style: normal; font-weight: bold; font-size: 13px; }
.csq .alm { position: absolute; top: -9px; left: -9px; padding: 0 4px; height: 18px; line-height: 18px; background: var(--red); color: #05070d; font-style: normal; font-weight: bold; font-size: 11px; }
/* windows: never wider than the middle of the stage, never taller than it */
#modal { padding: 8px; }
.mbox { max-width: 440px; max-height: 100%; box-sizing: border-box; }
.prep2 .deck2 { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.prep2 .dk { width: 72px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 2px; font: inherit; color: var(--dim); background: #10131d; border: 2px solid #2c3552; cursor: pointer; } .prep2 .dk small { font-size: 9px; }
.prep2 .dk.on { color: var(--ink); border-color: var(--green); background: #10241a; }
.prep2 .btns { display: flex; gap: 8px; } .prep2 .btns .btn { flex: 1; } .prep2 .btns .btn.go { flex: 2; font-size: 16px; letter-spacing: 2px; }
/* the hack: the network on the left, full height; trace, the node and your scripts on the right */
#run { display: grid; grid-template-columns: 389px 1fr; grid-template-rows: auto auto 1fr auto; grid-template-areas: "net top" "net trace" "net info" "net deck"; gap: 6px 8px; padding: 8px; overflow: hidden; }
#run .runtop { grid-area: top; } #run .trace { grid-area: trace; } #run #rinfo { grid-area: info; overflow-y: auto; min-height: 0; } #run #rdeck { grid-area: deck; }
#run .crtbox { grid-area: net; width: 389px; height: 389px; }
#run .runtop .btn.bad { min-height: 40px; padding: 4px 12px; font-size: 13px; }
/* the trace bar fills like an install bar, in red: moving stripes, a smooth fill */
.trace { height: 30px; }
.trace i { background: linear-gradient(45deg, rgba(5,7,13,.3) 25%, transparent 25%, transparent 50%, rgba(5,7,13,.3) 50%, rgba(5,7,13,.3) 75%, transparent 75%) var(--red); background-size: 12px 12px; animation: inststripe .6s linear infinite; transition: width .12s linear; box-shadow: 0 0 10px rgba(255,90,90,.6); }
.trace.frozen i { background: linear-gradient(45deg, rgba(5,7,13,.3) 25%, transparent 25%, transparent 50%, rgba(5,7,13,.3) 50%, rgba(5,7,13,.3) 75%, transparent 75%) var(--cyan); background-size: 12px 12px; animation: none; box-shadow: 0 0 10px rgba(53,224,255,.6); }
@media (prefers-reduced-motion: reduce) { .trace i { animation: none; } .csq.next { animation: none; } }
/* the guide sits outside the stage: its bubble grows with the stage */
#coach .cbub { font-size: calc(13px * var(--k, 1)); padding: calc(8px * var(--k, 1)) calc(10px * var(--k, 1)); box-sizing: border-box; }
#coach .cbub .btn.sm { font-size: calc(12px * var(--k, 1)); min-height: calc(30px * var(--k, 1)); }
#coach .cbub .cstep, #coach .cbub .cskip { font-size: calc(11px * var(--k, 1)); }
/* a phone held upright: turn it */
#rotate { display: none; position: fixed; inset: 0; z-index: 99; background: #05070d; color: var(--cyan); align-items: center; justify-content: center; text-align: center; font-size: 16px; letter-spacing: 1px; }
#rotate b { display: block; font-size: 64px; line-height: 1; animation: rot 1.6s ease-in-out infinite; } @keyframes rot { 50% { transform: rotate(90deg); } }
@media (orientation: portrait) and (pointer: coarse) { #rotate { display: flex; } }
/* the Rig, sideways: the network on the left, full height; layout, defense and files on the right */
#main[data-s=rig] { display: grid; grid-template-columns: 349px 1fr; column-gap: 10px; align-content: start; grid-auto-flow: row dense; padding-top: 6px; }
#main[data-s=rig] > * { grid-column: 2; min-width: 0; }
#main[data-s=rig] > .crt { grid-column: 1; grid-row: 1 / span 30; width: 349px; height: 349px; position: sticky; top: 0; align-self: start; }
#main[data-s=rig] > .shead { margin-top: 0; }
#main[data-s=rig] h2 { margin: 6px 0 4px; }
/* the Lab: four hardware cards to a row */
#main[data-s=lab] .hwgrid { grid-template-columns: repeat(4, 1fr); gap: 6px; }

/* ===== the HUD floats over the screen: a player plate top-left, resource pills top-right ===== */
#hud { background: none; border: 0; height: 52px; padding: 6px 10px 0; align-items: flex-start; pointer-events: none; }
#hud > * { pointer-events: auto; }
#hud .facebox { position: relative; }
#hud .face { width: 38px; height: 38px; border: 2px solid #3a4466; background: #15112a; box-shadow: 0 3px 0 #000; }
#hud .facebox .lv { position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); padding: 2px 4px; background: var(--yellow); color: #05070d; font-weight: bold; font-size: 9px; box-shadow: 0 2px 0 #000; }
#hud .who { flex: none; max-width: 210px; margin-top: 2px; padding: 4px 10px 5px; background: rgba(8,10,20,0.78); border: 2px solid #2c3552; box-shadow: 0 3px 0 rgba(0,0,0,.6); clip-path: polygon(3px 0, calc(100% - 3px) 0, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) 100%, 3px 100%, 0 calc(100% - 3px), 0 3px); }
#hud .who b { font-size: 12px; } #hud .who small { font-size: 10px; }
#hud .who .xp { height: 5px; margin-top: 3px; background: #05070d; border: 1px solid #2c3552; }
#hud .stats, #hud .stats.n2 { gap: 10px; margin-top: 4px; }
#hud .stats span { position: relative; min-width: 64px; height: 26px; padding: 0 10px 0 26px; justify-content: flex-end; font-size: 14px; font-weight: bold; background: rgba(8,10,20,0.78); border: 2px solid #2c3552; box-shadow: 0 3px 0 rgba(0,0,0,.6); margin: 0; }
#hud .stats span img.ico { position: absolute; left: -8px; top: 50%; width: 26px; height: 26px; transform: translateY(-50%); filter: drop-shadow(0 2px 0 #000); }
#hud .stats [data-a] { padding: 0 10px 0 26px; margin: 0; }
#hud .stats .tag { min-width: 0; padding: 0 8px; font-size: 10px; }
#hud .gear { width: 34px; height: 34px; margin-top: 0; background: rgba(8,10,20,0.78); border: 2px solid #2c3552; box-shadow: 0 3px 0 rgba(0,0,0,.6); }
#main { top: 52px; }
/* ===== corner buttons: chunky, coloured by what they open ===== */
#nav .nl, #nav .nr { bottom: 8px; gap: 8px; } #nav .nl { left: 10px; } #nav .nr { right: 10px; }
#nav button { width: 66px; height: 62px; border: 0; padding: 4px 0 3px; color: #e8ecf8; font-size: 10px; letter-spacing: 1px; text-shadow: 0 2px 0 #000;
  background: linear-gradient(180deg, color-mix(in srgb, var(--nc, var(--cyan)) 34%, #141a2e) 0 48%, color-mix(in srgb, var(--nc, var(--cyan)) 18%, #0c1020) 52% 100%);
  box-shadow: inset 0 0 0 2px var(--nc, var(--cyan)), inset 0 -4px 0 rgba(0,0,0,.35), 0 4px 0 #000;
  clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px); }
#nav .nl button { width: 84px; height: 72px; font-size: 13px; }
#nav button img { width: 30px; height: 30px; opacity: 1; filter: drop-shadow(0 2px 0 #000); }
#nav .nl button img { width: 36px; height: 36px; }
#nav button.on { color: #05070d; text-shadow: none; background: var(--nc, var(--green)); box-shadow: inset 0 0 0 2px #fff, inset 0 -4px 0 rgba(0,0,0,.25), 0 4px 0 #000; }
#nav button.on img { filter: none; }
/* ===== the Room fills the screen; the hacker talks in a bubble ===== */
#main[data-s=room] { top: 0; padding: 0; }
.rooml { display: block; position: relative; height: 100%; }
.rooml .frame { position: absolute; inset: 0; height: auto; border: 0; background: #05070d; }
.rooml .frame canvas { width: 100%; height: 100%; }
.rooml .say { left: 50%; right: auto; top: 41%; transform: translate(-50%, -100%); max-width: 230px; width: max-content; padding: 4px 8px; font-size: 11px; background: rgba(8,10,20,0.88); border: 2px solid #2c3552; }
.rooml .say::after { content: ""; position: absolute; left: 50%; bottom: -8px; margin-left: -5px; border: 5px solid transparent; border-top-color: #2c3552; }
.rooml .rl, .rooml .rr { position: absolute; top: 62px; max-height: calc(100% - 150px); overflow-y: auto; padding: 6px; background: rgba(8,10,20,0.72); border: 2px solid #2c3552; box-sizing: border-box; }
.rooml .rl { left: 10px; width: 150px; } .rooml .rr { right: 10px; width: 170px; }

/* ===== bottom buttons: one centred row, the flat look (panel, line border, coloured when on) ===== */
#nav { left: 0; right: 0; bottom: 8px; height: auto; display: flex; justify-content: center; gap: 8px; pointer-events: none; }
#nav .nl, #nav .nr { position: static; display: flex; gap: 8px; pointer-events: auto; }
#nav button, #nav .nl button { width: 70px; height: 62px; font-size: 11px; color: var(--ink); text-shadow: none; background: var(--panel); border: 2px solid var(--line); box-shadow: 0 3px 0 #000; clip-path: none; }
#nav button img, #nav .nl button img { width: 30px; height: 30px; filter: none; opacity: 0.9; }
#nav button.on { color: var(--nc, var(--green)); border-color: var(--nc, var(--green)); background: color-mix(in srgb, var(--nc, var(--green)) 18%, var(--panel)); box-shadow: 0 3px 0 #000; }
#nav button.on img { opacity: 1; }
/* ===== the Room's side panels: your hacker on the left, things to do on the right; nothing scrolls ===== */
.rooml .rl, .rooml .rr { top: 66px; bottom: auto; max-height: none; overflow: visible; padding: 8px; background: rgba(8,10,20,0.8); border: 2px solid #2c3552; box-shadow: 0 3px 0 rgba(0,0,0,.6); }
.rooml .rl { left: 10px; width: 196px; } .rooml .rr { right: 10px; width: 214px; }
.rooml .ptitle { margin: 0 0 6px; } .rooml .ptitle b { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--green); }
.hbars { display: grid; gap: 6px; }
.hbar { display: grid; grid-template-columns: 22px 1fr 26px; align-items: center; gap: 6px; font-size: 12px; font-weight: bold; }
.hbar img.ico { width: 22px; height: 22px; }
.hbar .track { height: 10px; background: #05070d; border: 1px solid color-mix(in srgb, var(--fc) 55%, #2c3552); }
.hbar .track i { display: block; height: 100%; }
.hbar span { text-align: right; }
.stiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.rooml .rl > .stiles:first-child { margin-top: 0; }
.stile { display: grid; grid-template-columns: 20px 1fr; grid-template-rows: auto auto; column-gap: 6px; align-items: center; padding: 4px 6px; min-height: 38px; box-sizing: border-box; font: inherit; color: var(--ink); text-align: left; background: #10131d; border: 2px solid #2c3552; }
button.stile { cursor: pointer; }
.stile img.ico { grid-row: 1 / span 2; width: 20px; height: 20px; }
.stile b { font-size: 13px; line-height: 1.1; } .stile small { font-size: 9px; color: var(--dim); line-height: 1.1; }
.stile.r b, .stile.r small { color: var(--red); } .stile.y b { color: var(--yellow); }
/* square care buttons, three to a row */
.rooml .rr > .btn.wide { width: 100%; min-height: 36px; font-size: 12px; margin: 0 0 8px; }
.rooml .acts { display: grid; grid-template-columns: repeat(3, 62px); gap: 6px; justify-content: center; margin: 0; }
.rooml .acts .btn.sq { width: 62px; height: 62px; min-height: 0; padding: 3px 2px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; text-align: center; }
.rooml .acts .btn.sq img.ico.big { width: 26px; height: 26px; flex: none; }
.rooml .acts .btn.sq b { font-size: 10px; line-height: 1.1; }
.rooml .acts .btn.sq small { display: flex; align-items: center; justify-content: center; gap: 2px; font-size: 9px; line-height: 1.1; color: var(--dim); }
.rooml .acts .btn.sq small img.ico { width: 10px; height: 10px; vertical-align: 0; }
.pips { display: inline-flex; gap: 2px; margin-left: 3px; } .pips i { width: 5px; height: 5px; display: block; }
.rooml .rl, .rooml .rr { top: 74px; }

/* ================= every screen but the Room and the Map: BACK and the title on top, no bottom buttons ================= */
#app.subscr #nav { display: none; }
#app.subscr #hud { background: linear-gradient(180deg, #0f1528, #0b0f1a); border-bottom: 2px solid #2c3552; align-items: center; padding: 0 10px; height: 52px; }
.hback { flex: none; height: 38px; padding: 0 14px; display: flex; align-items: center; gap: 6px; font: inherit; font-weight: bold; font-size: 13px; letter-spacing: 1px; color: var(--ink); background: var(--panel); border: 2px solid var(--line); box-shadow: 0 3px 0 #000; cursor: pointer; }
.hback span { color: var(--ac, var(--cyan)); }
#hud .shead { display: flex; align-items: center; gap: 10px; margin: 0 0 0 4px; min-width: 0; flex: 1; }
#hud .shead h1 { font-size: 17px; margin: 0; line-height: 1; white-space: nowrap; }
#hud .shead small { display: block; font-size: 10px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
#hud .shead .schip { margin: 0; padding: 2px 8px; min-width: 0; }
#hud .shead .schip span { font-size: 8px; } #hud .shead .schip b { font-size: 14px; }
#app.subscr #hud .stats { margin-top: 0; }
#app.subscr #main { padding: 8px 10px 10px; }
/* the rail: a screen's tabs down the left side, fixed while the page moves */
#main.rail { padding-left: 142px !important; }
#main .railed { position: fixed; left: 8px; top: 60px; bottom: 8px; width: 122px; margin: 0; padding: 6px; display: flex; flex-direction: column; gap: 6px; z-index: 4; box-sizing: border-box; }
#main .railed button { flex: none; height: 46px; min-height: 0; width: 100%; font-size: 12px; text-align: left; padding: 0 10px; justify-content: flex-start; }
#main .railed .rextra { margin-top: auto; height: 42px; display: flex; align-items: center; gap: 6px; font: inherit; font-weight: bold; font-size: 12px; color: #05070d; background: var(--yellow); border: 0; box-shadow: 0 3px 0 #000; cursor: pointer; }
/* long pages flow into columns, read left to right, swiped sideways */
#main.flow { column-width: 290px; column-gap: 12px; column-fill: auto; overflow-x: auto; overflow-y: hidden; }
#main.flow > * { break-inside: avoid; }
#main.flow h2 { break-after: avoid; margin-top: 0; }
#main.flow .card { margin: 0 0 10px; }
#main.flow .items.three { grid-template-columns: repeat(3, 1fr); }
/* ===== the Lab ===== */
#main[data-s=lab] > h2 { display: none; }
#main[data-s=lab] .techs { padding: 4px 8px; margin: 0 0 8px; gap: 6px; flex-wrap: wrap; }
#main[data-s=lab] .techs .lbl small { font-size: 10px; }
#main[data-s=lab] .tjob { display: inline-flex; width: calc(50% - 6px); margin: 0 6px 6px 0; vertical-align: top; }
#main[data-s=lab] .btns:has(.tech, [data-a=hire]) { margin: 0 0 6px; }
#main[data-s=lab] .hwgrid { grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0; }
#main[data-s=lab] .hw, #main[data-s=lab] .sc { min-height: 0; aspect-ratio: auto; padding: 6px 8px; }
#main[data-s=lab] .hw .ic, #main[data-s=lab] .sc .ic { width: 32px; height: 32px; } #main[data-s=lab] .hw .ic img, #main[data-s=lab] .sc .ic img { width: 24px; height: 24px; }
#main[data-s=lab] .hw .nm, #main[data-s=lab] .sc .nm { margin-top: 4px; font-size: 11px; }
#main[data-s=lab] .hw .val b, #main[data-s=lab] .sc .val b { font-size: 18px; }
#main[data-s=lab] .hw .un, #main[data-s=lab] .sc .un { font-size: 10px; margin-bottom: 4px; }
#main[data-s=lab] .hw .ft > *, #main[data-s=lab] .sc .ft > * { height: 34px; }
/* scripts: two rows, swiped sideways */
#main[data-s=lab] .scgrid { grid-auto-flow: column; grid-template-columns: none; grid-template-rows: repeat(2, 1fr); grid-auto-columns: 158px; height: calc(100% - 52px); overflow-x: auto; overflow-y: hidden; padding-bottom: 4px; }
#main[data-s=lab][data-sub=scripts] { overflow: hidden; }
#main[data-s=lab][data-sub=scripts] > p.small { display: none; }
/* skills: the branches and the tree on the left, the chosen skill on the right */
#main[data-s=lab][data-sub=skills] { display: grid; grid-template-columns: 470px 1fr; grid-template-rows: auto auto 1fr; column-gap: 10px; overflow: hidden; align-content: start; }
#main[data-s=lab][data-sub=skills] .sktabs { grid-column: 1; grid-row: 1; margin: 0 0 6px; }
#main[data-s=lab][data-sub=skills] .sktabs button { flex-direction: row; justify-content: center; padding: 4px; }
#main[data-s=lab][data-sub=skills] .sktree { grid-column: 1; grid-row: 2 / span 2; width: 470px; height: 270px; }
#main[data-s=lab][data-sub=skills] .sktop { grid-column: 2; grid-row: 1; margin: 0 0 6px; padding: 4px 10px; }
#main[data-s=lab][data-sub=skills] .skpanel { grid-column: 2; grid-row: 2 / span 2; margin: 0; overflow-y: auto; align-self: stretch; }
#main[data-s=lab][data-sub=skills] .sknode { width: 42px; height: 42px; } #main[data-s=lab][data-sub=skills] .sknode img { width: 26px; height: 26px; }
#main[data-s=lab][data-sub=skills] .sknode.cap { width: 54px; height: 54px; } #main[data-s=lab][data-sub=skills] .sknode.cap img { width: 36px; height: 36px; }
#main[data-s=lab][data-sub=skills] .skring { width: 58px; height: 58px; } #main[data-s=lab][data-sub=skills] .skring.cap { width: 72px; height: 72px; }
#main[data-s=lab][data-sub=skills] .sktag { left: auto; right: 10px; top: auto; bottom: 6px; text-align: right; }
/* ===== the Rig: network left, the rest right ===== */
#main[data-s=rig] { grid-template-columns: 335px 1fr; padding-top: 8px; }
#main[data-s=rig] > .crt { width: 335px; height: 335px; }
#main[data-s=rig] > .btns { margin: 0 0 8px; }
#main[data-s=rig] .defc { margin: 0 0 8px; padding: 6px 10px; }
#main[data-s=rig] .defc .btns { margin-top: 6px; }
#main[data-s=rig] > .card[data-loc] { margin: 0 0 6px; padding: 6px 8px; }
/* ===== the Room's care buttons: bigger squares that say what they raise ===== */
.rooml .rr { width: 258px; }
.rooml .acts { grid-template-columns: repeat(3, 76px); }
.rooml .acts .btn.sq { width: 76px; height: 76px; }
.rooml .acts .btn.sq small { flex-wrap: wrap; }
.ups { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 4px; width: 100%; } .ups em { font-style: normal; font-size: 8px; font-weight: bold; }

/* the top bar on a sub-screen: compact pills, no status tag, one-line title */
#app.subscr #hud .stats { gap: 8px; }
#app.subscr #hud .stats span { min-width: 0; height: 24px; padding: 0 8px 0 22px; font-size: 12px; }
#app.subscr #hud .stats span img.ico { width: 22px; height: 22px; left: -7px; }
#app.subscr #hud .stats .tag { display: none; }
#app.subscr #hud .shead small { display: none; }
#app.subscr #hud .shead h1 { font-size: 16px; }
/* Lab hardware: technicians and the hire button on one row, then two rows of four */
#main[data-s=lab][data-sub=hw] { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; align-content: start; overflow: hidden; }
#main[data-s=lab][data-sub=hw] > .techs { grid-column: 1; margin: 0 0 8px; min-height: 40px; }
#main[data-s=lab][data-sub=hw] > .btns { grid-column: 2; margin: 0 0 8px; align-self: stretch; }
#main[data-s=lab][data-sub=hw] > .btns .btn { height: 100%; }
#main[data-s=lab][data-sub=hw] > .tjob { grid-column: 1 / -1; width: auto; margin: 0 0 6px; }
#main[data-s=lab][data-sub=hw] > .hwgrid { grid-column: 1 / -1; }
#main[data-s=lab] .hw .un { margin-bottom: 2px; }
/* Lab scripts: the strip takes the whole height */
#main[data-s=lab][data-sub=scripts] { display: flex; flex-direction: column; }
#main[data-s=lab][data-sub=scripts] > .scgrid { flex: 1; min-height: 0; height: auto; }
#main[data-s=lab][data-sub=scripts] .sc { padding: 5px 7px; } #main[data-s=lab][data-sub=scripts] .sc .ft > * { height: 30px; } #main[data-s=lab][data-sub=scripts] .sc .vs { font-size: 9px; } #main[data-s=lab][data-sub=scripts] .sc .un { margin-bottom: 2px; }

/* ===== fixes after the owner's screenshots ===== */
/* Room: care buttons four to a row, so the panel ends above the bottom buttons */
.rooml .rr { width: 304px; }
.rooml .acts { grid-template-columns: repeat(4, 66px); }
.rooml .acts .btn.sq { width: 66px; height: 66px; }
.rooml .acts .btn.sq img.ico.big { width: 22px; height: 22px; }
/* Map: only Room and Map at the bottom, left, under the chain; nothing covers the map */
#app[data-scr=net] #nav { justify-content: flex-start; left: 10px; }
#app[data-scr=net] #nav .nr { display: none; }
.mapl .chainp { padding-top: 14px; }
.csq.sm .ci { height: 22px; } .csq.sm .ci img.ico.big { width: 20px; height: 20px; } .csq.sm .ci svg { width: 14px; height: 16px; margin-top: 3px; } .csq.sm b { font-size: 9px; } .csq.sm small { font-size: 8px; }
/* Skills: the points are in the top bar already */
#main[data-s=lab][data-sub=skills] .sktop { display: none; }
#main[data-s=lab][data-sub=skills] .skpanel { grid-row: 1 / span 3; }
/* long pages: a strip of panels, swiped sideways; a panel taller than the screen scrolls inside itself */
#main.flow { display: flex; align-items: flex-start; gap: 12px; column-width: auto; columns: auto; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; scrollbar-color: var(--ac, var(--cyan)) #05070d; padding-bottom: 6px !important; }
#main.flow::-webkit-scrollbar { display: block; height: 6px; } #main.flow::-webkit-scrollbar-thumb { background: var(--ac, var(--cyan)); } #main.flow::-webkit-scrollbar-track { background: #05070d; }
.sect { flex: none; width: 300px; max-height: 100%; overflow-y: auto; scrollbar-width: none; box-sizing: border-box; }
.sect::-webkit-scrollbar { display: none; }
.sect > h2 { margin: 0 0 6px; } .sect .card { margin: 0 0 8px; }
.sect.mid { width: 440px; }
.sect.wide { width: max-content; max-width: none; height: 100%; display: flex; flex-direction: column; }
.sect.wide .items, .sect.wide .items.two, .sect.wide .items.three { flex: 1; min-height: 0; margin: 0; grid-template-columns: none; grid-auto-flow: column; grid-template-rows: repeat(2, minmax(0, 1fr)); grid-auto-columns: 124px; }
.sect.wide .items .item { min-height: 0; overflow: hidden; }
.sect.wide .items.deals { grid-template-rows: 1fr; grid-auto-columns: 150px; }
.sect.full { width: 100%; }
.perks { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; } .perks .kv { font-size: 11px; padding: 3px 0; }
/* Season pass: one track, left to right; free on top, premium under it */
.pass { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; scrollbar-color: var(--yellow) #05070d; }
.pass::-webkit-scrollbar { height: 6px; } .pass::-webkit-scrollbar-thumb { background: var(--yellow); }
.pr { flex: none; width: 92px; display: flex; flex-direction: column; gap: 4px; } .pr b { align-self: center; }
.pr .pc { min-height: 64px; }
/* the Rig: nothing scrolls but the strip of stores */
#main[data-s=rig] { display: block; overflow: hidden; padding-top: 8px; }
.rigl { display: grid; grid-template-columns: 335px 1fr; gap: 10px; height: 100%; }
.rigl .crt { width: 335px; height: 335px; }
.rigr { min-width: 0; display: flex; flex-direction: column; gap: 8px; height: 335px; overflow-y: auto; scrollbar-width: none; }
.rigr .hot1 { margin: 0; padding: 4px 8px; }
.rigtop { display: flex; gap: 8px; flex: none; }
.rigtop > .btn { flex: none; width: 104px; font-size: 12px; line-height: 1.3; letter-spacing: 1px; }
.rigtop .defc { flex: 1; margin: 0 !important; padding: 6px 10px !important; display: grid; grid-template-columns: 1fr auto; column-gap: 10px; align-content: center; }
.rigtop .defc .top { grid-column: 1; } .rigtop .defc .dbar { grid-column: 1; }
.rigtop .defc .btns { grid-column: 2; grid-row: 1 / span 2; margin: 0 !important; display: flex; flex-direction: column; gap: 4px; } .rigtop .defc .btns .btn { min-height: 26px; }
.fstrip { flex: 1; min-height: 0; display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; padding-bottom: 6px; scrollbar-width: thin; scrollbar-color: var(--cyan) #05070d; }
.fstrip::-webkit-scrollbar { height: 6px; } .fstrip::-webkit-scrollbar-thumb { background: var(--cyan); }
.fstrip .fcard { flex: none; width: 196px; margin: 0; padding: 6px 8px; display: flex; flex-direction: column; min-height: 0; }
.fstrip .fcard .chips { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; gap: 4px; align-content: flex-start; }
.fstrip .fcard .chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fstrip .decoyb { flex: none; width: 110px; flex-direction: column; font-size: 12px; } .fstrip .decoyb small { font-size: 9px; font-weight: normal; color: var(--dim); white-space: normal; }
.scgrid { scrollbar-width: thin; scrollbar-color: var(--purple) #05070d; }
/* phones close to 16:9: the Room keeps the hacker in sight (three care buttons to a row), Lab tiles keep one line per value */
#app.narrow .rooml .rr { width: 216px; } #app.narrow .rooml .acts { grid-template-columns: repeat(3, 60px); } #app.narrow .rooml .acts .btn.sq { width: 60px; height: 60px; } #app.narrow .rooml .rl { width: 180px; }
#app.narrow .rooml .acts .btn.sq b { font-size: 9px; } #app.narrow .ups em { font-size: 7px; }
#main[data-s=lab] .hw .un, #main[data-s=lab] .hw .val { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } #main[data-s=lab] .hw .val .nx { font-size: 11px; }

/* ================= NEW LANDSCAPE UI (from the approved samples) ================= */
/* ----- the hack: the grid on the left, everything else on the right ----- */
#run { grid-template-columns: 389px minmax(0, 1fr); grid-template-rows: auto auto auto minmax(0, 1fr) auto; grid-template-areas: "net top" "net trace" "net stat" "net info" "net deck"; gap: 7px 10px; }
#run .runtop { height: 36px; } #run .runtop b { font-family: Silkscreen, monospace; font-weight: 400; font-size: 15px; letter-spacing: 1px; } #run .runtop #rtime { font-weight: bold; }
#run .runtop .btn.bad { min-height: 36px; height: 36px; font-family: Silkscreen, monospace; font-weight: 400; font-size: 12px; border-width: 3px; box-shadow: 0 4px 0 #000; }
#run .trace { height: 30px; border-width: 3px; box-shadow: 0 4px 0 #000; } #run .trace span { font-family: Silkscreen, monospace; font-weight: 400; font-size: 14px; letter-spacing: 2px; }
#rstat { grid-area: stat; display: flex; gap: 8px; }
#rstat div { flex: 1; min-width: 0; height: 28px; display: flex; align-items: center; gap: 6px; padding: 0 8px; background: var(--panel); border: 2px solid var(--line); font-size: 13px; white-space: nowrap; }
#rstat img.ico { width: 20px; height: 20px; } #rstat small { color: var(--dim); font-size: 10px; margin-right: auto; }
#app.narrow ~ #run #rstat small, .narrowrun #rstat small { display: none; } .narrowrun #rstat div { justify-content: center; }
#run #rinfo { min-height: 0; max-height: none; overflow: hidden; padding: 8px 10px; background: var(--panel); border: 3px solid var(--nc, var(--line)); box-shadow: 0 4px 0 #000; display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
#rinfo .nhd { display: flex; align-items: center; gap: 8px; } #rinfo .nhd > img.ico { width: 34px; height: 34px; flex: none; } #rinfo .nhd > div { flex: 1; min-width: 0; }
#rinfo .nhd b { display: block; font-family: Silkscreen, monospace; font-weight: 400; font-size: 14px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } #rinfo .nhd small { display: block; color: var(--dim); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#rinfo .lock { flex: none; margin: 0; padding: 4px 8px; color: #05070d; font-weight: bold; font-size: 12px; text-transform: uppercase; box-shadow: 0 3px 0 #000; white-space: nowrap; } #rinfo .lock.ok { background: var(--green); } #rinfo .lock.none { background: var(--line); color: var(--ink); }
#rinfo .nuse { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11px; color: var(--dim); } #rinfo .nuse em { font-style: normal; display: flex; align-items: center; gap: 3px; padding: 1px 6px 1px 3px; color: var(--ink); font-weight: bold; background: #0b0f1a; border: 2px solid var(--nc); } #rinfo .nuse img.ico { width: 16px; height: 16px; }
#rinfo .nhint { margin: auto; color: var(--dim); }
#rinfo .btn.wide { margin: 0; min-height: 30px; padding: 4px 8px; font-size: 11px; }
#rinfo .njob { display: flex; gap: 8px; margin-top: auto; flex: none; }
#rinfo .njob .jb { position: relative; flex: 1; min-width: 0; height: 30px; background: #0b0f1a; border: 2px solid var(--jc); } #rinfo .njob .jb i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--jc); opacity: .45; }
#rinfo .njob .jb b { position: absolute; inset: 0; display: flex; align-items: center; gap: 6px; padding: 0 6px; font-size: 11px; white-space: nowrap; overflow: hidden; } #rinfo .njob .jb img.ico { width: 18px; height: 18px; }
#rinfo .njob .stop { flex: none; height: 30px; margin: 0; padding: 0 10px; font: inherit; font-weight: bold; font-size: 11px; color: var(--red); background: #3a1418; border: 2px solid var(--red); cursor: pointer; }
/* files: four show, the rest peek in from the right and scroll sideways */
#rinfo .fls { display: grid; grid-auto-flow: column; grid-template-rows: 34px 34px; grid-auto-columns: calc(50% - 26px); gap: 6px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; flex: none; } #rinfo .fls::-webkit-scrollbar { display: none; }
#rinfo .fl { position: relative; height: 34px; min-width: 0; display: flex; align-items: center; gap: 5px; margin: 0; padding: 0 6px; font: inherit; font-size: 10px; font-weight: bold; color: var(--ink); background: #0b0f1a; border: 2px solid var(--rc, var(--line)); overflow: hidden; text-align: left; cursor: pointer; }
#rinfo .fl img.ico { width: 18px; height: 18px; flex: none; } #rinfo .fl span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } #rinfo .fl em { flex: none; font-style: normal; color: var(--rc); }
#rinfo .fl.tk { opacity: .35; justify-content: center; } #rinfo .fl.enc { opacity: .7; } #rinfo .fl.busy { background: linear-gradient(90deg, rgba(255,210,63,.3), rgba(255,210,63,.08)); } #rinfo .fl.myth { border-color: #ff5ce1; box-shadow: 0 0 10px #ff5ce1; }
/* scripts: five to a row, uses left in the corner, what each one opens on a strip */
#run #rdeck, #run #rdeck.eight, #run #rdeck.ten { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
#run #rdeck .btn { position: relative; height: 58px; min-height: 0; padding: 2px 2px 13px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; font-size: 9px; line-height: 1; text-align: center; overflow: hidden; border-width: 3px; box-shadow: 0 3px 0 #000; word-break: normal; }
#run #rdeck .btn img.ico.big { width: 26px; height: 26px; } #run #rdeck .btn > span { display: block; }
#run #rdeck .btn em { position: absolute; right: 0; top: 0; font-style: normal; background: var(--yellow); color: #05070d; font-size: 10px; padding: 1px 3px; }
#run #rdeck .btn .lkn { position: absolute; left: 0; right: 0; bottom: 0; height: 12px; line-height: 12px; font-size: 9px; font-weight: normal; letter-spacing: -.3px; text-transform: none; opacity: 1; color: #05070d; background: var(--lc, var(--line)); white-space: nowrap; overflow: hidden; }
#run #rdeck .btn .lkn.tg { color: var(--dim); background: #0b0f1a; }
#run #rdeck .btn.match { background: color-mix(in srgb, var(--lc) 30%, var(--panel)); box-shadow: 0 3px 0 #000, 0 0 14px var(--lc); }
#run #rdeck .btn.off { opacity: .35; }

/* ----- the Rig: status on top, the grid with EDIT LAYOUT under it, the tapped node in the middle, Cold Storage and decoys on the right ----- */
#app[data-scr=rig] #hud .stats > *:not(#hudbits) { display: none; }
#hud .shead.rgs { gap: 8px; } #hud .shead.rgs h1 { font-family: Silkscreen, monospace; font-weight: 400; text-transform: uppercase; letter-spacing: 2px; margin-right: 2px; }
.stc { flex: none; height: 36px; margin: 0; padding: 0 8px; display: flex; align-items: center; gap: 6px; font: inherit; color: var(--ink); background: var(--panel); border: 2px solid var(--line); font-weight: bold; font-size: 12px; white-space: nowrap; text-align: left; }
.stc img.ico { width: 20px; height: 20px; } #app.subscr #hud .shead .stc small, .stc small { display: block; max-width: none; color: var(--dim); font-size: 8px; letter-spacing: 1px; line-height: 1; margin-bottom: 2px; font-weight: normal; } .stc b { display: block; line-height: 1; }
.stc .mb { width: 54px; height: 8px; background: #05070d; border: 1px solid var(--line); } .stc .mb i { display: block; height: 100%; background: #ff9f43; } .stc.hot { border-color: var(--red); } .stc.hot .mb i { background: var(--red); } .stc.hot b { color: var(--red); }
.stc .dbar { width: 74px; height: 10px; margin: 0; } .stc.defb { cursor: pointer; }
.stc .info { flex: none; width: 24px; height: 24px; display: grid; place-items: center; font-style: normal; font-weight: bold; font-size: 15px; color: #05070d; background: var(--yellow); border: 2px solid #05070d; box-shadow: 0 2px 0 #000; }
#app.narrow .stc .mb { display: none; } #app.narrow .stc .dbar { width: 46px; } #app.narrow #hud .shead.rgs h1 { display: none; }
.rg2 { display: flex; gap: 10px; height: 100%; min-height: 0; }
.rg2 .bcol { flex: none; width: 299px; display: flex; flex-direction: column; }
.rg2 .bcol .crt { width: 299px; height: 299px; flex: none; } .rg2 .bcol .crt canvas { width: 100%; height: 100%; display: block; }
.edb { flex: 1; min-height: 0; margin: 0; display: flex; align-items: center; justify-content: center; gap: 8px; font-family: Silkscreen, monospace; font-weight: 400; font-size: 13px; letter-spacing: 1px; color: var(--yellow); background: #3a2e10; border: 3px solid var(--yellow); border-top: 0; box-shadow: 0 4px 0 #000; cursor: pointer; }
.edb.on { color: #05070d; background: var(--yellow); cursor: default; }
.rmid { flex: 1.3; min-width: 0; min-height: 0; padding: 8px 10px; background: var(--panel); border: 3px solid var(--cyan); box-shadow: 0 4px 0 #000; display: flex; flex-direction: column; gap: 6px; overflow: hidden; } .rmid.build { border-color: var(--yellow); }
.rcol { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.rbody { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; gap: 6px; } .rbody::-webkit-scrollbar { display: none; }
.rh { flex: none; display: flex; justify-content: space-between; align-items: baseline; font-family: Silkscreen, monospace; font-weight: 400; font-size: 10px; color: var(--cyan); letter-spacing: 1px; white-space: nowrap; } .rh small { font: 10px ui-monospace, Consolas, monospace; color: var(--dim); letter-spacing: 0; min-width: 0; margin-left: 8px; overflow: hidden; text-overflow: ellipsis; } .rmid.build .rh { color: var(--yellow); }
.rhd { flex: none; display: flex; align-items: center; gap: 8px; } .rhd > img.ico { width: 34px; height: 34px; flex: none; } .rhd > div { flex: 1; min-width: 0; } .rhd b { display: block; font-family: Silkscreen, monospace; font-weight: 400; font-size: 14px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rhd small { display: block; color: var(--dim); font-size: 10px; }
.rhd .lock { flex: none; margin: 0 0 0 4px; padding: 4px 6px; font-size: 11px; text-transform: uppercase; box-shadow: 0 3px 0 #000; }
.rdesc, .rnext { flex: none; margin: 0; font-size: 10px; color: var(--dim); line-height: 1.3; } .rnext { color: var(--ink); }
.rfl { flex: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px; } .rfl .chip, .cslist .chip { margin: 0; min-width: 0; font-size: 10px; font-weight: bold; background: #0b0f1a; } .rfl .chip { height: 26px; padding: 0 5px; } .rfl .chip.empty, .cslist .chip.empty { justify-content: center; font-weight: normal; color: var(--dim); opacity: .6; }
.lnk { flex: none; width: 100%; height: 28px; margin: 0; display: flex; align-items: center; gap: 6px; padding: 0 6px; font: inherit; color: var(--ink); background: #0b0f1a; border: 2px solid var(--line); font-size: 11px; font-weight: bold; white-space: nowrap; overflow: hidden; text-align: left; cursor: pointer; }
.lnk i { font-style: normal; color: var(--cyan); width: 12px; } .lnk img.ico { width: 16px; height: 16px; } .lnk span { min-width: 0; overflow: hidden; text-overflow: ellipsis; } .lnk em { margin-left: auto; font-style: normal; font-size: 10px; color: var(--dim); font-weight: normal; }
.lnk.on { border-color: var(--green); } .lnk.on em { color: var(--green); font-weight: bold; } .lnk.off { opacity: .45; }
.lnkrow { flex: none; display: flex; gap: 4px; } .lnkrow .lnk { flex: 1; width: auto; } .lnkrow .btn { margin: 0; min-height: 28px; height: 28px; padding: 0 6px; font-size: 10px; }
.rfoot { flex: none; display: flex; gap: 6px; align-items: stretch; } .rfoot .btn { margin: 0; min-height: 38px; }
.rfoot .rup { flex: 1; min-width: 0; font-family: Silkscreen, monospace; font-weight: 400; font-size: 11px; letter-spacing: 0; white-space: nowrap; overflow: hidden; } .rfoot .rsell { flex: none; flex-direction: column; gap: 0; padding: 0 8px; font-size: 9px; line-height: 1.1; } .rfoot .rsell small { font-size: 10px; }
.rupbusy { flex: 1; min-height: 38px; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 11px; color: var(--yellow); background: #0b0f1a; border: 2px solid var(--yellow); }
.rbox { padding: 6px 8px; background: var(--panel); border: 3px solid var(--line); box-shadow: 0 4px 0 #000; display: flex; flex-direction: column; gap: 6px; min-height: 0; overflow: hidden; } .rbox.grow { flex: 1; } .rbox.sel { border-color: var(--cyan); } .rbox p { margin: 0; } .rbox .rfoot .btn { flex: 1; min-height: 32px; font-size: 10px; padding: 0 4px; }
.csn { flex: none; font-size: 10px; color: var(--dim); margin-top: -3px; }
.cslist { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; gap: 5px; } .cslist::-webkit-scrollbar { display: none; } .cslist .chip { flex: none; height: 34px; padding: 0 8px; font-size: 11px; } .cslist .chip img.ico { width: 22px; height: 22px; }
.dcb { flex: none; height: 48px; margin: 0; justify-content: flex-start; gap: 8px; padding: 0 10px; text-align: left; font-family: Silkscreen, monospace; font-weight: 400; font-size: 12px; color: var(--yellow); background: #3a2e10; border: 3px solid var(--yellow); box-shadow: 0 4px 0 #000; } .dcb img.ico.big { width: 28px; height: 28px; } .dcb small { display: block; font: 10px ui-monospace, Consolas, monospace; color: var(--dim); margin-top: 2px; white-space: nowrap; }
.rsum { flex: none; font-size: 11px; font-weight: bold; text-align: center; } .rsum b { color: var(--yellow); }
.rcol > .rbtn { flex: none; margin: 0; min-height: 40px; font-family: Silkscreen, monospace; font-weight: 400; font-size: 13px; letter-spacing: 1px; } .rcol > .rbtn.no { min-height: 32px; font-size: 11px; }
.rinfo2 { flex: none; min-height: 26px; font-size: 10px; color: var(--dim); line-height: 1.3; } .rinfo2 b { color: var(--ink); }
.dgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; } .dgrid.b4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .dgrid.b6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.dt { position: relative; height: 58px; margin: 0; padding: 2px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font: inherit; color: var(--ink); background: #0b0f1a; border: 2px solid var(--rc, var(--cyan)); font-size: 8px; font-weight: bold; line-height: 1; text-align: center; overflow: hidden; cursor: pointer; }
.dt img.ico.big { width: 22px; height: 22px; } .dt em { font-style: normal; font-size: 10px; color: var(--yellow); } .dt.lk { opacity: .4; border-color: var(--line); } .dt.lk em { color: var(--dim); } .dt.poor em { color: var(--red); } .dt.sel { box-shadow: 0 0 0 2px #fff; }
.dt u { position: absolute; right: 0; top: 0; text-decoration: none; font-size: 8px; padding: 1px 2px; color: #05070d; background: var(--red); } .dt u.c { background: var(--cyan); }
.dcpop h3 { display: flex; justify-content: space-between; align-items: baseline; color: var(--yellow); } .dcpop h3 small { font: 11px ui-monospace, Consolas, monospace; color: var(--dim); } .dcpop .dt { height: 62px; } .dcpop p { margin: 8px 0; }
#modal .mbox:has(.dcpop), #modal .mbox:has(.defpop) { border-color: var(--yellow); max-width: 560px; } #modal .mbox:has(.defpop) { max-width: 440px; }
.defpop h3 { display: flex; justify-content: space-between; color: var(--ink); } .defpop .dbar { height: 16px; margin: 0 0 8px; }
.defpop .lg { display: flex; gap: 6px; margin-bottom: 8px; } .defpop .lg div { flex: 1; padding: 4px 6px; background: #0b0f1a; border-left: 4px solid currentColor; font-size: 10px; } .defpop .lg b { display: block; font-size: 18px; } .defpop p { margin: 4px 0; } .defpop .btns { margin-top: 8px; display: flex; gap: 8px; } .defpop .btns .btn { flex: 1; margin: 0; }

#hud .shead.rgs { justify-content: flex-start; }
#app.narrow #rstat small { display: none; } #app.narrow #rstat div { justify-content: center; }

/* ----- tabs in the top bar, beside BACK (Lab, Shop) ----- */
#hud .shead.htabs { gap: 0; flex: 0 1 auto; border: 3px solid var(--line); box-shadow: 0 4px 0 #000; margin-left: 6px; }
#hud .shead.htabs button { position: relative; margin: 0; height: 32px; padding: 0 12px; font-family: Silkscreen, monospace; font-weight: 400; font-size: 12px; color: var(--dim); background: var(--panel); border: 0; border-right: 2px solid var(--line); cursor: pointer; white-space: nowrap; } #hud .shead.htabs button:last-child { border-right: 0; }
#hud .shead.htabs button.on { background: var(--ac, var(--purple)); color: #05070d; } #hud .shead.htabs .sdot { position: absolute; right: 2px; top: 2px; }
#app.narrow #hud .shead.htabs button { padding: 0 7px; font-size: 10px; }
#app[data-scr=lab] #hud { --ac: var(--purple); } #app[data-scr=shop] #hud { --ac: var(--yellow); }
#app[data-scr=lab] #hud .stats .bwhud, #app[data-scr=lab] #hud .stats .tag, #app[data-scr=lab] #hud .stats span:has(img[src*="heart"]) { display: none; }
#app[data-scr=lab] #hud .stats, #app[data-scr=shop] #hud .stats { margin-left: auto; }
/* ----- the Lab: technicians (or the bench) on top, big tiles on the left, the tapped one on the right ----- */
#main[data-s=lab][data-sub=hw], #main[data-s=lab][data-sub=scripts] { display: block; overflow: hidden; padding: 8px 10px 10px !important; }
.lb2 { display: grid; grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); grid-template-rows: 48px minmax(0, 1fr); gap: 8px 10px; height: 100%; }
/* a full storage is not shown in red (owner, 28 Nov 2026) */
.gtwarn { display: flex; align-items: center; gap: 4px; }
.lb2.gtmn { grid-template-rows: 48px 54px minmax(0, 1fr); } .lb2.gtmn .gttank { grid-column: 1; grid-row: 2; } .lb2.gtmn .lbgrid { grid-column: 1; grid-row: 3; grid-auto-rows: calc(100% - 4px); grid-template-columns: repeat(2, minmax(0, 1fr)); } /* the Storage tab has two cards: they take the whole row, so the full numbers fit */ .lb2.gtmn .lbdet { grid-column: 2; grid-row: 2 / 4; }
.gttank { display: flex; align-items: center; gap: 10px; padding: 0 8px; background: var(--panel); border: 3px solid var(--yellow); box-shadow: 0 4px 0 #000; min-width: 0; }
.gttank > div { flex: 1; min-width: 0; } .gttank b { display: flex; align-items: center; gap: 4px; font-size: 14px; } .gttank small { display: block; color: var(--dim); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gttank .btn { flex: none; margin: 0; min-height: 32px; height: 32px; padding: 0 10px; }
.gtgoal { flex: 1; display: flex; align-items: center; flex-wrap: nowrap; white-space: nowrap; overflow: hidden; gap: 6px; height: 32px; padding: 0 8px; background: #101a14; border: 2px solid var(--green); min-width: 0; cursor: pointer; font-size: 12px; }
.gtgoal > b { font-family: 'Silkscreen', ui-monospace, monospace; letter-spacing: 1px; color: var(--green); font-weight: 400; font-size: 10px; } .gtgoal img.ico { width: 16px; height: 16px; }
.gtgoal .gtw { color: var(--ink); font-weight: bold; }
.gtgoal .gtc { display: inline-flex; align-items: center; gap: 3px; color: var(--yellow); }
.gtgoal small { color: var(--dim); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; } .gtgoal > * { flex: none; }
.gtgoal.rdy { animation: gtpulse 1.2s ease-in-out infinite; } @media (prefers-reduced-motion: reduce) { .gtgoal.rdy { animation: none; } }
.gtgoal.done { border-color: var(--line); background: var(--panel); cursor: default; }
@keyframes gtpulse { 50% { box-shadow: 0 0 10px rgba(61,220,132,.7); } }
.lbtech { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding: 0 8px; background: var(--panel); border: 3px solid var(--line); box-shadow: 0 4px 0 #000; min-width: 0; }
.lbtech .l { flex: none; font-family: Silkscreen, monospace; font-weight: 400; font-size: 10px; color: var(--green); letter-spacing: 1px; } .lbtech .l.pu { color: var(--purple); } .lbtech .l small { display: block; font: 10px ui-monospace, Consolas, monospace; color: var(--dim); letter-spacing: 0; margin-top: 2px; }
.lbtech .s { flex: none; width: 34px; height: 34px; display: grid; place-items: center; background: #0b0f1a; border: 2px solid var(--green); } .lbtech .s img { width: 26px; height: 26px; image-rendering: pixelated; } .lbtech .s.off { opacity: .35; border-color: var(--line); } .lbtech .s.busy { border-color: var(--yellow); }
.lbtech .tjs { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; } .lbtech .tjs::-webkit-scrollbar { display: none; }
.lbtech .tj { flex: 1 0 150px; min-width: 0; display: flex; align-items: center; gap: 6px; } .lbtech .tj > div { flex: 1; min-width: 0; font-size: 11px; font-weight: bold; white-space: nowrap; overflow: hidden; } .lbtech .tj .btn { flex: none; margin: 0; min-height: 30px; height: 30px; padding: 0 6px; font-size: 11px; }
.pbar { height: 7px; margin-top: 4px; background: #232b45; border: 1px solid var(--yellow); overflow: hidden; } .pbar i { display: block; height: 100%; background: var(--yellow); } .pbar i.fill { width: 0; animation: jobfill var(--d, 1ms) linear var(--e, 0ms) both; } .pbar.big { height: 14px; margin: 0; flex: none; }
.lbtech .hire { flex: none; height: 32px; margin: 0; padding: 0 8px; display: flex; align-items: center; gap: 4px; font: inherit; font-weight: bold; font-size: 11px; white-space: nowrap; color: var(--yellow); background: #3a2e10; border: 2px solid var(--yellow); box-shadow: 0 3px 0 #000; cursor: pointer; } .lbtech .hire.off { opacity: .5; } .lbtech .hire img.ico { width: 18px; height: 18px; }
.lbgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: calc(50% - 4px); gap: 8px; min-height: 0; overflow: hidden; padding-bottom: 4px; }
.lbgrid.sc { grid-auto-rows: 122px; grid-auto-flow: row; grid-template-rows: none; height: auto; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; } .lbgrid.sc::-webkit-scrollbar { display: none; }
.lt { position: relative; margin: 0; padding: 6px 4px 4px; display: flex; flex-direction: column; align-items: center; gap: 3px; font: inherit; color: var(--ink); background: linear-gradient(160deg, color-mix(in srgb, var(--hc) 16%, var(--panel)), var(--panel) 60%); border: 3px solid color-mix(in srgb, var(--hc) 45%, var(--line)); box-shadow: 0 4px 0 #000; overflow: hidden; text-align: center; cursor: pointer; min-width: 0; min-height: 0; }
.lt > img { width: 34px; height: 34px; flex: none; image-rendering: pixelated; } .lt > b { font-size: 10px; line-height: 1; white-space: nowrap; } .lt .pp { display: flex; gap: 2px; } .lt .pp i { width: 4px; height: 7px; background: #232b45; } .lt .pp i.on { background: var(--hc); }
.lt .v { font-weight: bold; font-size: 14px; line-height: 1; color: var(--hc); white-space: nowrap; } .lt .v span { color: var(--green); } .lt .v i { font-style: normal; color: var(--dim); font-size: 11px; } .lt .u { font-size: 8px; color: var(--dim); line-height: 1; white-space: nowrap; }
.lt .c { margin-top: auto; width: 100%; height: 22px; flex: none; display: flex; align-items: center; justify-content: center; gap: 3px; font-weight: bold; font-size: 11px; color: var(--yellow); background: #0b0f1a; border: 2px solid var(--line); white-space: nowrap; overflow: hidden; } .lt .c img.ico { width: 16px; height: 16px; } .lt .c.x { color: var(--dim); font-size: 9px; } .lt .c .r { color: var(--red); } .lt .c .g { color: var(--green); } .lt .c.busy { color: var(--yellow); border-color: var(--yellow); font-size: 9px; }
.lt em { position: absolute; left: 0; top: 0; font-style: normal; font-size: 9px; font-weight: bold; padding: 1px 4px; color: #05070d; background: var(--hc); }
.lt.sel { border-color: #fff; box-shadow: 0 4px 0 #000, 0 0 16px var(--hc); } .lt.lk { opacity: .45; } .lt.flashme { animation: bl 1s steps(2) infinite; }
.lbdet { min-height: 0; padding: 10px 12px; background: var(--panel); border: 3px solid var(--hc); box-shadow: 0 4px 0 #000; display: flex; flex-direction: column; gap: 7px; overflow: hidden; margin-bottom: 4px; }
.lbdet .hd { display: flex; gap: 10px; align-items: center; flex: none; } .lbdet .hd > img { width: 48px; height: 48px; flex: none; border: 3px solid var(--hc); background: #0b0f1a; image-rendering: pixelated; } .lbdet .hd > div { flex: 1; min-width: 0; } .lbdet .hd b { display: block; font-family: Silkscreen, monospace; font-weight: 400; font-size: 15px; text-transform: uppercase; } .lbdet .hd small { display: block; color: var(--dim); font-size: 10px; margin-top: 2px; }
.lbdet .info { flex: none; width: 26px; height: 26px; margin: 0; font: inherit; font-weight: bold; font-size: 14px; color: #05070d; background: var(--yellow); border: 2px solid #05070d; box-shadow: 0 2px 0 #000; cursor: pointer; }
.lbdet .vs { display: flex; align-items: center; justify-content: center; gap: 16px; flex: none; } .lbdet .vs div { text-align: center; min-width: 0; } .lbdet .vs b { display: block; font-size: 28px; line-height: 1; color: var(--hc); white-space: nowrap; } .lbdet .vs .nx b { color: var(--green); } .lbdet .vs small { color: var(--dim); font-size: 10px; } .lbdet .vs i { font-style: normal; font-size: 20px; color: var(--dim); }
.rq { flex: none; display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px; background: #0b0f1a; border: 2px solid var(--line); font-size: 11px; font-weight: bold; white-space: nowrap; } .rq img.ico { width: 18px; height: 18px; image-rendering: pixelated; } .rq span { margin-left: auto; color: var(--yellow); } .rq span.g { color: var(--green); } .rq span.r { color: var(--red); }
.lbdet .btn.go, .lbdet .go { flex: none; margin: auto 0 0; min-height: 44px; display: flex; align-items: center; justify-content: center; font-family: Silkscreen, monospace; font-weight: 400; font-size: 16px; letter-spacing: 2px; } .lbdet div.go.off { color: var(--dim); background: #0b0f1a; border: 2px solid var(--line); font-size: 11px; letter-spacing: 0; } .lbdet .btn.hot { flex: none; margin: 0; }
.lbdet p { margin: 0; }
@keyframes bl { 50% { border-color: #5a1a1a; } }
#app.narrow .lt .v { font-size: 11px; } #app.narrow .lt .v i { font-size: 9px; } #app.narrow .lt .c { font-size: 9px; gap: 1px; } #app.narrow .lt .c img.ico { width: 12px; height: 12px; } #app.narrow .lt .c.x, #app.narrow .lt .c.busy { font-size: 8px; } #app.narrow .lbdet .vs b { font-size: 22px; } #app.narrow .lbtech .l small { display: none; }
/* ----- Skills: the tree takes the width; the chosen skill is a narrow column on the right ----- */
#main[data-s=lab][data-sub=skills] { grid-template-columns: minmax(0, 1fr) 226px; padding: 8px 10px 10px !important; }
#main[data-s=lab][data-sub=skills] .sktabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
#main[data-s=lab][data-sub=skills] .sktree { width: 100%; height: auto; min-height: 0; align-self: stretch; }
#main[data-s=lab][data-sub=skills] .skpanel { grid-row: 1 / span 3; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
#main[data-s=lab][data-sub=skills] .skpanel p { margin: 0; font-size: 12px; } #main[data-s=lab][data-sub=skills] .skpanel .btn.wide { margin: auto 0 0; }
#main[data-s=lab][data-sub=skills] .skph { flex-wrap: wrap; } #main[data-s=lab][data-sub=skills] .skph small { white-space: normal; }
#main[data-s=lab][data-sub=skills] .sknode { width: 48px; height: 48px; } #main[data-s=lab][data-sub=skills] .sknode img { width: 30px; height: 30px; }
#main[data-s=lab][data-sub=skills] .skring { width: 64px; height: 64px; }
.skpts { display: flex; justify-content: space-between; align-items: center; padding: 4px 8px; background: #0b0f1a; border: 2px solid var(--line); font-size: 11px; color: var(--dim); } .skpts b { font-size: 16px; color: var(--yellow); }

/* ----- the Room: the whole screen, no panels ----- */
.rm2 { position: relative; height: 100%; }
.rm2 .frame { position: absolute; inset: 0; border: 0; background: #05070d; } .rm2 .frame canvas { display: block; width: 100%; height: 100%; }
.rm2 .say { left: 50%; right: auto; top: 41%; transform: translate(-50%, -100%); max-width: 230px; width: max-content; padding: 4px 8px; font-size: 11px; background: rgba(8,10,20,0.88); border: 2px solid #2c3552; pointer-events: none; }
.needs { position: absolute; left: 12px; top: 62px; display: flex; gap: 6px; z-index: 5; }
.need { position: relative; width: 32px; height: 50px; margin: 0; padding: 0; background: rgba(5,7,13,.8); border: 2px solid var(--line); box-shadow: 0 3px 0 rgba(0,0,0,.6); cursor: pointer; overflow: hidden; }
.need i { position: absolute; left: 0; right: 0; bottom: 0; width: 100% !important; opacity: .55; } .need img.ico { position: absolute; left: 5px; top: 6px; width: 18px; height: 18px; } .need span { position: absolute; left: 0; right: 0; bottom: 3px; text-align: center; font-size: 10px; font-weight: bold; color: var(--ink); text-shadow: 0 1px 0 #000; }
.need.low { border-color: var(--red); animation: bl 1s steps(2) infinite; }
.rinf { position: absolute; right: 12px; top: 58px; display: flex; gap: 6px; z-index: 5; }
.rinf button { margin: 0; height: 24px; padding: 0 8px 0 4px; display: flex; align-items: center; gap: 4px; font: inherit; font-size: 11px; color: var(--ink); background: rgba(5,7,13,.8); border: 2px solid var(--line); cursor: pointer; white-space: nowrap; } .rinf img.ico { width: 16px; height: 16px; } .rinf small { color: var(--dim); font-size: 9px; } .rinf .y b { color: var(--yellow); } .rinf .r { border-color: var(--red); } .rinf .r b { color: var(--red); }
.bub { position: absolute; width: 46px; height: 46px; margin: -23px 0 0 -23px; padding: 0; display: grid; place-items: center; background: #fff; border: 3px solid #05070d; border-radius: 50%; box-shadow: 0 4px 0 rgba(0,0,0,.6); animation: bob 1.2s ease-in-out infinite; z-index: 4; cursor: pointer; }
.bub::after { content: ""; position: absolute; left: 50%; bottom: -11px; margin-left: -6px; border: 6px solid transparent; border-top-color: #05070d; }
.bub img.ico.big { width: 28px; height: 28px; } .bub small { position: absolute; top: -12px; left: 60%; background: var(--yellow); color: #05070d; font-weight: bold; font-size: 10px; padding: 1px 4px; border: 2px solid #05070d; white-space: nowrap; }
.bub.gold { background: var(--yellow); } .bub.low { box-shadow: 0 4px 0 rgba(0,0,0,.6), 0 0 0 3px var(--red), 0 0 16px var(--red); }
@keyframes bob { 50% { transform: translateY(-5px); } } @media (prefers-reduced-motion: reduce) { .bub { animation: none; } }
.ralert { position: absolute; left: 50%; top: 56px; transform: translateX(-50%); width: 360px; max-height: calc(100% - 140px); overflow-y: auto; z-index: 6; } .ralert .card { margin: 0 0 6px; font-size: 11px; background: rgba(11,15,26,.95); } .ralert .btn.wide { min-height: 32px; margin: 4px 0 0; }
/* the Room's buttons: small ones bottom-left, Shop and the big HACK bottom-right */
#nav { left: 0; right: 0; bottom: 10px; height: auto; padding: 0 12px; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; pointer-events: none; }
#nav .nl, #nav .nr { position: static; display: flex; align-items: flex-end; gap: 8px; pointer-events: auto; }
#nav button, #nav .nl button { width: 66px; height: 62px; padding: 4px 0 3px; font-size: 10px; letter-spacing: 1px; color: var(--ink); text-shadow: none; background: var(--panel); border: 3px solid var(--line); box-shadow: 0 4px 0 #000; clip-path: none; }
#nav button img, #nav .nl button img { width: 30px; height: 30px; filter: none; opacity: 1; }
#nav .hackbtn { width: 112px; height: 100px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-family: Silkscreen, monospace; font-weight: 400; font-size: 20px; letter-spacing: 2px; color: var(--yellow); background: #3a2e10; border-color: var(--yellow); cursor: pointer; }
#nav .hackbtn img { width: 46px; height: 46px; margin: 0; }
#app.narrow #nav .hackbtn { width: 96px; height: 86px; font-size: 17px; } #app.narrow #nav .hackbtn img { width: 38px; height: 38px; }
#carem .hbars { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin-bottom: 10px; } #carem .hbar { display: flex; align-items: center; gap: 6px; font-size: 11px; } #carem .hbar img.ico { width: 20px; height: 20px; } #carem .hbar b { width: 62px; } #carem .hbar .track { flex: 1; height: 10px; background: #05070d; border: 1px solid var(--line); } #carem .hbar .track i { display: block; height: 100%; } #carem .hbar span { width: 24px; text-align: right; font-weight: bold; }
#carem .acts { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 0 0 10px; } #carem .acts .btn.sq { width: auto; height: 74px; min-height: 0; margin: 0; padding: 4px 2px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 9px; } #carem .acts .btn.sq img.ico.big { width: 24px; height: 24px; } #carem .acts .btn.sq small { font-size: 8px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1px; } #carem .acts .btn.sq small img.ico { width: 10px; height: 10px; }
#modal .mbox:has(#carem) { max-width: 620px; border-color: var(--green); }
/* ----- the Map: the Net fills the screen; pager on top; the district's targets as a path along the bottom ----- */
#main[data-s=map] { padding: 0 !important; overflow: hidden; }
.mp2 { position: relative; height: 100%; overflow: hidden; background: #05070d; }
.mp2 #netc { position: absolute; left: 0; width: 100%; image-rendering: pixelated; filter: brightness(.75); transition: top .4s ease-out; }
.dzp { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; z-index: 6; padding: 4px 6px; background: rgba(5,7,13,.8); }
.dzp .ar { width: 36px; height: 36px; margin: 0; display: grid; place-items: center; font: inherit; font-size: 14px; color: var(--cyan); background: var(--panel); border: 3px solid var(--line); box-shadow: 0 4px 0 #000; cursor: pointer; } .dzp .ar.off { opacity: .3; cursor: default; }
.dzp > div { min-width: 150px; text-align: center; } .dzp b { display: block; font-family: Silkscreen, monospace; font-weight: 400; font-size: 22px; letter-spacing: 3px; text-transform: uppercase; text-shadow: 0 3px 0 #000; line-height: 1; } .dzp small { display: block; color: var(--dim); font-size: 10px; margin-top: 3px; } .dzp small svg { width: 9px; height: 10px; vertical-align: -1px; }
.mtabs { position: absolute; left: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 6; } .mtabs .btn { margin: 0; min-height: 32px; padding: 0 8px; gap: 5px; font-size: 10px; letter-spacing: 1px; justify-content: flex-start; } .mtabs .btn img.ico { width: 18px; height: 18px; }
.path { position: absolute; left: 0; right: 0; bottom: 0; height: 200px; z-index: 4; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; background: linear-gradient(180deg, transparent, rgba(5,7,13,.94) 42%); } .path::-webkit-scrollbar { display: none; }
.path .pin { position: relative; margin-top: 10px; } .path svg { position: absolute; inset: 0; } .path .pl0 { fill: none; stroke: #2c3552; stroke-width: 8; stroke-dasharray: 10 8; } .path .pl1 { fill: none; stroke: var(--green); stroke-width: 8; }
.csq.lvl { position: absolute; width: 96px; height: auto; margin: -31px 0 0 -48px; padding: 0; background: none; border: 0; box-shadow: none; clip-path: none; color: var(--ink); font: inherit; text-align: center; cursor: pointer; display: block; animation: none; }
.csq.lvl .d { display: grid; place-items: center; width: 44px; height: 44px; margin: 9px auto; background: #1b2238; border: 4px solid var(--line); box-shadow: 0 5px 0 #000; transform: rotate(45deg); }
.csq.lvl .d .ci { display: grid; place-items: center; height: auto; transform: rotate(-45deg); } .csq.lvl .d img.ico.big { width: 26px; height: 26px; } .csq.lvl .d svg { width: 16px; height: 18px; margin: 0; }
.csq.lvl b { display: block; margin-top: 12px; font-size: 10px; line-height: 1.1; text-shadow: 0 2px 0 #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .csq.lvl small { display: block; font-size: 10px; color: var(--yellow); line-height: 1.2; }
.csq.lvl.beat .d { border-color: var(--green); background: #123322; } .csq.lvl.next .d { border-color: var(--yellow); background: #3a2e10; box-shadow: 0 5px 0 #000, 0 0 22px rgba(255,210,63,.8); }
.csq.lvl.lk { opacity: .55; } .csq.lvl.lk small { color: var(--dim); } .csq.lvl.boss .d { border-color: var(--red); background: #3a1418; }
.csq.lvl .play { display: block; width: 76px; height: 24px; line-height: 20px; margin: 4px auto 0; font-family: Silkscreen, monospace; font-size: 12px; letter-spacing: 2px; color: var(--green); background: #14432b; border: 3px solid var(--green); box-shadow: 0 3px 0 #000; box-sizing: border-box; }
.csq.lvl em { position: absolute; left: 62px; top: 0; font-style: normal; font-size: 10px; font-weight: bold; padding: 0 4px; z-index: 2; } .csq.lvl em.okm { color: #05070d; background: var(--green); } .csq.lvl em.alm { left: 14px; color: #05070d; background: var(--red); }
#carem .acts .btn.sq img.ico.big { flex: none; position: static; margin: 0; } #carem .acts .btn.sq b { font-size: 10px; line-height: 1.1; position: static; } #carem .acts .btn.sq { text-align: center; overflow: hidden; }
#hud .shead.htabs .rextra { color: #05070d; background: var(--yellow); display: flex; align-items: center; gap: 4px; } #hud .shead.htabs .rextra img.ico { width: 16px; height: 16px; }
#app.subscr #hud:has(.htabs) .stats .tag, #app.narrow.subscr #hud:has(.htabs) .stats .bwhud { display: none; }
#app.narrow.subscr #hud:has(.htabs) .stats span:not(#hudbits):not([data-s=shop]) { display: none; }
#app.subscr #hud:has(.htabs) .stats { margin-left: auto; }
/* ===== pass 2: fixes from the owner's screenshots ===== */
/* the Room's top-left: portrait and name box the same height, side by side; the gauges clear below them */
#app:not(.subscr) #hud { padding: 8px 12px 0; gap: 8px; }
#app:not(.subscr) #hud .face { width: 46px; height: 46px; box-sizing: border-box; border: 3px solid var(--yellow); }
#app:not(.subscr) #hud .facebox .lv { bottom: -8px; }
#app:not(.subscr) #hud .who { margin: 0; height: 46px; min-width: 132px; box-sizing: border-box; padding: 0 10px; display: flex; flex-direction: column; justify-content: center; gap: 1px; clip-path: none; }
#app:not(.subscr) #hud .who b { line-height: 1.1; } #app:not(.subscr) #hud .who small { line-height: 1.1; } #app:not(.subscr) #hud .who .xp { margin-top: 3px; }
.needs { top: 74px; } .need { width: 34px; height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 5px 0 4px; box-sizing: border-box; }
.need img.ico { position: relative; left: auto; top: auto; width: 20px; height: 20px; z-index: 1; } .need span { position: relative; left: auto; right: auto; bottom: auto; z-index: 1; line-height: 1; }
.rinf { top: 62px; }
/* the Rig: the grid keeps its size; EDIT LAYOUT sits under it, never on it */
.rg2 .bcol .crt { box-sizing: border-box; } .rg2 .bcol .crt.editing { outline-offset: -4px; }
.rg2 .bcol .edb { flex: none; height: 36px; box-sizing: border-box; margin-top: 0; }
/* a hardware tile that is installing: its bar and the speed-up button, on the tile */
.lt .cj { margin-top: auto; width: 100%; height: 24px; flex: none; display: flex; gap: 4px; align-items: stretch; }
.lt .cj .jb { position: relative; flex: 1; min-width: 0; background: #0b0f1a; border: 2px solid var(--yellow); overflow: hidden; } .lt .cj .jb i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--yellow); opacity: .45; } .lt .cj .jb i.fill { width: 0; animation: jobfill var(--d, 1ms) linear var(--e, 0ms) both; }
.lt .cj .jb b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 10px; color: var(--ink); }
.lt .cj .btn { flex: none; margin: 0; min-height: 0; height: 24px; padding: 0 5px; font-size: 10px; gap: 2px; } .lt .cj .btn img.ico { width: 14px; height: 14px; }
.lbtech .tjs { white-space: nowrap; } .lbtech .tjs .small { overflow: hidden; text-overflow: ellipsis; }
/* script tiles: smaller art, numbers that fit */
.lbgrid.sc { grid-auto-rows: 116px; }
.lbgrid.sc .lt { padding: 14px 5px 5px; gap: 2px; } .lbgrid.sc .lt > img.ico.big { width: 26px; height: 26px; } .lbgrid.sc .lt > b { font-size: 10px; margin-top: 2px; }
.lbgrid.sc .lt .v { font-size: 11px; max-width: 100%; overflow: hidden; text-overflow: clip; letter-spacing: -.2px; margin-top: 2px; } .lbgrid.sc .lt .v i { font-size: 8px; }
.lbgrid.sc .lt .c { height: 20px; font-size: 10px; gap: 2px; padding: 0 2px; box-sizing: border-box; } .lbgrid.sc .lt .c img.ico { width: 13px; height: 13px; } .lbgrid.sc .lt .c.x, .lbgrid.sc .lt .c.busy { font-size: 8px; }
.lt em { z-index: 1; }
/* ----- the Map, level 1: the city on the left, its districts as cards on the right ----- */
.cm2 { display: flex; gap: 12px; height: 100%; padding: 8px 12px 10px; box-sizing: border-box; }
.cm2 .nmap { flex: none; height: 100%; width: auto; aspect-ratio: 130 / 116; margin: 0; box-sizing: border-box; border: 3px solid var(--line); box-shadow: 0 4px 0 #000; }
.cm2 .nlbl { min-height: 0; padding: 2px 5px; } .cm2 .nlbl b { font-size: 9px; }
.dzlist { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.dzc { position: relative; flex: 1; min-height: 0; margin: 0; padding: 0 44px 0 12px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 3px; font: inherit; color: var(--ink); text-align: left; background: #0b0f1a; border: 3px solid var(--dc); box-shadow: 0 4px 0 #000; overflow: hidden; cursor: pointer; }
.dzc canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; opacity: .55; } .dzc > *:not(canvas) { position: relative; }
.dzc .dzn b { display: block; font-family: Silkscreen, monospace; font-weight: 400; font-size: 17px; letter-spacing: 2px; text-transform: uppercase; color: var(--dc); text-shadow: 0 2px 0 #000; line-height: 1; } .dzc .dzn small { display: block; margin-top: 3px; font-size: 10px; color: var(--ink); text-shadow: 0 1px 0 #000; } .dzc .dzn small svg { width: 9px; height: 10px; vertical-align: -1px; }
.dzc .dzb { display: block; width: 46%; height: 6px; background: #05070d; border: 1px solid var(--line); } .dzc .dzb i { display: block; height: 100%; background: var(--green); }
.dzc .go { position: absolute; right: 10px; top: 50%; margin-top: -14px; width: 28px; height: 28px; display: grid; place-items: center; font-style: normal; font-size: 12px; color: #05070d; background: var(--dc); box-shadow: 0 3px 0 #000; }
.dzc.locked { border-color: var(--line); } .dzc.locked canvas { opacity: .2; } .dzc.locked .dzn b { color: var(--dim); } .dzc.locked .go { background: var(--line); color: var(--dim); }
.dzlist .mrow { flex: none; display: flex; gap: 6px; } .dzlist .mrow .btn { flex: 1; margin: 0; min-height: 34px; gap: 6px; font-size: 11px; letter-spacing: 1px; } .dzlist .mrow .btn img.ico { width: 18px; height: 18px; }
/* level 2: the district's own backdrop behind the path */
.mp2 #dzbg { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.mp2 .path { background: linear-gradient(180deg, transparent, rgba(5,7,13,.9) 46%); }
.dzc canvas { opacity: .4; } .dzc::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(5,7,13,.92) 0, rgba(5,7,13,.6) 42%, transparent 75%); } .dzc canvas { z-index: 0; } .dzc > *:not(canvas) { z-index: 1; }

/* ----- the Shop: five tabs, each a fixed page in the same panel style as the Rig and the Lab ----- */
#main[data-s=shop] { display: block; overflow: hidden; padding: 8px 10px 12px !important; }
.pan { min-width: 0; min-height: 0; padding: 8px 10px; background: var(--panel); border: 3px solid var(--line); box-shadow: 0 4px 0 #000; display: flex; flex-direction: column; gap: 6px; box-sizing: border-box; overflow: hidden; }
.pan .rh { color: var(--yellow); }
.feat { min-width: 0; min-height: 0; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; background: linear-gradient(160deg, #3a2e10, var(--panel) 70%); border: 3px solid var(--yellow); box-shadow: 0 4px 0 #000, 0 0 20px rgba(255,210,63,.25); box-sizing: border-box; overflow: hidden; text-align: center; }
.feat .tag2 { align-self: flex-start; background: var(--red); color: #05070d; font-weight: bold; font-size: 10px; padding: 2px 6px; white-space: nowrap; } .feat.on .tag2 { background: var(--green); }
.feat h3 { margin: 2px 0 0; font-family: Silkscreen, monospace; font-weight: 400; font-size: 20px; color: var(--yellow); text-transform: uppercase; }
.feat .pix { flex: 0 1 112px; min-height: 48px; height: 112px; width: auto; aspect-ratio: 1; image-rendering: pixelated; } .feat p { margin: 0; font-weight: bold; font-size: 12px; }
.feat ul { margin: 0; padding: 0; list-style: none; font-size: 11px; font-weight: bold; line-height: 1.5; } .feat ul li::before { content: "▸ "; color: var(--yellow); }
.feat .btn { width: 100%; min-height: 46px; margin: auto 0 0; font-family: Silkscreen, monospace; font-weight: 400; font-size: 18px; flex: none; } .feat .done, .bcard .done { width: 100%; margin-top: auto; padding: 8px 0; font-size: 11px; font-weight: bold; color: var(--green); background: #0b0f1a; border: 2px solid var(--line); text-align: center; box-sizing: border-box; }
.sh2 { display: grid; grid-template-columns: minmax(0, 33fr) minmax(0, 67fr); grid-template-rows: 104px minmax(0, 1fr); gap: 10px 12px; height: 100%; }
.sh2 .feat { grid-row: 1 / span 2; }
.sh2 .days { display: flex; gap: 6px; margin: 0; flex: 1; min-height: 0; } .sh2 .day { flex: 1; min-width: 0; margin: 0; padding: 2px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: inherit; color: var(--ink); background: #0b0f1a; border: 2px solid var(--line); font-size: 10px; } .sh2 .day img.ico { width: 22px; height: 22px; } .sh2 .day b { font-size: 10px; white-space: nowrap; }
.sh2 .day.now { flex: 1.8; border: 3px solid var(--green); background: #123322; color: var(--green); cursor: pointer; } .sh2 .day.done { opacity: .4; }
.shelf .items.deals { flex: 1; min-height: 0; margin: 0; display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.shelf .items.deals .item, .sgrid .item, .items.packs .item { margin: 0; min-height: 0; padding: 6px; background: #0b0f1a; border-width: 3px; overflow: hidden; } .shelf .items.deals .item .pix { height: auto; flex: 0 1 84px; min-height: 30px; width: auto; max-width: 100%; aspect-ratio: 1; }
.shelf .items.deals .item > b { min-height: 0; font-size: 11px; } .shelf .item.bm img.ico.big { width: 48px; height: 48px; margin: auto 0; } .item .btn { margin: 0; }
.bo2 { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; height: 100%; }
.bcard { min-width: 0; padding: 12px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; background: var(--panel); border: 3px solid var(--line); box-shadow: 0 4px 0 #000; box-sizing: border-box; overflow: hidden; }
.bcard > img.ico.big { width: 52px; height: 52px; flex: none; image-rendering: pixelated; } .bcard h3 { margin: 0; font-family: Silkscreen, monospace; font-weight: 400; font-size: 14px; text-transform: uppercase; color: var(--yellow); } .bcard .hv { font-size: 18px; } .bcard p { margin: 0; font-size: 11px; color: var(--dim); line-height: 1.35; }
.bcard > .btn { width: 100%; margin: auto 0 0; min-height: 40px; flex: none; } .bcard > .btn.wide { margin: 0; min-height: 30px; font-size: 10px; } .bcard > .btn.wide + .btn { margin-top: auto; }
.ps2 { display: flex; flex-direction: column; gap: 10px; height: 100%; }
.phead { flex: none; flex-direction: row; align-items: center; gap: 12px; } .phead .pt b { display: block; font-family: Silkscreen, monospace; font-weight: 400; font-size: 15px; color: var(--yellow); white-space: nowrap; } .phead .pt small { font-size: 10px; color: var(--dim); white-space: nowrap; } .phead .xp { flex: 1; height: 12px; margin: 0; background: #05070d; border: 2px solid var(--line); } .phead .xp i { display: block; height: 100%; background: var(--yellow); } .phead .btn { margin: 0; min-height: 36px; flex: none; }
.ptrk { flex: 1; min-height: 0; display: flex; gap: 8px; } .plab { flex: none; width: 62px; display: flex; flex-direction: column; gap: 4px; padding: 22px 0 12px; font-family: Silkscreen, monospace; font-size: 9px; } .plab span { flex: 1; display: grid; place-items: center; background: var(--panel); border: 2px solid var(--line); }
.ps2 .pass { flex: 1; min-width: 0; margin: 0; display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden; padding-bottom: 6px; } .ps2 .pr { flex: none; width: 104px; display: flex; flex-direction: column; gap: 4px; } .ps2 .pr b { flex: none; height: 18px; line-height: 18px; text-align: center; } .ps2 .pr .pc { flex: 1; min-height: 0; margin: 0; font-size: 10px; border-width: 3px; }
.sk2 { display: flex; gap: 10px; height: 100%; }
.sk2 .cats { flex: none; width: 118px; display: flex; flex-direction: column; gap: 6px; } .sk2 .cats button { flex: 1; min-height: 0; margin: 0; padding: 0 10px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; font: inherit; color: var(--ink); background: var(--panel); border: 3px solid var(--line); box-shadow: 0 3px 0 #000; cursor: pointer; }
.sk2 .cats b { font-family: Silkscreen, monospace; font-weight: 400; font-size: 12px; text-transform: uppercase; } .sk2 .cats small { font-size: 10px; color: var(--dim); } .sk2 .cats .on { border-color: var(--yellow); background: #3a2e10; } .sk2 .cats .on b { color: var(--yellow); }
.sgrid { flex: 1; min-width: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); grid-auto-rows: 150px; gap: 8px; overflow-y: auto; scrollbar-width: none; align-content: start; padding-bottom: 6px; } .sgrid::-webkit-scrollbar { display: none; }
.sgrid.rooms, .sgrid.setups, .sgrid.cards { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); grid-auto-rows: 170px; } .sgrid .item .pix { flex: 0 1 auto; min-height: 30px; max-height: 96px; width: auto; max-width: 100%; object-fit: contain; } .sgrid .item > :last-child { margin-top: auto; } .sgrid .item b { font-size: 11px; } .sgrid .item .ccard { font-size: 8px; max-height: 86px; overflow: hidden; margin: 0; }
.ch2 { display: grid; grid-template-columns: minmax(0, 30fr) minmax(0, 70fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 12px; height: 100%; } .ch2 .feat { grid-row: 1 / span 2; } .ch2 .feat .pix { flex-basis: 84px; height: 84px; }
.items.packs { flex: 1; min-height: 0; margin: 0; display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; } .items.packs .item { justify-content: center; gap: 4px; } .items.packs .item .ico.big { width: 34px; height: 34px; margin: 0; } .items.packs .item b { font-size: 14px; } .items.packs .item > :last-child { margin-top: auto; width: 100%; }
/* ----- Logs: the list on the left, the tapped intrusion on the right, rivals under it ----- */
#main[data-s=logs] { display: block; overflow: hidden; padding: 8px 10px 12px !important; }
.lg2 { display: grid; grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); gap: 12px; height: 100%; }
.lglist .rh, .lgdet .rh, .lgriv .rh { color: var(--red); }
.lgr { flex: none; width: 100%; margin: 0; padding: 6px 8px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; align-items: center; font: inherit; color: var(--ink); text-align: left; background: #0b0f1a; border: 2px solid var(--line); border-left: 5px solid var(--green); cursor: pointer; }
.lgr.bad { border-left-color: var(--red); } .lgr b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lgr span { font-size: 10px; color: var(--dim); text-align: right; white-space: nowrap; } .lgr em { font-style: normal; font-size: 10px; font-weight: bold; color: var(--green); } .lgr.bad em { color: var(--red); } .lgr.sel { border-color: #fff; border-left-color: var(--green); background: #141a2c; } .lgr.bad.sel { border-left-color: var(--red); }
.lgside { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.lgdet { flex: 1; border-color: var(--green); } .lgdet.bad { border-color: var(--red); }
.lgdet .rhd b { font-size: 15px; } .lgdet .lock { flex: none; padding: 4px 8px; font-size: 12px; color: #05070d; font-weight: bold; box-shadow: 0 3px 0 #000; } .lgdet .lock.ok { background: var(--green); } .lgdet .lock.bad { background: var(--red); }
.lgcols { flex: 1; min-height: 0; display: flex; gap: 8px; } .lgcols .rbody { flex: 1; } .lgcols .ccard { flex: none; margin: 0; max-width: 42%; padding: 6px 8px; font-size: 9px; line-height: 1.15; overflow: hidden; background: #000; border: 2px dashed var(--line); color: var(--green); align-self: flex-start; }
.lgdet .rq { height: auto; min-height: 26px; padding: 3px 8px; white-space: normal; } .lgdet .rq span { text-align: right; max-width: 62%; overflow-wrap: anywhere; } .rq span.c { color: var(--cyan); }
.lgdet .rfoot .btn { flex: 1; min-height: 34px; font-size: 11px; padding: 0 4px; }
.lgriv { flex: none; } .rvs { display: flex; gap: 6px; flex-wrap: wrap; } .rv { display: flex; align-items: center; gap: 8px; padding: 3px 8px; background: #0b0f1a; border: 2px solid var(--line); font-size: 11px; } .rv b { font-size: 12px; }
/* ----- every remaining page (Crew, Market, Scanner, Jobs, Archive): the same panels, side by side, each scrolling inside itself ----- */
#main.flow { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 12px; align-items: stretch; overflow-x: auto; overflow-y: hidden; padding: 8px 10px 12px !important; columns: auto; }
#main.flow > .sect, #main.flow > .sect.wide, #main.flow > .sect.mid, #main.flow > .sect.full { width: auto; max-width: none; height: 100%; max-height: none; margin: 0; box-sizing: border-box; padding: 8px 10px; display: block; background: var(--panel); border: 3px solid var(--line); box-shadow: 0 4px 0 #000; overflow-x: hidden; overflow-y: auto; scrollbar-width: none; }
#main.flow > .sect::-webkit-scrollbar { display: none; }
#main.flow > .sect > h2 { margin: 0 0 8px; font-family: Silkscreen, monospace; font-weight: 400; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--ac, var(--cyan)); border: 0; padding: 0; }
#main.flow > .sect .card { margin: 0 0 8px; padding: 0 0 8px; background: none; border: 0; border-bottom: 2px solid var(--line); box-shadow: none; } #main.flow > .sect .card:last-child { border-bottom: 0; margin-bottom: 0; }
#main.flow > .sect .card.gold, #main.flow > .sect .card.alert, #main.flow > .sect .card.good { padding-left: 8px; border-left: 4px solid var(--yellow); } #main.flow > .sect .card.alert { border-left-color: var(--red); } #main.flow > .sect .card.good { border-left-color: var(--green); }
#main.flow > .sect .seg, #main.flow > .sect .subtabs { display: flex; gap: 0; margin: 0 0 8px; padding: 0; border: 3px solid var(--line); background: none; box-shadow: none; position: static; width: auto; }
#main.flow > .sect .seg button, #main.flow > .sect .subtabs button { flex: 1; height: 30px; min-height: 0; margin: 0; padding: 0 6px; font-family: Silkscreen, monospace; font-weight: 400; font-size: 11px; color: var(--dim); background: var(--panel); border: 0; border-right: 2px solid var(--line); box-shadow: none; clip-path: none; text-align: center; justify-content: center; } #main.flow > .sect .seg button:last-child, #main.flow > .sect .subtabs button:last-child { border-right: 0; }
#main.flow > .sect .seg button.on, #main.flow > .sect .subtabs button.on { color: #05070d; background: var(--ac, var(--yellow)); } #main.flow > .sect .seg button::after, #main.flow > .sect .subtabs button::after { display: none; }
#main.flow > .sect .btn { min-height: 32px; } #main.flow > .sect .btns { margin: 6px 0 0; } #main.flow > .sect .banner { max-height: 70px; object-fit: cover; width: 100%; }
#main.flow > .sect .perks { grid-template-columns: 1fr; } #main.flow > .sect .xp { background: #05070d; }
#app[data-scr=net] #hud { --ac: var(--cyan); } #app[data-scr=hub] #hud { --ac: var(--yellow); } #app[data-scr=logs] #hud { --ac: var(--red); }
#app.narrow .dcb small, #app.narrow .csn { display: none; } #app.narrow .rhd .lock { font-size: 9px; padding: 3px 4px; } #app.narrow .rhd b { font-size: 12px; }
/* ----- the season pass track: a line with a node per tier, rewards with their art, one clear state each ----- */
.ps2 .plab { width: 70px; padding: 30px 0 12px; gap: 6px; font-size: 10px; letter-spacing: 1px; } .ps2 .plab span { border: 3px solid var(--line); box-shadow: 0 3px 0 #000; } .ps2 .plab span.y { border-color: #8a7420; background: #2a2210; }
.ps2 .pass { gap: 0; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: var(--yellow) #05070d; }
.ps2 .pr { position: relative; width: 112px; padding: 0 4px; gap: 6px; opacity: 1; box-sizing: border-box; }
.ps2 .pr .pn { flex: none; position: relative; height: 24px; display: grid; place-items: center; font-style: normal; } .ps2 .pr .pn::before { content: ""; position: absolute; left: -4px; right: -4px; top: 10px; height: 4px; background: #232b45; } .ps2 .pr.open .pn::before { background: var(--yellow); }
.ps2 .pr .pn u { position: relative; text-decoration: none; min-width: 22px; height: 22px; line-height: 18px; padding: 0 3px; box-sizing: border-box; text-align: center; font-family: Silkscreen, monospace; font-size: 11px; color: var(--dim); background: #0b0f1a; border: 2px solid #232b45; } .ps2 .pr.open .pn u { color: #05070d; background: var(--yellow); border-color: #05070d; box-shadow: 0 2px 0 #000; }
.ps2 .pr .pc { position: relative; flex: 1; min-height: 0; margin: 0; padding: 6px 4px 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: inherit; color: var(--ink); background: #0f1424; border: 3px solid var(--line); box-shadow: 0 3px 0 #000; overflow: hidden; cursor: default; opacity: 1; }
.ps2 .pc .pa { flex: 0 1 44px; min-height: 22px; display: grid; place-items: center; } .ps2 .pc .pa img.ico.big { width: 34px; height: 34px; } .ps2 .pc .pa .pix { width: 44px; height: 44px; object-fit: contain; image-rendering: pixelated; background: #10121c; border: 2px solid var(--line); } .ps2 .pc .pa .swatch { width: 40px; height: 28px; } .ps2 .pc .pcard { width: 40px; height: 28px; display: grid; place-items: center; font-weight: bold; color: var(--green); background: #000; border: 2px dashed var(--line); }
.ps2 .pc b { font-size: 12px; line-height: 1.1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ps2 .pc small { font-size: 9px; color: var(--dim); line-height: 1; }
.ps2 .pc em { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; display: flex; align-items: center; justify-content: center; gap: 4px; font-style: normal; font-family: Silkscreen, monospace; font-size: 9px; letter-spacing: 1px; color: var(--dim); background: #0b0f1a; border-top: 2px solid var(--line); } .ps2 .pc em svg { width: 8px; height: 9px; }
.ps2 .pc.prem { background: linear-gradient(180deg, #2a2210, #0f1424 70%); border-color: #8a7420; } .ps2 .pc.prem em { border-top-color: #8a7420; color: #c9a84a; } .ps2 .pc.prem b { color: var(--yellow); }
.ps2 .pc.can { border-color: var(--green); box-shadow: 0 3px 0 #000, 0 0 14px rgba(61,220,132,.55); cursor: pointer; } .ps2 .pc.can em { color: #05070d; background: var(--green); border-top-color: var(--green); } .ps2 .pc.can b { color: var(--ink); }
.ps2 .pc.got { border-color: #232b45; } .ps2 .pc.got .pa, .ps2 .pc.got b, .ps2 .pc.got small { opacity: .35; } .ps2 .pc.got em { color: var(--green); }
.ps2 .pr:not(.open) .pc .pa, .ps2 .pr:not(.open) .pc b { opacity: .6; } .ps2 .pc.lk .pa { opacity: .6; }
#rinfo .fl.enc em svg { width: 9px; height: 10px; color: #ff4fd8; }
/* ----- boosts: every card has the same rows at the same heights ----- */
.bcard { gap: 0; padding: 14px 12px 12px; }
.bcard > img.ico.big { margin-bottom: 8px; } .bcard h3 { height: 18px; line-height: 18px; white-space: nowrap; } .bcard .hv { height: 30px; line-height: 30px; } .bcard p { flex: 1; min-height: 0; overflow: hidden; margin-top: 2px; }
.bcard .bft { flex: none; width: 100%; display: flex; flex-direction: column; gap: 6px; margin-top: 8px; } .bcard .bft .btn { width: 100%; margin: 0; min-height: 40px; box-sizing: border-box; } .bcard .bft .btn.wide, .bcard .bft > :not(:last-child) { min-height: 34px; font-size: 10px; } .bcard .bft .done { margin: 0; min-height: 40px; display: grid; place-items: center; padding: 0; }
/* Skills: a slightly wider side panel, tighter inside, so LEARN always shows without scrolling */
#main[data-s=lab][data-sub=skills] { grid-template-columns: minmax(0, 1fr) 270px; }
#main[data-s=lab][data-sub=skills] .skpanel { padding: 8px 10px; gap: 6px; overflow: hidden; }
#main[data-s=lab][data-sub=skills] .skph { flex-wrap: nowrap; align-items: center; gap: 8px; } #main[data-s=lab][data-sub=skills] .skph img { width: 38px; height: 38px; flex: none; } #main[data-s=lab][data-sub=skills] .skph b { font-size: 13px; } #main[data-s=lab][data-sub=skills] .skph small { font-size: 9px; line-height: 1.2; }
#main[data-s=lab][data-sub=skills] .skpanel p { font-size: 11px; line-height: 1.3; } #main[data-s=lab][data-sub=skills] .skval { margin: 0; padding: 5px 8px; font-size: 11px; } #main[data-s=lab][data-sub=skills] .skval b { font-size: 14px; }
#main[data-s=lab][data-sub=skills] .skpanel .btn.wide { flex: none; min-height: 40px; }
.skpts { padding: 3px 8px; }
/* Logs: a narrow list, the tapped intrusion in the middle, rivals in their own column on the right */
.lg2 { grid-template-columns: minmax(0, 26fr) minmax(0, 74fr); }
.lgside { flex-direction: row; } .lgdet { flex: 1.9; min-width: 0; } .lgriv { flex: 1; min-width: 0; align-self: stretch; }
.lgriv .rvs { flex-direction: column; flex-wrap: nowrap; gap: 5px; overflow-y: auto; scrollbar-width: none; } .lgriv .rv { justify-content: space-between; height: 30px; padding: 0 8px; box-sizing: border-box; } .lgriv .rv span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lgcols { flex-direction: column; } .lgcols .rbody { flex: none; } .lgcols .ccard { max-width: 100%; align-self: stretch; text-align: center; }
.lgdet .rfoot { flex-wrap: wrap; } .lgdet .rfoot .btn { flex: 1 1 40%; }
/* script tiles: a roomier price row, split in two halves */
.lbgrid.sc { grid-auto-rows: 126px; } .lbgrid.sc .lt { padding: 14px 6px 6px; }
.lbgrid.sc .lt .c { height: 26px; padding: 0 6px; font-size: 11px; } .lbgrid.sc .lt .c.x, .lbgrid.sc .lt .c.busy { font-size: 9px; justify-content: center; }
.lbgrid.sc .lt .c.two { justify-content: space-around; gap: 0; padding: 0; } .lbgrid.sc .lt .c.two .h { flex: 1; height: 100%; display: flex; align-items: center; justify-content: center; gap: 4px; } .lbgrid.sc .lt .c.two .h + .h { border-left: 2px solid var(--line); flex: 1.2; }
.lbgrid.sc .lt .c.two img.ico { width: 15px; height: 15px; }
#app.narrow .lbgrid.sc .lt .c.two { font-size: 9px; } #app.narrow .lbgrid.sc .lt .c.two .h { gap: 2px; } #app.narrow .lbgrid.sc .lt .c.two img.ico { width: 12px; height: 12px; }
#app.narrow .lbgrid.sc { grid-template-columns: repeat(3, minmax(0, 1fr)); } #app.narrow .lbgrid.sc .lt .c.two { font-size: 10px; } #app.narrow .lbgrid.sc .lt .c.two img.ico { width: 14px; height: 14px; } #app.narrow .lbgrid.sc .lt .c.x { font-size: 8px; }
/* ----- replays: the grid on the left at full height, trace, what is happening and the buttons on the right; nothing scrolls ----- */
#modal .mbox:has(#repc) { display: grid; grid-template-columns: auto minmax(220px, 300px); grid-auto-rows: min-content; column-gap: 12px; row-gap: 8px; width: auto; max-width: none; max-height: 100%; overflow: hidden; padding: 10px; align-content: start; }
#modal .mbox:has(#repc) > * { grid-column: 2; margin: 0; min-width: 0; }
#modal .mbox:has(#repc) > .crt { grid-column: 1; grid-row: 1 / span 14; margin: 0 !important; width: calc(405px * 0.92 - 16px - 26px); height: calc(405px * 0.92 - 16px - 26px); box-sizing: border-box; align-self: start; }
#modal .mbox:has(#repc) > .crt canvas { width: 100%; height: 100%; display: block; }
#modal .mbox:has(#repc) h3 { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } #modal .mbox:has(#repc) #repcap { min-height: 54px !important; font-size: 11px; line-height: 1.35; }
#modal .mbox:has(#repc) .btn { margin: 0; min-height: 36px; } #modal .mbox:has(#repc) .btns { display: flex; flex-direction: column; gap: 6px; }
/* district cards: picture on the right at its true shape, the name on a plain dark plate on the left */
.dzc { background: #0b0f1a; padding-left: 14px; }
.dzc canvas { inset: auto; left: 36%; right: 0; top: 0; bottom: 0; width: 64%; height: 100%; object-fit: cover; object-position: 50% 78%; opacity: .95; }
.dzc::before { inset: auto; left: 36%; top: 0; bottom: 0; width: 22%; z-index: 1; background: linear-gradient(90deg, #0b0f1a 0, rgba(11,15,26,.75) 45%, transparent 100%); }
.dzc .dzn { max-width: 36%; } .dzc .dzn b { font-size: 16px; letter-spacing: 1px; white-space: nowrap; } .dzc .dzb { width: 30%; }
.dzc.locked canvas { opacity: .3; filter: grayscale(.6); }
#app.narrow .dzc .dzn b { font-size: 13px; letter-spacing: 0; }
/* ----- the Room: two small boxes. Top-right: revenue and what is at risk. Under the needs: heat, league, season ----- */
.rbx { position: absolute; right: 12px; top: 58px; z-index: 5; min-width: 168px; padding: 4px 8px; display: flex; flex-direction: column; background: rgba(8,10,20,.88); border: 3px solid var(--line); box-shadow: 0 4px 0 rgba(0,0,0,.6); }
.rbx button { margin: 0; padding: 0; height: 22px; display: flex; align-items: center; gap: 5px; font: inherit; font-size: 11px; color: var(--ink); background: none; border: 0; cursor: pointer; white-space: nowrap; }
.rbx button span { flex: 1; min-width: 54px; text-align: left; font-family: Silkscreen, monospace; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: var(--dim); } .rbx img.ico { width: 16px; height: 16px; } .rbx b { font-size: 12px; } .rbx b.y { color: var(--yellow); }
.rbx .risk span { color: var(--red); } .rbx .risk + .risk { margin-top: -2px; } .rbx .hot b, .rbx .hot span { color: var(--red); }
.rsb { position: absolute; left: 12px; top: 132px; z-index: 5; width: 154px; padding: 4px 8px; box-sizing: border-box; display: flex; flex-direction: column; background: rgba(8,10,20,.88); border: 3px solid var(--line); box-shadow: 0 4px 0 rgba(0,0,0,.6); }
.rsb div { height: 20px; display: flex; align-items: center; gap: 5px; font-size: 11px; white-space: nowrap; } .rsb img.ico { width: 15px; height: 15px; } .rsb span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--dim); } .rsb b { font-size: 12px; } .rsb b.r { color: var(--red); } .rsb .se span { font-size: 9px; }
.needs { position: absolute; left: 12px; }
/* ----- the Scanner: a radar console and the hosts it found ----- */
#main[data-s=net][data-sub=scan] { display: block; overflow: hidden; padding: 8px 10px 12px !important; }
.sc2 { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 12px; height: 100%; }
.scon { border-color: #1f6a4a; background: #07100e; gap: 8px; } .scon .rh { color: var(--green); align-items: center; } .scon .info { width: 22px; height: 22px; margin: 0; font: inherit; font-weight: bold; font-size: 13px; color: #05070d; background: var(--yellow); border: 2px solid #05070d; box-shadow: 0 2px 0 #000; cursor: pointer; }
.radar { flex: 1; min-height: 0; position: relative; } .radar canvas { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); height: min(100%, 170px); aspect-ratio: 1; box-sizing: border-box; image-rendering: pixelated; border: 2px solid #1f6a4a; border-radius: 50%; box-shadow: 0 0 18px rgba(61,220,132,.35), inset 0 0 18px rgba(61,220,132,.25); }
.term { flex: none; padding: 5px 8px; background: #020705; border: 2px solid #1f6a4a; font-size: 10px; line-height: 1.45; color: var(--green); } .term p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .term b { color: #c9ffe2; } .term .mu { color: #6aa88a; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.scon > .btn.wide { flex: none; margin: 0; min-height: 44px; font-family: Silkscreen, monospace; font-weight: 400; font-size: 14px; letter-spacing: 2px; }
.shits { border-color: var(--cyan); } .shits .rh { color: var(--cyan); } .shits .rbody { gap: 6px; }
.hit { flex: none; display: grid; grid-template-columns: 46px minmax(0, 1.25fr) minmax(0, 1.5fr) 84px; gap: 10px; align-items: center; padding: 6px 8px; background: #0b0f1a; border: 2px solid var(--line); border-left: 5px solid var(--cyan); }
.hit.hot { border-left-color: var(--red); } .hit.rev { border-left-color: var(--yellow); background: #1a160a; }
.hit .tgf, .hit .hic { width: 46px; height: 46px; display: grid; place-items: center; margin: 0; } .hit .tgf .pf, .hit .tgf img, .hit .tgf canvas { width: 42px; height: 42px; } .hit .hic img.ico.big { width: 34px; height: 34px; }
.hit .hn { min-width: 0; } .hit .hn b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .hit .hn small { display: block; font-size: 10px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .hit .hn em { display: block; font-style: normal; font-size: 9px; font-weight: bold; color: var(--yellow); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .hit.hot .hn em { color: var(--red); }
.hit .hs { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 11px; min-width: 0; } .hit .hs span { display: flex; align-items: center; gap: 3px; white-space: nowrap; } .hit .hs img.ico { width: 15px; height: 15px; } .hit .hs .r b { color: var(--red); }
.hit > .btn { margin: 0; min-height: 42px; flex-direction: column; gap: 0; font-family: Silkscreen, monospace; font-weight: 400; font-size: 13px; letter-spacing: 1px; } .hit > .btn small { font: 9px ui-monospace, Consolas, monospace; letter-spacing: 0; opacity: .85; }
.nohit { margin: auto; text-align: center; color: var(--dim); font-size: 12px; line-height: 1.6; } .shits .card { margin: 0; }
#app.narrow .sc2 { grid-template-columns: 200px minmax(0, 1fr); } #app.narrow .hit { grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1fr) 66px; gap: 6px; } #app.narrow .hit .hs { font-size: 10px; gap: 1px 6px; }
/* Crew chat: the same panel as the rest of Crew; the messages fill it and scroll inside */
#main.flow[data-sub=crew-chat] { grid-auto-columns: minmax(0, 1fr); }
#main.flow[data-sub=crew-chat] > .sect { display: flex; flex-direction: column; overflow: hidden; } #main.flow[data-sub=crew-chat] > .sect > * { flex: none; }
#main.flow[data-sub=crew-chat] > .sect > .card { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; }
#main.flow[data-sub=crew-chat] .chatlog { flex: 1; min-height: 0; max-height: none; height: auto; overflow-y: auto; padding: 6px 8px; background: #0b0f1a; border: 2px solid var(--line); scrollbar-width: thin; }
#main.flow[data-sub=crew-chat] .inrow { display: flex; gap: 6px; margin: 0; } #main.flow[data-sub=crew-chat] .inrow input { flex: 1; margin: 0; min-width: 0; } #main.flow[data-sub=crew-chat] .btns { margin: 0; }
/* Jobs: each job is its own row box */
#main.flow[data-sub=jobs] > .sect .kv { padding: 6px 8px; margin: 0 0 5px; background: #0b0f1a; border: 2px solid var(--line); align-items: center; } #main.flow[data-sub=jobs] > .sect .banner { margin: -8px -10px 8px; width: calc(100% + 20px); max-width: none; max-height: 64px; }
/* boosts: the art, name, value and line sit in the middle of the card; the button stays at the bottom */
.bcard > img.ico.big { margin-top: auto; width: 60px; height: 60px; margin-bottom: 10px; } .bcard p { flex: none; margin-bottom: auto; } .bcard .bft { margin-top: 10px; }
.bcard p { min-height: 2.8em; }
/* pass rewards: the art has its own fixed slot, so it never sits on the text */
.ps2 .pc { justify-content: flex-start; padding: 6px 4px 20px; gap: 3px; }
.ps2 .pc .pa { flex: 1 1 0; min-height: 0; max-height: 46px; width: 100%; overflow: hidden; } .ps2 .pc .pa .pix { width: auto; height: 100%; max-height: 42px; max-width: 100%; aspect-ratio: 1; box-sizing: border-box; } .ps2 .pc .pa img.ico.big { width: auto; height: 100%; max-height: 34px; aspect-ratio: 1; }
.ps2 .pc b, .ps2 .pc small { flex: none; }

/* ===== Crew, rebuilt: league, leaderboard, crew, datacenter, market ===== */
/* weekly league */
.lgc { display: flex; flex-direction: column; gap: 8px; }
.lgh { display: flex; align-items: center; gap: 10px; } .lgh > img.ico.big { width: 40px; height: 40px; flex: none; } .lgh > div:nth-child(2) { flex: 1; min-width: 0; } .lgh b { display: block; font-family: Silkscreen, monospace; font-weight: 400; font-size: 16px; text-transform: uppercase; color: var(--yellow); } .lgh small { display: block; font-size: 10px; color: var(--dim); }
.lgpos { flex: none; padding: 4px 10px; text-align: center; background: #3a2e10; border: 3px solid var(--yellow); box-shadow: 0 3px 0 #000; } .lgpos b { font-size: 20px; line-height: 1; color: var(--yellow); } .lgpos small { font-size: 9px; }
.lgst { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } .lgst div { padding: 6px 4px; text-align: center; background: #0b0f1a; border: 2px solid var(--line); } .lgst img.ico { width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; } .lgst b { font-size: 15px; } .lgst small { display: block; font-size: 9px; color: var(--dim); margin-top: 2px; }
.lgl { display: flex; flex-direction: column; gap: 4px; } .lgr { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 8px; background: #0b0f1a; border: 2px solid var(--line); font-size: 12px; } .lgr i { flex: none; width: 20px; height: 18px; line-height: 18px; text-align: center; font-style: normal; font-family: Silkscreen, monospace; font-size: 10px; color: #05070d; background: var(--dim); } .lgr:nth-child(1) i { background: var(--yellow); } .lgr:nth-child(2) i { background: #c8d0e0; } .lgr:nth-child(3) i { background: #c98a4a; }
.lgr span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lgr b { color: var(--yellow); } .lgr.me { border-color: var(--green); } .lgr.me span { color: var(--green); font-weight: bold; }
/* leaderboard rows */
#main.flow > .sect .card:has(.lbr) { display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; }
#main.flow > .sect .kv.lbr { display: grid; grid-template-columns: 26px 40px minmax(0, 1fr) auto; gap: 8px; align-items: center; margin: 0; padding: 3px 8px 3px 4px; min-height: 0; background: #0b0f1a; border: 2px solid var(--line); }
#main.flow > .sect .kv.lbr .lbn { width: 24px; height: 20px; line-height: 20px; text-align: center; font-family: Silkscreen, monospace; font-size: 10px; color: #05070d; background: var(--dim); } #main.flow > .sect .kv.lbr:nth-child(1) .lbn { background: var(--yellow); } #main.flow > .sect .kv.lbr:nth-child(2) .lbn { background: #c8d0e0; } #main.flow > .sect .kv.lbr:nth-child(3) .lbn { background: #c98a4a; }
#main.flow > .sect .kv.lbr .pf { width: 34px; height: 34px; } #main.flow > .sect .kv.lbr .lbh { font-size: 12px; } #main.flow > .sect .kv.lbr .lbh small { color: var(--dim); font-size: 10px; } #main.flow > .sect .kv.lbr .lbv { font-size: 13px; } #main.flow > .sect .kv.lbr .lbv img.ico { width: 16px; height: 16px; }
#main.flow > .sect .kv.lbr:has(b.g) { border-color: var(--green); background: #0f1f18; } #main.flow > .sect .bsep { text-align: center; color: var(--dim); line-height: 1; }
/* the crew: its name as a header, members as rows */
#main.flow > .sect .card > .top:first-child b { font-family: Silkscreen, monospace; font-weight: 400; font-size: 15px; text-transform: uppercase; }
#main.flow > .sect .crewlist { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 0; margin: 8px 0; align-items: stretch; }
#main.flow > .sect .crewlist > * { display: flex; align-items: center; gap: 6px; min-height: 34px; padding: 2px 8px; background: #0b0f1a; border: 2px solid var(--line); box-sizing: border-box; } #main.flow > .sect .crewlist .cm-n { border-right: 0; } #main.flow > .sect .crewlist .cm-a { border-left: 0; justify-content: flex-end; }
#main.flow > .sect .crewlist .cm-h { font-style: normal; display: flex; flex-direction: column; line-height: 1.15; } #main.flow > .sect .crewlist .cm-h small { color: var(--dim); font-size: 10px; } #main.flow > .sect .crewlist .btn { min-height: 24px; height: 24px; margin: 0; font-size: 10px; padding: 0 6px; }
#main.flow > .sect .btn.bad[data-a=crewleave] { min-height: 28px; font-size: 10px; opacity: .8; width: auto; padding: 0 12px; }
#main.flow > .sect .inrow { display: flex; gap: 6px; margin: 6px 0 0; } #main.flow > .sect .inrow input { flex: 1; min-width: 0; margin: 0; height: 34px; box-sizing: border-box; } #main.flow > .sect .inrow .btn { margin: 0; flex: none; }
/* datacenter / safehouse */
.dcc { display: flex; flex-direction: column; gap: 8px; }
.dch { display: flex; align-items: center; gap: 10px; } .dch > img.ico.big { width: 38px; height: 38px; flex: none; } .dch > div { flex: 1; min-width: 0; } .dch b { display: block; font-family: Silkscreen, monospace; font-weight: 400; font-size: 14px; text-transform: uppercase; color: var(--yellow); } .dch small { display: block; font-size: 10px; color: var(--dim); line-height: 1.3; }
.dlv { flex: none; min-width: 40px; padding: 6px 4px; text-align: center; font-family: Silkscreen, monospace; font-size: 16px; color: #05070d; background: var(--yellow); box-shadow: 0 3px 0 #000; }
.dpot { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; color: var(--dim); } .dpot b { font-size: 13px; color: var(--ink); } .dcc .xp { height: 12px; margin: 0; background: #05070d; border: 2px solid var(--line); } .dcc .xp i { display: block; height: 100%; background: var(--yellow); }
.pks { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; } .pk { display: flex; align-items: center; gap: 6px; min-height: 26px; padding: 2px 6px; background: #0b0f1a; border: 2px solid var(--line); font-size: 10px; line-height: 1.15; color: var(--dim); } .pk i { flex: none; width: 24px; text-align: center; font-style: normal; font-family: Silkscreen, monospace; font-size: 9px; color: var(--dim); }
.pk.on { border-color: var(--green); color: var(--ink); background: #0f1f18; } .pk.on i { color: var(--green); }
/* the market: a shelf of files */
#main[data-s=hub][data-sub=market] { display: block; overflow: hidden; padding: 8px 10px 12px !important; }
.mk2 { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 12px; height: 100%; }
.mkh { border-color: var(--yellow); gap: 8px; } .mkh p { margin: 0; } .mkh .btn { margin: auto 0 0; min-height: 38px; gap: 6px; font-size: 11px; } .mkh .btn img.ico { width: 18px; height: 18px; }
.mkg { min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); grid-auto-rows: 158px; gap: 8px; align-content: start; overflow-y: auto; scrollbar-width: none; padding-bottom: 6px; } .mkg::-webkit-scrollbar { display: none; }
.mk { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 6px 6px; text-align: center; background: var(--panel); border: 3px solid var(--rc); box-shadow: 0 4px 0 #000; overflow: hidden; }
.mk .mi { width: 44px; height: 44px; display: grid; place-items: center; background: #0b0f1a; border: 2px solid var(--rc); flex: none; } .mk .mi img.ico.big { width: 30px; height: 30px; }
.mk b { max-width: 100%; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mk small { font-size: 9px; } .mk .ms { width: 100%; display: flex; justify-content: space-between; gap: 4px; font-size: 9px; color: var(--dim); white-space: nowrap; overflow: hidden; } .mk .ms img.ico { width: 12px; height: 12px; vertical-align: -2px; margin-right: 2px; }
.mk .btn { width: 100%; margin: auto 0 0; min-height: 32px; gap: 4px; font-size: 12px; flex: none; } .mk .btn img.ico { width: 16px; height: 16px; } .mk.mine { opacity: .85; } .mkg .nohit { grid-column: 1 / -1; align-self: center; margin-top: 60px; }
#main.flow > .sect .crewlist { grid-template-columns: minmax(0, 1fr) auto auto; } #main.flow > .sect .crewlist > * { border-left: 0; border-right: 0; } #main.flow > .sect .crewlist > .cm-n { border-left: 2px solid var(--line); } #main.flow > .sect .crewlist > .cm-a { border-right: 2px solid var(--line); }
#main.flow > .sect .crewlist > :not(.cm-n):not(.cm-a) { font-weight: bold; gap: 4px; } #main.flow > .sect .crewlist img.ico { width: 16px; height: 16px; }
#main.flow > .sect .card.dcc { border: 0; padding: 0; } .lgr span { text-align: left; }
#main.flow[data-sub^=crew] { grid-auto-columns: minmax(300px, 1fr); }
/* Crew: one row of tabs in the top bar for every page; members on one line each */
#main.flow > .sect .crewlist .cm-a { grid-column: auto; min-height: 34px; padding: 2px 6px; flex-wrap: nowrap; justify-content: flex-end; border-bottom: 2px solid var(--line); }
#app.narrow #main.flow > .sect .crewlist .cm-a { grid-column: 1 / -1; border-left: 2px solid var(--line); margin-top: -4px; } #app.narrow #main.flow > .sect .crewlist .cm-a:empty { display: none; }
#main.flow[data-sub=crew-chat] > .sect > .card > b:first-child { font-family: Silkscreen, monospace; font-weight: 400; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--yellow); }
#main.flow[data-sub=crew-chat] .chatlog p { margin: 0 0 4px; } #main.flow[data-sub=crew-chat] > .sect > .card > .btns .btn { min-height: 30px; font-size: 11px; }
#app.narrow #hud .shead.htabs button { padding: 0 5px; font-size: 9px; } #app.narrow.subscr #hud .shead.htabs button { padding: 0 4px; font-size: 8px; letter-spacing: 0; } /* five Portuguese tab names next to three counters at 667 wide */
/* Invite: its own button beside the tabs, saying what it pays */
#hud > .rextra { flex: none; height: 38px; margin: 0 0 0 10px; padding: 0 10px 0 6px; display: flex; align-items: center; gap: 6px; font: inherit; color: #05070d; background: var(--yellow); border: 3px solid #05070d; box-shadow: 0 4px 0 #000, 0 0 12px rgba(255,210,63,.4); cursor: pointer; pointer-events: auto; white-space: nowrap; }
#hud > .rextra img.ico { width: 22px; height: 22px; } #hud > .rextra span { font-family: Silkscreen, monospace; font-size: 12px; letter-spacing: 1px; line-height: 1; } #hud > .rextra small { font-size: 9px; font-weight: bold; line-height: 1; opacity: .8; }
#hud > .rextra { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 6px; align-content: center; } #hud > .rextra img.ico { grid-row: 1 / span 2; }
#app.subscr #hud .shead.htabs { flex: 0 1 auto; }
#app[data-scr=hub] #hud .stats .bwhud, #app[data-scr=hub] #hud .stats [data-a=ddinfo], #app[data-scr=hub] #hud .stats span:not([id]):not([data-a]) { display: none; }
#app.narrow #hud > .rextra { margin-left: 6px; padding: 0 6px 0 4px; } /* phones keep "earn Chips" (no narrow rule hides it): it is why players invite (owner, 1 Dec 2026) */
/* crew members: name and trophies on one line, the buttons on a line under them, at every width */
#main.flow > .sect .crewlist { grid-template-columns: minmax(0, 1fr) auto; row-gap: 0; }
#main.flow > .sect .crewlist > * { margin-top: 6px; border: 2px solid var(--line); border-right: 0; } #main.flow > .sect .crewlist > .cm-n { border-right: 0; } #main.flow > .sect .crewlist > :not(.cm-n):not(.cm-a) { border-left: 0; border-right: 2px solid var(--line); }
#main.flow > .sect .crewlist > .cm-a, #app.narrow #main.flow > .sect .crewlist > .cm-a { grid-column: 1 / -1; margin-top: 0; border: 2px solid var(--line); border-top: 0; justify-content: flex-end; flex-wrap: nowrap; min-height: 0; padding: 4px 6px; background: #080b14; }
#main.flow > .sect .crewlist > .cm-a:empty { display: none; }
/* ----- Place a node: tiles on the left, the tapped node explained on the right ----- */
#modal .mbox:has(.plc) { width: auto; max-width: 760px; border-color: var(--cyan); padding: 10px 12px; overflow: hidden; }
.plc h3 { display: flex; justify-content: space-between; align-items: center; margin: 0 0 8px; } .plc h3 small { display: flex; align-items: center; gap: 4px; font: 11px ui-monospace, Consolas, monospace; color: var(--dim); } .plc h3 small img.ico { width: 16px; height: 16px; }
.plcb { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 12px; }
.dgrid.b5 { grid-template-columns: repeat(5, minmax(0, 1fr)); align-content: start; } .plc .dt { height: 68px; font-size: 8px; } .plc .dt img.ico.big { width: 26px; height: 26px; } .plc .dt.sel { border-color: #fff; box-shadow: 0 0 12px var(--cyan); }
.pldet { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; background: #0b0f1a; border: 3px solid var(--cyan); box-shadow: 0 4px 0 #000; } .pldet .rhd > img.ico { width: 40px; height: 40px; } .pldet .rhd small { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 3px; } .pldet .rhd small .lock { margin: 0; padding: 1px 5px; font-size: 9px; text-transform: uppercase; box-shadow: none; }
.pldet p { flex: 1; margin: 0; font-size: 11px; line-height: 1.4; color: var(--ink); } .pldet .btn { margin: 0; min-height: 34px; } .pldet .btn.go { min-height: 42px; font-family: Silkscreen, monospace; font-weight: 400; font-size: 15px; letter-spacing: 2px; }
.pllk { padding: 10px 0; text-align: center; font-family: Silkscreen, monospace; font-size: 10px; color: var(--dim); border: 2px solid var(--line); }
#app.narrow ~ #modal .plcb, .plcb.nr { grid-template-columns: minmax(0, 1fr) 210px; }
/* ----- Heist and War: icons and numbers first ----- */
#main.flow > .sect .card.ops { display: flex; flex-direction: column; gap: 7px; padding: 0 !important; border: 0 !important; } #main.flow > .sect .card.ops .banner { margin: 0; max-height: 78px; border: 2px solid var(--line); box-sizing: border-box; } #main.flow > .sect .card.ops p { margin: 0; }
.oph { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; } .oph b { font-family: Silkscreen, monospace; font-weight: 400; font-size: 14px; text-transform: uppercase; color: var(--yellow); } .card.alert .oph b { color: var(--red); } .oph small { font-size: 10px; color: var(--dim); white-space: nowrap; }
.oprw { display: flex; align-items: center; gap: 10px; min-height: 30px; padding: 2px 8px; background: #0b0f1a; border: 2px solid var(--line); font-size: 12px; } .oprw .lbl { flex: 1; min-width: 0; font-size: 10px; color: var(--dim); } .oprw span { display: flex; align-items: center; gap: 4px; white-space: nowrap; } .oprw img.ico { width: 18px; height: 18px; } .oprw b { font-size: 14px; color: var(--yellow); } .oprw.y { border-color: var(--yellow); }
.opst { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } .opst div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 2px; background: #0b0f1a; border: 2px solid var(--line); text-align: center; } .opst b { color: var(--yellow); font-size: 13px; line-height: 1; } .opst img.ico { width: 22px; height: 22px; } .opst small { font-size: 9px; color: var(--dim); line-height: 1.1; }
.card.ops .btn.go { margin: 0; min-height: 44px; flex-direction: column; gap: 1px; font-family: Silkscreen, monospace; font-weight: 400; font-size: 14px; letter-spacing: 1px; } .card.ops .btn.go small { font: 9px ui-monospace, Consolas, monospace; letter-spacing: 0; opacity: .85; }
.opdone { padding: 10px 0; text-align: center; font-family: Silkscreen, monospace; font-size: 11px; color: var(--green); border: 2px solid var(--green); }
/* Place a node: one fixed size, whatever is tapped */
#modal .mbox:has(.plc) { width: 760px; max-width: 100%; box-sizing: border-box; }
.plcb { height: 292px; } .plc .dgrid.b5 { height: 100%; grid-template-rows: repeat(3, minmax(0, 1fr)); align-content: stretch; } .plc .dt { height: auto; font-size: 9px; gap: 3px; } .plc .dt img.ico.big { width: 30px; height: 30px; }
.pldet { height: 100%; box-sizing: border-box; overflow: hidden; } .pldet p { flex: 1; min-height: 0; overflow: hidden; } .pldet .rhd, .pldet .rq, .pldet .btn, .pldet .pllk { flex: none; }
/* a locked tile says so on the tile: a padlock over the art and a red band with the level that opens it */
.dt.lk { opacity: 1; border-color: #5a2a30; background: #0d0a10; cursor: default; }
.dt.lk img.ico.big { opacity: .22; filter: grayscale(1); } .dt.lk > span { color: var(--dim); }
.dt.lk::after { content: ""; position: absolute; left: 50%; top: 18%; width: 20px; height: 22px; margin-left: -10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 10' shape-rendering='crispEdges'%3E%3Cpath fill='%23ff8a8a' d='M2 4V2h1V1h3v1h1v2h1v6H1V4h1zm1 0h3V2H3v2z'/%3E%3C/svg%3E") center / contain no-repeat; image-rendering: pixelated; }
.dt.lk em { position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 0; font-family: Silkscreen, monospace; font-size: 8px; letter-spacing: 0; color: #ffb0b0; background: #4a161c; border-top: 2px solid #5a2a30; } .dt.lk u { opacity: .4; }
.dt.lk > span { margin-bottom: 14px; }
.pldet p { font-size: 10.5px; line-height: 1.35; }
.dcpop .dt.lk::after { top: 6%; width: 16px; height: 18px; margin-left: -8px; } .dcpop .dt.lk > span { margin-bottom: 12px; }

/* "NEW HACKING TOOLS!": a tool, an arrow, the lock it opens, all in the lock's colour */
.newtools { text-align: center; }
.newtools h2 { margin: 0; font-size: 26px; letter-spacing: 2px; color: var(--yellow); text-shadow: 0 3px 0 #000; }
.newtools > p { margin: 4px 0 10px; font-size: 14px; color: var(--ink); }
.newtools .ntl { display: flex; gap: 8px; justify-content: center; margin-bottom: 10px; }
.newtools .nt { flex: 1; max-width: 170px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 6px 10px; background: #0b0f1a; border: 3px solid var(--lc); box-shadow: 0 4px 0 #000; }
.newtools .ti { display: flex; flex-direction: column; align-items: center; gap: 2px; } .newtools .ti img.ico { width: 48px; height: 48px; filter: drop-shadow(0 0 6px var(--lc)); } .newtools .ti b { font-size: 13px; color: var(--lc); text-transform: uppercase; }
.newtools .ar { width: 0; height: 0; border-left: 11px solid transparent; border-right: 11px solid transparent; border-top: 13px solid var(--lc); }
.newtools canvas.ntn { width: 72px; height: 72px; image-rendering: pixelated; } .newtools .nt small { font-size: 11px; font-weight: bold; color: var(--lc); text-transform: uppercase; }
@media (max-height: 380px) { .newtools h2 { font-size: 21px; } .newtools .ti img.ico { width: 32px; height: 32px; } .newtools canvas.ntn { width: 54px; height: 54px; } .newtools .nt { gap: 3px; padding: 5px 6px 6px; } .newtools > p { margin: 2px 0 6px; } }

/* every BACK button: solid yellow, never missed */
.hback, .btn.backb { color: #05070d; background: var(--yellow); border: 3px solid #05070d; box-shadow: 0 0 0 2px var(--yellow), 0 4px 0 #000; }
.hback span { color: #05070d; }
.btn.backb { font-family: Silkscreen, monospace; font-weight: 400; letter-spacing: 1px; text-transform: uppercase; }
/* the file window */
#modal .mbox:has(.fpop) { border-color: var(--rc, var(--cyan)); max-width: 520px; }
.fpop { --rc: var(--cyan); display: flex; flex-direction: column; gap: 8px; }
.fpop .fh { display: flex; align-items: center; gap: 10px; } .fpop .fh img.ico { width: 40px; height: 40px; flex: none; }
.fpop .fn { min-width: 0; } .fpop .fn b { display: block; font-family: Silkscreen, monospace; font-weight: 400; font-size: 16px; letter-spacing: 1px; color: var(--rc); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .fpop .fn small { color: var(--dim); font-size: 11px; }
.fpop .fst { display: flex; gap: 6px; } .fpop .fst > div { flex: 1; padding: 5px 8px; background: #0b0f1a; border: 2px solid var(--line); } .fpop .fst small { display: block; font-size: 10px; color: var(--dim); text-transform: uppercase; } .fpop .fst b { font-size: 14px; color: var(--ink); } .fpop .fst b.y { color: var(--yellow); } .fpop .fst em { font-style: normal; font-size: 10px; color: var(--dim); margin-left: 4px; } .fpop .fst b + em { display: block; margin-left: 0; } /* "paused" / "Server full" on its own line under the income */
.fpop p { margin: 0; } .fpop .card { margin: 0; }
.fpop .fl2 { font-size: 10px; color: var(--dim); text-transform: uppercase; letter-spacing: 1px; margin-bottom: -4px; }
.fpop .fmv { display: flex; flex-wrap: wrap; gap: 6px; }
.fpop .mv { flex: 1; min-width: 120px; display: flex; align-items: center; gap: 6px; padding: 5px 8px; font: inherit; text-align: left; color: var(--ink); background: #10131d; border: 2px solid #2c3552; cursor: pointer; } .fpop .mv b { font-size: 12px; } .fpop .mv small { margin-left: auto; font-size: 10px; color: var(--dim); text-align: right; }
.fpop .fbt { display: flex; gap: 8px; flex-wrap: wrap; } .fpop .fbt .btn { flex: 1; margin: 0; min-height: 44px; } .fpop .fbt .btn.bad { flex: 2; min-width: 220px; } .fpop .fbt .btn.backb { flex: none; min-width: 96px; }

/* the node upgrade button says UPGRADE, with the price and time under it */
.rfoot .btn.rup { flex-direction: column; gap: 1px; } .rfoot .btn.rup b { font: inherit; font-size: 16px; letter-spacing: 2px; } .rfoot .btn.rup small { font: bold 11px ui-monospace, Consolas, monospace; letter-spacing: 0; text-transform: none; opacity: .9; }

/* the guide's ring: no dark overlay any more, so the ring itself must be impossible to miss */
#coach .cring { border: 3px solid var(--yellow); box-shadow: 0 0 0 2px #05070d, 0 0 0 5px rgba(255,210,63,.55), 0 0 26px 8px var(--yellow), inset 0 0 14px rgba(255,210,63,.45); animation: cglow 0.8s ease-in-out infinite alternate; }
@keyframes cglow { from { box-shadow: 0 0 0 2px #05070d, 0 0 0 4px rgba(255,210,63,.35), 0 0 14px 4px var(--yellow), inset 0 0 8px rgba(255,210,63,.25); } to { box-shadow: 0 0 0 2px #05070d, 0 0 0 8px rgba(255,210,63,.6), 0 0 38px 14px var(--yellow), inset 0 0 18px rgba(255,210,63,.55); } }
@media (prefers-reduced-motion: reduce) { #coach .cring { animation: none; } }

/* the second ring only marks what the guide talks about: a plain outline, no glow and no pulse. Only the thing to tap pulses */
#coach .cring.two { border: 2px solid var(--yellow); box-shadow: 0 0 0 2px #05070d; animation: none; }

/* level-up burst on a wide screen: always from the middle of the screen, the window stays centred (even while the guide points at it), the shockwaves are wide */
.lvfx { position: absolute; }
#modal.coached:has(.mbox.lvbox) { align-items: center; padding-bottom: 8px !important; }
.lvfx .lvring { width: 72px; height: 40px; margin: -20px 0 0 -36px; }

/* login, sign-up and hacker setup: two columns in the middle of the stage, never scrolled */
#main:has(.create.two) { position: static; overflow: hidden; }
.create.two { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; gap: 26px; padding: 8px 20px; text-align: center; overflow: hidden; }
.create.two .cl { flex: 0 1 270px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.create.two .cl .logo { width: 100%; max-width: 250px; margin: 0; } .create.two .cl .tag { margin: 0; font-size: 11px; } .create.two .cl p { margin: 0; }
.create.two .cfoot { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; font-size: 11px; } .create.two .cfoot .btn { margin: 0; min-height: 30px; }
.create.two .copy { margin: 0; font-size: 10px; }
.create.two .cr { flex: 0 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; background: var(--panel); border: 3px solid var(--cyan); box-shadow: 0 5px 0 #000; }
.create.two .cr h2 { margin: 0 0 2px; } .create.two .cr p { margin: 0; }
.create.two .cr input { margin: 0; padding: 7px 8px; font-size: 15px; }
.create.two .cr .btn { margin: 0; min-height: 38px; } .create.two .cr .btn.go { min-height: 42px; font-family: Silkscreen, monospace; font-weight: 400; font-size: 15px; letter-spacing: 2px; }
.create.two .cr .btn.gbtn { min-height: 40px; margin: 2px 2px 4px; font-size: 14px; } .create.two .cr .or { margin: 0; }
.create.two .c2 { display: flex; gap: 6px; } .create.two .c2 .btn { flex: 1; font-size: 11px; padding: 4px 6px; }
.create.two .cr .opt { margin: 0; padding: 6px 10px; cursor: pointer; } .create.two .cr .opt b { font-size: 14px; } .create.two .cr .opt.on { background: #10241a; }
.create.two.setup .cl h2 { margin: 0; } .create.two.setup img.pix { width: 120px; height: 120px; margin: 4px 0; } .create.two.setup .sw { margin: 2px 0 0; gap: 6px; } .create.two.setup .sw button { width: 32px; height: 32px; cursor: pointer; }
.create.two .cl .tag { display: none; } .create.two .cl .logo { max-width: 205px; }
.create.two .sitedesc { font-size: 10px; line-height: 1.35; color: var(--dim); margin: 0; flex-basis: 100%; } .create.two .sitelinks { font-size: 10px; margin: 0; flex-basis: 100%; }
/* the trace bar blinks hard from 80%: get out now */
#run .trace.blink { animation: traceblink 0.36s steps(2) infinite; }
@keyframes traceblink { 0% { box-shadow: 0 0 0 3px #fff, 0 0 26px 8px rgba(255,59,74,.95); filter: brightness(1.7); } 100% { box-shadow: 0 4px 0 #000; filter: brightness(.75); } }
@media (prefers-reduced-motion: reduce) { #run .trace.blink { animation: none; box-shadow: 0 0 0 3px #fff; } }
.create.two .cr input[type=email] { font-size: 12px; padding: 9px 6px; }
/* login and sign-up, second pass: the logo alone on the left, the panel on the right, one thin line of links along the bottom */
.create.two { padding-bottom: 34px; gap: 34px; }
.create.two .cl .logo { max-width: 290px; } .create.two .cl { flex-basis: 300px; gap: 2px; }
.create.two .ctag { margin: 0; font-size: 11px; color: var(--dim); letter-spacing: .5px; }
.create.two .cbot { position: absolute; left: 0; right: 0; bottom: 7px; display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 10px; white-space: nowrap; }
.create.two .cbot .sitedesc { display: none; } .create.two .cbot p { margin: 0; flex-basis: auto; } .create.two .cbot .btn { margin: 0; min-height: 22px; padding: 2px 8px; font-size: 10px; } .create.two .cbot a { color: var(--dim); } .create.two .cbot .copy { color: #4a5578; }
.create.two .cr { flex-basis: 320px; padding: 16px 16px 18px; gap: 8px; box-shadow: 0 6px 0 #000, 0 0 28px rgba(53,224,255,.18); }
.create.two .cr h2 { font-size: 16px; letter-spacing: 3px; margin-bottom: 4px; }
.create.two .cr input { padding: 9px 8px; }
.create.two .ctag { white-space: nowrap; font-size: 10px; }
.create.two .cr .btn:not(.go):not(.gbtn) { font: bold 12px ui-monospace, Consolas, monospace; letter-spacing: 0; text-transform: none; white-space: nowrap; min-height: 34px; } .create.two .c2 .btn:not(.go) { font-size: 11px; padding: 4px 2px; }
.create.two .ctag { font-size: 9px; letter-spacing: 0; }
.create.two .ctag { white-space: normal; max-width: 240px; font-size: 10px; line-height: 1.4; text-align: center; margin-top: 2px; }
/* the level-up shake must not touch the stage's own transform (its scale): it moves with the translate property instead. Before, the whole game shrank to the top left for half a second */
@keyframes lvshake { 0%, 100% { translate: 0 0; } 20% { translate: -5px 3px; } 40% { translate: 5px -3px; } 60% { translate: -3px -2px; } 80% { translate: 3px 2px; } }
/* the trace text sits on its own dark plate, so it reads over the red bar at any level and while the bar blinks */
#run .trace span { inset: auto; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 2px 12px; background: rgba(5,7,13,.88); color: #fff; white-space: nowrap; text-shadow: none; line-height: 1.2; }
#run .trace.frozen span { color: var(--cyan); }
/* the blink is on the frame and the glow, never on the text */
@keyframes traceblink { 0% { border-color: #fff; box-shadow: 0 0 0 3px #fff, 0 0 26px 8px rgba(255,59,74,.95); } 100% { border-color: var(--red); box-shadow: 0 4px 0 #000; } }
/* ---------- the trace meter (hack screen): a label, ten segments that fill, and the number in its own box. Amber, then orange, then red ---------- */
#run .trace2 { grid-area: trace; --tc: #ffd23f; display: flex; align-items: stretch; height: 34px; background: #0b0f1a; border: 3px solid #2c3552; box-shadow: 0 4px 0 #000; }
#run .trace2.warm { --tc: #ff9f43; } #run .trace2.hot { --tc: #ff3b4a; } #run .trace2.frozen { --tc: var(--cyan); }
.trace2 .tl { flex: none; display: flex; align-items: center; padding: 0 12px; font: 400 13px Silkscreen, monospace; letter-spacing: 2px; color: var(--tc); background: #141a2c; border-right: 3px solid #2c3552; }
.trace2 .tm { flex: 1; min-width: 0; position: relative; margin: 6px 10px; background: #1b2136; overflow: hidden; }
.trace2 .tm i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--tc); transition: width .12s linear, background .3s; }
.trace2 .tm::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(90deg, transparent 0, transparent calc(10% - 3px), #0b0f1a calc(10% - 3px), #0b0f1a 10%); }
.trace2 .tice { flex: none; align-self: center; margin-right: 10px; padding: 3px 7px; font: bold 10px ui-monospace, Consolas, monospace; font-style: normal; letter-spacing: 1px; color: #05070d; background: #ff3b4a; box-shadow: 0 2px 0 #000; } .trace2 .tice[hidden] { display: none; }
.trace2 .tp { flex: none; width: 74px; display: flex; align-items: center; justify-content: center; font: 400 19px Silkscreen, monospace; color: #fff; background: #141a2c; border-left: 3px solid #2c3552; }
#run .trace2.hot { border-color: #7a1f29; } #run .trace2.hot .tp { color: #ff3b4a; }
/* from 80%: the whole frame and the number flash */
#run .trace2.blink { animation: t2blink .4s steps(2) infinite; } #run .trace2.blink .tp { animation: t2num .4s steps(2) infinite; }
@keyframes t2blink { 0% { border-color: #ff3b4a; box-shadow: 0 0 0 2px #ff3b4a, 0 0 22px 6px rgba(255,59,74,.8); } 100% { border-color: #7a1f29; box-shadow: 0 4px 0 #000; } }
@keyframes t2num { 0% { background: #ff3b4a; color: #fff; } 100% { background: #141a2c; color: #ff3b4a; } }
/* an awake Sentry: a red edge that flares with each siren blast */
#run .trace2.sentry:not(.blink) { border-color: #a32431; } #run .trace2.sentry.beep:not(.blink) { box-shadow: 0 0 0 2px #ff3b4a, 0 0 20px 5px rgba(255,59,74,.7); }
@media (prefers-reduced-motion: reduce) { #run .trace2.blink, #run .trace2.blink .tp { animation: none; } }
/* the trace meter is one flat bar: no separations */
.trace2 .tm::after { display: none; }
/* the fill itself is striped and moving, as before */
.trace2 .tm i { background: linear-gradient(45deg, rgba(5,7,13,.32) 25%, transparent 25%, transparent 50%, rgba(5,7,13,.32) 50%, rgba(5,7,13,.32) 75%, transparent 75%) var(--tc); background-size: 12px 12px; animation: inststripe .6s linear infinite; box-shadow: 0 0 10px var(--tc); }
#run .trace2.frozen .tm i { animation: none; }
@media (prefers-reduced-motion: reduce) { .trace2 .tm i { animation: none; } }

/* ---------- Account and Ranks windows, new style: wide, two columns or a grid, never scrolled ---------- */
#modal .mbox:has(.acc2), #modal .mbox:has(.rk2) { max-width: 690px; padding: 12px 14px; }
.acc2 { display: flex; gap: 14px; align-items: stretch; }
.acc2 .al, .acc2 .ar { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.acc2 .ar { padding-left: 14px; border-left: 3px solid var(--line); } .acc2 .ar h3 { margin: 0; } .acc2 .ar > .backb { margin: auto 0 0; min-height: 40px; } .acc2 p { margin: 0; }
.acc2 .who { display: flex; align-items: center; gap: 10px; } .acc2 .who img, .acc2 .who canvas { width: 58px; height: 58px; flex: none; image-rendering: pixelated; background: #221d36; border: 3px solid var(--line); box-shadow: 0 3px 0 #000; }
.acc2 .who b { font-family: Silkscreen, monospace; font-weight: 400; font-size: 17px; letter-spacing: 1px; } .acc2 .who small { display: block; color: var(--dim); font-size: 11px; } .acc2 .who small.ttl { color: var(--yellow); }
.acc2 .who .pen { display: inline-flex; vertical-align: -2px; margin-left: 6px; width: 20px; height: 20px; padding: 3px; background: var(--panel2); border: 1px solid var(--line); color: var(--cyan); cursor: pointer; } .acc2 .who .pen svg { display: block; width: 100%; height: 100%; }
.acc2 .rkb { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 10px; font: inherit; text-align: left; color: var(--ink); background: #0b0f1a; border: 2px solid var(--line); box-shadow: 0 3px 0 #000; cursor: pointer; }
.acc2 .rkb img.ico { width: 34px; height: 34px; flex: none; } .acc2 .rkb > div { flex: 1; min-width: 0; } .acc2 .rkb b { display: block; font-size: 14px; } .acc2 .rkb small { display: block; color: var(--dim); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .acc2 .rkb .xp { height: 5px; margin-top: 3px; } .acc2 .rkb em { font-style: normal; font-size: 20px; color: var(--cyan); }
.acc2 .ast { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .acc2 .ast.one { grid-template-columns: 1fr; }
.acc2 .ast > div { padding: 4px 8px; background: #0b0f1a; border: 2px solid var(--line); min-width: 0; } .acc2 .ast small { display: block; font-size: 9px; color: var(--dim); text-transform: uppercase; letter-spacing: .5px; } .acc2 .ast b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .acc2 .ast b span { font-size: 10px; }
.acc2 .ttls { margin: 0; }
.acc2 .abt { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .acc2 .abt .btn, .acc2 .ar > .btn.full { margin: 0; min-height: 34px; padding: 4px 6px; font-size: 11px; } .acc2 .abt .btn.full { grid-column: 1 / -1; font-size: 12px; }
.acc2 .card { margin: 0; }
.rk2 { display: flex; flex-direction: column; gap: 8px; }
.rk2 .hd { display: flex; align-items: center; gap: 14px; } .rk2 .hd h3 { margin: 0; flex: none; } .rk2 .hd p { margin: 0; font-size: 10px; line-height: 1.35; color: var(--dim); }
.rk2 .rkg { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.rk2 .rt { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 4px 6px; background: #0b0f1a; border: 2px solid var(--line); } .rk2 .rt img.ico { width: 24px; height: 24px; flex: none; } .rk2 .rt > div { min-width: 0; }
.rk2 .rt b { display: block; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rk2 .rt small { display: block; font-size: 9px; color: var(--dim); white-space: nowrap; }
.rk2 .rt.lk { opacity: .5; } .rk2 .rt.me { border-color: var(--green); background: #10241a; box-shadow: 0 0 12px rgba(61,220,132,.35); } .rk2 .rt.me small { color: var(--green); }
.rk2 .backb { margin: 0; min-height: 38px; }
/* ranks read left to right, first to last: each tile carries its number; the ranks already earned are bright, the ones ahead dim */
.rk2 .rt { position: relative; padding-left: 20px; } .rk2 .rt > i { position: absolute; left: 0; top: 0; bottom: 0; width: 16px; display: grid; place-items: center; font: bold 9px ui-monospace, Consolas, monospace; font-style: normal; color: var(--dim); background: #141a2c; border-right: 2px solid var(--line); }
.rk2 .rt.me > i { color: #05070d; background: var(--green); border-color: var(--green); }
.rk2 .rt { gap: 5px; padding-right: 3px; } .rk2 .rt img.ico { width: 20px; height: 20px; } .rk2 .rt b { font-size: 10px; letter-spacing: -.2px; text-overflow: clip; }
/* ranks in columns: each column is one family of four (grey, green, cyan, purple, gold), read top to bottom, then the next column */
.rk2 .rkg { grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(4, auto); grid-auto-flow: column; }

/* the needs window: a line under each bar says what the need does */
.hbar { grid-template-rows: auto auto; } .hbar small { grid-column: 2 / -1; margin-top: -3px; font-size: 10px; font-weight: normal; color: var(--dim); }
/* the Shop button breathes, very softly, always */
#nav [data-s=shop] { animation: shopbreath 2.4s ease-in-out infinite; }
@keyframes shopbreath { 0%, 100% { box-shadow: 0 3px 0 #000; border-color: var(--line); } 50% { box-shadow: 0 3px 0 #000, 0 0 10px 1px rgba(255,210,63,.45); border-color: #8a7430; } }
@media (prefers-reduced-motion: reduce) { #nav [data-s=shop] { animation: none; } }

/* the needs window: the line saying what a need does sits under its bar */
.hbar { flex-wrap: wrap; } .hbar small { flex-basis: 100%; grid-column: 1 / -1; margin: -2px 0 0 28px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#carem .hbar { flex-wrap: wrap; } #carem .hbar small { flex-basis: 100%; margin: -4px 0 0 28px; font-size: 10px; font-weight: normal; color: var(--dim); }

/* ---------- live defence window, new style: the rig on the left, the fight on the right, the intruder on camera ---------- */
#modal .mbox:has(.live2) { max-width: 700px; padding: 10px 12px; border-color: var(--red); box-shadow: 0 6px 0 #000, 0 0 30px rgba(255,59,74,.3); }
.live2 { display: flex; gap: 12px; align-items: stretch; }
.live2 .lmap { flex: none; width: 45%; max-width: 300px; } .live2 .lmap .crt { margin: 0; } .live2 .lmap canvas { display: block; width: 100%; height: auto; image-rendering: pixelated; cursor: pointer; }
.live2 .lside { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.live2 .lcam { display: flex; align-items: center; gap: 10px; }
.live2 .cam { position: relative; flex: none; width: 66px; height: 66px; background: #1a0d14; border: 3px solid var(--red); box-shadow: 0 3px 0 #000; overflow: hidden; }
.live2 .cam img, .live2 .cam canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.live2 .cam::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.28) 0 1px, transparent 1px 3px); }
.live2 .cam .rec { position: absolute; left: 3px; top: 2px; z-index: 1; font: bold 8px ui-monospace, Consolas, monospace; font-style: normal; color: #ff3b4a; text-shadow: 1px 1px 0 #000; animation: camrec 1s steps(2) infinite; }
.live2 .cam .keys { position: absolute; left: 0; right: 0; bottom: 0; height: 7px; z-index: 1; background: repeating-linear-gradient(90deg, #35e0ff 0 3px, transparent 3px 6px); background-size: 12px 100%; opacity: .85; animation: camkeys .3s steps(2) infinite; }
@keyframes camrec { 50% { opacity: .2; } } @keyframes camkeys { 100% { background-position: 6px 0; } }
.live2 .who { min-width: 0; } .live2 .who small { display: block; font-size: 9px; letter-spacing: 1px; color: var(--red); text-transform: uppercase; } .live2 .who b { display: block; font: 400 17px Silkscreen, monospace; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live2 #livebox { display: flex; flex-direction: column; gap: 5px; } .live2 #livebox p { margin: 0; } .live2 .lst { font-size: 10px; }
.live2 .ltr { display: flex; align-items: stretch; height: 28px; background: #0b0f1a; border: 3px solid #7a1f29; }
.live2 .ltr b { flex: none; display: flex; align-items: center; padding: 0 8px; font: 400 10px Silkscreen, monospace; letter-spacing: 1px; color: #ff3b4a; background: #141a2c; border-right: 3px solid #2c3552; }
.live2 .ltr .tm { flex: 1; position: relative; margin: 5px 8px; background: #1b2136; overflow: hidden; } .live2 .ltr .tm i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(45deg, rgba(5,7,13,.32) 25%, transparent 25%, transparent 50%, rgba(5,7,13,.32) 50%, rgba(5,7,13,.32) 75%, transparent 75%) #3ddc84; background-size: 12px 12px; transition: width .25s linear; }
.live2 .ltr em { flex: none; width: 54px; display: flex; align-items: center; justify-content: center; font: 400 15px Silkscreen, monospace; font-style: normal; color: #fff; background: #141a2c; border-left: 3px solid #2c3552; }
.live2 #livebox .btn { margin: 0; min-height: 38px; flex-direction: column; gap: 0; padding: 3px 6px; } .live2 #livebox .btn small { font: 10px ui-monospace, Consolas, monospace; letter-spacing: 0; text-transform: none; opacity: .85; }
.live2 #livebox .opt { margin: 0; padding: 5px 8px; }
.live2 .lside > .backb { margin: auto 0 0; min-height: 32px; font-size: 10px; }
@media (prefers-reduced-motion: reduce) { .live2 .cam .rec, .live2 .cam .keys { animation: none; } }
#carem .track i { transition: width .8s ease-out; }

/* ---------- setup: the skin strip. Starter looks first, every other skin after them, locked but in plain sight ---------- */
.create.two.setup .cl { flex-basis: 300px; gap: 5px; }
.create.two.setup .skbig { width: 104px; height: 104px; background: #221d36; border: 3px solid var(--rc); box-shadow: 0 4px 0 #000, 0 0 18px color-mix(in srgb, var(--rc) 45%, transparent); }
.create.two.setup .skbig img, .create.two.setup .skbig canvas { display: block; width: 100%; height: 100%; margin: 0; border: 0; image-rendering: pixelated; }
.create.two.setup .skname { margin: 0; line-height: 1.25; } .create.two.setup .skname b { display: block; font: 400 15px Silkscreen, monospace; letter-spacing: 1px; color: var(--ink); } .create.two.setup .skname small { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 10px; color: var(--dim); }
.create.two.setup .skstrip { display: flex; gap: 6px; width: 100%; padding: 4px 2px 8px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: #3a4a78 #0b0f1a; }
.create.two.setup .skt { position: relative; flex: none; width: 50px; height: 50px; padding: 0; background: #221d36; border: 2px solid #2c3552; box-shadow: 0 3px 0 #000; cursor: pointer; scroll-snap-align: start; }
.create.two.setup .skt img, .create.two.setup .skt canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.create.two.setup .skt.on { border-color: #fff; box-shadow: 0 0 0 2px #fff, 0 3px 0 #000; }
.create.two.setup .skt.lk img, .create.two.setup .skt.lk canvas { filter: brightness(.7) saturate(.8); } .create.two.setup .skt.lk { border-color: color-mix(in srgb, var(--rc) 60%, #2c3552); }
.create.two.setup .skt.lk i { position: absolute; right: 1px; bottom: 1px; width: 15px; height: 15px; display: grid; place-items: center; color: #ffd23f; background: rgba(5,7,13,.9); border: 1px solid #ffd23f; }
.create.two.setup .skt.lk.on { border-color: var(--rc); box-shadow: 0 0 0 2px var(--rc), 0 3px 0 #000; } .create.two.setup .skt.lk.on img, .create.two.setup .skt.lk.on canvas { filter: none; }
.create.two.setup .skhint { margin: 0; font-size: 10px; color: var(--dim); }

/* ---------- NEW HACKER SETUP: two full screens. A big preview on the left, a wall of skins (or the three traits) on the right ---------- */
#main:has(.su) { position: static; overflow: hidden; }
.su { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; gap: 8px; padding: 10px 14px 12px; background: radial-gradient(120% 90% at 20% 30%, #131a33 0%, #0a0d18 60%); }
.su .suh { flex: none; display: flex; align-items: baseline; justify-content: space-between; border-bottom: 3px solid #2c3552; padding-bottom: 6px; }
.su .suh h2 { margin: 0; font: 400 20px Silkscreen, monospace; letter-spacing: 3px; color: var(--cyan); text-shadow: 0 3px 0 #000; } .su .suh span { font: 400 12px Silkscreen, monospace; color: var(--dim); }
.su .sub { flex: 1; min-height: 0; display: flex; gap: 14px; }
.su .sul { flex: none; width: 206px; display: flex; flex-direction: column; align-items: center; gap: 6px; } .su .sub > .btn { display: none; }
.su .sub { position: relative; } .su .sul { padding-bottom: 50px; } .su .sub > .btn { display: flex; position: absolute; left: 0; bottom: 0; width: 206px; margin: 0; min-height: 42px; font: 400 15px Silkscreen, monospace; letter-spacing: 2px; }
.su .sub > .btn.off { font-size: 10px; letter-spacing: 1px; opacity: .6; }
.su .suhero { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
.su .suhero .pic { position: relative; width: 168px; height: 168px; background: #1a1630; border: 4px solid var(--rc); box-shadow: 0 5px 0 #000, 0 0 30px color-mix(in srgb, var(--rc) 55%, transparent), inset 0 0 22px rgba(0,0,0,.5); }
.su .suhero .pic img, .su .suhero .pic canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.su .suhero .pic em { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); display: flex; align-items: center; gap: 5px; padding: 3px 8px; font: 400 10px Silkscreen, monospace; font-style: normal; letter-spacing: 1px; color: #ffd23f; background: rgba(5,7,13,.9); border: 2px solid #ffd23f; white-space: nowrap; }
.su .suhero .nm { font: 400 18px Silkscreen, monospace; letter-spacing: 1px; color: var(--ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .su .suhero small { font-size: 10px; color: var(--dim); }
.su .sur { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #0b0f1a; border: 3px solid #2c3552; box-shadow: 0 5px 0 #000; }
.su .sugrid { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 8px 10px 10px; scrollbar-width: thin; scrollbar-color: #3a4a78 #0b0f1a; }
.su .sec { display: flex; align-items: baseline; gap: 8px; margin: 8px 0 5px; padding-left: 8px; border-left: 4px solid var(--rc); } .su .sec:first-child { margin-top: 0; }
.su .sec b { font: 400 12px Silkscreen, monospace; letter-spacing: 2px; text-transform: uppercase; color: var(--rc); } .su .sec small { font-size: 10px; color: var(--dim); }
.su .row { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 7px; }
.su .skt { position: relative; aspect-ratio: 1; padding: 0; background: #1a1630; border: 3px solid color-mix(in srgb, var(--rc) 55%, #2c3552); box-shadow: 0 3px 0 #000; cursor: pointer; }
.su .skt img, .su .skt canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.su .skt.lk img, .su .skt.lk canvas { filter: brightness(.82); }
.su .skt.lk i { position: absolute; right: 2px; bottom: 2px; width: 16px; height: 16px; display: grid; place-items: center; color: #ffd23f; background: rgba(5,7,13,.92); border: 1px solid #ffd23f; }
.su .skt.on { border-color: #fff; box-shadow: 0 0 0 3px var(--rc), 0 0 16px var(--rc); z-index: 1; } .su .skt.on img, .su .skt.on canvas { filter: none; }
.su .sur.tr { background: none; border: 0; box-shadow: none; gap: 10px; justify-content: center; }
.su .sutr { display: flex; gap: 10px; } .su .tc { flex: 1; min-height: 120px; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 12px 10px; font: inherit; text-align: center; color: var(--ink); background: #10131d; border: 3px solid #2c3552; box-shadow: 0 5px 0 #000; cursor: pointer; }
.su .tc b { font: 400 15px Silkscreen, monospace; letter-spacing: 1px; } .su .tc small { font-size: 12px; color: var(--dim); line-height: 1.35; }
.su .tc.on { border-color: var(--green); background: #10241a; box-shadow: 0 5px 0 #000, 0 0 18px rgba(61,220,132,.35); } .su .tc.on b { color: var(--green); }
.su .suem { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .su .suem p { flex-basis: 100%; margin: 0; } .su .suem input { flex: 1; min-width: 0; margin: 0; padding: 7px 8px; font-size: 13px; }
.su .sur.tr > .btn.go { margin: 0; min-height: 46px; font: 400 18px Silkscreen, monospace; letter-spacing: 3px; }
/* setup: the left column is the preview with its button under it, full width; the wall takes the rest */
.su .sub { display: grid; grid-template-columns: 206px 1fr; grid-template-rows: 1fr auto; gap: 8px 14px; }
.su .sul { grid-column: 1; grid-row: 1; width: auto; padding-bottom: 0; justify-content: center; }
.su .sub > .btn { display: flex; position: static; grid-column: 1; grid-row: 2; width: auto; margin: 0; min-height: 44px; }
.su .sur { grid-column: 2; grid-row: 1 / 3; min-height: 0; }

/* the Taunt window: every message as a button, two to a row */
#modal .mbox:has(.tnt) { max-width: 480px; border-color: var(--yellow); }
.tnt h3 { margin: 0 0 8px; color: var(--yellow); } .tnt h3 span { color: var(--ink); }
.tnt .tg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.tnt .tg button { min-height: 38px; padding: 4px 8px; font: bold 13px ui-monospace, Consolas, monospace; color: var(--ink); background: #10131d; border: 2px solid #2c3552; box-shadow: 0 3px 0 #000; cursor: pointer; }
.tnt .tg button:hover, .tnt .tg button:active { border-color: var(--yellow); color: var(--yellow); }
.tnt .backb { margin: 0; min-height: 38px; }
/* anything waiting to be claimed pulses: today's daily reward, a season pass reward that is ready, and the Shop button and tab that lead to them */
@keyframes claimpulse { 0%, 100% { box-shadow: 0 3px 0 #000, 0 0 0 0 rgba(61,220,132,0); transform: none; } 50% { box-shadow: 0 3px 0 #000, 0 0 16px 3px rgba(61,220,132,.75); transform: translateY(-1px); } }
.sh2 .daily .day.now, .pc.can, .ps2 .pc.can { animation: claimpulse 1.3s ease-in-out infinite; }
#nav [data-s=shop]:has(.dot) { animation: shopclaim 1.3s ease-in-out infinite; }
@keyframes shopclaim { 0%, 100% { box-shadow: 0 3px 0 #000; border-color: var(--line); } 50% { box-shadow: 0 3px 0 #000, 0 0 16px 3px rgba(255,210,63,.8); border-color: var(--yellow); } }
.htabs button:has(.dot), .htabs [data-a=sub]:has(.dot) { animation: tabclaim 1.3s ease-in-out infinite; }
@keyframes tabclaim { 50% { color: var(--yellow); text-shadow: 0 0 8px rgba(255,210,63,.8); } }
@media (prefers-reduced-motion: reduce) { .sh2 .daily .day.now, .pc.can, #nav [data-s=shop]:has(.dot), .htabs button:has(.dot) { animation: none; } }
/* countermeasures left: a big counter with one block per countermeasure; a spent one goes dark and the counter flashes */
.live2 .lcm { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 0 0 10px; background: #141a2c; border: 3px solid var(--yellow); box-shadow: 0 3px 0 #000; }
.live2 .lcm b { font: 400 11px Silkscreen, monospace; letter-spacing: 1px; color: var(--yellow); white-space: nowrap; }
.live2 .lcm span { flex: 1; display: flex; gap: 5px; justify-content: flex-end; } .live2 .lcm span i { width: 20px; height: 16px; background: #0b0f1a; border: 2px solid #4a4020; } .live2 .lcm span i.on { background: var(--yellow); border-color: #fff3b0; box-shadow: 0 0 8px rgba(255,210,63,.7); }
.live2 .lcm em { flex: none; align-self: stretch; width: 44px; display: grid; place-items: center; font: 400 22px Silkscreen, monospace; font-style: normal; color: #05070d; background: var(--yellow); }
.live2 .lcm.out { border-color: #7a1f29; } .live2 .lcm.out b { color: #ff3b4a; } .live2 .lcm.out em { background: #7a1f29; color: #fff; }
.live2 .lcm.hit { animation: lcmhit .45s steps(2) 2; } @keyframes lcmhit { 0% { background: #fff; border-color: #fff; } 100% { background: #141a2c; } }
.live2 #livebox .btn { min-height: 36px; } .live2 .lst { margin-top: -2px !important; }

/* ---------- INTRUSION: the alarm window ---------- */
#modal .mbox:has(.intr) { max-width: 470px; padding: 0; border: 4px solid #ff3b4a; background: #14080c; box-shadow: 0 6px 0 #000, 0 0 0 2px #05070d, 0 0 46px 6px rgba(255,59,74,.55); animation: lvboom .5s cubic-bezier(.2,1.5,.4,1) both, intrglow 1s steps(2) .5s infinite; overflow: hidden; }
@keyframes intrglow { 0% { box-shadow: 0 6px 0 #000, 0 0 0 2px #05070d, 0 0 46px 6px rgba(255,59,74,.6); border-color: #ff3b4a; } 100% { box-shadow: 0 6px 0 #000, 0 0 0 2px #05070d, 0 0 14px 2px rgba(255,59,74,.3); border-color: #a32431; } }
.intr { display: flex; flex-direction: column; }
.intr .ihz { height: 10px; background: repeating-linear-gradient(-45deg, #ffd23f 0 10px, #05070d 10px 20px); background-size: 28.28px 100%; animation: intrhz .7s linear infinite; } @keyframes intrhz { 100% { background-position: 28.28px 0; } }
.intr .ihd { display: flex; align-items: baseline; justify-content: center; gap: 10px; padding: 8px 12px 4px; }
.intr .ihd b { font: 400 21px Silkscreen, monospace; letter-spacing: 3px; color: #ff3b4a; text-shadow: 0 3px 0 #000, 0 0 14px rgba(255,59,74,.8); animation: intrtxt 1s steps(2) infinite; } @keyframes intrtxt { 50% { color: #fff; } }
.intr .ihd small { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: #ffb3b8; }
.intr .ibd { display: flex; align-items: center; gap: 14px; padding: 6px 16px 10px; }
.intr .cam { position: relative; flex: none; width: 104px; height: 104px; background: #1a0d14; border: 4px solid #ff3b4a; box-shadow: 0 4px 0 #000, 0 0 20px rgba(255,59,74,.5); overflow: hidden; }
.intr .cam img, .intr .cam canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.intr .cam::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.3) 0 1px, transparent 1px 3px); }
.intr .cam .rec { position: absolute; left: 4px; top: 3px; z-index: 1; font: bold 10px ui-monospace, Consolas, monospace; font-style: normal; color: #ff3b4a; text-shadow: 1px 1px 0 #000; animation: camrec 1s steps(2) infinite; }
.intr .cam .keys { position: absolute; left: 0; right: 0; bottom: 0; height: 9px; z-index: 1; background: repeating-linear-gradient(90deg, #35e0ff 0 4px, transparent 4px 8px); background-size: 16px 100%; opacity: .9; animation: camkeys .3s steps(2) infinite; }
.intr .iwho { min-width: 0; text-align: left; } .intr .iwho small { display: flex; align-items: center; gap: 4px; font-size: 10px; letter-spacing: 2px; color: #ffb3b8; } .intr .iwho small img.ico { width: 18px; height: 18px; }
.intr .iwho b { display: block; font: 400 24px Silkscreen, monospace; color: #fff; text-shadow: 0 3px 0 #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .intr .iwho p { margin: 2px 0 0; font-size: 13px; color: var(--ink); } .intr .iwho p span { color: #ff3b4a; font-weight: bold; }
.intr .ijump { margin: 0 16px; width: auto; min-height: 54px; flex-direction: column; gap: 0; font: 400 22px Silkscreen, monospace; letter-spacing: 4px; color: #05070d; background: var(--yellow); border: 3px solid #05070d; box-shadow: 0 0 0 3px var(--yellow), 0 6px 0 #000; animation: intrjump .7s ease-in-out infinite alternate; }
.intr .ijump small { font: bold 10px ui-monospace, Consolas, monospace; letter-spacing: 0; text-transform: none; opacity: .8; } @keyframes intrjump { from { transform: scale(1); } to { transform: scale(1.03); box-shadow: 0 0 0 3px var(--yellow), 0 6px 0 #000, 0 0 22px 4px rgba(255,210,63,.7); } }
.intr .ilet { margin: 8px 16px 10px; width: auto; min-height: 30px; font-size: 11px; color: var(--dim); background: none; border: 0; box-shadow: none; text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { #modal .mbox:has(.intr), .intr .ihz, .intr .ihd b, .intr .ijump { animation: none; } }
/* the HACK button in Portuguese: HACKEAR is longer, so the letters are smaller and closer */
html[lang^=pt] #nav .hackbtn { font-size: 15px; letter-spacing: 0; } html[lang^=pt] #app.narrow #nav .hackbtn { font-size: 13px; letter-spacing: 0; }
/* ---------- INTRUSION glitch: the whole screen breaks for a second (never the level-up burst) ---------- */
#app.glitch { animation: glscreen 1s steps(1) both; }
@keyframes glscreen {
  0% { translate: 0 0; filter: none; } 6% { translate: -14px 3px; filter: hue-rotate(90deg) saturate(3) contrast(1.4); } 12% { translate: 10px -4px; filter: invert(1); }
  18% { translate: -6px 0; filter: none; } 26% { translate: 18px 2px; filter: saturate(4) contrast(1.8) hue-rotate(-60deg); } 32% { translate: 0 -6px; filter: none; }
  40% { translate: -22px 4px; filter: invert(1) hue-rotate(180deg); } 46% { translate: 6px 0; filter: brightness(1.8); } 54% { translate: -4px -2px; filter: none; }
  62% { translate: 12px 3px; filter: hue-rotate(120deg) saturate(3); } 70% { translate: -8px 0; filter: none; } 80% { translate: 4px -2px; filter: contrast(1.6); } 90%, 100% { translate: 0 0; filter: none; }
}
.glx { position: absolute; inset: 0; z-index: 80; pointer-events: none; overflow: hidden; animation: glxout 1.05s steps(1) both; } @keyframes glxout { 0%, 92% { opacity: 1; } 100% { opacity: 0; } }
.glx i { position: absolute; left: -10%; width: 120%; background: var(--c); mix-blend-mode: screen; opacity: 0; animation: glbar var(--t) steps(2) var(--d) 4 alternate; }
.glx i:nth-child(3n) { mix-blend-mode: difference; }
@keyframes glbar { 0% { opacity: 0; transform: translateX(0); } 30% { opacity: .75; transform: translateX(var(--x)); } 70% { opacity: .5; transform: translateX(calc(var(--x) * -0.6)); } 100% { opacity: 0; transform: translateX(0); } }
.glx .gn { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.10) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(255,59,74,.08) 0 2px, transparent 2px 7px); animation: glnoise .12s steps(2) 8; } @keyframes glnoise { 0% { transform: translate(0, 0); opacity: .9; } 50% { transform: translate(-6px, 3px); opacity: .4; } 100% { transform: translate(5px, -2px); opacity: .8; } }
.glx em { position: absolute; left: 0; right: 0; top: 44%; text-align: center; font: 400 44px Silkscreen, monospace; font-style: normal; letter-spacing: 8px; color: #fff; text-shadow: -4px 0 #ff3b4a, 4px 0 #35e0ff; opacity: 0; animation: gltext .5s steps(1) both; }
@keyframes gltext { 0% { opacity: 0; } 8% { opacity: 1; transform: translateX(-12px) skewX(-12deg); } 20% { opacity: 0; } 30% { opacity: 1; transform: translateX(10px) skewX(8deg); } 48% { opacity: 1; transform: none; } 60% { opacity: 0; } 70% { opacity: .9; transform: translateX(-4px); } 100% { opacity: 0; } }
/* the alarm window does not burst in like a level-up: it tears in, in slices */
#modal .mbox:has(.intr) { animation: intrin .55s steps(1) .25s both, intrglow 1s steps(2) .8s infinite; }
@keyframes intrin { 0% { opacity: 0; clip-path: inset(48% 0 48% 0); transform: translateX(-30px) skewX(-10deg); } 15% { opacity: 1; clip-path: inset(30% 0 52% 0); transform: translateX(24px) skewX(8deg); } 30% { clip-path: inset(60% 0 8% 0); transform: translateX(-16px); } 45% { clip-path: inset(6% 0 55% 0); transform: translateX(12px) skewX(-4deg); } 60% { clip-path: inset(0 0 20% 0); transform: translateX(-6px); } 75% { clip-path: inset(12% 0 0 0); transform: translateX(4px); } 100% { opacity: 1; clip-path: inset(0); transform: none; } }
@media (prefers-reduced-motion: reduce) { #app.glitch, .glx, .glx i, .glx em, .glx .gn { animation: none; } .glx { display: none; } #modal .mbox:has(.intr) { animation: none; } }
/* ---------- phones with a notch, rounded corners or a home bar. The game always fills the whole screen and every background runs to the very edge:
   only what the player reads or taps keeps inside the safe area. --sl, --st, --sr, --sb are the safe insets in stage pixels (set by fitStage) ---------- */
#app { --sl: calc(env(safe-area-inset-left, 0px) / var(--k, 1)); --st: calc(env(safe-area-inset-top, 0px) / var(--k, 1)); --sr: calc(env(safe-area-inset-right, 0px) / var(--k, 1)); --sb: calc(env(safe-area-inset-bottom, 0px) / var(--k, 1)); } /* the phone's own safe insets, turned into stage pixels (--k is the stage scale) */
#hud { padding-left: calc(10px + var(--sl)); padding-right: calc(10px + var(--sr)); top: var(--st); }
#app.subscr #hud { padding-left: calc(8px + var(--sl)); padding-right: calc(8px + var(--sr)); }
#nav { padding-left: calc(12px + var(--sl)); padding-right: calc(12px + var(--sr)); bottom: calc(10px + var(--sb)); }
#main { left: var(--sl); right: var(--sr); bottom: var(--sb); }
#main:has(> .rm2), #main:has(.mp2), #main:has(.create), #main:has(.su) { left: 0; right: 0; bottom: 0; } /* scenes: the picture goes edge to edge */
.rm2 .needs { left: calc(12px + var(--sl)); } .rm2 .rbx { right: calc(12px + var(--sr)); }
.mp2 .path .pin { margin-left: var(--sl); margin-right: var(--sr); } .mp2 .dzlist { margin-left: var(--sl); margin-right: var(--sr); }
#run { padding-left: calc(8px + var(--sl)); padding-right: calc(8px + var(--sr)); padding-bottom: calc(8px + var(--sb)); padding-top: calc(8px + var(--st)); }
#modal { padding-left: calc(8px + var(--sl)); padding-right: calc(8px + var(--sr)); padding-bottom: calc(8px + var(--sb)); padding-top: calc(8px + var(--st)); }
.create.two { padding-left: calc(20px + var(--sl)); padding-right: calc(20px + var(--sr)); } .create.two .cbot { bottom: calc(7px + var(--sb)); }
.su { padding-left: calc(14px + var(--sl)); padding-right: calc(14px + var(--sr)); padding-bottom: calc(12px + var(--sb)); }
#toast { left: calc(10px + var(--sl)); right: calc(10px + var(--sr)); }
#app:not(.subscr) #hud { padding-left: calc(12px + var(--sl)); padding-right: calc(12px + var(--sr)); }
/* Lab progress bars (hardware installing, a tool on the bench, a technician's job): striped and moving, like before */
.pbar i { background: linear-gradient(45deg, rgba(5,7,13,.3) 25%, transparent 25%, transparent 50%, rgba(5,7,13,.3) 50%, rgba(5,7,13,.3) 75%, transparent 75%) var(--yellow); background-size: 12px 12px; animation: inststripe .6s linear infinite; }
.pbar i.fill { animation: inststripe .6s linear infinite, jobfill var(--d, 1ms) linear var(--e, 0ms) both; }
@media (prefers-reduced-motion: reduce) { .pbar i { animation: none; } .pbar i.fill { animation: jobfill var(--d, 1ms) linear var(--e, 0ms) both; } }
/* the Scanner finds six rigs: with five or more in the list the rows are tighter, so all of them fit without scrolling */
.shits .rbody:has(.hit:nth-child(5)) { gap: 4px; }
.shits .rbody:has(.hit:nth-child(5)) .hit { padding: 2px 8px; gap: 8px; grid-template-columns: 34px minmax(0, 1.25fr) minmax(0, 1.5fr) 78px; }
.shits .rbody:has(.hit:nth-child(5)) .hit .tgf, .shits .rbody:has(.hit:nth-child(5)) .hit .hic { width: 34px; height: 34px; } .shits .rbody:has(.hit:nth-child(5)) .hit .tgf .pf, .shits .rbody:has(.hit:nth-child(5)) .hit .tgf img, .shits .rbody:has(.hit:nth-child(5)) .hit .tgf canvas { width: 30px; height: 30px; }
.shits .rbody:has(.hit:nth-child(5)) .hit .btn { min-height: 32px; height: 32px; padding: 0 6px; } .shits .rbody:has(.hit:nth-child(5)) .hit .btn small { display: none; }
.shits .rbody:has(.hit:nth-child(5)) .hit .hn b { font-size: 13px; } .shits .rbody:has(.hit:nth-child(5)) .hit .hn small { font-size: 10px; }
.shits .rbody:has(.hit:nth-child(5)) .hit .btn { flex-direction: row; gap: 5px; font-size: 13px; } .shits .rbody:has(.hit:nth-child(5)) .hit .btn small { display: inline; font-size: 8px; opacity: .85; }

/* install as an app: the button on the first page (the app's own icon beside it) and the how-to window */
.instb { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 6px 14px 6px 6px; font: inherit; text-align: left; color: var(--ink); background: #10241a; border: 3px solid var(--green); box-shadow: 0 4px 0 #000, 0 0 18px rgba(61,220,132,.3); cursor: pointer; }
.instb img { width: 42px; height: 42px; flex: none; image-rendering: pixelated; border: 2px solid #05070d; }
.instb b { display: block; font: 400 14px Silkscreen, monospace; letter-spacing: 1px; color: var(--green); text-transform: uppercase; } .instb small { display: block; font-size: 10px; color: var(--dim); }
#modal .mbox:has(.instm) { max-width: 460px; border-color: var(--green); }
.instm .ih { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; } .instm .ih img { width: 56px; height: 56px; flex: none; image-rendering: pixelated; border: 3px solid #05070d; box-shadow: 0 0 0 2px var(--green); } .instm h3 { margin: 0; color: var(--green); } .instm p { margin: 0; }
.instm ol { margin: 0 0 8px; padding-left: 22px; } .instm li { margin: 5px 0; font-size: 13px; } .instm .backb { margin-top: 8px; }
/* the Install chip in the Room, under the Revenue box */
.rm2 .instc { position: absolute; right: calc(12px + var(--sr)); top: 122px; z-index: 5; display: flex; align-items: stretch; background: #10241a; border: 2px solid var(--green); box-shadow: 0 3px 0 rgba(0,0,0,.6); }
.rm2 .instc button { display: flex; align-items: center; gap: 6px; margin: 0; padding: 3px 8px 3px 3px; font: inherit; color: var(--green); background: none; border: 0; cursor: pointer; }
.rm2 .instc img { width: 22px; height: 22px; image-rendering: pixelated; } .rm2 .instc b { font: 400 10px Silkscreen, monospace; letter-spacing: 1px; text-transform: uppercase; }
.rm2 .instc .x { padding: 0 7px; font-size: 14px; color: var(--dim); border-left: 2px solid #1f5a3a; }
/* iPhone install helper: over the real screen (not the scaled stage), an arrow at Safari's Share button and the two buttons to tap, drawn as they look */
#iosinst { position: fixed; inset: 0; z-index: 9999; background: rgba(3,5,12,.86); display: flex; align-items: center; justify-content: center; }
#iosinst .card { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: #131a2e; border: 3px solid #3ddc84; box-shadow: 0 6px 0 #000, 0 0 30px rgba(61,220,132,.35); }
#iosinst .card img { width: 56px; height: 56px; image-rendering: pixelated; border: 2px solid #05070d; }
#iosinst .st { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 58px; padding: 8px 10px; background: #0b0f1a; border: 2px solid #2c3552; }
#iosinst .st b { position: absolute; left: -9px; top: -9px; width: 20px; height: 20px; display: grid; place-items: center; font: bold 12px ui-monospace, Consolas, monospace; color: #05070d; background: #ffd23f; }
#iosinst .st span { font: bold 11px ui-monospace, Consolas, monospace; color: #e8ecff; white-space: nowrap; }
#iosinst .nx { font-style: normal; font-size: 18px; color: #ffd23f; }
#iosinst .arw { position: fixed; font-style: normal; font-size: 46px; line-height: 1; color: #ffd23f; text-shadow: 0 0 14px #ffd23f, 3px 3px 0 #05070d; animation: iosarw .6s ease-in-out infinite alternate; }
#iosinst.wide .arw { top: 6px; right: calc(env(safe-area-inset-right, 0px) + 96px); } #iosinst.tall .arw { bottom: 8px; left: 50%; margin-left: -23px; }
@keyframes iosarw { to { transform: translateY(10px); } } #iosinst.wide .arw { animation-name: iosarwu; } @keyframes iosarwu { from { transform: translateY(10px); } to { transform: translateY(0); } }
.rm2 .rsb, .rsb { left: calc(12px + var(--sl)); } /* the Heat, trophies and season box in the Room keeps clear of the notch too */
.rinf { right: calc(12px + var(--sr)); } .mp2 .mtabs { left: calc(10px + var(--sl)); }
/* the HACK screens (map, scanner, jobs, bounties) always show Bits, Chips, Dark Data and Bandwidth in the top bar: Bandwidth is what every hack costs. Only Integrity gives way when the bar is tight */
#app.narrow.subscr[data-scr=net] #hud:has(.htabs) .stats .bwhud, #app.narrow.subscr[data-scr=net] #hud:has(.htabs) .stats [data-a=ddinfo] { display: flex !important; }
#app.narrow.subscr[data-scr=net] #hud .stats span { padding: 0 5px 0 19px; font-size: 11px; margin-left: 6px; } #app.narrow.subscr[data-scr=net] #hud .stats span img.ico { width: 19px; height: 19px; left: -6px; }
#app.narrow.subscr[data-scr=net] #hud .stats { gap: 2px; }
/* Rig: the board shrinks to the height there is (a phone's home bar takes some), so the EDIT LAYOUT button under it is never cut */
.rg2 .bcol { width: auto; min-height: 0; }
.rg2 .bcol .crt { flex: 0 1 299px; min-height: 0; height: auto; width: auto; aspect-ratio: 1 / 1; max-width: 299px; }
.rg2 .bcol { height: 100%; align-items: center; } .rg2 .bcol .crt { flex: none; height: min(299px, calc(100% - 40px)); width: auto; aspect-ratio: 1 / 1; align-self: center; } .rg2 .bcol .edb { align-self: stretch; margin-top: 4px; }
/* Revenue / At risk box: three columns shared by every row (label, icon, value), so the icons stand in one line and the numbers start at the same place */
.rbx { display: grid; grid-template-columns: auto 16px auto; column-gap: 7px; row-gap: 0; align-items: center; min-width: 0; }
.rbx button { display: contents; }
.rbx button > span { min-width: 58px; height: 22px; display: flex; align-items: center; flex: none; }
.rbx button > img.ico { justify-self: center; }
.rbx button > b { height: 22px; display: flex; align-items: center; justify-content: flex-start; white-space: nowrap; text-align: left; }
/* Revenue / At risk box, second pass: label on the left, the number right-aligned, its icon after it (all icons in one column at the right edge), and a thin line between what you earn and what you can lose */
.rbx { grid-template-columns: auto auto 18px; grid-auto-flow: row dense; column-gap: 0; padding: 4px 8px; }
.rbx button > span { grid-column: 1; min-width: 58px; padding-right: 10px; }
.rbx button > b { grid-column: 2; justify-content: flex-end; text-align: right; padding-right: 6px; }
.rbx button > img.ico { grid-column: 3; justify-self: center; }
.rbx button:not(.risk) + button.risk > * { box-sizing: content-box; margin-top: 4px; padding-top: 4px; border-top: 1px solid #3a4670; }
.rbx button:not(.risk) + button.risk > img.ico { align-self: end; margin-bottom: 3px; border-top: 0; padding-top: 0; margin-top: 0; }
.rbx button:not(.risk) + button.risk > img.ico { align-self: center; justify-self: stretch; width: 100%; height: 16px; object-fit: contain; box-sizing: content-box; margin: 4px 0 0; padding: 4px 0 0; border-top: 1px solid #3a4670; }
.rbx button:not(.risk) + button.risk > *, .rbx button:not(.risk) + button.risk > img.ico { margin-top: 0; padding-top: 0; border-top: 0; box-sizing: border-box; width: auto; } .rbx button:not(.risk) + button.risk > img.ico { width: 16px; height: 16px; justify-self: center; margin: 0; padding: 0; }
.rbx button:not(.risk) + button.risk::before { content: ''; grid-column: 1 / -1; height: 1px; margin: 3px 0; background: #3a4670; } /* the thin line: one piece, edge to edge */
/* Rig: the board and the EDIT LAYOUT button are two rows of one column. The board takes the height that is left, square; the button sits under it with a clear gap, as wide as the board, its outline whole on all four sides */
.rg2 .bcol { display: grid; grid-template-columns: max-content; grid-template-rows: minmax(0, 1fr) 36px; row-gap: 8px; align-items: start; justify-items: stretch; height: 100%; width: auto; }
.rg2 .bcol .crt { height: 100%; max-height: 299px; width: auto; aspect-ratio: 1 / 1; align-self: start; justify-self: center; flex: none; box-sizing: border-box; }
.rg2 .bcol .edb { grid-row: 2; align-self: stretch; height: 36px; margin: 0; position: relative; z-index: 1; }
.edb, .rg2 .bcol .edb { border-top: 3px solid var(--yellow); } /* a whole outline, like every other button */
/* Rig: the board is never smaller than its full size (299 stage pixels). The Rig screen uses the whole height of the screen, home bar strip included (the bar itself is a thin line in the middle,
   nothing of the Rig sits under it), and takes a few pixels from its own top and bottom margins so EDIT LAYOUT fits under the board with a gap */
#app.subscr[data-scr=rig] #main { bottom: 0; padding-top: 5px; padding-bottom: 7px; }
.rg2 .bcol { grid-template-columns: 299px; grid-template-rows: 299px 36px; row-gap: 6px; height: auto; align-content: start; }
.rg2 .bcol .crt { width: 299px; height: 299px; max-height: none; aspect-ratio: auto; }
/* Rig: EDIT LAYOUT is a button in the top bar, left of NODES; the board takes the whole height of the screen (341 stage pixels instead of 299) */
#hud .edh { flex: none; height: 38px; margin: 0; padding: 0 12px; display: flex; align-items: center; font: 400 12px Silkscreen, monospace; letter-spacing: 1px; white-space: nowrap; color: var(--yellow); background: #3a2e10; border: 3px solid var(--yellow); box-shadow: 0 3px 0 #000; cursor: pointer; pointer-events: auto; }
#hud .edh.on { color: #05070d; background: var(--yellow); cursor: default; } #app.narrow #hud .edh { height: 34px; padding: 0 7px; font-size: 10px; letter-spacing: 0; }
.rg2 .bcol { display: block; width: 341px; height: 341px; } .rg2 .bcol .crt { width: 341px; height: 341px; }
#app.narrow .rg2 .bcol, #app.narrow .rg2 .bcol .crt { width: 315px; height: 315px; } #app.narrow .rg2 .bcol { align-self: center; }
/* the Rig board is as large as the screen allows: the full height (341 stage pixels) wherever the stage is wide enough for the two panels beside it, never under its old 299 */
.rg2 .bcol, .rg2 .bcol .crt, #app.narrow .rg2 .bcol, #app.narrow .rg2 .bcol .crt { width: clamp(299px, calc(var(--sw, 720) * 1px - 400px), 341px); height: clamp(299px, calc(var(--sw, 720) * 1px - 400px), 341px); }
.rg2 .bcol .crt, #app.narrow .rg2 .bcol .crt { max-width: none; max-height: none; aspect-ratio: auto; }
/* hack screen: six tools sit in one row (a lone sixth button on a second row used to squeeze the node panel); and while something is running on the node, its files take one row,
   so the progress bar with STOP is always whole */
#run #rdeck.six { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; } #run #rdeck.six .btn { font-size: 8px; }
#rinfo:has(.njob) .fls { grid-template-rows: 34px; }
#rinfo .njob { flex: none; min-height: 30px; }
/* hack screen, any number of tools: the columns are set by the game (one row while the buttons stay wide enough, else two even rows) */
#run #rdeck { gap: 5px; } #run #rdeck.tight .btn { font-size: 8px; } #run #rdeck.tight .btn .lkn { font-size: 7px; letter-spacing: 0; }
#run.deck2 #rdeck .btn { height: 50px; padding-bottom: 12px; } #run.deck2 #rdeck .btn img.ico.big { width: 22px; height: 22px; }
/* the node panel: what is running on the node (the bar with STOP) comes right under the node's name, then its files. Whatever the panel has to show, the bar is never the thing that is cut */
#rinfo .njob { order: 1; margin-top: 0; flex: none; min-height: 30px; } #rinfo > .nhd { order: 0; flex: none; } #rinfo > *:not(.nhd):not(.njob) { order: 2; }
#run.deck2 #rinfo .fls, #rinfo:has(.njob) .fls { grid-template-rows: 34px; }
#run.deck2 #rinfo { gap: 5px; padding: 6px 10px; }
#run.deck2 #rdeck .btn { font-size: 8px; line-height: 1.05; } #run.deck2 #rdeck .btn img.ico.big { width: 18px; height: 18px; } #run.deck2 #rdeck .btn > span { max-height: 17px; overflow: hidden; }
#run.deck2 #rdeck .btn > span { white-space: nowrap; letter-spacing: -0.4px; max-height: none; }
#run #rdeck .btn, #run.deck2 #rdeck .btn { padding-bottom: 2px; gap: 2px; } #run #rdeck .btn > span { font-size: 9px; } #run.deck2 #rdeck .btn > span, #run #rdeck.tight .btn > span { font-size: 8px; }
#run.deck2 #rdeck .btn img.ico.big { width: 24px; height: 24px; }
#run #rdeck .slot { display: block; height: 50px; background: #0b0f1a; border: 3px dashed #1f2740; box-sizing: border-box; opacity: .7; } /* an empty place in the tool rack */
/* node panel files: always two lines, two files to a line with the edge of the next ones showing; more than that slides sideways (swipe, mouse wheel or the bar under them). Never one cramped line */
#run.deck2 #rinfo .fls, #rinfo:has(.njob) .fls, #rinfo .fls { grid-template-rows: 34px 34px; grid-auto-columns: calc(50% - 3px); gap: 6px; scrollbar-width: thin; scrollbar-color: #4a5a8a #0b0f1a; padding-bottom: 2px; }
#rinfo .fls:has(> :nth-child(5)) { grid-auto-columns: calc(46% - 3px); } /* five or more: the third column peeks in, so it is plain there is more */
#rinfo .fls::-webkit-scrollbar { display: block; height: 5px; } #rinfo .fls::-webkit-scrollbar-thumb { background: #4a5a8a; } #rinfo .fls::-webkit-scrollbar-track { background: #0b0f1a; }
#rinfo .fls .fl { min-width: 0; } #rinfo .fls .fl span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
#rinfo:has(.njob) .fls { grid-template-rows: 30px 30px; } #rinfo:has(.njob) .fls .fl { min-height: 0; height: 30px; }
#rinfo:has(.njob) .fls { grid-template-rows: 28px 28px; gap: 5px; } #rinfo:has(.njob) .fls .fl { height: 28px; }
/* ---------- puzzles, new style: play on the left, title + clock + help + buttons on the right, never scrolled ---------- */
#modal .mbox:has(.pz2) { max-width: 700px; padding: 10px 12px; border-color: var(--yellow); }
.pz2 { display: flex; gap: 14px; align-items: stretch; }
.pz2 .pzp { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 8px; background: #0b0f1a; border: 3px solid #2c3552; }
.pz2 .pzp > * { margin: 0; }
.pz2 .pzs { flex: 0 0 216px; display: flex; flex-direction: column; gap: 8px; }
.pz2 .pzs h3 { margin: 0; color: var(--yellow); } .pz2 .pzs p { margin: 0; font-size: 12px; line-height: 1.4; } .pz2 .pzs .pzbar { margin: 0; height: 16px; }
.pz2 .pzs .btn { margin: 0; min-height: 40px; } .pz2 .pzs .btn.go { min-height: 54px; font: 400 18px Silkscreen, monospace; letter-spacing: 2px; margin-top: auto; } .pz2 .pzs .btn.bad { margin-top: auto; font-size: 11px; } .pz2 .pzs .btn.go + .btn.bad { margin-top: 0; }
.pz2 .pzeq { gap: 8px; margin: 0; } .pz2 .pzband { gap: 4px; padding: 5px; } .pz2 .pzband button { width: 46px; height: 34px; } .pz2 .pzcol i { height: 10px; }
.pz2 .pzshow { width: 100%; box-sizing: border-box; min-height: 90px; } .pz2 .pzkeys { width: 100%; grid-template-columns: repeat(5, 1fr); }
.pz2.k-maze .pzp { flex-direction: row; gap: 14px; } .pz2 .pzmaze { max-height: 280px; width: auto; }
#run #rinfo .fls:has(> :nth-child(5)), #run.deck2 #rinfo .fls:has(> :nth-child(5)), #run #rinfo:has(.njob) .fls:has(> :nth-child(5)) { grid-auto-columns: calc(45% - 3px); } /* five files or more: the two visible columns are a little narrower, so the tips of the next files show at the right edge and it is plain the list slides */
/* node panel files: the two lines sit together, each file filling its line; the space between the lines is the same as the space above them */
#run #rinfo .fls, #run.deck2 #rinfo .fls, #run #rinfo:has(.njob) .fls { grid-template-rows: 30px 30px; row-gap: 5px; column-gap: 6px; align-content: start; padding: 0 0 2px; margin: 0; }
#run #rinfo .fls .fl, #run #rinfo:has(.njob) .fls .fl { height: 30px; min-height: 0; align-self: stretch; box-sizing: border-box; margin: 0; }
#run #rinfo .njob { margin-bottom: 0; } #run #rinfo, #run.deck2 #rinfo { gap: 5px; }

/* ---------- the result of a hack, wide: what happened on the left, what came home on the right ---------- */
#modal .mbox:has(.res2) { max-width: 700px; padding: 12px 14px; } #modal .mbox:has(.res2.win) { border-color: var(--green); } #modal .mbox:has(.res2.lose) { border-color: var(--red); }
.res2 { display: flex; gap: 14px; align-items: stretch; }
.res2 .rl, .res2 .rr { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; } .res2 .rr { padding-left: 14px; border-left: 3px solid var(--line); }
.res2 h3 { margin: 0; font-size: 18px; } .res2 p { margin: 0; }
.res2 .rst { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .res2 .rst > div { padding: 4px 8px; background: #0b0f1a; border: 2px solid var(--line); min-width: 0; }
.res2 .rst small { display: block; font-size: 9px; color: var(--dim); text-transform: uppercase; letter-spacing: .5px; } .res2 .rst b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res2 .rst b.y { color: var(--yellow); } .res2 .rst b.g { color: var(--green); } .res2 .rst b.r { color: var(--red); } .res2 .rst b.m { color: #c77dff; }
.res2 .rnotes { display: flex; flex-direction: column; gap: 1px; max-height: 62px; overflow: hidden; } .res2 .rnotes p { font-size: 10px; line-height: 1.3; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res2 .rl > .btn { margin: auto 0 0; min-height: 42px; }
.res2 .rfh { display: flex; justify-content: space-between; align-items: baseline; font: 400 12px Silkscreen, monospace; letter-spacing: 2px; color: var(--cyan); } .res2 .rfh small { font: bold 11px ui-monospace, Consolas, monospace; color: var(--dim); }
.res2 .rfl2 { display: flex; flex-direction: column; gap: 4px; } .res2 .rfl2 p { display: flex; align-items: center; gap: 6px; padding: 4px 8px; background: #0b0f1a; border: 2px solid var(--line); font-size: 12px; white-space: nowrap; overflow: hidden; } .res2 .rfl2 p.none { color: var(--dim); justify-content: center; border-style: dashed; }
.res2 .rfl2 .tag { margin-left: auto; flex: none; } .res2 .rfl2 img.ico { flex: none; }
.res2 .soldbar { margin: 0; padding: 6px 8px; } .res2 .soldbar b { font-size: 11px; } .res2 .soldbar small { font-size: 10px; line-height: 1.3; } .res2 .card, .res2 .mythwin { margin: 0; }
.res2 h3.g { color: var(--green); } .res2 h3.r { color: var(--red); }

/* the target window: what this corp does differently, in red under its name */
.prep2 .rules { margin: 4px 0 6px; padding: 5px 8px; background: #1d0f14; border: 2px solid var(--red); } .prep2 .rules p { margin: 0; font-size: 11px; line-height: 1.35; color: #ffb3b3; } .prep2 .rules p + p { margin-top: 3px; }
/* Lab (Hardware, Tools): the chosen item's box is a narrow column, so the cards and their price buttons get the room */
.lb2 { grid-template-columns: minmax(0, 1fr) 236px; }
.lbdet { padding: 8px 10px; } .lbdet .hd > img { width: 40px; height: 40px; } .lbdet .hd b { font-size: 13px; } .lbdet .vs { gap: 10px; } .lbdet .vs b { font-size: 24px; }
.lbdet { gap: 5px; } .lbdet .rq { height: 22px; flex: 0 1 22px; min-height: 18px; } .lbdet .rq img.ico { width: 15px; height: 15px; } .lbdet .pbar.big { height: 10px; }
.lbdet .hd small { margin-top: 1px; line-height: 1.2; } .lbdet .vs small { display: block; line-height: 1.1; } .lbdet .btn.go, .lbdet .go { min-height: 36px; flex: 0 0 36px; } /* the button is never the part that gets cut: the rows above it give way first */
.prep2 .kv:not(.dkh):has(.stars) { justify-content: flex-start; gap: 8px; } /* the target window: the Loot stars sit right beside the word */
/* the name box: the XP you have and the XP the next level takes, on their own line above the XP bar. The box is taller for it, as tall as the picture with its level tag */
#hud .who .xpn { display: block; font-style: normal; font-weight: bold; font-size: 9px; line-height: 1; color: #b79cff; white-space: nowrap; text-align: right; }
#app:not(.subscr) #hud .who { height: 54px; } #app:not(.subscr) #hud .who .xp { margin-top: 1px; }
/* a little taller: air between the rank and the XP numbers; the picture grows with it so both end on the same line */
#app:not(.subscr) #hud .who { height: 58px; gap: 2px; } #app:not(.subscr) #hud .who .xpn { margin-top: 4px; } #app:not(.subscr) #hud .face { width: 50px; height: 50px; }
/* the tutorial's last window: room around the button, so its glow stays clear of the text and of the frame */
#modal .mbox:has(.tutend) { padding: 18px 22px 22px; } .tutend h3 { margin: 0 0 10px; } .tutend p { margin: 0 0 22px; } .tutend .btn { margin: 0; min-height: 46px; }
/* the picture's frame and the name box are the same height: same top edge, same bottom edge. The level tag hangs a little below both */
#app:not(.subscr) #hud .who { height: 56px; } #app:not(.subscr) #hud .who .xpn { margin-top: 3px; } #app:not(.subscr) #hud .face { width: 56px; height: 56px; } #app:not(.subscr) #hud .facebox .lv { bottom: -5px; } #app:not(.subscr) #hud { align-items: flex-start; }
/* the name box has air under the XP bar: box and picture 62 tall, the gauges and the Heat box move down with them */
#app:not(.subscr) #hud .who { height: 62px; gap: 2px; } #app:not(.subscr) #hud .face { width: 62px; height: 62px; } .needs { top: 80px; } .rsb { top: 138px; }

/* a download fills the file's own box, left to right; the red square says a tap stops it */
#rinfo .fl.busy { background: #0b0f1a; border-color: var(--yellow); } #rinfo .fl .dlf { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--yellow); opacity: .55; pointer-events: none; }
#rinfo .fl.busy > :not(.dlf) { position: relative; z-index: 1; } #rinfo .fl.busy em { color: var(--red); }
/* the stop mark on a downloading file: a proper red button at the right end of the box */
#rinfo .fl.busy em { flex: none; margin-left: auto; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; font-size: 13px; line-height: 1; font-style: normal; color: #fff; background: #c0392b; border: 2px solid #ff5a5a; box-shadow: 0 2px 0 #000; }
/* Shop > Boosts: smaller pictures, and a foot that always fits. The ad button is one tidy line; the Chips button under it is never cut */
.bcard { padding: 10px 10px 10px; } .bcard > img.ico.big { width: 40px; height: 40px; margin-top: auto; margin-bottom: 6px; } .bcard .hv { height: 24px; line-height: 24px; font-size: 16px; } .bcard p { min-height: 0; margin-bottom: auto; }
.bcard .bft { margin-top: 8px; gap: 6px; } .bcard .bft .btn, .bcard .bft .done { min-height: 36px; height: 36px; flex: none; }
.bcard .bft .btn.adbtn { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 0 4px; font-size: 9px; letter-spacing: 0; white-space: nowrap; overflow: hidden; } .bcard .bft .btn.adbtn small { display: none; } .bcard .bft .btn.adbtn img.ico { width: 14px; height: 14px; flex: none; } .bcard .bft .btn.adbtn .adplay { flex: none; }
.bcard .bft .btn.adbtn { flex-wrap: nowrap; } .bcard .bft .btn.adbtn .adplay { width: 16px; height: 16px; font-size: 9px; } .bcard h3 { max-width: 100%; overflow: hidden; } #app.narrow .bcard h3 { font-size: 11px; letter-spacing: 0; } #app.narrow .bcard .bft .btn.adbtn { font-size: 8px; gap: 4px; }
#app.narrow .bcard .bft .btn.adbtn { gap: 3px; padding: 0 2px; } #app.narrow .bcard .bft .btn.adbtn .adplay { width: 13px; height: 13px; font-size: 8px; } #app.narrow .bcard .bft .btn.adbtn img.ico { width: 12px; height: 12px; }
/* Boosts: every card is laid out on the same lines. The foot always keeps room for two buttons and the text for three lines, so pictures, names, numbers and buttons sit at the same height on all four cards */
.bcard .bft { min-height: 78px; justify-content: flex-end; } .bcard p { height: 45px; flex: none; overflow: hidden; }
/* the chosen skill: no filter on the cut-cornered button itself. On iPhone a filter together with the cut corners draws the button out of place (below its brackets); the picture inside is brightened instead */
.sknode.sel { filter: none; } .sknode.sel img { filter: brightness(1.25); } .sknode.sel.locked img { filter: grayscale(1) brightness(.6); }

/* the Rig's UPGRADE button: room to breathe. The price is icons and numbers (Bits, Source Code) and the time, never a sentence that gets cut */
.rfoot .btn.rup { min-height: 52px; padding: 6px 8px; gap: 4px; overflow: visible; } .rfoot .btn.rup b { font-size: 15px; line-height: 1; } .rbox .rfoot .btn.rup { min-height: 52px; padding: 6px 8px; }
.rfoot .btn.rup small { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 12px; line-height: 1; opacity: 1; } .rfoot .btn.rup small span { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; } .rfoot .btn.rup small img.ico { width: 14px; height: 14px; } .rfoot .btn.rup small .tm { color: var(--dim); }
/* small phones: the node panel is narrow. UPGRADE keeps its two lines with air around them; the arrow goes, the letters close up, and REMOVE is a compact button beside it */
.rfoot .btn.rup b i { font-style: normal; }
#app.narrow .rg2 .rfoot { gap: 4px; } #app.narrow .rg2 .rfoot .btn.rup { min-height: 46px; padding: 5px 4px; gap: 4px; } #app.narrow .rg2 .rfoot .btn.rup b { font-size: 12px; letter-spacing: 0; } #app.narrow .rg2 .rfoot .btn.rup b i { display: none; }
#app.narrow .rg2 .rfoot .btn.rup small { gap: 6px; font-size: 11px; } #app.narrow .rg2 .rfoot .rsell { padding: 0 4px; font-size: 8px; }

/* file window, MOVE TO: every place button the same size, whatever the row holds */
.fpop .fmv { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; } .fpop .mv { flex: none; min-width: 0; width: 100%; box-sizing: border-box; min-height: 40px; } .fpop .mv b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; } .fpop .mv small { flex: none; white-space: nowrap; }

/* the picture never scrolls, not even when something inside it is brought into view: pushed up, it would show black at the bottom */
#app { overflow: hidden; overflow: clip; }
html.inst .phcut { width: 100vw !important; height: 100vh !important; width: 100lvw !important; height: 100lvh !important; } /* the cut scene in the installed game: the whole screen, the home bar included */

/* language: both flags always there, the one in use is lit */
.langs { display: flex; gap: 8px; } .lang { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 6px 14px; font: inherit; color: var(--dim); background: #10131d; border: 2px solid #2c3552; cursor: pointer; } .lang b { font-size: 12px; letter-spacing: 1px; } .lang .flag { width: 40px; height: 26px; flex: none; outline: 1px solid #05070d; } .lang.on { color: var(--ink); border-color: var(--yellow); background: #1c2440; }
#modal .langs { margin: 0 0 8px; } #modal .lang { flex: 1; }
/* first page: the flags alone, top left */
.create.two > .langs { position: absolute; left: calc(14px + var(--sl)); top: calc(12px + var(--st)); gap: 8px; } .create.two > .langs .lang { min-height: 0; padding: 5px; } .create.two > .langs .lang b { display: none; } .create.two > .langs .flag { width: 40px; height: 26px; } #app.narrow .create.two > .langs { left: calc(10px + var(--sl)); top: calc(9px + var(--st)); } #app.narrow .create.two > .langs .flag { width: 34px; height: 22px; }

/* district rank: a strip under the district's name */
.drk { position: absolute; left: 50%; top: 66px; transform: translateX(-50%); z-index: 6; width: min(690px, calc(100% - 40px - var(--sl) - var(--sr))); height: 92px; box-sizing: border-box; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 8px 14px; font: inherit; color: var(--ink); text-align: left; cursor: pointer; background: linear-gradient(180deg, rgba(24,20,44,.96), rgba(8,9,20,.96)); border: 3px solid color-mix(in srgb, var(--dc) 70%, #0b0f1a); box-shadow: 0 5px 0 #000; }
.drmed { position: relative; display: block; width: 56px; height: 63px; flex: none; } .drmed svg { position: absolute; inset: 0; width: 100%; height: 100%; } .drmed b { position: absolute; left: 0; right: 0; top: 15px; text-align: center; font-family: Silkscreen, monospace; font-weight: 400; font-size: 26px; line-height: 1; color: var(--yellow); text-shadow: 0 2px 0 #000; }
.drm { display: flex; flex-direction: column; gap: 6px; min-width: 0; } .drt { display: flex; align-items: center; justify-content: space-between; } .drt b { font-family: Silkscreen, monospace; font-weight: 400; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink); } .drt em { display: flex; align-items: center; gap: 6px; font-style: normal; font-weight: bold; font-size: 12px; color: var(--yellow); } .drt em img.ico { width: 16px; height: 16px; }
.drc { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; } .drq { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dri { display: flex; align-items: center; justify-content: center; height: 32px; background: #0d1120; border: 2px solid #262e4a; overflow: hidden; } .dri img.ico { width: 20px; height: 20px; } .dri img.pix, .dri canvas { width: 30px; height: 30px; image-rendering: pixelated; }
.drf { display: flex; gap: 2px; } .dri .drf img.ico { width: 15px; height: 15px; } .drp { position: relative; display: block; width: 100%; height: 100%; font-style: normal; } .dri .drp img.ico { position: absolute; left: 50%; top: 1px; width: 15px; height: 15px; margin-left: -7px; } .drp b { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: 9px; line-height: 11px; color: var(--yellow); }
.drl { display: block; height: 6px; background: #05070d; border: 1px solid #262e4a; } .drl i { display: block; height: 100%; background: linear-gradient(180deg, #ffe27a, #e0a012); }
.drq .dri > * { opacity: .7; } .drq.top .dri > * { opacity: 1; } .drq.nx .dri > *, .drq.on .dri > * { opacity: 1; } .drq.on .dri { border-color: #c98a12; background: #3a2a0a; } .drq.nx .dri { border-color: var(--yellow); background: #1c1a30; animation: drnx 1.2s steps(2, jump-none) infinite; } .drq.top:not(.on):not(.nx) .dri { border-color: #5a4a1a; }
@keyframes drnx { from { box-shadow: none; } to { box-shadow: 0 0 0 2px rgba(255,210,63,.55); } } @media (prefers-reduced-motion: reduce) { .drq.nx .dri { animation: none; } }
.drn { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; min-width: 74px; height: 66px; padding-left: 14px; border-left: 2px solid #2c3552; } .drn small { font-size: 9px; letter-spacing: 1px; color: var(--dim); } .drn span { display: flex; align-items: center; gap: 4px; } .drn span b { font-size: 13px; } .drn img.ico { width: 18px; height: 18px; } .drn img.ico.big { width: 30px; height: 30px; }
#app.narrow .drk { gap: 10px; padding: 8px 10px; } #app.narrow .drn { padding-left: 10px; min-width: 66px; } #app.narrow .drc { gap: 3px; }
/* its window: the ten ranks, nothing to scroll */
#modal .mbox:has(.drw) { max-width: 690px; border-color: var(--yellow); } .drw .hd { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; } .drw .hd > div { flex: 1; min-width: 0; } .drw .hd h3 { margin: 0 0 4px; color: var(--ink); text-transform: uppercase; } .drw .hd p { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--dim); } .drw .hd p img.ico { width: 16px; height: 16px; flex: none; } .drw .hd > em { display: flex; align-items: center; gap: 6px; font-style: normal; font-weight: bold; font-size: 18px; color: var(--yellow); } .drw .hd > em img.ico { width: 24px; height: 24px; }
.drg { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; } .drx { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 6px 7px; background: #0b0f1a; border: 2px solid var(--line); text-align: center; } .drx > i { position: absolute; left: 0; top: 0; min-width: 18px; height: 18px; line-height: 18px; font-style: normal; font-size: 11px; font-weight: bold; color: var(--dim); background: #1c2440; } .drx .dri { width: 42px; height: 36px; border: 0; background: none; } .drx .dri img.ico { width: 26px; height: 26px; } .drx .dri .drf img.ico { width: 19px; height: 19px; } .drx .dri img.pix, .drx .dri canvas { width: 36px; height: 36px; } .drx .dri .drp img.ico { width: 20px; height: 20px; margin-left: -10px; }
.drx > div { height: 30px; } .drx > div span { display: flex; align-items: center; justify-content: center; gap: 4px; } .drx > div span b { font-size: 12px; } .drx > div span img.ico { width: 14px; height: 14px; } .drx > div small { display: block; font-size: 9px; color: var(--yellow); white-space: nowrap; } .drx > em { position: absolute; right: 5px; top: 4px; display: flex; align-items: center; gap: 3px; font-style: normal; font-size: 10px; font-weight: bold; color: var(--dim); } .drx > em img.ico { width: 11px; height: 11px; }
.drx.on { border-color: #c98a12; background: #2a1f0a; } .drx.on > i { color: #05070d; background: var(--yellow); } .drx.on > em { color: var(--green); font-size: 13px; } .drx.nx { border-color: var(--yellow); box-shadow: 0 0 12px rgba(255,210,63,.35); } .drx.nx > em, .drx.nx > i { color: var(--yellow); } .drx.lk .dri, .drx.lk > div { opacity: .75; } .drx:last-child .dri { opacity: 1; } .drx .dri .drp { position: static; display: grid; place-items: center; } .drx .dri .drp b { display: none; } .drx .dri .drp img.ico { position: static; width: 26px; height: 26px; margin: 0; } .drw .btn { margin: 0; }
/* the skull and the lock sit in the middle of their diamond */
.path .csq svg { position: static; inset: auto; } .csq.lvl .d svg.px { width: 24px; height: 24px; }
.drmed b.two { font-size: 19px; top: 18px; letter-spacing: -1px; }

/* the target window: threat levels, one key each, on the same line as their name; hotter colours as it gets harder */
.thrw { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 8px 0 6px; } .thrw h2 { margin: 0 !important; flex: none; } .thrs { display: flex; gap: 6px; }
/* the target window is wide: name and Loot on one line, rules and Threat on one line each, so CONNECT is always on screen */
#modal .mbox:has(.prep2) { max-width: 660px; } .prep2 { display: flex; flex-wrap: wrap; align-items: center; } .prep2 > * { flex: 1 1 100%; min-width: 0; } .prep2 > h3 { flex: 0 1 auto; margin-bottom: 4px; } .prep2 > .kv:not(.dkh):has(.stars) { flex: 0 0 auto; margin-left: auto; border: 0; } .prep2 > p { margin: 0 0 4px; } .prep2 .thrw + p { font-size: 11px; min-height: 15px; }
.prep2 .deck2 { margin: 5px 0 8px; } .prep2 .thrw { margin: 4px 0 5px; } .prep2 .rules { margin: 2px 0 4px; } .prep2 > .kv.dkh { padding: 1px 0; } #modal .mbox:has(.prep2) { padding-top: 10px; padding-bottom: 10px; }
.prep2 .rules { padding: 4px 8px; } .prep2 .rules p { line-height: 1.22; } .prep2 .rules p + p { margin-top: 2px; } .prep2 .dk { padding: 3px 2px; }

/* hack result: the LEVEL UP badge has its own place in the XP tile, never cut */
.res2 .rst > div:has(.lvu) { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; border-color: var(--yellow); background: #1c1808; } .res2 .rst .lvu { grid-column: 2; grid-row: 1 / 3; justify-self: end; padding: 5px 12px; font-family: Silkscreen, monospace; font-style: normal; font-size: 14px; letter-spacing: 1px; white-space: nowrap; color: #05070d; background: var(--yellow); box-shadow: 0 2px 0 #000; }
/* the target window: CHOOSE YOUR TOOLS in white, its count right beside it */
.prep2 > .kv.dkh { justify-content: flex-start; gap: 10px; } .prep2 > .kv.dkh span { color: #fff; font-weight: bold; } .prep2 > .kv.dkh b { color: var(--yellow); }
.res2 .rst { grid-auto-flow: dense; } .res2 .rst > div:has(.lvu) { order: -1; }

/* Intrusions: the log (or the rivals) on the left, the tapped one wide on the right */
.lg3 { display: grid; grid-template-columns: minmax(0, 30fr) minmax(0, 70fr); gap: 12px; height: 100%; } .lg3 > .pan { min-width: 0; min-height: 0; }
.lgtabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; flex: none; } .lgtabs button { height: 32px; padding: 0 4px; font-family: Silkscreen, monospace; font-size: 11px; color: var(--dim); background: #0b0f1a; border: 2px solid var(--line); cursor: pointer; white-space: nowrap; } .lgtabs .on { color: #05070d; background: var(--red); border-color: var(--red); }
.ilr { flex: none; width: 100%; margin: 0; padding: 6px 9px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 8px; align-items: center; font: inherit; color: var(--ink); text-align: left; background: #0b0f1a; border: 2px solid var(--line); border-left: 5px solid var(--green); cursor: pointer; } .ilr.bad { border-left-color: var(--red); } .ilr.sel { background: #1a2036; border-color: #fff; } .ilr.sel.ok { border-left-color: var(--green); } .ilr.sel.bad { border-left-color: var(--red); }
.ilr b { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; color: var(--yellow); } .ilr b span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ilr b img.ico { flex: none; width: 16px; height: 16px; } .ilr em { font-style: normal; font-size: 10px; font-weight: bold; color: var(--green); white-space: nowrap; } .ilr.bad em { color: var(--red); } .ilr small { font-size: 10px; color: var(--dim); white-space: nowrap; } .ilr .stars { font-size: 11px; line-height: 1; white-space: nowrap; }
.ivh { font-size: 10px; color: var(--dim); text-align: right; padding: 0 9px 2px; } .ivr { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; padding: 0 10px; background: #0b0f1a; border: 2px solid var(--line); font-size: 12px; } .ivr span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ivr b { font-size: 13px; white-space: nowrap; }
.lg3 .lgdet { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; } .lg3 .lgdet .rhd { flex: none; margin: 0; } .lg3 .lgdet .rhd b { font-size: 17px; }
.ivbd { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; } .ivg { flex: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ivt { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 46px; padding: 4px 10px; box-sizing: border-box; background: #0b0f1a; border: 2px solid var(--line); } .ivt.wide { grid-column: 1 / -1; } .ivt > img.ico { flex: none; width: 24px; height: 24px; } .ivt > div { min-width: 0; } .ivt small { display: block; font-size: 10px; line-height: 1.25; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ivt b { display: block; font-size: 15px; line-height: 1.15; white-space: nowrap; } .ivt b.c { color: var(--cyan); } .ivt i { display: block; font-style: normal; font-size: 10px; line-height: 1.15; color: var(--green); white-space: nowrap; }
.ivx { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; } .ivx.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .ivx:empty { display: none; } .ivf { align-items: flex-start; padding-top: 7px; max-height: 100%; } .ivx:not(.two) .ivf { align-self: start; } .ivf p { margin: 4px 0 0; display: flex; flex-direction: column; gap: 3px; font-size: 12px; line-height: 1.2; font-weight: bold; } .ivx:not(.two) .ivf p { flex-direction: row; flex-wrap: wrap; gap: 3px 16px; } .ivf p.r { color: var(--red); } .ivf p.g { color: var(--green); } .ivf p span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ivc { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 6px 8px; box-sizing: border-box; background: #05070d; border: 2px dashed var(--pink); } .ivc small { flex: none; font-family: Silkscreen, monospace; font-size: 9px; letter-spacing: 1px; color: var(--pink); white-space: nowrap; } .ivc pre.ccard { flex: 1; display: grid; place-content: center; margin: 0; padding: 0; border: 0; background: none; align-self: center; font-size: 12px; line-height: 1.2; color: var(--green); overflow: visible; max-width: none; min-height: 0; }
.lg3 .lgdet .rfoot { flex: none; display: flex; flex-wrap: nowrap; gap: 8px; margin: 0; } .lg3 .lgdet .rfoot .btn { flex: 1 1 0; min-width: 0; min-height: 38px; margin: 0; padding: 0 4px; font-size: 12px; }
#app.narrow .ivt { gap: 7px; padding: 4px 7px; } #app.narrow .ivt > img.ico { width: 20px; height: 20px; } #app.narrow .ivc pre.ccard { font-size: 11px; } #app.narrow .ivt b { font-size: 13px; } #app.narrow .lgtabs button { font-size: 9px; } #app.narrow .lg3 .lgdet { padding: 10px 11px; gap: 8px; } #app.narrow .lg3 .lgdet .rfoot { gap: 6px; } #app.narrow .lg3 .lgdet .rfoot .btn { font-size: 11px; }
.lg3 .lgdet .rfoot { margin-top: auto; } #app.narrow[data-scr=logs] #hud .shead > div:first-child { display: none; } /* a small phone: the tab already says Intrusions */

/* Lab > Tools: no bench on top, the tools have the whole height; each one that is being upgraded carries its own bar; an arrow says there is more below */
.lb2.sc1 { grid-template-rows: minmax(0, 1fr); } .lbwrap { position: relative; min-height: 0; min-width: 0; display: flex; flex-direction: column; } .lbwrap .lbgrid.sc { flex: 1; min-height: 0; padding-bottom: 8px; } .lbgrid.sc .lt { cursor: pointer; text-align: center; box-sizing: border-box; }
.lbmore { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 4px; font-style: normal; font-size: 22px; line-height: 1; color: var(--yellow); text-shadow: 0 2px 0 #000, 0 0 8px #000; background: linear-gradient(180deg, transparent, rgba(8,10,20,.94)); pointer-events: none; opacity: 0; transition: opacity .15s; } .lbwrap.more .lbmore { opacity: 1; }
.lbgrid.sc .lt .cj { height: 26px; } .lbgrid.sc .lt .cj .btn { height: 26px; } .lbdet > .btn:not(.go) { flex: none; margin: auto 0 0; min-height: 36px; }
/* scanner: the portrait sits inside its frame, whole and crisp (the sprite is 32 pixels, the frame 32 plus its border), and the frame in the middle of the row */
.hit .tgf .pf, .shits .rbody:has(.hit:nth-child(5)) .hit .tgf .pf { width: 36px; height: 36px; box-sizing: border-box; overflow: hidden; } .hit .tgf .pf img, .hit .tgf .pf canvas, .shits .rbody:has(.hit:nth-child(5)) .hit .tgf .pf img, .shits .rbody:has(.hit:nth-child(5)) .hit .tgf .pf canvas { width: 100%; height: 100%; display: block; } .shits .rbody:has(.hit:nth-child(5)) .hit .tgf { width: 36px; height: 36px; }
.hit .hs { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 3px 10px; align-items: center; } #app.narrow .hit .hs { grid-template-columns: 78px minmax(0, 1fr); gap: 2px 6px; } /* the four numbers always in the same places, row after row: Bits and files above, defence and Heat below */
.shits .rbody:has(.hit:nth-child(5)) .hit { grid-template-columns: 36px minmax(0, 1.25fr) minmax(0, 1.2fr) 78px; gap: 10px; } #app.narrow .shits .rbody:has(.hit:nth-child(5)) { gap: 3px; } #app.narrow .shits .rbody:has(.hit:nth-child(5)) .hit { padding: 0 6px; gap: 7px; grid-template-columns: 36px minmax(0, 1fr) minmax(0, 1.05fr) 66px; }
/* the top bar never runs past the screen, whatever the name and the numbers: the counters give way first, then the name; the gear always keeps its place */
#hud .gear { flex: none; } #app:not(.subscr) #hud .stats { flex: 1 1 auto; min-width: 0; justify-content: flex-end; } #app:not(.subscr).narrow #hud { gap: 6px; } #app:not(.subscr).narrow #hud .facebox { flex: none; } #app:not(.subscr).narrow #hud .who { flex: 0 1 150px; min-width: 84px; max-width: 150px; padding: 0 7px; overflow: hidden; } #app:not(.subscr).narrow #hud .who b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#app:not(.subscr).narrow #hud .stats { gap: 9px; } #app:not(.subscr).narrow #hud .stats span { min-width: 0; padding: 0 6px 0 19px; font-size: 12px; } #app:not(.subscr).narrow #hud .stats [data-a] { padding: 0 6px 0 19px; } #app:not(.subscr).narrow #hud .stats span img.ico { width: 22px; height: 22px; left: -6px; } #app:not(.subscr).narrow #hud .stats .tag { display: none; }

/* bug hunt: the raid result never squashes its notes; with many numbers the tiles go three to a row */
.res2 .rnotes p { flex: none; } .res2 .rst:has(> div:nth-child(7)) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; } .res2 .rst:has(> div:nth-child(7)) > div { padding: 3px 6px; } .res2 .rst:has(> div:nth-child(7)) b { font-size: 13px; } .res2 .rr { min-height: 0; overflow-y: auto; scrollbar-width: none; }
/* Portuguese: HACKEAR fits its button in the scanner */
html[lang^=pt] .hit > .btn, html[lang^=pt] .shits .rbody:has(.hit:nth-child(5)) .hit .btn { font-size: 10px; letter-spacing: 0; padding: 0 3px; gap: 3px; } html[lang^=pt] .shits .rbody:has(.hit:nth-child(5)) .hit .btn small { display: none; }
/* hack and Rig: with several locks the node's name keeps its own line */
.pkt { color: var(--pink); font-size: 12px; margin: 2px 0; }
.fpop .mv { gap: 5px; } .fpop .mv b { flex: 1 1 auto; } .fpop .mv small { font-size: 9px; }
.fpop .mv { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 6px; row-gap: 1px; } .fpop .mv > img, .fpop .mv > .ico { grid-row: 1 / span 2; } .fpop .mv small { margin-left: 0; grid-column: 2; } /* the place name gets the full width, its slots under it (1 Dec 2026: Cold S...) */
.lbgrid .lt .u { max-width: 100%; overflow: hidden; text-overflow: ellipsis; } .lbgrid .lt > b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.ivc pre.ccard { padding-top: 2px; }
.ivt { min-height: 41px; padding-top: 2px; padding-bottom: 2px; } .ivbd { gap: 7px; } .ivg { gap: 7px; } .ivf { padding-top: 5px; padding-bottom: 2px; } .ivf p { margin-top: 2px; gap: 1px; font-size: 11px; }

/* ON THE NET NOW: a small button on the right, over the list of districts */
.dzlist .rh { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex: none; }
.netnow { display: flex; align-items: center; gap: 8px; margin: 0; padding: 4px 9px; background: #1d1806; border: 2px solid var(--yellow); box-shadow: 0 3px 0 #000; color: var(--yellow); font: inherit; cursor: pointer; white-space: nowrap; box-sizing: border-box; }
.netnow small { font-size: 9px; line-height: 1; letter-spacing: .5px; color: #d9c777; } .netnow b { font-family: Silkscreen, monospace; font-weight: 400; font-size: 12px; line-height: 1; letter-spacing: 0; text-transform: uppercase; color: var(--yellow); }
.dzc .dzn small { white-space: nowrap; }
/* remove a node: the question */
.rmq h3 { display: flex; align-items: center; gap: 10px; } .rmq p { margin: 4px 0; } .rmq .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; } .rmq .btns .btn { width: auto; margin: 0; min-height: 42px; }
/* taps: nothing scrolls in a hack, the top bar or the menu, so a finger that slides there is still a tap (the list of files keeps its swipe) */
#run, #hud, #nav { touch-action: none; } #rinfo .fls { touch-action: pan-x; }
.lbdet .c6 { margin: 2px 0 6px; text-align: center; }
/* a clean escape counted out (gainShow): the tiles come in one by one, the number runs up, then it lands */
.res2.gn-on .rst > div:not(.gn-in), .res2.gn-on .rfl2 p:not(.none):not(.gn-in) { opacity: 0; } .res2.gn-on .rst .lvu:not(.gn-in) { visibility: hidden; }
.res2.gn-on .rst > div.gn-in { animation: gnpop .12s cubic-bezier(.2,1.6,.4,1) both; } .res2.gn-on .rst > div.gn-cnt { border-color: var(--gc); box-shadow: 0 0 14px color-mix(in srgb, var(--gc) 55%, transparent); } .res2.gn-on .rst > div.gn-cnt b { color: var(--gc); transform: scale(1.25); transform-origin: 0 50%; }
.res2.gn-on .rst > div.gn-hit { animation: gnhit .3s cubic-bezier(.2,1.5,.4,1) both; } .res2.gn-on .rst > div.gn-hit b { animation: gnnum .25s cubic-bezier(.2,1.8,.4,1) both; transform-origin: 0 50%; } .res2.gn-on .rst .lvu.gn-in { animation: gnnum .25s cubic-bezier(.2,1.8,.4,1) both; }
.res2.gn-on .rfl2 p.gn-in { animation: gnfile .16s cubic-bezier(.2,1.3,.4,1) both; }
.res2.gn-on .rnotes, .res2.gn-on .rr > *:not(.rfh):not(.rfl2) { opacity: 0; transition: opacity .15s; } .res2.gn-on.gn-done .rnotes, .res2.gn-on.gn-done .rr > *:not(.rfh):not(.rfl2) { opacity: 1; }
.gn-fx { position: absolute; width: 0; height: 0; z-index: 3; pointer-events: none; } .gn-fx i { position: absolute; left: 0; top: 0; width: var(--s, 14px); height: var(--s, 14px); margin: calc(var(--s, 14px) / -2); background: var(--c); box-shadow: 0 0 6px var(--c); animation: gnfly var(--t) cubic-bezier(.1,.7,.4,1) forwards; } .gn-fx i.gn-coin { background: none; box-shadow: none; } .gn-fx i.gn-coin img.ico { width: 14px; height: 14px; margin: 0; display: block; }
@keyframes gnpop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes gnhit { 0% { transform: scale(1.08); border-color: #fff; background: color-mix(in srgb, var(--gc) 45%, #0b0f1a); box-shadow: 0 0 22px var(--gc); } 100% { transform: none; box-shadow: 0 0 0 transparent; } }
@keyframes gnnum { 0% { transform: scale(1.55); color: #fff; } 100% { transform: none; } }
@keyframes gnfile { 0% { transform: translateX(26px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes gnfly { 0% { transform: translate(0, 0) scale(1); opacity: 1; } 60% { opacity: 1; } 100% { transform: translate(var(--x), calc(var(--y) + 40px)) scale(.6); opacity: 0; } }
/* home: CREW sits above RIG */
#nav .nlw { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; pointer-events: none; }
/* ----- the season: prizes, the Hall of Fame, the end-of-season window ----- */
#main[data-s=season][data-sub=prizes], #main[data-s=season][data-sub=hall] { display: block; overflow: hidden; padding: 8px 10px 10px !important; }
.szp { height: 100%; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.szh { flex: none; display: flex; align-items: center; gap: 14px; padding: 5px 12px; background: linear-gradient(90deg, color-mix(in srgb, var(--zc) 26%, #0b0f1a), #0b0f1a 70%); border: 2px solid var(--zc); }
.szh > div > b { display: block; font-family: Silkscreen, monospace; font-weight: 400; font-size: 20px; line-height: 1.1; color: var(--zc); text-shadow: 0 0 10px color-mix(in srgb, var(--zc) 60%, transparent); white-space: nowrap; } .szh small { display: block; font-size: 10px; color: var(--dim); white-space: nowrap; } .szh .szy b { font-size: 15px; color: var(--yellow); text-shadow: none; } .szh p { flex: 1; margin: 0; font-family: Silkscreen, monospace; font-size: 14px; line-height: 1.15; color: var(--ink); text-align: right; } .szh p b { font-weight: 400; color: var(--zc); }
.szl { flex: 1 1 auto; min-height: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(104px, 1fr); gap: 6px; overflow-x: auto; overflow-y: hidden; }
.szc { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 4px 0; background: #0b0f1a; border: 2px solid var(--rc); text-align: center; overflow: hidden; }
.szc .sznd { font-family: Silkscreen, monospace; font-size: 11px; color: var(--yellow); line-height: 1.1; } .szpv { display: grid; place-items: center; min-height: 0; }
.szc .szpv { position: relative; flex: 1 1 60px; width: 100%; overflow: hidden; } .szc .szpv .pix { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; } .szc .szpv .swatch { width: 70%; height: 46px; } .szpv pre.ccard { margin: 0; padding: 4px 6px; height: auto; max-height: 100%; min-height: 0; box-sizing: border-box; align-self: center; font-size: 8px; line-height: 1.2; text-align: left; }
.szc > b { font-size: 11px; line-height: 1.15; } .szc > small { font-size: 9px; line-height: 1.1; } .szc > em { font-style: normal; font-size: 9px; line-height: 1.15; color: var(--yellow); }
.szst { position: relative; flex: none; align-self: stretch; margin: 2px -4px 0; height: 20px; display: grid; place-items: center; font-size: 9px; font-weight: bold; color: var(--dim); background: #05070d; overflow: hidden; white-space: nowrap; } .szst i { position: absolute; left: 0; top: 0; bottom: 0; background: color-mix(in srgb, var(--yellow) 45%, #05070d); } .szst span { position: relative; color: #fff; }
.szc.got { background: #10241a; } .szc.got .szst { color: #05070d; background: var(--green); } .szc.nxt { box-shadow: inset 0 0 0 1px var(--yellow); } .szc.lk .szpv { opacity: .55; }
.szt { flex: none; display: grid; grid-template-columns: 1.15fr 1fr 1fr 1fr; gap: 6px; }
.szs { min-width: 0; padding: 5px 7px; background: #0b0f1a; border: 2px solid var(--line); } .szs.s19 { border-color: #ff4fd8; } .szs.s18 { border-color: var(--cyan); } .szs.s17 { border-color: var(--red); } .szs.thr { border-color: var(--yellow); background: linear-gradient(90deg, #2a1c08, #0b0f1a); } .szs.me { box-shadow: inset 0 0 0 2px var(--green); }
.szr { display: flex; align-items: center; gap: 6px; } .szr img.ico.big { width: 30px; height: 30px; flex: none; margin: 0; } .szr b { display: block; font-family: Silkscreen, monospace; font-weight: 400; font-size: 11px; line-height: 1.1; } .szr small { display: block; font-size: 9px; color: var(--dim); line-height: 1.1; white-space: nowrap; }
.szw { display: flex; gap: 7px; align-items: center; margin-top: 3px; min-width: 0; } .szs.thr .szw { margin: 0; height: 100%; } .szi { flex: none; width: 46px; height: 46px; display: grid; place-items: center; background: #05070d; border: 1px solid var(--line); overflow: hidden; } .szi .pix { width: 44px; height: 44px; object-fit: contain; image-rendering: pixelated; } .szs.thr .szi { width: 84px; height: 62px; } .szs.thr .szi .pix { width: 84px; height: 60px; object-fit: cover; }
.szs:not(.thr) .szw { flex-direction: column; align-items: stretch; gap: 4px; margin-top: 6px; } .szq { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 20px; padding: 0 4px; font-size: 10px; text-align: center; background: #05070d; border: 1px solid var(--line); } .szq img.ico { width: 13px; height: 13px; margin: 0; } .szw b { font-size: 12px; color: var(--yellow); } .szw p { margin: 1px 0 0; font-size: 9.5px; line-height: 1.25; }
/* Hall of Fame */
.szf { height: 100%; display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden; } .szf.empty { align-items: center; justify-content: center; } .szf.empty .pan { max-width: 420px; padding: 22px 26px; text-align: center; } .szf.empty img.ico { width: 44px; height: 44px; } .szf.empty b { display: block; margin: 8px 0 4px; font-family: Silkscreen, monospace; font-weight: 400; font-size: 18px; color: var(--yellow); } .szf.empty p { margin: 0; font-size: 12px; color: var(--dim); }
.szfs { flex: 1 0 330px; max-width: 480px; display: flex; flex-direction: column; gap: 8px; padding: 10px; border-color: var(--zc); min-height: 0; overflow-y: auto; box-sizing: border-box; } .szfs .rh { color: var(--zc); }
.szpod { flex: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; align-items: end; } .szpod > div { position: relative; display: flex; flex-direction: column; align-items: center; padding: 8px 4px 6px; background: #0b0f1a; border: 2px solid var(--line); min-width: 0; } .szpod .p1 { order: 2; padding-top: 14px; padding-bottom: 12px; border-color: var(--yellow); background: #241a08; } .szpod .p2 { order: 1; border-color: #c8cede; } .szpod .p3 { order: 3; border-color: #c98a4a; } .szpod i { position: absolute; left: 0; top: 0; width: 20px; height: 18px; line-height: 18px; text-align: center; font-style: normal; font-family: Silkscreen, monospace; font-size: 11px; color: #05070d; background: var(--yellow); } .szpod b { margin-top: 4px; max-width: 100%; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .szpod b img.ico { width: 13px; height: 13px; vertical-align: -2px; margin-right: 3px; } .szpod small { font-size: 10px; color: var(--yellow); } .szfs .lgr span img.ico { width: 13px; height: 13px; vertical-align: -2px; }
/* the moving frame of a season skin: red dashes running around the portrait */
.lbr .pf.fr-arch { animation: none; border-color: #10202c; box-shadow: 0 0 12px rgba(125,224,255,.6); } .lbr .pf.fr-arch::after { content: ''; position: absolute; inset: -2px; pointer-events: none; background: linear-gradient(90deg, #35e0ff 50%, #0c2a36 50%) 0 0 / 10px 2px repeat-x, linear-gradient(90deg, #35e0ff 50%, #0c2a36 50%) 0 100% / 10px 2px repeat-x, linear-gradient(0deg, #35e0ff 50%, #0c2a36 50%) 0 0 / 2px 10px repeat-y, linear-gradient(0deg, #35e0ff 50%, #0c2a36 50%) 100% 0 / 2px 10px repeat-y; animation: szframe .5s steps(5) infinite; }
@keyframes szframe { to { background-position: 10px 0, -10px 100%, 0 -10px, 100% 10px; } }
@media (prefers-reduced-motion: reduce) { .lbr .pf.fr-arch::after { animation: none; } }
/* the end of a season */
#modal .mbox:has(.sze) { max-width: 660px; border-color: #ff3b3b; } .sze { text-align: center; } .sze > small { font-size: 11px; letter-spacing: 2px; color: var(--dim); } .sze .szn { display: block; font-family: Silkscreen, monospace; font-weight: 400; font-size: 24px; line-height: 1.1; color: var(--zc); text-shadow: 0 0 16px var(--zc); } .szeh { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 2px 0 4px; } .szeh img.ico.big { width: 28px; height: 28px; margin: 0; } .szeh b { font-size: 20px; color: var(--yellow); line-height: 1; } .szeh small { display: block; font-size: 11px; color: var(--ink); }
.szg { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin: 4px 0; } .szg > div { width: 96px; padding: 3px; background: #0b0f1a; border: 2px solid var(--rc); display: flex; flex-direction: column; align-items: center; box-sizing: border-box; } .szg .szpv { height: 32px; width: 100%; overflow: hidden; } .szg .szpv .pix { height: 32px; width: auto; max-width: 80px; object-fit: contain; image-rendering: pixelated; } .szg .szpv .swatch { height: 28px; width: 60px; box-sizing: border-box; } .szg .szpv pre.ccard { font-size: 5px; padding: 2px 4px; } .szg .szpv img.ico.big { width: 26px; height: 26px; margin: 0; } .szg b { font-size: 10px; line-height: 1.15; } .szg small { font-size: 9px; color: var(--dim); } .szg em { font-style: normal; font-size: 9px; color: var(--yellow); line-height: 1.1; }
.sze > p { margin: 3px 0; } .sze > .btn { min-height: 40px; height: 40px; margin: 4px 0 0; } #modal .mbox:has(.sze) { padding-top: 8px; padding-bottom: 8px; } .intr.szx .cam { display: grid; place-items: center; } .intr.szx .cam img.ico { width: 48px; height: 48px; }
/* the last week: the countdown in the room */
.szcd { position: absolute; left: 50%; top: 58px; transform: translateX(-50%); z-index: 5; display: flex; align-items: baseline; gap: 8px; padding: 5px 12px; font: inherit; color: #fff; background: rgba(8,4,6,.9); border: 2px solid var(--zc); box-shadow: 0 0 14px color-mix(in srgb, var(--zc) 55%, transparent); cursor: pointer; white-space: nowrap; } .szcd b { font-family: Silkscreen, monospace; font-weight: 400; font-size: 13px; color: var(--zc); } .szcd span { font-size: 11px; }
#app[data-scr=season] #hud { --ac: var(--yellow); } #app[data-scr=season] #hud .stats .bwhud, #app[data-scr=season] #hud .stats [data-a=ddinfo], #app[data-scr=season] #hud .stats span:not([id]):not([data-a]) { display: none; }
/* ----- everything earned is shown: the big reveal (ern*) and the pop (ep*) ----- */
#modal .mbox:has(.ern) { position: relative; width: 100%; max-width: none; height: 100%; max-height: none; padding: 0; margin: 0; border: 0; background: none; box-shadow: none; overflow: hidden; display: grid; place-items: center; animation: none; }
#modal:has(.ern) { padding: 0; background: rgba(2,3,8,.93); }
.ern { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; overflow: hidden; }
.ernrays { position: absolute; left: 50%; top: 38%; width: 1200px; height: 1200px; margin: -600px 0 0 -600px; opacity: 0; background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--rc) 30%, transparent) 0deg 9deg, transparent 9deg 24deg); -webkit-mask-image: radial-gradient(circle, #000 0, rgba(0,0,0,.55) 22%, transparent 52%); mask-image: radial-gradient(circle, #000 0, rgba(0,0,0,.55) 22%, transparent 52%); animation: ernspin 26s linear infinite; transition: opacity .4s; } .ern.open .ernrays { opacity: 1; }
@keyframes ernspin { to { transform: rotate(360deg); } }
.ernstage { position: relative; flex: none; display: grid; place-items: center; min-width: 190px; height: 178px; }
.ernglow { position: absolute; inset: 10px 0; background: radial-gradient(circle, color-mix(in srgb, var(--rc) 75%, #fff) 0, color-mix(in srgb, var(--rc) 45%, transparent) 35%, transparent 70%); opacity: .25; animation: ernpulse .5s ease-in infinite alternate; } .ern.open .ernglow { opacity: .55; animation: ernpulse 1.6s ease-in-out infinite alternate; }
@keyframes ernpulse { from { transform: scale(.7); } to { transform: scale(1.15); } }
.ernpic { position: relative; display: grid; place-items: center; filter: brightness(0) drop-shadow(0 0 8px var(--rc)); animation: erncharge 1.2s cubic-bezier(.5,0,.9,.4) infinite; }
.k-rooms .ernpic, .k-setups .ernpic, .k-themes .ernpic, .k-cards .ernpic { filter: brightness(.1) saturate(.4) blur(3px) drop-shadow(0 0 8px var(--rc)); }
.t0 .ernpic { animation-duration: .52s; } .t1 .ernpic { animation-duration: .64s; } .t2 .ernpic { animation-duration: .85s; }
@keyframes erncharge { 0% { transform: scale(.72); } 20% { transform: scale(.78) rotate(-2deg); } 40% { transform: scale(.82) rotate(2deg); } 55% { transform: scale(.86) rotate(-3deg); } 70% { transform: scale(.9) rotate(3deg); } 85% { transform: scale(.94) rotate(-4deg); } 100% { transform: scale(1) rotate(0); } }
.ern.open .ernpic { filter: drop-shadow(0 4px 0 #000) drop-shadow(0 0 14px color-mix(in srgb, var(--rc) 60%, transparent)); animation: ernland .5s cubic-bezier(.2,1.7,.4,1) both, ernfloat 2.6s ease-in-out .5s infinite alternate; }
@keyframes ernland { 0% { transform: scale(1.9); filter: brightness(6); } 100% { transform: scale(1); } } @keyframes ernfloat { from { translate: 0 0; } to { translate: 0 -7px; } }
.ernpic .pix { width: 170px; height: 170px; image-rendering: pixelated; object-fit: contain; } .k-rooms .ernpic .pix, .k-setups .ernpic .pix { width: 264px; height: 174px; border: 3px solid var(--rc); background: #05070d; object-fit: cover; } .k-pets .ernpic .pix { width: 200px; height: 150px; } .ernpic .swatch { width: 220px; height: 120px; box-sizing: border-box; padding: 14px; gap: 10px; } .ernpic pre.ccard { margin: 0; padding: 16px 22px; font-size: 17px; line-height: 1.3; text-align: left; border-color: var(--rc); height: auto; } .ernpic .ernbadge { width: 150px; height: 150px; image-rendering: pixelated; margin: 0; }
.erntt { padding: 16px 30px; background: linear-gradient(90deg, transparent, #2a1c08 18%, #2a1c08 82%, transparent); border-top: 3px solid var(--rc); border-bottom: 3px solid var(--rc); } .erntt b { font-family: Silkscreen, monospace; font-weight: 400; font-size: 30px; color: var(--rc); white-space: nowrap; }
.erntx { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; opacity: 0; } .ern.open .erntx { opacity: 1; }
.erntx small { font-family: Silkscreen, monospace; font-size: 13px; letter-spacing: 4px; color: #fff; } .ernnm { font-family: Silkscreen, monospace; font-weight: 400; font-size: 34px; line-height: 1.05; color: var(--rc); text-shadow: 0 3px 0 #000, 0 0 18px color-mix(in srgb, var(--rc) 70%, transparent); } .k-title .ernnm { font-size: 18px; color: #fff; } .ernrr { margin-top: 3px; padding: 2px 14px; font-size: 12px; font-weight: bold; letter-spacing: 2px; text-transform: uppercase; color: #05070d; background: var(--rc); } .erntx p { margin: 4px 0 0; font-size: 12px; color: var(--ink); }
.ern.open .erntx small { animation: ernslide .35s ease-out .15s both; } .ern.open .ernnm { animation: ernslam .4s cubic-bezier(.2,1.8,.4,1) .25s both; } .ern.open .ernrr { animation: ernslide .3s ease-out .5s both; } .ern.open .erntx p { animation: ernslide .3s ease-out .62s both; }
@keyframes ernslide { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } } @keyframes ernslam { from { opacity: 0; transform: scale(2.4); } to { opacity: 1; transform: none; } }
.ernbt { position: relative; flex: none; display: flex; gap: 10px; margin-top: 8px; opacity: 0; pointer-events: none; } .ern.open .ernbt { pointer-events: auto; animation: ernslide .3s ease-out .8s both; } .ernbt .btn { min-width: 148px; min-height: 44px; margin: 0; }
.ernct { position: absolute; right: calc(16px + var(--sr, 0px)); top: 12px; font-style: normal; font-family: Silkscreen, monospace; font-size: 13px; color: var(--dim); }
.lvfx.ernfx { z-index: 3; }
/* the pop */
.epop { position: absolute; left: 50%; top: 66px; transform: translateX(-50%); z-index: 62; pointer-events: none; min-width: 180px; max-width: 480px; box-sizing: border-box; padding: 9px 26px 10px; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; background: linear-gradient(90deg, transparent, rgba(6,8,16,.95) 14%, rgba(6,8,16,.95) 86%, transparent); border-top: 2px solid var(--pc); border-bottom: 2px solid var(--pc); animation: epin .28s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes epin { from { opacity: 0; transform: translateX(-50%) scaleX(.2); } to { opacity: 1; transform: translateX(-50%); } } .epop.out { animation: epout .22s ease-in both; } @keyframes epout { to { opacity: 0; transform: translateX(-50%) translateY(-16px); } }
.epop small { font-family: Silkscreen, monospace; font-size: 11px; letter-spacing: 3px; color: var(--pc); } .epn, .epr { display: flex; align-items: center; justify-content: center; gap: 14px; } .epn { gap: 9px; } .epn b { font-family: Silkscreen, monospace; font-weight: 400; font-size: 20px; line-height: 1.1; color: #fff; text-shadow: 0 2px 0 #000; } .epr span { display: flex; align-items: center; gap: 6px; } .epr b { font-family: Silkscreen, monospace; font-weight: 400; font-size: 26px; line-height: 1; color: var(--uc); text-shadow: 0 2px 0 #000; font-variant-numeric: tabular-nums; } .epr em { font-style: normal; font-size: 12px; font-weight: bold; color: var(--uc); }
.epop img.ico.epi { width: 28px; height: 28px; margin: 0; } .epop img.ico.epb { width: 32px; height: 32px; margin: 0; } .epop p { margin: 2px 0 0; font-size: 11px; line-height: 1.3; color: var(--ink); }
.epop.land .epr b, .epop.land .epn { animation: epland .4s cubic-bezier(.2,1.9,.4,1); } @keyframes epland { 0% { transform: scale(1.5); } 100% { transform: none; } }
.epfly { position: absolute; width: 0; height: 0; z-index: 63; pointer-events: none; } .epfly i { position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; animation: epfly var(--t) cubic-bezier(.5,0,.8,.5) both; } .epfly i:empty { left: -3px; top: -3px; width: 6px; height: 6px; background: var(--c); box-shadow: 0 0 6px var(--c); } .epfly img.ico { width: 16px; height: 16px; margin: 0; display: block; }
@keyframes epfly { 0% { transform: translate(0,0) scale(.4); opacity: 1; } 34% { transform: translate(var(--bx), var(--by)) scale(1.1); opacity: 1; } 92% { opacity: 1; } 100% { transform: translate(var(--tx), var(--ty)) scale(.5); opacity: 0; } }
#hud .ephit { animation: ephit .45s cubic-bezier(.2,1.8,.4,1); } @keyframes ephit { 0% { transform: scale(1.25); filter: brightness(2); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .ernrays, .ernglow, .ernpic, .ern.open .ernpic, .ern.open .erntx *, .epop, .epop.land * { animation: none !important; } .ern.open .ernbt { opacity: 1; animation: none; } }

/* ----- tabs and sub-tabs: a raised edge, a readable name, and a glint that crosses each one in turn, so it is clear they can be tapped ----- */
#hud .shead.htabs button:not(.on):not(.rextra), .seg button:not(.on), #main.flow > .sect .seg button:not(.on), .lgtabs button:not(.on), .sktabs button:not(.on), .sk2 .cats button:not(.on) { color: #c6cfee; background-image: linear-gradient(112deg, transparent 42%, rgba(255,255,255,.05) 46%, rgba(255,255,255,.22) 50%, rgba(255,255,255,.05) 54%, transparent 58%); background-size: 260% 100%; background-repeat: no-repeat; background-position: 130% 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 -3px 0 rgba(0,0,0,.35); animation: tabglint 4.6s linear infinite; }
#hud .shead.htabs button:nth-child(2), .seg button:nth-child(2), .lgtabs button:nth-child(2), .sktabs button:nth-child(2), .sk2 .cats button:nth-child(2) { animation-delay: .22s !important; } #hud .shead.htabs button:nth-child(3), .seg button:nth-child(3), .sktabs button:nth-child(3), .sk2 .cats button:nth-child(3) { animation-delay: .44s !important; } #hud .shead.htabs button:nth-child(4), .seg button:nth-child(4), .sktabs button:nth-child(4), .sk2 .cats button:nth-child(4) { animation-delay: .66s !important; } #hud .shead.htabs button:nth-child(5), .seg button:nth-child(5), .sk2 .cats button:nth-child(5) { animation-delay: .88s !important; } .sk2 .cats button:nth-child(6) { animation-delay: 1.1s !important; }
@keyframes tabglint { 0% { background-position: 130% 0; } 22%, 100% { background-position: -40% 0; } }
#hud .shead.htabs button:not(.on):not(.rextra):active, .seg button:not(.on):active, .lgtabs button:not(.on):active, .sktabs button:not(.on):active, .sk2 .cats button:not(.on):active { color: #fff; box-shadow: inset 0 3px 0 rgba(0,0,0,.4); }
#hud .shead.htabs button:not(.on):has(.dot), .seg button:not(.on):has(.sdot) { animation: tabglint 4.6s linear infinite, segnews 1.2s ease-in-out infinite alternate; }
#hud .shead.htabs button:not(.on):has(.dot) { animation: tabglint 4.6s linear infinite, tabclaim 1.3s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { #hud .shead.htabs button, .seg button, .lgtabs button, .sktabs button, .sk2 .cats button { animation: none !important; } }
/* ----- the day's deals, the first time the game is opened in a day ----- */
#modal .mbox:has(.ddx) { max-width: 660px; width: 100%; padding: 10px 14px 12px; border-color: var(--yellow); box-shadow: 0 0 34px rgba(255,210,63,.28); }
/* the hack screen (owner, 2 Dec 2026): the map with a HACK CORPS band and glowing district labels; HACK PLAYERS and JOBS as big buttons with bands */
.hhub .nmap { position: relative; overflow: hidden; }
.hh-maptl { position: absolute; left: 0; right: 0; top: 0; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 6px 10px 7px; background: color-mix(in srgb, #35e0ff 90%, #05070d); pointer-events: none; }
.hhub .nmap { container-type: size; }
.hh-maptl > b { font-family: Silkscreen, monospace; font-weight: 400; font-size: 16px; line-height: 1; letter-spacing: 2px; color: #05070d; white-space: nowrap; }
.hh-maptl .netnow { pointer-events: auto; margin-left: auto; }
@media (max-width: 760px), (max-height: 400px) { .hh-maptl { flex-wrap: nowrap; } .hh-maptl .netnow { flex-direction: column; align-items: flex-start; gap: 2px; padding: 3px 7px; } } /* smaller phones: ON THE NET NOW with the rule under it, the band stays one row (owner) */
.hhub .nlbl { box-shadow: 0 0 10px 1px var(--dc), inset 0 0 6px var(--dc); border-width: 2px; animation: hhglow 1.6s ease-in-out infinite; } /* the labels glow: tap a district */
.hhub .nlbl.locked { box-shadow: 0 0 6px 0 var(--dc); }
@keyframes hhglow { 50% { box-shadow: 0 0 3px 0 var(--dc), inset 0 0 2px var(--dc); } }
/* clears (2 Dec 2026): the HACKED stamp on corp cards, the password in the status line, the Vault's keypad, the stamp over the hack */
.csq .clr-hk { position: absolute; left: 50%; top: 38px; transform: translateX(-50%) rotate(-12deg); padding: 1px 4px; font-style: normal; font-family: Silkscreen, monospace; font-size: 9px; letter-spacing: 1px; color: #3ddc84; border: 2px solid #3ddc84; background: rgba(5, 7, 13, .85); pointer-events: none; z-index: 3; }
#rstat .clr-st b { letter-spacing: 2px; color: var(--dim); } #rstat .clr-st.got b { color: #ffd23f; } #rstat .clr-st.ok { border-color: #3ddc84; } #rstat .clr-st.ok b { color: #3ddc84; }
.clr-open { margin: 6px 0; display: flex; align-items: center; justify-content: center; gap: 8px; color: #05070d; background: #ffd23f; border-color: #ffd23f; } .clr-open img.ico { width: 20px; height: 20px; }
.clr-kp { margin-top: 6px; display: flex; flex-direction: column; gap: 5px; } .clr-kp small { color: var(--dim); font-size: 10px; }
.clr-kd { display: flex; gap: 4px; justify-content: center; } .clr-kd i { width: 22px; height: 26px; display: grid; place-items: center; font-style: normal; font-family: Silkscreen, monospace; font-size: 16px; color: #ffd23f; border: 2px solid #3a4160; background: #05070d; } .clr-kd i.on { border-color: #ffd23f; }
.clr-kp h3 { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 4px; } .clr-kp h3 img.ico { width: 22px; height: 22px; } .clr-kp .clr-kd i { width: 30px; height: 36px; font-size: 20px; }
.clr-kg { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 260px; width: 100%; margin: 0 auto; gap: 4px; } .clr-kg button { height: 30px; font-family: Silkscreen, monospace; font-size: 14px; color: var(--ink); background: #131826; border: 2px solid #3a4160; cursor: pointer; padding: 0; } .clr-kg button:active { background: #232a40; }
.clr-kg .del { font-size: 10px; } .clr-kp > small { text-align: center; } .clr-kg button { height: 40px; font-size: 18px; } .clr-kg .ok { grid-column: span 1; font-size: 11px; color: #05070d; background: #3ddc84; border-color: #3ddc84; } .clr-kg .ok.off { opacity: .4; }
.hh-col { flex: 1; min-width: 0; display: grid; grid-template-rows: minmax(0, 1.4fr) minmax(0, 1fr); gap: 8px; }
.hh-big { position: relative; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 8px 10px; margin: 0; text-align: left; font: inherit; color: var(--ink); background: #0b0509; border: 3px solid var(--bc); box-shadow: 0 4px 0 #000, 0 0 22px -6px var(--bc); cursor: pointer; }
.hh-big:active { transform: translateY(2px); box-shadow: 0 2px 0 #000; }
.hh-pl { --bc: #ff5a5a; container-type: size; } .hh-jb { --bc: #ffd23f; container-type: size; } /* the titles scale with their button (owner: too big on bigger screens) */ .hh-big.off { filter: grayscale(.6) brightness(.8); }
.hh-big > canvas.hh-bg, .hh-big > img.hh-board { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; object-fit: cover; }
.hh-big > :not(canvas):not(img) { position: relative; z-index: 2; }
.hh-live { position: absolute !important; left: 8px; top: 8px; z-index: 3 !important; display: inline-flex; align-items: center; gap: 5px; padding: 2px 6px; background: #ff5a5a; color: #05070d; font-family: Silkscreen, monospace; font-size: 10px; letter-spacing: 1px; white-space: nowrap; box-shadow: 0 2px 0 #000; }
.hh-live i { width: 7px; height: 7px; background: #05070d; animation: hhblink 1s steps(2) infinite; }
.hh-badge { position: absolute !important; right: 8px; top: 8px; z-index: 3 !important; padding: 2px 7px; font-family: Silkscreen, monospace; font-size: 10px; color: #05070d; background: #3ddc84; box-shadow: 0 2px 0 #000; white-space: nowrap; animation: hhbeat 1.3s ease-in-out infinite; } .hh-badge.rv { background: #ffd23f; }
.hh-scene { align-self: stretch; flex: 1 1 auto; min-height: 0; margin: -8px -10px 0; padding: 30px 0 8px; container-type: size; display: flex; align-items: center; justify-content: center; }
.hh-tg { --pz: min(190px, calc(100cqh - 2px), 27cqw); position: relative; display: flex; align-items: center; } .hh-tg.mid { z-index: 2; } .hh-tg:not(.mid) { z-index: 1; filter: brightness(.8); margin: 0 calc(var(--pz) * -0.2); }
.hh-fr { position: relative; height: calc(var(--pz) * .8); aspect-ratio: 1; border: 3px solid var(--rc); background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--rc) 30%, transparent), #05070d 75%); box-shadow: 0 3px 0 #000, 0 0 14px -3px var(--rc); overflow: visible; }
.hh-tg.mid .hh-fr { height: var(--pz); }
.hh-pt { position: absolute; inset: 0; overflow: hidden; } .hh-pt > img, .hh-pt > canvas { position: absolute; left: 6%; top: 6%; width: 88%; height: auto; image-rendering: pixelated; }
.hh-fr > .rk { position: absolute; left: 2px; top: 2px; width: 13px; height: 13px; z-index: 2; image-rendering: pixelated; }
.hh-fr > em { position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%); z-index: 3; padding: 1px 4px; font-style: normal; font-family: Silkscreen, monospace; font-size: 9px; line-height: 1; color: #ffd23f; background: #05070d; border: 1px solid #ffd23f; white-space: nowrap; }
.hh-ret { position: absolute; inset: -6px; z-index: 4; pointer-events: none; opacity: 0; animation: hhret 5.1s infinite; } /* the reticle locks on each rival in turn: the middle one first */
.hh-tg:nth-child(1) .hh-ret { animation-delay: 1.7s; } .hh-tg:nth-child(3) .hh-ret { animation-delay: 3.4s; }
.hh-ret b { position: absolute; width: 30%; height: 30%; border: 3px solid #ff3b3b; filter: drop-shadow(0 0 4px #ff3b3b); }
.hh-ret b:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; } .hh-ret b:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; } .hh-ret b:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; } .hh-ret b:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
@keyframes hhret { 0% { opacity: 0; transform: scale(1.5); } 5% { opacity: 1; transform: scale(1); } 30% { opacity: 1; transform: scale(1); } 33%, 100% { opacity: 0; transform: scale(1); } }
.hh-band { align-self: stretch; position: relative; z-index: 2; margin: 0 -10px -8px; padding: 7px 56px 8px 10px; background: color-mix(in srgb, var(--bc) 90%, #05070d); }
.hh-bt { font-family: Silkscreen, monospace; font-size: 16px; line-height: 1; letter-spacing: 2px; color: #05070d; }
.hh-bs { margin-top: 5px; font-size: 11px; color: #05070d; }
.hh-arrow { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center; font-family: Silkscreen, monospace; font-size: 18px; color: var(--bc); background: #05070d; }
@keyframes hhblink { 50% { opacity: .25; } } @keyframes hhbeat { 50% { transform: scale(1.06); } }
@media (max-height: 460px) { .hh-col { grid-template-rows: minmax(0, 1.8fr) minmax(0, 1fr); } .hh-scene { padding: 24px 0 4px; } }
@media (max-height: 400px) { .hh-band { padding: 5px 50px 6px 10px; } .hh-live, .hh-badge { font-size: 8px; letter-spacing: 0; padding: 1px 4px; } .hh-live { left: 5px; top: 5px; } .hh-badge { right: 5px; top: 5px; } .hh-scene { padding-top: 20px; } .hh-arrow { width: 30px; height: 30px; } }
@media (prefers-reduced-motion: reduce) { .hhub .nlbl, .hh-ret, .hh-badge, .hh-live i { animation: none; } .hh-ret { display: none; } }
/* ACCESS GRANTED: an unlock's reveal card (padlock, crack, stamp, burst, the icon rises) */
.mbox:has(.unlx) { max-width: 600px; padding: 0; border: 0; background: none; box-shadow: none; overflow: visible; }
.unlx { --kc: #3ddc84; position: relative; display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px; text-align: left; background: #0d1222; border: 3px solid #1c2440; box-shadow: 0 6px 0 #000; overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.unlx.open { border-color: var(--kc); box-shadow: 0 6px 0 #000, 0 0 28px -4px var(--kc); }
.unlx-stage { position: relative; width: 172px; height: 172px; background: #05080f; border: 2px solid #1c2440; overflow: hidden; }
.unlx-stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(61, 220, 132, .09) 0 1px, transparent 1px 3px); animation: unlxscan 4s linear infinite; }
.unlx.open .unlx-stage { border-color: var(--kc); }
.unlx-cv { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.unlx-ic { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: translateY(26px) scale(.6); transition: opacity .35s, transform .5s cubic-bezier(.2, 1.5, .4, 1); }
.unlx-ic img, .unlx-ic .ico { width: 92px !important; height: 92px !important; image-rendering: pixelated; filter: drop-shadow(0 0 10px var(--kc)); }
.unlx.open .unlx-ic { opacity: 1; transform: none; }
.unlx-term { position: absolute; left: 6px; right: 6px; bottom: 5px; z-index: 2; font-size: 11px; color: #3ddc84; white-space: nowrap; overflow: hidden; text-shadow: 0 0 6px rgba(61, 220, 132, .7); }
.unlx-stamp { position: absolute; left: 50%; top: 50%; z-index: 3; font-family: Silkscreen, monospace; font-size: 15px; letter-spacing: 2px; color: #05070d; background: #3ddc84; padding: 4px 8px; border: 2px solid #05070d; box-shadow: 0 0 18px rgba(61, 220, 132, .9); white-space: nowrap; transform: translate(-50%, -50%) rotate(-8deg) scale(2.4); opacity: 0; pointer-events: none; }
.unlx.cracked .unlx-stamp { animation: unlxstamp .5s cubic-bezier(.2, 1.6, .4, 1) forwards; }
.unlx.open .unlx-stamp { animation: unlxstampout .35s ease-in forwards; }
.unlx-tx { min-width: 0; display: grid; gap: 7px; }
.unlx-tx > * { opacity: 0; transform: translateX(14px); transition: opacity .3s, transform .3s; }
.unlx-tx > .unlx-lb, .unlx-tx > .unlx-nmw { opacity: 1; transform: none; }
.unlx.open .unlx-tx > * { opacity: 1; transform: none; }
.unlx:not(.open) .unlx-bt { pointer-events: none; } /* no tap on a button nobody can see yet */
.unlx.open .unlx-tx > .unlx-ds { transition-delay: .1s; } .unlx.open .unlx-tx > .unlx-bt { transition-delay: .2s; }
.unlx-lb { font-family: Silkscreen, monospace; font-size: 12px; letter-spacing: 3px; color: var(--kc); }
.unlx-nmw { position: relative; }
.unlx-nm, .unlx-scr { font-family: Silkscreen, monospace; font-weight: 400; font-size: 24px; line-height: 1.05; letter-spacing: 1px; color: #fff; text-shadow: 0 2px 0 #000, 0 0 14px var(--kc); overflow-wrap: anywhere; }
.unlx-scr { position: absolute; left: 0; top: 0; right: 0; color: #3ddc84; text-shadow: 0 0 10px rgba(61, 220, 132, .6); white-space: nowrap; overflow: hidden; }
.unlx:not(.open) .unlx-nm { visibility: hidden; } .unlx.open .unlx-scr { display: none; }
.unlx-ds { font-size: 13px; color: var(--dim); }
.unlx-bt { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
#modal .unlx-bt button { font-family: Silkscreen, monospace; font-size: 13px; letter-spacing: 2px; padding: 10px 12px; margin: 0; cursor: pointer; }
#modal .unlx-go { color: #05070d; background: var(--kc); border: 3px solid #05070d; box-shadow: 0 0 0 2px var(--kc), 0 4px 0 #000; }
#modal .unlx-ok { color: var(--ink); background: var(--panel2); border: 2px solid var(--line); }
.unlx-ct { position: absolute; right: 8px; top: 6px; font-style: normal; font-size: 11px; color: var(--dim); font-family: Silkscreen, monospace; }
.unlx-shake { animation: unlxjolt .3s; }
@keyframes unlxscan { to { background-position: 0 30px; } }
@keyframes unlxstamp { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(-8deg) scale(2.4); } 100% { opacity: 1; transform: translate(-50%, -50%) rotate(-8deg) scale(1); } }
@keyframes unlxstampout { to { opacity: 0; transform: translate(-50%, -160%) rotate(-8deg) scale(.8); } }
@keyframes unlxjolt { 20% { transform: translate(-4px, 2px); } 40% { transform: translate(4px, -2px); } 60% { transform: translate(-2px, 1px); } 80% { transform: translate(2px, 0); } }
@media (max-height: 400px) { .unlx { grid-template-columns: 132px minmax(0, 1fr); gap: 12px; padding: 12px; } .unlx-stage { width: 132px; height: 132px; } .unlx-ic img, .unlx-ic .ico { width: 72px !important; height: 72px !important; } .unlx-nm, .unlx-scr { font-size: 20px; } .unlx-ds { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .unlx-stage::after, .unlx.cracked .unlx-stamp { animation: none; } }
/* INVITE popup (every opening): a big animated +100 CHIPS on the left, the rule and the buttons on the right */
.invx { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; align-items: center; }
.invxh { grid-column: 1 / -1; text-align: center; font-family: Silkscreen, monospace; font-size: 19px; line-height: 1.15; color: #fff; letter-spacing: 1px; text-shadow: 0 2px 0 #000; }
.invxh span { color: var(--yellow); font-size: 22px; text-shadow: 0 2px 0 #000, 0 0 16px rgba(255,210,63,.65); animation: invxglow 1.4s ease-in-out infinite; }
.invxp { position: relative; width: 140px; height: 132px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px solid var(--yellow); background: radial-gradient(circle at 50% 40%, rgba(255,210,63,.22), transparent 70%), #0d1222; box-shadow: 0 0 18px rgba(255,210,63,.35); overflow: hidden; }
.invxp img.ico { width: 56px; height: 56px; animation: invxbob 1.1s ease-in-out infinite; filter: drop-shadow(0 0 10px rgba(53,224,255,.75)); position: relative; z-index: 1; }
.invxp b { font-family: Silkscreen, monospace; font-weight: 400; font-size: 34px; line-height: 1; color: var(--yellow); text-shadow: 0 3px 0 #000; animation: invxpop .55s ease-out both, invxbeat 1.1s ease-in-out .6s infinite; position: relative; z-index: 1; }
.invxp em { font-style: normal; font-family: Silkscreen, monospace; font-size: 14px; letter-spacing: 3px; color: var(--yellow); text-shadow: 0 2px 0 #000; position: relative; z-index: 1; }
.invxp i { position: absolute; bottom: -8px; width: 6px; height: 6px; background: var(--yellow); box-shadow: 0 0 6px var(--yellow); opacity: 0; animation: invxrise 2s linear infinite; }
.invxp i:nth-child(1) { left: 12%; } .invxp i:nth-child(2) { left: 28%; animation-delay: .7s; } .invxp i:nth-child(3) { left: 46%; animation-delay: 1.3s; } .invxp i:nth-child(4) { left: 62%; animation-delay: .35s; } .invxp i:nth-child(5) { left: 78%; animation-delay: 1s; } .invxp i:nth-child(6) { left: 90%; animation-delay: 1.6s; }
.invxr { display: grid; gap: 7px; min-width: 0; }
.invxr > p { font-size: 15px; line-height: 1.35; margin: 0; }
.invxs { display: flex; align-items: center; gap: 8px; } .invxs .pix { width: 36px; height: 36px; flex: none; } .invxs p { font-size: 12px; color: var(--dim); margin: 0; }
.mbox:has(.invx) { max-width: 560px; }
#modal .btn.invxgo { font-family: Silkscreen, monospace; font-weight: 400; font-size: 17px; letter-spacing: 2px; padding: 11px 8px; color: #05070d; background: var(--yellow); border: 3px solid #05070d; box-shadow: 0 0 0 2px var(--yellow), 0 4px 0 #000, 0 0 18px rgba(255,210,63,.55); animation: invxbeat 1.1s ease-in-out infinite; }
#modal .btn.invxno { color: var(--dim); background: var(--panel2); border-color: var(--line); }
.invxb { display: grid; grid-template-columns: 1fr auto; gap: 6px; } .invxb .btn { margin: 0; }
@keyframes invxbob { 50% { transform: translateY(-6px); } }
@keyframes invxpop { 0% { transform: scale(.2); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes invxbeat { 50% { transform: scale(1.06); } }
@keyframes invxglow { 50% { text-shadow: 0 2px 0 #000, 0 0 26px rgba(255,210,63,1); } }
@keyframes invxrise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-150px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .invx *, .invxh span { animation: none !important; } }
/* SCAN THE NET: its Bandwidth cost in a pill on the button */
#scanbtn.scbtn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; height: auto; } #scanbtn.scbtn > span { max-width: 100%; }
#scanbtn .scbw { font-style: normal; display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px 2px 4px; font-family: Silkscreen, monospace; font-size: 13px; letter-spacing: 1px; color: #05070d; background: var(--yellow); border: 2px solid #05070d; box-shadow: 0 2px 0 #000; white-space: nowrap; }
#scanbtn .scbw img.ico { width: 18px; height: 18px; }
#scanbtn .scbw.no { background: var(--red); }
#scanbtn .scrow { display: flex; align-items: center; justify-content: center; gap: 7px; max-width: 100%; }
#scanbtn .scfree { font-size: 10px; line-height: 1.15; letter-spacing: 0; text-align: left; opacity: .85; min-width: 0; }
.ddx { text-align: center; } .ddxh { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin-bottom: 8px; } .ddxh b { font-family: Silkscreen, monospace; font-weight: 400; font-size: 24px; line-height: 1.1; color: var(--yellow); text-shadow: 0 2px 0 #000, 0 0 14px rgba(255,210,63,.5); } .ddxh small { font-size: 11px; color: var(--dim); }
.ddxg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } .ddxg.n2 { grid-template-columns: repeat(2, minmax(0, 200px)); justify-content: center; } .ddxg.n1 { grid-template-columns: minmax(0, 220px); justify-content: center; }
.ddxc { position: relative; min-width: 0; padding: 8px 8px 9px; display: flex; flex-direction: column; align-items: center; gap: 2px; background: #0b0f1a; border: 3px solid var(--rc); overflow: hidden; animation: ddxin .38s cubic-bezier(.2,1.6,.4,1) var(--d) both; } .ddxc::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(112deg, transparent 42%, rgba(255,255,255,.22) 50%, transparent 58%) 130% 0 / 260% 100% no-repeat; animation: tabglint 4.6s linear calc(var(--d) + .5s) infinite; }
@keyframes ddxin { from { opacity: 0; transform: translateY(22px) scale(.8); } to { opacity: 1; transform: none; } }
.ddxo { position: absolute; right: -3px; top: -3px; z-index: 1; padding: 4px 9px; font-style: normal; font-family: Silkscreen, monospace; font-size: 17px; line-height: 1; color: #05070d; background: var(--red); animation: ddxoff .4s cubic-bezier(.2,1.9,.4,1) calc(var(--d) + .25s) both; } @keyframes ddxoff { from { opacity: 0; transform: scale(2.4) rotate(12deg); } to { opacity: 1; transform: none; } }
.ddxp { height: 112px; width: 100%; display: grid; place-items: center; } .ddxp .pix { width: 108px; height: 108px; object-fit: contain; image-rendering: pixelated; } .ddxp img.pix { width: 100%; max-width: 172px; } .ddxp .swatch { height: 84px; box-sizing: border-box; } .ddxp pre.ccard { align-self: center; justify-self: center; margin: 0; min-height: 0; max-width: 100%; box-sizing: border-box; }
.shelf .items.deals .item .swatch { flex: 0 1 84px; min-height: 30px; box-sizing: border-box; } .shelf .items.deals .item pre.ccard { flex: 0 1 84px; min-height: 30px; margin: 0; box-sizing: border-box; display: flex; align-items: center; justify-content: center; }
.ddxc > b { font-size: 13px; line-height: 1.15; min-height: 1.15em; } .ddxc > small { font-size: 10px; color: var(--rc); } .ddxc .btn { width: 100%; min-height: 38px; margin: 6px 0 0; font-size: 14px; } .ddxc .btn s { opacity: .6; font-size: 11px; }
.ddxb { display: flex; gap: 10px; margin-top: 10px; } .ddxb .btn { flex: 1; min-height: 40px; margin: 0; }
@media (prefers-reduced-motion: reduce) { .ddxc, .ddxc::after, .ddxo { animation: none; } }
/* ----- a player seen from the leaderboard ----- */
.vpgo { cursor: pointer; } #main.flow > .sect .kv.lbr.vpgo:hover, .lgr.vpgo:hover { border-color: var(--ac, var(--yellow)); } .vpar { font-style: normal; margin-left: 2px; font-size: 18px; line-height: 1; color: var(--yellow); }
#modal .mbox:has(.vp) { max-width: 700px; width: 100%; padding: 12px; }
.vp { display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); gap: 14px; align-items: stretch; } .vpl { min-width: 0; display: flex; flex-direction: column; justify-content: center; } .vpl canvas { width: 100%; aspect-ratio: 128 / 112; image-rendering: pixelated; border: 3px solid var(--line); background: #05070d; box-sizing: border-box; display: block; } .vpl p { margin: 6px 0 0; text-align: center; font-size: 10px; line-height: 1.3; color: var(--dim); }
.vpr { min-width: 0; display: flex; flex-direction: column; gap: 7px; } .vph { display: flex; align-items: center; gap: 10px; } .vph img.ico.big { width: 44px; height: 44px; flex: none; margin: 0; image-rendering: pixelated; } .vph > div { min-width: 0; } .vph b { display: block; font-family: Silkscreen, monospace; font-weight: 400; font-size: 21px; line-height: 1.05; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .vph b.root { color: #ffd23f; text-shadow: 0 0 10px rgba(255,210,63,.6); } .vph b i { font-style: normal; margin-left: 5px; font-size: 12px; color: #ffd23f; } .vph em { display: block; font-style: normal; font-size: 12px; color: var(--yellow); } .vph small { display: block; font-size: 11px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vpt { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; } .vpt > div { min-width: 0; padding: 4px 6px; background: #0b0f1a; border: 2px solid var(--line); } .vpt small { display: block; font-size: 9px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .vpt b { display: block; font-size: 12px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vpt b.vpsm { font-size: 10px; line-height: 1.44; } .vps > small { display: block; font-size: 9px; letter-spacing: 1px; color: var(--dim); margin-bottom: 2px; } .vpti { display: flex; flex-wrap: wrap; gap: 4px; max-height: 46px; overflow: hidden; } .vpti span { padding: 2px 7px; font-size: 10px; color: var(--yellow); background: #241a08; border: 1px solid #5a4818; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; box-sizing: border-box; } .vpti .more { color: var(--dim); background: none; }
.vpc { display: flex; gap: 5px; } .vpc .lbr { flex: 0 1 40px; min-width: 0; } .vpc .lbr .pf { width: 100%; height: auto; aspect-ratio: 1; box-sizing: border-box; } .vpn { margin: 4px 0 0; font-size: 10px; color: var(--dim); } .vpn b { color: var(--ink); } .vpr > .btn { margin: auto 0 0; min-height: 40px; }
/* ----- an item seen close ----- */
.ipvgo { cursor: pointer; } .ddx.again .ddxc, .ddx.again .ddxo { animation: none; }
#modal .mbox:has(.ipv) { max-width: 640px; width: 100%; padding: 12px; border-color: var(--rc); box-shadow: 0 0 34px color-mix(in srgb, var(--rc) 30%, transparent); }
.ipv { display: grid; grid-template-columns: minmax(0, 54fr) minmax(0, 46fr); gap: 14px; align-items: stretch; } .ipv.k-rooms, .ipv.k-setups, .ipv.k-themes { grid-template-columns: minmax(0, 60fr) minmax(0, 40fr); } .ipv.k-themes .ipvs { background: var(--bg); } .ipvs { position: relative; width: 100%; min-width: 0; align-self: center; aspect-ratio: 128 / 112; display: grid; place-items: center; overflow: hidden; box-sizing: border-box; border: 3px solid var(--rc); background: radial-gradient(circle at 50% 46%, color-mix(in srgb, var(--rc) 30%, #0b0f1a), #05070d 76%); }
.ipvs canvas, .ipvs img, .ipvm canvas { image-rendering: pixelated; display: block; } .ipvs > .pix { width: auto; height: 88%; aspect-ratio: 1; object-fit: contain; } .ipvs > #ipvroom { width: 100%; height: 100%; object-fit: contain; } .ipvs > #ipvpet { height: 100%; width: 100%; object-fit: cover; } .ipvs > #ipvnet { height: 100%; width: 100%; object-fit: contain; } .ipvs pre.ccard { margin: 0; padding: 18px 22px; min-height: 0; font-size: 18px; line-height: 1.3; align-self: center; border-color: var(--rc); max-width: 94%; box-sizing: border-box; }
.ipvr { min-width: 0; display: flex; flex-direction: column; gap: 6px; } .ipvk { font-size: 11px; color: var(--rc); } .ipvt { font-family: Silkscreen, monospace; font-weight: 400; font-size: 24px; line-height: 1.05; color: var(--ink); overflow-wrap: anywhere; } .ipvm { flex: 1; min-height: 0; display: flex; flex-direction: column; } .ipvm canvas { width: 100%; max-width: 160px; aspect-ratio: 128 / 112; border: 2px solid var(--line); box-sizing: border-box; background: #05070d; } .ipvm small { font-size: 9px; letter-spacing: 1px; color: var(--dim); margin-top: 2px; } .ipvn { margin: 0; font-size: 12px; color: var(--dim); }
.ipvlog { padding: 8px 10px; background: var(--bg); border: 2px solid var(--line); font-size: 12px; } .ipvlog p { margin: 0 0 4px; } .ipvlog i { display: block; height: 8px; background: linear-gradient(90deg, var(--green) 64%, var(--panel2) 64%); }
.ipvb { margin-top: auto; display: flex; flex-direction: column; gap: 8px; } .ipvb .btn, .ipvb .done { margin: 0; width: 100%; min-height: 42px; box-sizing: border-box; } .ipvb .btn.hot { min-height: 50px; font-size: 18px; color: #04140b; background: #3ddc84; border-color: #a6ffcf; box-shadow: 0 4px 0 #14653a; } .ipvb .btn.hot.off { color: #cfe9da; background: #24503a; border-color: #3c7a58; box-shadow: none; } .ipvb .btn.hot s { opacity: .75; font-size: 13px; color: #04140b; }
.ipvb .done { display: grid; place-items: center; font-size: 13px; color: var(--green); border: 2px solid var(--green); }
/* ----- the Net: the city takes a little more than half the screen, its districts' buttons the rest ----- */
.cm2 .nmap { flex: 0 0 54%; width: auto; min-width: 0; aspect-ratio: auto; } .cm2 .nlbl { padding: 3px 7px; } .cm2 .nlbl b { font-size: 10px; }
.cm2 .dzc .dzn { max-width: 66%; } .cm2 .dzc .dzb { width: 44%; } .cm2 .dzc canvas { left: 44%; width: 56%; } .cm2 .dzc::before { left: 44%; width: 26%; }
/* ----- the market's filters ----- */
.mkh { gap: 7px; } .mkh #mkq { font-size: 16px; padding: 6px 8px; height: 34px; box-sizing: border-box; flex: none; } .mktys { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; } .mkty { position: relative; height: 34px; margin: 0; padding: 0; display: grid; place-items: center; background: #0b0f1a; border: 2px solid #2c3552; color: var(--ink); font: 400 10px Silkscreen, monospace; cursor: pointer; box-sizing: border-box; } .mkty img.ico { width: 22px; height: 22px; margin: 0; } .mkty i { position: absolute; right: -2px; bottom: -2px; padding: 0 2px; min-width: 9px; text-align: center; font: 400 9px/11px monospace; color: #dfe6ff; background: #05070d; } .mkty.no { opacity: .38; } .mkty.on { border-color: var(--rc, var(--yellow)); background: #231d08; box-shadow: 0 0 10px color-mix(in srgb, var(--rc, var(--yellow)) 55%, transparent); opacity: 1; } .mkty.all.on { color: var(--yellow); }
.mkh .mkso { margin: 0; flex: none; } .mkh .mkso button { padding: 0 2px; min-height: 30px; font-size: 10px; letter-spacing: 0; } .mkr { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 7px; } .mkfl { flex: none; display: flex; gap: 7px; } .mkt { flex: 1; margin: 0; min-height: 34px; padding: 0 6px; font: 400 11px Silkscreen, monospace; text-transform: uppercase; color: var(--dim); background: #0b0f1a; border: 2px solid #2c3552; cursor: pointer; white-space: nowrap; } .mkt.on { color: #05070d; background: var(--cyan); border-color: var(--cyan); }
.mkcap { flex: none; display: flex; align-items: center; gap: 10px; min-height: 26px; font-size: 12px; } .mkcap b { white-space: nowrap; } .mkcap em { display: flex; align-items: center; gap: 4px; min-width: 0; font-style: normal; font-size: 11px; color: var(--dim); white-space: nowrap; overflow: hidden; } .mkcap em img.ico { width: 16px; height: 16px; margin: 0; } .mkcap .mkct { margin-left: auto; color: var(--dim); white-space: nowrap; } .mkcap .btn { margin: 0; min-height: 26px; padding: 0 10px; flex: none; } .mkr .mkg { flex: 1; min-height: 0; } .mkmore { justify-content: center; border-color: var(--yellow); color: var(--yellow); font: inherit; cursor: pointer; } .mkmore b { font: 400 16px Silkscreen, monospace; }
/* ----- a puzzle showing its pattern: the trace is frozen, and it looks it ----- */
.pztr { --tc: #ffd23f; padding: 6px 8px 7px; background: #0b0f1a; border: 2px solid #2c3552; display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: center; } .pztr b { display: flex; align-items: center; gap: 7px; font: 400 12px Silkscreen, monospace; letter-spacing: 1px; color: var(--tc); } .pztr { position: relative; } .pztr em { position: absolute; right: 13px; bottom: 8px; font: 400 12px/14px Silkscreen, monospace; color: #fff; text-shadow: 1px 1px 0 #000, -1px 0 0 #000; } .pztr > div { grid-column: 1 / -1; height: 16px; background: #1b2136; overflow: hidden; } .pztr > div i { display: block; height: 100%; background: var(--tc); }
.pztr .pzic { display: none; width: 12px; height: 13px; border: solid var(--tc); border-width: 0 4px; box-sizing: border-box; } .pztr.fz { --tc: #35e0ff; border-color: #35e0ff; background: #07202c; animation: pzice 1.1s ease-in-out infinite alternate; } .pztr.fz .pzic { display: block; } .pztr.fz > div i { background: repeating-linear-gradient(45deg, #35e0ff 0 6px, #a8f3ff 6px 12px); } @keyframes pzice { from { box-shadow: 0 0 4px rgba(53,224,255,.25); } to { box-shadow: 0 0 16px rgba(53,224,255,.8); } }
#modal.pzfz .mbox:has(.pz2) { border-color: #35e0ff; box-shadow: 0 0 34px rgba(53,224,255,.45), 0 6px 0 #000; } #modal.pzfz::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 70px 24px rgba(120,235,255,.5), inset 0 0 14px 4px rgba(220,250,255,.55); animation: pzfrost .35s ease-out both, pzbreath 1.6s ease-in-out .35s infinite alternate; } @keyframes pzfrost { from { opacity: 0; } to { opacity: 1; } } @keyframes pzbreath { from { opacity: 1; } to { opacity: .55; } }
#modal.pzgo::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 80px 26px rgba(255,59,74,.75); animation: pzalarm .85s ease-out both; } @keyframes pzalarm { 0% { opacity: 1; } 30% { opacity: .25; } 45% { opacity: .9; } 100% { opacity: 0; } } #modal.pzgo .pztr { --tc: #ff5a5a; border-color: #ff5a5a; animation: pzshake .4s linear; } @keyframes pzshake { 0%, 100% { transform: none; } 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } } @media (prefers-reduced-motion: reduce) { #modal.pzfz::after, #modal.pzgo::after, .pztr.fz, #modal.pzgo .pztr { animation: none; } #modal.pzgo::after { display: none; } }
.mkh { gap: 5px; padding-top: 7px; padding-bottom: 7px; } .mkty { height: 31px; }
/* ----- a corp's threat: a solid pixel skull (eyes in the level's colour), and in the target window one panel in that colour. Flat, no glow ----- */
.thk { position: relative; display: inline-flex; flex: none; width: 26px; height: 26px; font-style: normal; } .thk img { width: 100%; height: 100%; display: block; image-rendering: pixelated; } .thk .thpl { position: absolute; left: 50%; top: 100%; margin-top: 1px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; } .thk .thpl .thn { display: block; min-width: 14px; padding: 1px 3px; font: 400 9px/10px Silkscreen, monospace; text-align: center; white-space: nowrap; color: #05070d; background: var(--tk); border: 2px solid #05070d; } .thk .thcp { display: flex; gap: 2px; padding: 2px; background: #05070d; } .thk .thcp i { width: 5px; height: 5px; background: #2c3552; } .thk .thcp i.on { background: var(--green); }
.thrw { display: flex !important; align-items: center; gap: 10px; margin: 6px 0 8px !important; padding: 6px 10px; background: color-mix(in srgb, var(--tk) 9%, #0b0f1a); border: 2px solid color-mix(in srgb, var(--tk) 70%, #0b0f1a); box-shadow: 0 3px 0 #000; } .thrw .thk.big { width: 39px; height: 39px; } .thrw.t0 { border-color: #2c3552; background: #0b0f1a; }
.thtx { min-width: 0; display: flex; flex-direction: column; gap: 3px; } .thtx > b { font: 400 15px/1 Silkscreen, monospace; letter-spacing: 1px; text-transform: uppercase; color: var(--ink); white-space: nowrap; } .thtx > b em { font-style: normal; color: var(--tk); } .thrw.t0 .thtx > b em { color: var(--dim); } .thtx small { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 11px; line-height: 1.3; color: var(--dim); } .thtx small span { white-space: nowrap; }
.thnx { margin-left: auto; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; } .thnx span { display: flex; align-items: center; gap: 4px; } .thnx img.ico { width: 18px; height: 18px; margin: 0 2px 0 0; } .thnx .pp, .thnx .pm { width: 9px; height: 9px; background: #1b2136; border: 1px solid #3a4462; } .thnx .pp.on { background: var(--green); border-color: var(--green); } .thnx .pm { width: 8px; height: 8px; transform: rotate(45deg); margin: 0 1px; } .thnx .pm.on { background: var(--red); border-color: var(--red); } .thnx .tharr { font-style: normal; color: var(--dim); margin: 0 1px; } .thnx .thk.nx { width: 20px; height: 20px; } .thnx .thup em { font: 400 11px Silkscreen, monospace; font-style: normal; }
/* the threat panel's two lines read the same way: icon, three marks, arrow, the skull it leads to */
.thnx { gap: 5px; } .thnx .thrr { display: grid; grid-template-columns: 18px auto 10px 20px 22px; align-items: center; gap: 6px; } .thnx .thrr img.ico { margin: 0; } .thnx .thm3 { display: flex; gap: 4px; } .thnx .thm3 i { width: 10px; height: 10px; transform: none; margin: 0; background: #1b2136; border: 1px solid #3a4462; box-sizing: border-box; } .thnx .thm3 .pp.on { background: var(--green); border-color: var(--green); } .thnx .thm3 .pm.on { background: var(--red); border-color: var(--red); } .thnx .thrr .tharr { text-align: center; } .thnx .thrr .thk.nx { width: 20px; height: 20px; opacity: 1; } .thnx .thrr em { font: 400 11px Silkscreen, monospace; font-style: normal; }
.thnx .thrr .thdir { font-style: normal; font-size: 13px; line-height: 1; text-align: center; } .thnx .thrr.up .thdir { color: var(--green); } .thnx .thrr.dn .thdir { color: var(--red); }
/* the item preview: rooms and desks are shown wide, like the Room screen; the small one next to a hacker or a pet too */
.ipv.k-rooms .ipvs, .ipv.k-setups .ipvs { aspect-ratio: 2 / 1; } .ipvm canvas { max-width: 100%; aspect-ratio: 2 / 1; }
#nav button.lg, #nav .nl button.lg { letter-spacing: 0; font-size: 9px; } /* a long name (TEMPORADA, MELHORIAS) still fits its button */
/* ----- THE CREATOR: the developer's title, wherever it is written ----- */
.tcr { display: inline-block; font-family: Silkscreen, monospace; font-weight: 400; letter-spacing: 1px; color: transparent; background: linear-gradient(90deg, #3ddc84 0%, #eafff3 18%, #ffd23f 34%, #3ddc84 50%, #eafff3 68%, #ffd23f 84%, #3ddc84 100%) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 3px rgba(61,220,132,.9)) drop-shadow(0 0 8px rgba(255,210,63,.45)); animation: tcrrun 2.6s linear infinite; }
@keyframes tcrrun { to { background-position: -200% 0; } } small.ttl .tcr, .vph em .tcr { font-size: 1.08em; } .vpti span.tcrb { background: #062012; border-color: #3ddc84; box-shadow: 0 0 8px rgba(61,220,132,.55); } @media (prefers-reduced-motion: reduce) { .tcr { animation: none; } }
.tcrp { display: inline-block; width: fit-content; max-width: 100%; padding: 1px 6px 2px; line-height: 1.25; background: #041a0e; border: 1px solid #3ddc84; box-shadow: 0 0 6px rgba(61,220,132,.6), inset 0 0 6px rgba(61,220,132,.25); vertical-align: middle; white-space: nowrap; } small.ttl:has(.tcrp) { display: block; margin-top: 2px; } .kv small.ttl:has(.tcrp) { display: inline; } .tcr { color: transparent !important; -webkit-text-fill-color: transparent; } small.ttl .tcr { font-size: 10px; } .vph em .tcr { font-size: 15px; letter-spacing: 2px; }
.lb2.gtmn .lt > b { white-space: normal; line-height: 1.1; }
@media (max-width: 760px) { .gtgoal > b { display: none; } }
.rbx button.gtrb b { color: var(--ink); } .rbx button.gtrb.gtrdy span, .rbx button.gtrb.gtrdy b { color: var(--green); }
.rm2:has(.gtrb) .instc { top: 180px; }

/* ----- the guide's big pointer (cbig): a word and an arrow sliding into the button, for the moments a player must not miss ----- */
#coach .cbig { position: fixed; z-index: 3; display: flex; align-items: center; gap: 4px; pointer-events: none; animation: cbigslide .55s ease-in-out infinite alternate; } #coach .cbig b { font: 400 17px/20px Silkscreen, monospace; letter-spacing: 2px; color: #05070d; background: var(--yellow); padding: 7px 10px 6px; border: 2px solid #05070d; box-shadow: 0 0 0 2px var(--yellow), 0 0 22px 4px rgba(255,210,63,.8); white-space: nowrap; } #coach .cbig i { font-style: normal; font-size: 40px; line-height: 36px; color: var(--yellow); text-shadow: 3px 3px 0 #05070d, 0 0 14px var(--yellow); }
@keyframes cbigslide { from { transform: translateX(-14px); } to { transform: translateX(2px); } } @media (prefers-reduced-motion: reduce) { #coach .cbig { animation: none; } }
/* ----- live defence: the hacker is jammed (cm = countermeasure) ----- */
.cmjam { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 6px; padding: 4px 10px; background: repeating-linear-gradient(135deg, #2a0508 0 6px, #3d0a10 6px 12px); border: 2px solid #ff3b4a; box-shadow: 0 3px 0 #000; animation: cmjamp .6s steps(2) infinite; } .cmjam b { font: 400 12px/16px Silkscreen, monospace; letter-spacing: 2px; color: #ff5a5a; } .cmjam em { font: 400 16px/16px Silkscreen, monospace; font-style: normal; color: #fff; min-width: 1ch; text-shadow: 1px 1px 0 #000; } @keyframes cmjamp { 50% { border-color: #7a141c; } }
.cmjam.pzj { display: none; } #modal.cmjm .cmjam.pzj { display: flex; } #modal.cmjm .pz2 { pointer-events: none; opacity: .5; filter: grayscale(.6); } @media (prefers-reduced-motion: reduce) { .cmjam { animation: none; } }
.fl.cmoff { opacity: .45; filter: grayscale(.7); } /* a file while the hacker is jammed */
.lb2.gtmn .lt > img { margin-top: auto; width: 44px; height: 44px; } .lb2.gtmn .lt { gap: 5px; } /* the Miner tab's tall tiles: icon and texts sit in the middle, the price stays at the bottom */
@media (max-width: 760px) { .gtgoal > b { display: inline; } } /* the short goal line always has room for its label */
.gtgoal { justify-content: center; }

/* ----- make room (gtmr): leaving a hack with more files than fit. Two labelled groups of file cards, and a red bar that asks before anything is sold ----- */
#modal .mbox:has(.gtmr) { width: min(640px, 96vw); max-width: 96vw; }
.gtmr .sfull { animation: none; margin: 0 0 6px; }
.gtmrh { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 4px; font-size: 11px; color: var(--dim); } .gtmrh b { flex: none; font: 400 11px Silkscreen, ui-monospace, monospace; letter-spacing: 1px; color: var(--ink); padding: 1px 6px; background: var(--line); } .gtmrh.r b { background: var(--red); color: #05070d; }
.gtmrg { display: grid; grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); gap: 6px; } .gtmrl { max-height: 132px; overflow-y: auto; padding: 2px; }
.gtmrf { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 6px; align-items: center; text-align: left; margin: 0; padding: 5px 6px; font: inherit; color: var(--ink); background: #0b0f1a; border: 2px solid color-mix(in srgb, var(--rc) 55%, var(--line)); cursor: pointer; min-width: 0; }
.gtmrf > img { grid-row: 1 / 3; width: 26px; height: 26px; image-rendering: pixelated; } .gtmrf b { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; } .gtmrf small { grid-column: 2; font-size: 9px; color: var(--rc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gtmrf em { grid-column: 3; grid-row: 1 / 3; font-style: normal; font-weight: bold; font-size: 12px; color: var(--yellow); display: inline-flex; align-items: center; gap: 2px; } .gtmrf em img.ico { width: 14px; height: 14px; }
.gtmrf.new { cursor: default; border-style: dashed; border-color: var(--red); opacity: 1; } .gtmrf.sel { border-color: #fff; box-shadow: 0 0 0 2px var(--red), 0 0 14px rgba(255,90,90,.6); background: #2a1016; }
.gtmrq { margin-top: 8px; padding: 8px; border: 2px solid var(--red); background: #2a1016; } .gtmrq p { margin: 0 0 8px; font-size: 12px; line-height: 1.4; } .gtmrq p img.ico { width: 14px; height: 14px; vertical-align: -2px; }
.gtmr .btns { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin-top: 8px; } .gtmr .btns .btn { margin: 0; width: 100%; min-height: 40px; }
.gtmr .btn.gtmrs { background: var(--red); color: #05070d; border-color: #05070d; font-weight: bold; }

/* ----- the Chips confirmation (gtask): title centred, two equal buttons side by side ----- */
.gtask h3 { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 0 10px; text-align: center; }
.gtask .kv { display: flex; justify-content: space-between; align-items: center; padding: 3px 0; }
.gtask .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.gtask .btns .btn { margin: 0; width: 100%; min-height: 44px; height: 44px; padding: 0 8px; font: 400 13px Silkscreen, ui-monospace, monospace; letter-spacing: 1px; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }

.gtmrq .gtmrt { display: block; font: 400 13px Silkscreen, ui-monospace, monospace; letter-spacing: 1px; color: var(--red); margin-bottom: 6px; } .gtmrq .gtmrf { width: 100%; border-style: solid; } .gtmrq p.small { margin: 6px 0 0; }

.gtmrg { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); } .gtmrf { grid-template-columns: 22px minmax(0, 1fr) auto; } .gtmrf > img.ico, .gtmrf > img.ico.big { width: 22px; height: 22px; }
#modal .mbox:has(.gtmrone) { width: min(420px, 94vw); } .gtmrone .gtmrq { margin: 0; border: 0; padding: 0; background: none; }

/* ----- the store's rarity separators (gtsep) ----- */
.items.sgrid .gtsep { grid-column: 1 / -1; flex: 0 0 100%; width: 100%; display: flex; align-items: center; gap: 8px; margin: 6px 0 0; padding: 0; color: var(--rc); } .items.sgrid .gtsep:first-child { margin-top: 0; }
.items.sgrid .gtsep b { font: 400 12px Silkscreen, ui-monospace, monospace; letter-spacing: 2px; } .items.sgrid .gtsep small { color: var(--dim); font-size: 10px; } .items.sgrid .gtsep::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--rc), transparent); }
.sgrid:has(.gtsep) { grid-auto-rows: auto; } .sgrid:has(.gtsep) > .item { height: 150px; } .sgrid.rooms:has(.gtsep) > .item, .sgrid.setups:has(.gtsep) > .item, .sgrid.cards:has(.gtsep) > .item { height: 170px; }

.gttank small b { display: inline; font-size: 13px; font-weight: bold; } .gttank small b.y { color: var(--yellow); } .gttank small b.m { color: var(--pink); } .gttank small { font-size: 11px; }
#main .kv.lbr .lbh small.gsmcrew, #main.flow > .sect .kv.lbr .lbh small.gsmcrew { color: #9fc4e0; } #main .kv.lbr .lbh small.y, #main.flow > .sect .kv.lbr .lbh small.y { color: var(--yellow); } /* a crew name on the leaderboards; gold for a maxed Datacenter (the row style made both grey before) */
.thrr .gsmthx { font-size: 10px; color: var(--green); white-space: nowrap; } /* the threat panel: what raises it */
.gttank .gsmwl { display: block; font-style: normal; font-size: 9px; letter-spacing: 1px; line-height: 1; color: var(--dim); text-transform: uppercase; margin-bottom: 1px; }
.gsmup h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 16px; } .gsmup h2 .ico { width: 28px; height: 28px; } .gsmup h2 b { margin-left: auto; color: var(--green); font-size: 14px; }
.gsmrows { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .gsmr { display: flex; align-items: center; gap: 8px; padding: 6px 8px; background: var(--panel2); border: 2px solid #000; min-width: 0; } .gsmr .ico { width: 24px; height: 24px; flex: none; }
.gsmr > div { min-width: 0; } .gsmr small { display: block; color: var(--dim); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; } .gsmr b { display: block; font-size: 13px; } .gsmr b i { font-style: normal; color: var(--dim); } .gsmr em { display: block; font-style: normal; font-size: 10px; color: var(--dim); }
.gsmup .gsmfull { margin: 6px 0 0; color: var(--yellow); font-size: 12px; } .gsmbtns { display: flex; gap: 8px; margin-top: 10px; } .gsmbtns .btn.go { flex: 1; } .gsmbtns .btn.go small { display: flex; gap: 10px; justify-content: center; } .gsmbtns .btn.go small span { display: inline-flex; align-items: center; gap: 3px; } .gsmbtns .ico { width: 14px; height: 14px; }
.gttank .gtnof { font-style: normal; color: var(--yellow); }
.gttank > div > b i { font-style: normal; font-weight: bold; color: var(--ink); opacity: .75; margin-left: 2px; }

/* ----- the Bits and Dark Data counters as bars (gtbar): the fill is how full the storage is ----- */
#hud .stats span.gtbar { background-image: linear-gradient(90deg, rgba(var(--gc), .5) 0, rgba(var(--gc), .5) var(--gf), transparent var(--gf)); border-color: rgba(var(--gc), .55); text-shadow: 0 1px 0 #000, 0 0 3px #000; transition: background-size .3s; }
/* a full storage is not shown in red (owner, 28 Nov 2026) */

/* ----- the Room's resource bars (gtres): Bits on top, Dark Data under it, each filling with how full its storage is ----- */
.rm2 .gtres { position: absolute; right: calc(12px + var(--sr)); top: 58px; z-index: 5; display: flex; flex-direction: column; gap: 8px; width: 150px; }
.gtrs { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 6px; height: 26px; margin: 0; padding: 0 30px 0 8px; font: inherit; font-weight: bold; font-size: 14px; color: var(--ink); cursor: pointer; background: rgba(8,10,20,.82) linear-gradient(270deg, rgba(var(--gc), .55) 0, rgba(var(--gc), .55) var(--gf), transparent var(--gf)); border: 2px solid rgba(var(--gc), .7); box-shadow: 0 3px 0 rgba(0,0,0,.6); text-shadow: 0 1px 0 #000, 0 0 3px #000; }
.gtrs img.ico { position: absolute; right: -8px; top: 50%; width: 28px; height: 28px; transform: translateY(-50%); filter: drop-shadow(0 2px 0 #000); }
/* a full storage is not shown in red (owner, 28 Nov 2026) */
.rm2:has(.gtres) .instc { top: 150px; }

/* ----- the top bar, screen by screen (owner, 27 Nov 2026) ----- */
#app[data-scr=lab] #hud .stats .gthp { display: none; } /* Upgrades: no Integrity */
#app[data-scr=season] #hud .stats, #app[data-scr=logs] #hud .stats { display: none !important; } /* Season and Logs: no currency, no status */

/* ----- a counter bumps when a flying coin lands in it (gtbump) ----- */
@keyframes gtbump { 0% { transform: scale(1); } 40% { transform: scale(1.12); filter: brightness(1.5); } 100% { transform: scale(1); } }
.gtbump { animation: gtbump .2s ease-out; } @media (prefers-reduced-motion: reduce) { .gtbump { animation: none; } }

/* ----- offers at the moment of need (gtoff) and the Bits packs' label (gtpk) ----- */
.gtoff h3 { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 0 8px; text-align: center; } .gtoff p { margin: 0 0 10px; text-align: center; }
.gtoff .btns { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; } .gtoff .btns .btn { margin: 0; width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.items.packs .item .gtpk { font: 400 9px Silkscreen, ui-monospace, monospace; letter-spacing: 1px; color: var(--dim); }
#modal .gtoff .btns .btn.go { background: var(--green); color: #05070d; border-color: #05070d; box-shadow: 0 0 0 2px var(--green), 0 4px 0 #000; font-weight: bold; } #modal .gtoff .btns .btn.backb { background: var(--panel); color: var(--dim); border-color: var(--line); box-shadow: none; } /* the offer's buy button is the bright one */
#app[data-scr] #hud .stats > [data-a=ddinfo] { display: flex !important; } /* Dark Data always sits next to Bits on the top strip (owner, 28 Nov 2026) */
#app.narrow[data-scr=rig] .stc .dbar, #app.narrow[data-scr=rig] .stc .mb { display: none; } #app.narrow[data-scr=rig] .stc { padding: 0 5px; gap: 4px; } #app.narrow[data-scr=rig] #hud .shead.rgs { gap: 5px; } /* a small screen: the Rig's status boxes drop their bars, so Bits and Dark Data fit beside them */

/* ----- one-time district offers (gtof card, gtofm window) ----- */
.feat.gtof { border-color: var(--dc); box-shadow: 0 0 0 2px #05070d, 0 0 18px color-mix(in srgb, var(--dc) 45%, transparent); } .feat.gtof h3 { color: var(--dc); }
.feat.gtof ul { list-style: none; padding: 0; margin: 4px 0; display: flex; flex-direction: column; gap: 3px; text-align: left; } .feat.gtof li { display: flex; align-items: center; gap: 5px; font-size: 12px; } .feat.gtof li img.ico { width: 16px; height: 16px; flex: none; } .feat.gtof li b { color: var(--yellow); } .feat.gtof li small { color: var(--rc, var(--dim)); font-size: 10px; }
.gtofm { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; } .gtofm > small { font: 400 10px Silkscreen, ui-monospace, monospace; letter-spacing: 2px; color: var(--dim); } .gtofm h2 { margin: 0; font-family: Silkscreen, ui-monospace, monospace; font-weight: 400; letter-spacing: 3px; } .gtofm p { margin: 0; }
.gtofm .feat.gtof { width: min(340px, 100%); margin: 4px 0; } .gtofm .btn.wide { margin: 0; }
.gtofm .feat.gtof { display: grid; grid-template-columns: 88px minmax(0, 1fr); grid-template-areas: "tag tag" "ttl ttl" "pic lst" "buy buy"; column-gap: 10px; row-gap: 4px; align-items: center; padding: 8px 10px; } .gtofm .feat.gtof > .tag2 { grid-area: tag; justify-self: start; } .gtofm .feat.gtof > h3 { grid-area: ttl; margin: 0; } .gtofm .feat.gtof > .pix { grid-area: pic; width: 88px; height: 88px; } .gtofm .feat.gtof > ul { grid-area: lst; margin: 0; } .gtofm .feat.gtof > .btn { grid-area: buy; margin: 2px 0 0; } .gtofm { gap: 3px; } .gtofm p.small { font-size: 11px; } /* the window: the skin beside what the pack holds, so it fits a small screen */
.feat.gtof .btn.hot { background: var(--yellow); color: #05070d; border-color: #05070d; box-shadow: 0 0 0 2px var(--yellow), 0 4px 0 #000; } #modal .gtofm > .btn.backb { background: var(--panel); color: var(--dim); border-color: var(--line); box-shadow: none; min-height: 34px; } /* the pack's price is the bright button; Not now is dim */

.feat.gtof h3, .gtofm h2 { text-transform: uppercase; } /* district names translate first, then show in capitals */

/* ----- UPDATE NOTES window (gtun) ----- */
.gtun { display: flex; flex-direction: column; gap: 8px; max-height: 340px; } .gtun h2 { margin: 0; text-align: center; color: var(--yellow, #ffd23f); letter-spacing: 2px; }
.gtunl { overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding-right: 4px; min-height: 0; flex: 1 1 auto; }
.gtunr { display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 6px 8px; border: 1px solid rgba(53, 224, 255, .25); background: rgba(5, 7, 13, .5); } .gtunr .ico { width: 24px; height: 24px; flex: 0 0 24px; image-rendering: pixelated; margin-top: 2px; }
.gtunr b { display: block; color: var(--cyan, #35e0ff); font-size: 12px; } .gtunr p { margin: 2px 0 0; font-size: 11px; line-height: 1.35; color: #c9d4e6; }

/* contract board: a payout stays on one line (the contract text takes the wrap) */
.ctpay { white-space: nowrap; flex-shrink: 0; }
