/* Void Golems: dark space panels, italic yellow display type, big round touch buttons. */
:root {
  --bg: #070a16; --panel: #0e1530; --panel2: #151f40; --line: #26345f;
  --text: #eef2ff; --muted: #8e9bc4; --accent: #ffd23f; --accent2: #3ee08f; --nitro: #ffb13b;
  --danger: #ff5a5f; --blue: #58a6ff; --cyan: #4fd8ff; --violet: #b48cff;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  overflow: hidden; -webkit-user-select: none; user-select: none; touch-action: none; overscroll-behavior: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.hidden { display: none !important; }
canvas#game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.h { font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: .02em; }

/* ------------------------------------------------------------ HUD */
#hud { position: fixed; inset: 0; pointer-events: none; }
#hud button, #hud .tb { pointer-events: auto; }
.box { background: rgba(7, 10, 24, .86); border: 1px solid #ffffff22; border-radius: 12px; box-shadow: 0 6px 20px #0008; }
.score { position: absolute; top: calc(10px + var(--sat)); left: calc(10px + var(--sal)); padding: 5px 11px 7px; min-width: 112px; }
.score b { display: block; font-size: 24px; font-weight: 900; font-style: italic; color: var(--accent); line-height: 1; font-variant-numeric: tabular-nums; }
.score b em { font-style: normal; font-size: 17px; margin-right: 3px; color: var(--cyan); }
.score .flow { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 10px; font-weight: 900; letter-spacing: .1em; color: var(--muted); }
.score .flow i { font-style: italic; color: var(--accent2); font-size: 14px; letter-spacing: 0; }
.score .fbar { height: 5px; border-radius: 3px; background: #ffffff18; margin-top: 4px; overflow: hidden; }
.score .fbar div { height: 100%; width: 0; background: linear-gradient(90deg, #1fb46d, var(--accent2)); border-radius: 3px; }
.clock { position: absolute; top: calc(10px + var(--sat)); left: 50%; transform: translateX(-50%); padding: 4px 12px 6px; text-align: center; white-space: nowrap; min-width: 120px; }
.clock b { display: block; font-size: 19px; font-weight: 900; font-variant-numeric: tabular-nums; }
.clock span { display: block; font-size: 10px; font-weight: 800; letter-spacing: .08em; color: var(--cyan); text-transform: uppercase; }
.clock .stars { font-size: 13px; letter-spacing: .1em; color: #ffffff30; margin-top: 1px; }
.clock .stars em { font-style: normal; color: var(--accent); }
.pause { position: absolute; top: calc(12px + var(--sat)); right: calc(12px + var(--sar)); width: 40px; height: 40px; border-radius: 10px; border: 1px solid #ffffff2a;
  background: rgba(7, 10, 24, .8); font-weight: 900; display: grid; place-items: center; font-size: 13px; }
.meter { position: absolute; top: calc(84px + var(--sat)); left: 50%; transform: translateX(-50%); width: min(calc(100vw - 20px), 360px); padding: 5px 9px 7px; }
.meter .t { display: flex; justify-content: space-between; gap: 8px; font-size: 9.5px; font-weight: 900; letter-spacing: .14em; color: var(--muted); white-space: nowrap; }
.meter .t.s { margin-top: 4px; }
.meter .t b { color: var(--accent2); } .meter .t b.c { color: var(--cyan); } .meter .t b.r { color: #ff8a8d; } .meter .t b.o { color: var(--nitro); } .meter .t b.v { color: var(--violet); }
.meter .bar { position: relative; height: 9px; border-radius: 5px; background: #ffffff14; margin-top: 4px; overflow: hidden; }
.meter .bar > div { height: 100%; width: 0; border-radius: 5px; background: linear-gradient(90deg, #1fb46d, #3ee08f); }
.meter .bar.shd > div { background: linear-gradient(90deg, #2a7fd0, #4fd8ff); }
.meter .bar.hull > div { background: linear-gradient(90deg, #c8323a, #ff8a8d); }
.meter .bar.vi > div { background: linear-gradient(90deg, #6a3fd0, #b48cff); }
.meter .bar.or > div { background: linear-gradient(90deg, #d07a1a, #ffb13b); }
.meter .bar.thin { height: 5px; margin-top: 3px; }
.meter .bar i { position: absolute; top: 0; bottom: 0; width: 2px; background: #ffffffcc; display: none; }
.meter .bar i.nd { width: 4px; margin-left: -2px; background: #fff; box-shadow: 0 0 6px #fff; }
.meter .bar .zone { position: absolute; top: 0; bottom: 0; background: #3ee08f40; border-left: 2px solid #3ee08f; border-right: 2px solid #3ee08f; display: none; }
.feed { position: absolute; top: calc(186px + var(--sat)); left: calc(10px + var(--sal)); display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.feed div { background: rgba(7, 10, 24, .86); border: 1px solid #ffffff1c; border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 800; white-space: nowrap; animation: fin .2s ease-out; }
.feed i { color: var(--accent); font-style: normal; font-weight: 900; } .feed i.up { color: var(--accent2); } .feed i.dn { color: #ff8a8d; } .feed i.c { color: var(--cyan); } .feed i.v { color: var(--violet); }
@keyframes fin { from { opacity: 0; transform: translateY(-4px); } }
.chips { position: absolute; top: calc(186px + var(--sat)); right: calc(10px + var(--sar)); display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.chips div { background: rgba(7, 10, 24, .88); border: 1px solid #ffd23f88; color: var(--accent); border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 900; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chips div.r { border-color: #ff8a8d88; color: #ff8a8d; } .chips div.b { border-color: #4fd8ff88; color: var(--cyan); } .chips div.g { border-color: #3ee08f88; color: var(--accent2); }
.chips div.o { border-color: #ffb13b88; color: var(--nitro); } .chips div.v { border-color: #b48cff88; color: var(--violet); }
.obj { position: absolute; left: 50%; transform: translateX(-50%); top: calc(152px + var(--sat)); background: rgba(7, 10, 24, .82); border: 1px solid #ffd23f55; color: var(--text);
  border-radius: 999px; padding: 5px 13px; font-size: 12px; font-weight: 800; white-space: nowrap; max-width: calc(100vw - 20px); overflow: hidden; text-overflow: ellipsis; }
.obj b { color: var(--accent); margin-left: 6px; font-variant-numeric: tabular-nums; }
.tip { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(290px + var(--sab)); background: rgba(7, 10, 24, .94); border: 1px solid #ffffff22; border-left: 4px solid var(--cyan);
  padding: 8px 12px; border-radius: 10px; font-size: 13px; width: max-content; max-width: min(92vw, 440px); line-height: 1.35; }
.tip b { color: var(--accent); }
.banner { position: absolute; top: 30%; left: 50%; transform: translate(-50%, -50%); text-align: center; pointer-events: none; }
.banner .big { font-size: 34px; color: var(--accent); text-shadow: 0 4px 20px #000a; white-space: nowrap; }
.banner .small { font-size: 14px; font-weight: 800; color: var(--text); text-shadow: 0 2px 8px #000; margin-top: 4px; }
.banner.bad .big { color: #fff; background: var(--danger); padding: 4px 18px; border-radius: 12px; box-shadow: 0 10px 30px #ff5a5f55; transform: rotate(-3deg); }
.banner.good .big { color: #002313; background: var(--accent2); padding: 4px 18px; border-radius: 12px; box-shadow: 0 10px 30px #3ee08f55; }
.banner.vi .big { color: #1a0b3a; background: var(--violet); padding: 4px 18px; border-radius: 12px; box-shadow: 0 10px 30px #b48cff55; transform: rotate(-3deg); }
.banner.pop { animation: pop .35s ease-out; }
@keyframes pop { from { transform: translate(-50%, -50%) scale(1.4); opacity: 0; } }

/* stick and round buttons */
.stick { position: absolute; width: 128px; height: 128px; border-radius: 50%; border: 2px solid #ffffff30; background: #ffffff0c; pointer-events: none; }
.stick i { position: absolute; left: 35px; top: 35px; width: 58px; height: 58px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffffffcc, #ffffff55); box-shadow: 0 4px 12px #0006; }
.btns { position: absolute; right: calc(14px + var(--sar)); bottom: calc(26px + var(--sab)); width: 200px; height: 180px; pointer-events: none; }
.tb { position: absolute; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 900; text-align: center; touch-action: none;
  border: 2px solid #ffffff55; box-shadow: 0 6px 16px #0008; line-height: 1.05; letter-spacing: .03em; transition: transform .08s, filter .15s; }
.tb.on { transform: scale(.93); }
.tb small { display: block; font-size: 9px; opacity: .8; font-weight: 900; margin-top: 3px; letter-spacing: .06em; }
.tb .n { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; border-radius: 11px; background: #070a16; border: 2px solid currentColor; font-size: 11px; display: grid; place-items: center; font-style: italic; padding: 0 4px; }
.tb .k { position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); background: #070a16; color: var(--text); border: 1px solid #ffffff44; border-radius: 5px; font-size: 10px; padding: 1px 5px; font-style: normal; display: none; }
.desk .tb .k { display: block; }
.tb.big { right: 0; bottom: 0; width: 96px; height: 96px; font-size: 15px; }
.tb.mid { right: 104px; bottom: 4px; width: 64px; height: 64px; font-size: 10.5px; }
.tb.top { right: 16px; bottom: 106px; width: 64px; height: 64px; font-size: 10px; }
.tb.top2 { right: 92px; bottom: 82px; width: 54px; height: 54px; font-size: 9px; }
.y { background: radial-gradient(circle at 35% 30%, #ffe98a, #f0b400); color: #241900; }
.gr { background: radial-gradient(circle at 35% 30%, #8ff7c1, #1fb46d); color: #002313; }
.or { background: radial-gradient(circle at 35% 30%, #ffd08a, #f08a00); color: #2a1600; }
.bl { background: radial-gradient(circle at 35% 30%, #a9c8ff, #3a64d8); color: #fff; }
.rd { background: radial-gradient(circle at 35% 30%, #ff9a9d, #c8323a); color: #fff; }
.gy { background: radial-gradient(circle at 35% 30%, #5b6378, #272d3d); color: #fff; }
.vi { background: radial-gradient(circle at 35% 30%, #dccbff, #7144d6); color: #fff; }
.cy { background: radial-gradient(circle at 35% 30%, #c4f4ff, #1f9cc8); color: #001b28; }
.tb.ready { box-shadow: 0 0 0 6px #ffffff22, 0 0 0 12px #ffffff0e, 0 6px 16px #0008; }
.tb.fire { box-shadow: 0 0 0 6px #ff5a5f33, 0 6px 16px #0008; }
.tb.off { filter: saturate(.25) brightness(.55); }
.tb .ring { position: absolute; inset: -7px; border-radius: 50%; border: 3px solid transparent; }
.modepill { position: absolute; right: calc(20px + var(--sar)); bottom: calc(222px + var(--sab)); background: rgba(7, 10, 24, .88); border: 1px solid #4fd8ff88; color: var(--cyan);
  border-radius: 999px; padding: 5px 11px; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.modepill b { color: var(--text); margin-left: 4px; }
.modepill.de { border-color: var(--violet); color: var(--violet); }
.pwr { position: absolute; left: calc(12px + var(--sal)); bottom: calc(190px + var(--sab)); width: 96px; padding: 4px 6px 3px; display: block; }
.pwr svg { display: block; width: 100%; height: auto; }
.pwr .l { display: block; font-size: 8.5px; font-weight: 900; letter-spacing: .12em; color: var(--muted); text-align: center; margin-top: 1px; }
.keys { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 6px; white-space: nowrap; }
.keys div { background: rgba(7, 10, 24, .86); border: 1px solid #ffffff22; border-radius: 8px; padding: 4px 9px; font-size: 11px; font-weight: 700; color: var(--muted); }
.keys b { color: var(--text); background: #ffffff14; border-radius: 4px; padding: 0 5px; margin-right: 4px; }

/* landscape phones */
.land .meter { top: calc(12px + var(--sat)); left: auto; right: calc(60px + var(--sar)); transform: none; width: 230px; }
.land .btns { transform: scale(.78); transform-origin: right bottom; right: calc(10px + var(--sar)); bottom: calc(8px + var(--sab)); }
.land .feed { top: calc(84px + var(--sat)); }
.land .banner { top: 50%; }
.land .obj { top: calc(76px + var(--sat)); max-width: 420px; }
.land .chips { top: calc(70px + var(--sat)); }
.land .pwr { left: auto; right: calc(12px + var(--sar)); bottom: calc(158px + var(--sab)); width: 92px; }
.land .modepill { right: calc(114px + var(--sar)); bottom: calc(160px + var(--sab)); }
.land .tip { bottom: calc(12px + var(--sab)); max-width: min(calc(100vw - 340px), 420px); font-size: 12px; }
/* desktop */
.desk .score { top: 14px; left: 14px; } .desk .clock { top: 14px; }
.desk .meter { top: 14px; left: auto; right: 66px; transform: none; width: 300px; }
.desk .feed { top: 100px; left: 14px; }
.desk .chips { top: 100px; right: 14px; }
.desk .btns { transform: scale(.82); transform-origin: right bottom; right: 18px; bottom: 52px; }
.desk .pwr { left: 14px; bottom: 52px; width: 108px; }
.desk .modepill { left: 134px; right: auto; bottom: 56px; }
.desk .obj { top: auto; bottom: 56px; }
.desk .tip { bottom: 96px; }
@media (max-width: 600px) { .clock { left: auto; right: 58px; transform: none; min-width: 0; } .clock span { font-size: 9px; letter-spacing: .06em; } }

/* ------------------------------------------------------------ screens */
.screen { position: fixed; inset: 0; overflow-y: auto; touch-action: pan-y; }
#menu { background: radial-gradient(120% 60% at 50% 0%, rgba(44, 30, 92, .85) 0%, rgba(7, 10, 22, .55) 62%); }
.wrap { padding: calc(16px + var(--sat)) 16px calc(20px + var(--sab)); max-width: 520px; margin: 0 auto; }
.logo { text-align: center; margin: 0 0 12px; }
.logo .t1, .logo .t2 { font-size: 40px; line-height: .9; }
.logo .t1 { color: #fff; text-shadow: 0 0 24px #4fd8ff66; }
.logo .t2 { color: var(--accent); }
.logo .stripe { display: block; width: 200px; height: 6px; margin: 10px auto 0; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--cyan) 20%, var(--violet) 50%, var(--cyan) 80%, transparent); box-shadow: 0 0 14px #4fd8ff88; }
.logo .sub { color: var(--muted); font-size: 11px; letter-spacing: .3em; margin-top: 8px; font-weight: 700; }
.card { background: rgba(14, 21, 48, .92); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; }
.lbl { font-size: 11px; font-weight: 900; color: var(--muted); letter-spacing: .14em; margin-bottom: 8px; text-transform: uppercase; display: flex; justify-content: space-between; gap: 8px; }
.lbl b { color: var(--accent); letter-spacing: .06em; }
.fleet { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; touch-action: pan-x; }
.fleet::-webkit-scrollbar { display: none; }
.fl { flex: 0 0 66px; background: var(--panel2); border: 2px solid transparent; border-radius: 11px; padding: 5px 3px 4px; text-align: center; }
.fl canvas { display: block; width: 56px; height: 40px; margin: 0 auto; }
.fl .nm { font-size: 10px; font-weight: 900; margin-top: 3px; white-space: nowrap; }
.fl .lv { font-size: 9px; color: var(--accent); font-weight: 900; white-space: nowrap; }
.fl.sel { border-color: var(--accent); background: #2a2a10; }
.fl.lock { opacity: .55; } .fl.lock .lv { color: var(--muted); }
.fl.can .lv { color: var(--accent2); }
.fl.no { opacity: .35; }
.shifts { display: grid; gap: 6px; margin-top: 8px; }
.sh { display: flex; align-items: center; gap: 10px; background: var(--panel2); border: 2px solid transparent; border-radius: 11px; padding: 4px 10px 4px 4px; text-align: left; width: 100%; }
.sh canvas { width: 54px; height: 40px; border-radius: 7px; flex: 0 0 54px; }
.sh .nm { font-weight: 900; font-size: 13.5px; }
.sh .ds { font-size: 10.5px; color: var(--muted); font-weight: 700; margin-top: 1px; }
.sh .st { margin-left: auto; font-size: 15px; letter-spacing: .06em; color: #ffffff28; white-space: nowrap; }
.sh .st em { font-style: normal; color: var(--accent); }
.sh.sel { border-color: var(--accent); background: #2a2a10; }
.sh .new { font-size: 9px; font-weight: 900; background: var(--accent2); color: #002313; border-radius: 5px; padding: 1px 5px; margin-left: 6px; vertical-align: 2px; font-style: normal; }
.sh.lock { opacity: .45; }
.seg { display: flex; gap: 6px; }
.seg button { flex: 1; background: var(--panel2); border: 1px solid var(--line); padding: 10px 4px; border-radius: 10px; font-size: 12px; }
.seg button.sel { background: var(--accent); color: #1a1400; border-color: var(--accent); }
.seg button.lock { opacity: .5; }
.hint { font-size: 11.5px; color: var(--muted); margin-top: 8px; line-height: 1.4; }
.hint b { color: var(--accent); }
.hint.big { font-size: 13px; color: var(--text); }
.settings { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; font-size: 12px; }
.set { background: var(--panel2); border-radius: 10px; padding: 8px 10px; display: flex; justify-content: space-between; gap: 6px; text-align: left; }
.set b { color: var(--accent); white-space: nowrap; }
.go { display: block; width: 100%; padding: 14px; border-radius: 14px; background: linear-gradient(180deg, #ffe066, #f0b400); color: #241900; font-size: 20px; box-shadow: 0 8px 20px #f0b40044; text-align: center; margin-top: 4px; }
.go.vi { background: linear-gradient(180deg, #d4bfff, #7a4be0); color: #14072e; box-shadow: 0 8px 24px #8a5cf055; }
.go.off { filter: saturate(.2) brightness(.6); }
.btn { padding: 13px; border-radius: 12px; text-align: center; font-size: 16px; }
.btn.ghost { background: var(--panel2); border: 1px solid var(--line); }

/* ------------------------------------------------------------ overlays */
.overlay { background: rgba(5, 7, 18, .76); backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center; }
.panel { width: 100%; max-width: 440px; padding: max(28px, calc(5vh + var(--sat))) 16px calc(24px + var(--sab)); }
.panel .ttl { text-align: center; font-size: 34px; color: var(--accent); line-height: 1; }
.panel .sub { text-align: center; color: var(--muted); font-weight: 800; font-size: 12px; letter-spacing: .14em; margin-top: 6px; }
.goals { display: grid; gap: 5px; margin: 10px 0 4px; }
.goals div { background: var(--panel2); border-radius: 9px; padding: 7px 10px; font-size: 12px; display: flex; gap: 10px; align-items: center; }
.goals em { font-style: normal; color: var(--accent); font-size: 14px; letter-spacing: .05em; min-width: 46px; }
.acts { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; margin-top: 12px; }
.acts .go { margin: 0; font-size: 17px; padding: 13px; }
.stack { display: grid; gap: 8px; margin-top: 14px; }
.link { display: block; margin: 12px auto 0; color: var(--muted); font-size: 13px; }
.bigstars { display: flex; justify-content: center; gap: 10px; margin: 18px 0 6px; }
.bigstars div { width: 70px; height: 70px; display: grid; place-items: center; font-size: 58px; line-height: 1; color: #ffffff1f; }
.bigstars div.on { color: var(--accent); text-shadow: 0 0 22px #ffd23f88; animation: pop2 .4s ease-out backwards; }
.bigstars div:nth-child(2) { transform: translateY(-10px) scale(1.15); }
.bigstars div:nth-child(2).on { animation-delay: .15s; } .bigstars div:nth-child(3).on { animation-delay: .3s; }
@keyframes pop2 { from { opacity: 0; scale: 1.6; } }
.why { text-align: center; font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.why b { color: var(--text); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.stat { background: var(--panel2); border-radius: 10px; padding: 8px 10px; }
.stat span { display: block; font-size: 10px; font-weight: 900; letter-spacing: .12em; color: var(--muted); }
.stat b { font-size: 19px; font-weight: 900; font-style: italic; font-variant-numeric: tabular-nums; }
.stat b small { font-size: 11px; color: var(--accent2); font-style: normal; margin-left: 4px; }
.stat b small.bad { color: #ff8a8d; }
.total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; }
.total b { font-size: 30px; font-style: italic; color: var(--accent); }
.best { font-size: 10px; font-weight: 900; background: var(--accent); color: #1a1400; border-radius: 6px; padding: 2px 7px; letter-spacing: .08em; vertical-align: 6px; }
.unlock { display: flex; align-items: center; gap: 10px; background: #3ee08f18; border: 1px solid #3ee08f55; border-radius: 12px; padding: 9px 11px; margin: 10px 0 0; }
.unlock canvas { width: 56px; height: 42px; flex: 0 0 56px; }
.unlock span { font-size: 10px; font-weight: 900; letter-spacing: .14em; color: var(--accent2); }
.unlock b { display: block; font-size: 15px; }
.howto { list-style: none; display: grid; gap: 8px; margin: 14px 0; font-size: 13px; line-height: 1.4; }
.howto li { background: var(--panel2); border-radius: 10px; padding: 8px 10px; }
.howto b { color: var(--accent); }

/* system map */
#map { overflow: hidden; pointer-events: none; }
#map .box, #map button { pointer-events: auto; }
.maptop { position: absolute; top: calc(10px + var(--sat)); left: 10px; right: 10px; display: flex; gap: 8px; align-items: stretch; max-width: 600px; margin: 0 auto; }
.maptop .box { padding: 6px 11px 7px; }
.maptop .ttl { flex: 1; }
.maptop .ttl b { display: block; font-size: 17px; font-weight: 900; font-style: italic; text-transform: uppercase; }
.maptop span { font-size: 10px; font-weight: 900; letter-spacing: .14em; color: var(--muted); }
.maptop .cr b { display: block; font-size: 17px; font-weight: 900; font-style: italic; color: var(--accent); text-align: right; }
.route { position: absolute; left: 10px; right: 10px; bottom: calc(12px + var(--sab)); max-width: 500px; margin: 0 auto; padding: 10px 12px 12px; }
.route .legs { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.route .legs div { flex: 1; }
.route .legs small { display: block; font-size: 9.5px; font-weight: 900; letter-spacing: .14em; color: var(--muted); }
.route .legs b { font-size: 15px; font-weight: 900; }
.route .legs .arr { flex: 0 0 auto; color: var(--violet); font-size: 20px; font-weight: 900; }
.route .facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.route .facts div { background: var(--panel2); border-radius: 9px; padding: 6px 8px; }
.route .facts span { display: block; font-size: 9px; font-weight: 900; letter-spacing: .12em; color: var(--muted); }
.route .facts b { font-size: 15px; font-weight: 900; font-style: italic; }
.route .facts b.r { color: #ff8a8d; } .route .facts b.g { color: var(--accent2); }
.route .acts { margin-top: 10px; }

/* trade terminal */
.term .head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 10px; }
.term .head b { display: block; font-size: 22px; }
.term .head span { font-size: 10px; font-weight: 900; letter-spacing: .16em; color: var(--cyan); }
.term .head .cr { text-align: right; }
.term .head .cr b { color: var(--accent); font-size: 18px; font-style: italic; }
.goods { display: grid; gap: 5px; }
.gd { display: grid; grid-template-columns: 30px 1fr auto auto; align-items: center; gap: 9px; background: var(--panel2); border: 2px solid transparent; border-radius: 11px; padding: 6px 9px; text-align: left; width: 100%; }
.gd .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: 17px; }
.gd .nm { font-weight: 900; font-size: 13px; }
.gd .ds { font-size: 10px; color: var(--muted); font-weight: 700; }
.gd .ds b { color: var(--accent2); } .gd .ds b.r { color: #ff8a8d; }
.gd .px { text-align: right; font-weight: 900; font-style: italic; font-size: 15px; font-variant-numeric: tabular-nums; }
.gd .px small { display: block; font-size: 9px; font-style: normal; color: var(--muted); letter-spacing: .1em; }
.gd .tr { font-size: 10px; font-weight: 900; border-radius: 6px; padding: 2px 6px; min-width: 40px; text-align: center; background: #ffffff10; color: var(--muted); }
.gd.sel { border-color: var(--accent); background: #2a2a10; }
.gd .tag { font-size: 8.5px; font-weight: 900; border-radius: 4px; padding: 1px 4px; margin-left: 5px; vertical-align: 2px; background: #ff5a5f33; color: #ff8a8d; }
.gd .tag.c { background: #ffd23f33; color: var(--accent); }
.hold { margin-top: 8px; }
.hold .grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; margin-top: 6px; }
.hold .grid i { aspect-ratio: 1; border-radius: 3px; background: #ffffff0d; border: 1px solid #ffffff14; }
.hold .grid i.new { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.qty { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty .st { width: 44px; height: 44px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); display: grid; place-items: center; font-size: 22px; font-weight: 900; }
.qty .v { flex: 1; text-align: center; }
.qty .v b { font-size: 24px; font-weight: 900; font-style: italic; }
.qty .v span { display: block; font-size: 9.5px; font-weight: 900; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.profit { display: flex; justify-content: space-between; align-items: center; background: #3ee08f14; border: 1px solid #3ee08f55; border-radius: 10px; padding: 7px 10px; margin-top: 8px; font-size: 11.5px; font-weight: 700; }
.profit b { color: var(--accent2); font-size: 16px; font-style: italic; }
.profit.bad b { color: #ff8a8d; }

/* Studio credit and link back to the games page, the same on every Game Golem Studios title screen */
.ggs-foot { text-align: center; font-size: 11px; margin-top: 12px; }
.ggs-foot a { color: var(--muted); text-underline-offset: 2px; }
