/* Bolt & Burrow — layout and look.
   Layout (v0.12.1): full screen. A status strip on top (HUD + one tip line), the game in the middle,
   a controls strip at the bottom. Train cars, stands and outposts open as pop-ups over the game; everything
   else lives in the pause menu. The nano-bot window floats in the bottom-right corner of the game.
   Single committed look: a dark underground workshop. */
:root {
  --bg: #16110d;
  --panel: #211913;
  --line: #3a2b20;
  --fg: #efe3d3;
  --muted: #a8937c;
  --copper: #d9813b;
  --crystal: #86cfdc;
  --danger: #e2705a;
  --display: "Pixelify Sans", ui-monospace, Menlo, monospace;
  --body: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; background: var(--bg); color: var(--fg); overflow: hidden; }
body { margin: 0; font-family: var(--body); font-size: 14px; line-height: 1.45; }

.app {
  height: 100vh; height: 100dvh;
  display: flex; flex-direction: column;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}
.stage { flex: 1 1 auto; position: relative; overflow: hidden; background: #0b0806; min-height: 0; border-block: 1px solid var(--line); }

/* Top strip: HUD, then one line kept for tips and messages */
.topbar { flex: none; background: var(--bg); padding: 8px 16px 0; }
.tip { position: relative; height: 2.9em; font-size: .78rem; line-height: 1.45; margin-top: 4px; }
.tip p {
  position: absolute; inset: 0 0 auto 0; margin: 0; z-index: 6; min-height: 100%;
  color: var(--muted); padding: 0; background: var(--bg);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tip p.msg { color: var(--fg); -webkit-line-clamp: unset; display: block; }
.tip p.msg.long { border-bottom: 1px solid var(--line); box-shadow: 0 6px 12px rgba(0, 0, 0, .5); padding-bottom: 8px; }
.tip p b { color: var(--fg); font-weight: 600; }
.tip p b.tt { color: var(--copper); font-family: var(--display); font-weight: 500; font-size: 1rem; margin-right: 8px; }
.tip p kbd, .cue kbd { font: inherit; color: var(--fg); border: 1px solid var(--line); border-radius: 3px; padding: 0 4px; }

/* Bottom strip: key cues on the left, buttons on the right */
.bottombar {
  flex: none; height: 58px; padding: 0 16px; background: var(--bg); overflow: hidden;   /* fixed height: buttons coming and going must never resize the game */
  display: flex; gap: 12px; align-items: center; justify-content: space-between;
}
.cue { margin: 0; color: var(--muted); font-size: .72rem; min-width: 0; }
.tripping .cue { visibility: hidden; }

#world { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; display: block; }

/* HUD */
.hud { display: flex; gap: 6px 18px; align-items: center; flex-wrap: wrap; }
.sysbtns { display: flex; gap: 6px; }
.sysbtns button {
  width: 38px; height: 38px; border-radius: 6px; border: 2px solid var(--line); background: var(--panel);
  color: var(--fg); font-size: 1.05rem; line-height: 1; padding: 0;
}
.sysbtns button:hover { border-color: var(--copper); }
.readout { display: grid; line-height: 1.15; min-width: 70px; }
.readout small, .meter span { color: var(--muted); font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; }
.readout b { font-family: var(--display); font-weight: 500; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.readout span { color: var(--muted); font-size: .75rem; }
.readout.end { margin-left: auto; text-align: right; }
#coins { color: var(--copper); }
#flux { color: var(--crystal); }
.meters { display: grid; gap: 4px; flex: 1 1 180px; max-width: 320px; min-width: 0; }
.meter { display: grid; grid-template-columns: 60px minmax(0, 1fr) 48px; gap: 8px; align-items: center; }
.meter em { font-style: normal; font-size: .75rem; font-variant-numeric: tabular-nums; text-align: right; }
.bar { height: 10px; background: #0b0806; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 100%; background: var(--crystal); transition: width .15s; }
.bar.low i { background: var(--danger); }
.bar.cargo i { background: var(--copper); }
.bar.hull i { background: #e2705a; }
#attack { padding: 8px 16px; border-radius: 4px; border: 2px solid #e2705a; background: rgba(33, 25, 19, .92); color: var(--fg); font-family: var(--display); font-size: 1rem; touch-action: none; }
#attack[hidden] { display: none; }
.bossbar { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); width: min(420px, 80%); z-index: 2; pointer-events: none; text-align: center; }
.bossbar span { font-family: var(--display); font-size: 1rem; color: #ff8c3c; text-shadow: 0 1px 2px #000; }
.bossbar div { height: 10px; border: 1px solid #ff8c3c; background: rgba(11, 8, 6, .8); border-radius: 2px; overflow: hidden; }
.bossbar i { display: block; height: 100%; background: #e2705a; transition: width .15s; }

@media (pointer: coarse) { .keys { display: none; } }
@media (pointer: fine) { .touch { display: none; } }

button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible { outline: 2px solid var(--crystal); outline-offset: 2px; }
.btns { display: flex; gap: 8px; margin-left: auto; align-items: center; max-height: 100%; }
.btns button { max-height: 44px; }
#recall {
  padding: 8px 12px; border-radius: 4px; border: 2px solid var(--line);
  background: rgba(33, 25, 19, .9); color: var(--muted); font-size: .78rem;
}
#recall.armed { border-color: var(--danger); color: var(--danger); }
#skipTut { padding: 8px 12px; border-radius: 4px; border: 2px solid var(--crystal); background: rgba(33, 25, 19, .9); color: var(--crystal); font-size: .78rem; }
#skipTut[hidden] { display: none; }
.belt { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.belt button { padding: 6px 9px; border-radius: 4px; border: 1px solid var(--line); background: rgba(33, 25, 19, .9); color: var(--fg); font-size: .72rem; }
#skill { display: grid; gap: 3px; padding: 6px 12px; border-radius: 4px; border: 2px solid var(--line); background: rgba(33, 25, 19, .92); color: var(--muted); font-family: var(--display); font-size: .95rem; min-width: 96px; }
#skill[hidden] { display: none; }
#skill i { display: block; height: 4px; background: #0b0806; border-radius: 2px; overflow: hidden; }
#skill b { display: block; height: 100%; width: 0; background: var(--crystal); }
#skill.ready { border-color: var(--crystal); color: var(--fg); }

/* Minimap: top right, under the coins */
.minimap {
  position: absolute; right: 12px; top: 12px; width: 75px; height: auto; max-height: 190px;
  image-rendering: pixelated; background: rgba(11, 8, 6, .75); border: 1px solid var(--line); border-radius: 4px;
  pointer-events: none;
}
@media (max-width: 720px) { .minimap { width: 50px; } }

/* Context action (bridge pads) */
#action {
  padding: 8px 14px; border-radius: 4px; border: 2px solid var(--copper);
  background: rgba(33, 25, 19, .92); color: var(--fg);
  font-family: var(--display); font-size: 1rem; letter-spacing: .03em;
}
.travel-btns button.here { border-color: var(--crystal); color: var(--crystal); }

/* Touch joystick: appears under your thumb */
.joy {
  position: absolute; width: 104px; height: 104px; transform: translate(-50%, -50%);
  border: 2px solid rgba(239, 227, 211, .25); border-radius: 50%; background: rgba(11, 8, 6, .35);
  pointer-events: none;
}
.joy i {
  position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(217, 129, 59, .55); border: 2px solid var(--copper); transform: translate(-50%, -50%);
}

/* Battery: the marker shows roughly what the trip back needs */
.bar { position: relative; }
.bar u { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--fg); text-decoration: none; }
.bar.low { border-color: var(--danger); animation: lowpulse 1s ease-in-out infinite; }
@keyframes lowpulse { 50% { box-shadow: 0 0 0 3px rgba(226, 112, 90, .35); } }
@media (prefers-reduced-motion: reduce) { .bar.low { animation: none; } }

/* Panels */
.panel {
  min-height: 0; overflow: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 10px;
}
.panel header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.panel h2 { font-family: var(--display); font-weight: 500; font-size: 1.2rem; margin: 0; }
.chip { font-size: .7rem; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.chip.open { border-color: var(--copper); color: var(--copper); }

.view { display: flex; flex-direction: column; gap: 10px; }
.view[hidden] { display: none; }
.travel-btns { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }

/* Panel text */
.note { margin: 0; color: var(--muted); font-size: .75rem; }
.note b { color: var(--fg); font-weight: 600; }
.note.pip { color: var(--fg); font-style: italic; }
.row.here { border-color: var(--copper); }
.sub { color: var(--muted); font-size: .64rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: -4px; }
.short { color: var(--danger) !important; }
.row strong i, .inv li i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.row strong .count { color: var(--muted); font-weight: 500; }
.btns2 { display: flex; gap: 4px; }
.btns2 button, .mod-btns button {
  padding: 4px 8px; border-radius: 4px; border: 1px solid var(--copper);
  background: transparent; color: var(--copper); font-size: .7rem; white-space: nowrap;
}
.mod-btns button:disabled { border-color: var(--line); color: var(--muted); cursor: default; }
.pbar { height: 6px; margin: 4px 0; background: #0b0806; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.pbar i { display: block; height: 100%; width: 0; background: var(--copper); }

/* Backup */
.code { width: 100%; min-height: 70px; background: #0b0806; color: var(--fg); border: 1px solid var(--line); border-radius: 4px; font: .7rem var(--body); padding: 6px; resize: vertical; word-break: break-all; }
.filebtn { padding: 4px 8px; border-radius: 4px; border: 1px solid var(--copper); color: var(--copper); font-size: .7rem; cursor: pointer; text-align: center; }
.back { align-self: flex-start; padding: 5px 10px; border-radius: 4px; border: 1px solid var(--line); background: none; color: var(--muted); font-size: .75rem; }
.foot-btns { display: flex; gap: 6px; }
#backup { background: none; border: 1px solid var(--line); border-radius: 4px; padding: 3px 9px; font-size: .7rem; color: var(--muted); }
.tag { font-style: normal; font-size: .62rem; color: var(--crystal); border: 1px solid var(--crystal); border-radius: 3px; padding: 0 4px; margin-left: 4px; }

/* Computer (Lab car) */
.computer { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.computer .grid { display: grid; gap: 4px; padding: 6px; background: #0d1714; border: 1px solid #1d3a31; border-radius: 6px; width: 120px; }
.cell {
  aspect-ratio: 1; border-radius: 3px; border: 1px dashed #2c5246; background: #12221d;
  color: #0b0806; font-family: var(--display); font-size: .7rem; padding: 0; overflow: hidden;
}
.cell.locked { background: repeating-linear-gradient(45deg, #15120f, #15120f 4px, #1d1813 4px, #1d1813 8px); border-color: var(--line); cursor: default; }
.cell.filled { background: var(--mc); border: 1px solid rgba(0, 0, 0, .4); }
.cell.fit { border: 1px solid var(--crystal); background: rgba(134, 207, 220, .18); }
.cell.sel { outline: 2px solid var(--fg); }
.legend { display: grid; gap: 4px; font-size: .7rem; color: var(--muted); flex: 1 1 160px; }
.legend p { margin: 0; }
.legend b { color: var(--fg); }
.lg { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 2px; vertical-align: -1px; }
.lg.open { background: #12221d; border: 1px dashed #2c5246; }
.lg.locked { background: #1d1813; border: 1px solid var(--line); }
.mods { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 6px; }
.mod {
  display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 7px 10px; border: 1px solid var(--line); border-radius: 5px; opacity: .75;
}
.mod.owned { opacity: 1; cursor: pointer; }
.mod.placed { border-color: #2c5246; }
.mod.sel { border-color: var(--fg); background: rgba(239, 227, 211, .05); }
.mod > div { display: grid; min-width: 0; line-height: 1.3; }
.mod strong { font-size: .82rem; font-weight: 600; }
.mod span { font-size: .72rem; color: var(--fg); }
.mod small { font-size: .68rem; color: var(--muted); }
.mod-btns { display: flex; flex-direction: column; gap: 4px; }
.shape { display: grid; gap: 1px; justify-content: center; }
.shape i { width: 8px; height: 8px; border-radius: 1px; }

/* Inventory */
.inv { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.inv li {
  display: grid; grid-template-columns: 14px minmax(0, 1fr) auto auto; gap: 10px; align-items: center;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 5px; font-size: .85rem;
}
.inv li i { width: 12px; height: 12px; border-radius: 2px; }
.inv li b { font-weight: 600; font-variant-numeric: tabular-nums; }
.inv li em { font-style: normal; color: var(--copper); text-align: right; font-variant-numeric: tabular-nums; }
.inv li.relic { border-color: #c9a2ff; }
.inv li.empty { display: block; color: var(--muted); font-size: .78rem; }
.inv-total { margin: 0; color: var(--muted); font-size: .75rem; }

.rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }

.rows.one { grid-template-columns: minmax(0, 1fr); }
.pips { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: 1px; }
.pip { width: 8px; height: 8px; border-radius: 2px; border: 1px solid #86cfdc; }
.pip.on { background: #86cfdc; }
.row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 5px;
}
.row > div { display: grid; min-width: 0; line-height: 1.3; }
.row small { color: var(--muted); font-size: .64rem; text-transform: uppercase; letter-spacing: .1em; }
.row strong { font-weight: 600; font-size: .85rem; }
.row span { color: var(--muted); font-size: .72rem; }
.row button, .pet-info button {
  padding: 6px 10px; border-radius: 4px; border: 1px solid var(--copper);
  background: transparent; color: var(--copper); font-size: .75rem; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.row button:disabled, .pet-info button:disabled { border-color: var(--line); color: var(--muted); cursor: default; }

.armed { border-color: var(--danger) !important; color: var(--danger) !important; }

/* Nano-bot box: bottom-right corner of the game; tap its header to shrink it to a Flux counter */
.botbox {
  position: absolute; right: 12px; bottom: 12px; z-index: 3; width: 230px;
  background: rgba(33, 25, 19, .94); border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
}
.bot-head {
  width: 100%; display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: none; border: 0;
  font-family: var(--display); font-size: .95rem; text-align: left;
}
.bot-head > span:first-child { flex: 1; white-space: nowrap; }
.caret { width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: -4px 2px 0; }
.bot-view { position: relative; height: 120px; border-top: 1px solid var(--line); background: #0b0806; }
.botbox { transition: opacity .2s; }
.botbox.ghost { opacity: .3; }
.botbox.mini, .botbox.auto { width: auto; }
.botbox.mini .bot-view, .botbox.auto .bot-view { display: none; }
.botbox.mini .caret { transform: rotate(-135deg); margin-top: 4px; }
.botbox.auto .caret { display: none; }
.botbox.auto .bot-head { pointer-events: none; }
#bots { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* Pop-ups (train cars, stands, outposts) and the pause menu: over the game, which pauses */
.overlay { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 14px; background: rgba(11, 8, 6, .6); }
.overlay[hidden] { display: none; }
.sheet {
  width: min(600px, 100%); max-height: 100%; overflow: auto;
  background: var(--panel); border: 1px solid var(--copper); border-radius: 8px;
  padding: 14px 16px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .6);
}
.sheet.menu { width: min(860px, 100%); height: 100%; border-color: var(--line); }
.sheet header { display: flex; align-items: center; gap: 10px; }
.sheet h2 { font-family: var(--display); font-weight: 500; font-size: 1.3rem; margin: 0; flex: 1; }
.sheet footer { font-size: .7rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 8px; }
.x, .resume { border: 1px solid var(--line); background: none; border-radius: 4px; color: var(--muted); }
.x { width: 32px; height: 32px; }
.resume { padding: 6px 14px; border-color: var(--copper); color: var(--copper); font-family: var(--display); font-size: 1rem; }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); flex: none; }
.tabs button, .subtabs button {
  padding: 7px 12px; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted);
  white-space: nowrap; font-size: .8rem;
}
.tabs button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--copper); }
.subtabs { display: flex; gap: 6px; flex-wrap: wrap; }
.subtabs button { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .74rem; }
.subtabs button.on { border-color: var(--crystal); color: var(--crystal); }
.readonly .mod-btns, .readonly .row > button, .readonly .btns2 { display: none; }
.readonly [data-act] { pointer-events: none; }
.seg { display: flex; gap: 4px; flex-wrap: wrap; }
.seg button { padding: 5px 10px; border-radius: 4px; border: 1px solid var(--line); background: none; color: var(--muted); font-size: .74rem; }
.seg button.on { border-color: var(--copper); color: var(--copper); }
input[type=range] { accent-color: var(--copper); width: 160px; }
.mapwrap { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
#bigmap { image-rendering: pixelated; border: 1px solid var(--line); border-radius: 4px; background: #0b0806; max-width: 100%; height: auto; }
.maplegend { display: grid; gap: 4px; font-size: .72rem; color: var(--muted); flex: 1 1 200px; }
.maplegend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.hintlog { display: grid; gap: 6px; }
.hintlog p { margin: 0; font-size: .74rem; color: var(--muted); padding: 6px 10px; border-left: 2px solid var(--line); }
.hintlog p b { color: var(--fg); font-weight: 600; }
.keylist { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: .74rem; margin: 0; }
.keylist dt { color: var(--fg); }
.keylist dd { margin: 0; color: var(--muted); }

/* Phones and narrow windows */
@media (max-width: 720px) {
  .topbar { padding: 6px 10px 0; }
  .hud { gap: 4px 12px; }
  .readout { min-width: 0; }
  .readout b { font-size: 1.15rem; }
  .readout small { display: none; }
  .meters { order: 3; flex-basis: 100%; max-width: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .meter { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 6px; }
  .meter span { grid-column: 1; font-size: .58rem; }
  .meter em { grid-row: 1; grid-column: 2; font-size: .66rem; }
  .meter .bar { grid-column: 1 / 3; }
  .sysbtns button { width: 34px; height: 34px; }
  .tip { height: 4.4em; font-size: .72rem; }
  .tip p { -webkit-line-clamp: 3; }
  .bottombar { padding: 0 10px; height: 56px; }
  .bottombar .cue { display: none; }
  .btns { overflow-x: auto; flex-wrap: nowrap; max-width: 100%; }
  .botbox { width: 170px; right: 8px; bottom: 8px; }
  .bot-view { height: 84px; }
  .overlay { padding: 8px; }
  .sheet { padding: 12px; }
  .mods { grid-template-columns: minmax(0, 1fr); }
}
.tip p .warn { color: var(--danger); }
.maplegend .k { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 12px; }
.kbsel { outline: 2px solid var(--crystal) !important; outline-offset: 2px; }
.sheet:focus { outline: none; }

/* Phones turned sideways (short screens): one slim HUD row and a one-line tip, so the game keeps its height */
@media (max-height: 520px) and (orientation: landscape) {
  .topbar { padding: 4px 12px 0; }
  .hud { flex-wrap: nowrap; gap: 4px 14px; }
  .readout { min-width: 0; }
  .readout small { display: none; }
  .readout b { font-size: 1.05rem; }
  .readout span { font-size: .66rem; }
  .meters { flex: 1 1 auto; max-width: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .meter { grid-template-columns: minmax(0, 1fr) auto; gap: 1px 6px; }
  .meter span { grid-column: 1; font-size: .56rem; }
  .meter em { grid-row: 1; grid-column: 2; font-size: .64rem; }
  .meter .bar { grid-column: 1 / 3; height: 8px; }
  .sysbtns button { width: 32px; height: 32px; font-size: .95rem; }
  .tip { height: 1.6em; font-size: .7rem; margin-top: 2px; }
  .tip p { -webkit-line-clamp: 1; }
  .tip p b.tt { font-size: .85rem; }
  .bottombar { height: 46px; padding: 0 12px; }
  .bottombar .cue { display: none; }
  .btns { overflow-x: auto; flex-wrap: nowrap; }
  .btns button, #attack, #action, #recall { max-height: 36px; padding-block: 4px; font-size: .8rem; }
  #skill { padding-block: 3px; }
  .botbox { width: 190px; right: 8px; bottom: 8px; }
  .bot-head { font-size: .8rem; padding: 4px 8px; }
  .bot-view { height: 70px; }
  .minimap { width: 40px; top: 8px; }
  .overlay { padding: 6px; }
  .sheet { padding: 10px 12px; }
}

/* ---------- v0.14: the nano-bot crew ---------- */
.botrow { display: grid !important; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; }
.botrow > div { display: grid; min-width: 0; line-height: 1.3; }
.botpic, .chippic { display: block; image-rendering: auto; }
.pdot { display: inline-block; width: 9px !important; height: 9px !important; border-radius: 50% !important; margin-right: 6px; vertical-align: 1px; }
.seg.jobs { margin-top: 6px; }
.seg.jobs button { padding: 3px 7px; font-size: .68rem; }
.seg.jobs button:disabled { opacity: .55; cursor: default; }
.row .tag { align-self: start; margin: 6px 0 0; justify-self: start; }
/* the job board: sockets over an SVG of the coloured paths */
.jb { position: relative; height: 190px; border-radius: 6px; background: #0d1714; border: 1px solid #1d3a31;
  background-image: radial-gradient(#16302a 1px, transparent 1.5px); background-size: 16px 16px; }
.jbpaths { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sock { position: absolute; width: 54px; height: 54px; transform: translate(-50%, -50%); border-radius: 8px; border: 2px solid #2c5246;
  background: rgba(13, 23, 20, .6); padding: 0; display: grid; place-items: center; cursor: pointer; }
.sock:hover:not(:disabled) { border-color: var(--crystal); }
.sock.inpath { border-color: var(--pc); box-shadow: 0 0 10px var(--pc); }
.sock b { position: absolute; top: -9px; right: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--pc); color: #0b0806; font: 700 .7rem/18px var(--display); }
.sock:disabled { cursor: default; }
.pathbtns { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pathbtn { display: flex; gap: 6px; align-items: center; padding: 4px 10px 4px 4px; border-radius: 6px; border: 2px solid var(--line);
  border-left: 6px solid var(--pc); background: none; color: var(--fg); text-align: left; font-size: .76rem; touch-action: none; user-select: none; -webkit-user-select: none; }
.pathbtn small { display: block; color: var(--muted); font-size: .62rem; }
.pathbtn.on { border-color: var(--pc); box-shadow: 0 0 8px var(--pc); }
.pathbtns > button:not(.pathbtn) { padding: 6px 10px; border-radius: 4px; border: 1px solid var(--danger); background: none; color: var(--danger); font-size: .72rem; }
/* the Bots tab: the collection log */
.botlog { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.botcard { display: grid; justify-items: center; text-align: center; gap: 2px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: rgba(0, 0, 0, .15); }
.botcard strong { font-family: var(--display); font-weight: 500; font-size: 1rem; }
.botcard span { color: var(--muted); font-size: .68rem; line-height: 1.35; }
.botcard em { color: var(--crystal); font-size: .64rem; font-style: normal; }
.botcard.unknown strong { color: var(--muted); }
.rename { width: 100%; max-width: 200px; background: #0b0806; color: var(--fg); border: 1px solid var(--line); border-radius: 4px; padding: 4px 6px; font: .8rem var(--body); }
/* the bot-cache reward */
.reward { display: flex; flex-direction: column; gap: 10px; }
.newbot { display: flex; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--crystal); border-radius: 8px; background: rgba(134, 207, 220, .08); }
.newbot > div { display: grid; gap: 2px; }
.newbot small { color: var(--crystal); font-size: .64rem; text-transform: uppercase; letter-spacing: .1em; }
.newbot strong { font-family: var(--display); font-weight: 500; font-size: 1.4rem; }
.newbot span { color: var(--fg); font-size: .78rem; }
.newbot em { color: var(--muted); font-size: .7rem; font-style: normal; }
/* the bot-cache signal bars in the tip line */
.sig { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; margin-right: 4px; vertical-align: -1px; }
.sig i { width: 4px; background: #2c5246; border-radius: 1px; }
.sig i:nth-child(1) { height: 5px; } .sig i:nth-child(2) { height: 8px; } .sig i:nth-child(3) { height: 12px; }
.sig i.on { background: var(--crystal); }
@media (max-width: 520px) { .sock { width: 44px; height: 44px; } .sock img { width: 32px; height: 32px; } .jb { height: 160px; } }
