/* XS-Boosting
   Black, blue and grey. Layered surfaces, real elevation, one accent that
   carries every action. Sans for reading, mono for anything you compare. */

:root {
  /* Surfaces climb toward the light as they come forward */
  --s0: #070910;
  --s1: #0c0f18;
  --s2: #111624;
  --s3: #161c2d;
  --s4: #1d2537;
  --s5: #26304a;

  --line:  #1e2537;
  --line2: #2a3349;
  --line3: #3a4663;

  --ink:  #e9eef8;
  --ink2: #a3b0c8;
  --ink3: #6e7c99;
  --ink4: #47536e;

  --good: #3dd68c;
  --warn: #f5b94a;
  --bad:  #ff5c72;

  --r-xs: 6px;
  --r-sm: 9px;
  --r:    13px;
  --r-lg: 18px;
  --r-xl: 24px;

  --sans: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", "Consolas", ui-monospace, monospace;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* One elevation ramp, used everywhere so depth stays consistent. Two
     shadows each: a tight contact shadow that sits the surface on what is
     behind it, and a wide soft one that lifts it off. A single blur reads as
     a sticker. */
  --e1: 0 1px 2px rgba(0,0,0,.5), 0 3px 8px -3px rgba(0,0,0,.42);
  --e2: 0 2px 5px -2px rgba(0,0,0,.55), 0 8px 24px -10px rgba(0,0,0,.72);
  --e3: 0 5px 12px -5px rgba(0,0,0,.6), 0 22px 48px -16px rgba(0,0,0,.85);
  --e4: 0 10px 26px -10px rgba(0,0,0,.7), 0 44px 96px -26px rgba(0,0,0,.92);

  /* A hairline of light along the top of raised surfaces, and the matching
     shade along the bottom. Both together is what makes an edge look cut
     rather than drawn. */
  --lip: inset 0 1px 0 rgba(255,255,255,.085), inset 0 -1px 0 rgba(0,0,0,.35);
}

/* Accent pairs. The first does actions and identity, the second marks the
   unusual — spec orders, hot rates, live warnings. */
[data-theme="blue"]    { --acc: #4d8dff; --acc-2: #2c63cc; --acc2: #a78bfa; --acc-ink: #04101f; }
[data-theme="ice"]     { --acc: #38bdf8; --acc-2: #1d84b5; --acc2: #6ee7b7; --acc-ink: #021420; }
[data-theme="violet"]  { --acc: #a78bfa; --acc-2: #6d4fd1; --acc2: #4d8dff; --acc-ink: #100720; }
[data-theme="emerald"] { --acc: #3dd68c; --acc-2: #1f9c63; --acc2: #4d8dff; --acc-ink: #021a10; }
[data-theme="amber"]   { --acc: #f5b94a; --acc-2: #c08320; --acc2: #4d8dff; --acc-ink: #1c1101; }
[data-theme="crimson"] { --acc: #ff5c72; --acc-2: #c32c43; --acc2: #4d8dff; --acc-ink: #1e0308; }

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: transparent;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

body.hidden { display: none; }
.hidden { display: none !important; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: left; }
svg { width: 100%; height: 100%; display: block; }
input, select { font: inherit; }

.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

/* ── Shell ──────────────────────────────────────────────────────────────── */

.app { position: fixed; inset: 0; display: grid; place-items: center; }

.app::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58% 46% at 14% 2%, color-mix(in srgb, var(--acc) 16%, transparent), transparent 62%),
    radial-gradient(48% 44% at 92% 98%, color-mix(in srgb, var(--acc2) 13%, transparent), transparent 64%),
    linear-gradient(170deg, #05070d 0%, #000 100%);
  pointer-events: none;
}

.unit {
  position: relative;
  width: min(1280px, 92vw);
  height: min(790px, 90vh);
  display: flex;
  flex-direction: column;
  border-radius: var(--r-xl);
  background: linear-gradient(168deg, var(--s2) 0%, var(--s1) 46%, var(--s0) 100%);
  border: 1px solid var(--line2);
  box-shadow:
    var(--e4),
    0 0 0 1px rgba(0,0,0,.6),
    0 0 90px -40px color-mix(in srgb, var(--acc) 70%, transparent),
    var(--lip);
  overflow: hidden;
  animation: winIn .38s var(--ease-out) both;
}

/* Grain over the whole interface. Large flat fills of near-black read as
   painted plastic; a little noise gives them a surface to catch light on.
   Above the content and inert, so nothing under it changes behaviour. */
.unit::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}

@keyframes winIn {
  from { opacity: 0; transform: translateY(14px) scale(.988); }
  to   { opacity: 1; transform: none; }
}

.unit.is-live { border-color: color-mix(in srgb, var(--acc) 40%, var(--line2)); }
.unit.is-hot  { border-color: color-mix(in srgb, var(--bad) 55%, var(--line2)); }

/* ── Top bar ────────────────────────────────────────────────────────────── */

.status {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  height: 60px;
  padding: 0 16px 0 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.028), transparent);
  flex: 0 0 auto;
  position: relative;
  z-index: 3;
}

.status__identity { display: flex; align-items: center; gap: 11px; min-width: 0; }

.status__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 16%, transparent);
  flex-shrink: 0;
}

.status__name { font-size: 14px; font-weight: 650; letter-spacing: -.01em; }

.status__build {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--ink3);
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--s3);
  border: 1px solid var(--line2);
  white-space: nowrap;
  text-transform: uppercase;
}

.status__ticker {
  display: flex;
  align-items: center;
  overflow: hidden;
  font-size: 11.5px;
  color: var(--ink3);
  white-space: nowrap;
  gap: 0;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.status__ticker b { color: var(--ink2); font-weight: 600; }
.status__ticker .up   { color: var(--good); }
.status__ticker .down { color: var(--bad); }

.status__right { display: flex; align-items: center; gap: 9px; }

.pill {
  box-shadow: var(--e1), var(--lip);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--s3);
  border: 1px solid var(--line2);
  box-shadow: var(--e1);
}

.pill__label { font-size: 9.5px; letter-spacing: .14em; color: var(--ink4); font-weight: 700; text-transform: uppercase; }
.pill__value { font-family: var(--mono); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.pill--tier .pill__value { color: var(--acc); text-transform: capitalize; }

.clock { font-family: var(--mono); font-size: 12.5px; color: var(--ink3); font-variant-numeric: tabular-nums; }

.iconbtn {
  width: 32px; height: 32px;
  padding: 8px;
  border-radius: var(--r-sm);
  color: var(--ink3);
  transition: color .16s, background .16s;
}

.iconbtn:hover { color: var(--bad); background: color-mix(in srgb, var(--bad) 14%, transparent); }

/* ── Sidebar ────────────────────────────────────────────────────────────── */

.body { display: grid; grid-template-columns: 216px 1fr; flex: 1; min-height: 0; }

.dock {
  display: flex;
  flex-direction: column;
  padding: 14px 12px 12px;
  border-right: 1px solid var(--line);
  background: linear-gradient(96deg, rgba(255,255,255,.018), transparent 70%);
  overflow-y: auto;
}

.dock::-webkit-scrollbar { width: 0; }

.dock__brand { display: flex; align-items: center; gap: 11px; padding: 6px 10px 16px; }

.dock__brandmark {
  width: 34px; height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: linear-gradient(145deg, var(--acc), var(--acc-2));
  color: var(--acc-ink);
  box-shadow: 0 5px 16px -6px var(--acc), var(--lip);
}

.dock__brandmark svg { width: 19px; height: 19px; }
.dock__brand b { display: block; font-size: 14px; font-weight: 700; letter-spacing: -.015em; }
.dock__brand small { display: block; font-size: 10.5px; color: var(--ink4); margin-top: 1px; }

.dock__section {
  padding: 15px 10px 7px;
  font-size: 9.5px;
  letter-spacing: .16em;
  color: var(--ink4);
  font-weight: 700;
  text-transform: uppercase;
}

.dock__item {
  position: relative;
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 10px 11px;
  border-radius: var(--r-sm);
  color: var(--ink3);
  font-size: 13px;
  font-weight: 550;
  letter-spacing: -.005em;
  transition: color .16s, background .16s;
}

.dock__item svg { width: 17px; height: 17px; }
.dock__item:hover { color: var(--ink); background: var(--s3); }

.dock__item.is-active {
  color: #fff;
  font-weight: 620;
  background: linear-gradient(100deg, color-mix(in srgb, var(--acc) 30%, transparent), color-mix(in srgb, var(--acc) 5%, transparent) 78%);
  border: 1px solid color-mix(in srgb, var(--acc) 26%, transparent);
  box-shadow: 0 8px 22px -14px var(--acc), var(--lip);
}

/* The border above would otherwise shift every other item by a pixel. */
.dock__item { border: 1px solid transparent; }

.dock__item.is-active svg { color: var(--acc); }

.dock__item.is-active::before {
  content: "";
  position: absolute;
  left: -12px; top: 50%;
  width: 3px; height: 20px;
  border-radius: 0 3px 3px 0;
  background: var(--acc);
  transform: translateY(-50%);
  box-shadow: 0 0 12px var(--acc);
}

.dock__flag {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--acc2);
  box-shadow: 0 0 8px var(--acc2);
}

.dock__me {
  margin-top: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--r);
  background: var(--s2);
  border: 1px solid var(--line);
  box-shadow: var(--lip);
  transition: border-color .16s, background .16s;
}

.dock__me:hover { background: var(--s3); border-color: var(--line2); }
.dock__me > span { min-width: 0; }
.dock__me b,
.dock__me small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock__me b { font-size: 12.5px; font-weight: 600; }
.dock__me small { font-size: 10.5px; color: var(--ink4); margin-top: 1px; }
.dock__me .chev { width: 14px; height: 14px; color: var(--ink4); }

.stage { position: relative; min-height: 0; overflow: hidden; }

.panel {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 22px 24px 26px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s var(--ease), visibility .2s;
}

.panel.is-active { opacity: 1; visibility: visible; }

.panel::-webkit-scrollbar { width: 10px; }
.panel::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 99px; border: 3px solid transparent; background-clip: content-box; }
.panel::-webkit-scrollbar-track { background: transparent; }

/* ── Footer bar ─────────────────────────────────────────────────────────── */

.statusline {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 16px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.25));
  font-size: 11.5px;
  color: var(--ink4);
  flex: 0 0 auto;
}

.statusline__seg { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.statusline__seg b { color: var(--ink2); font-weight: 600; }
.statusline__seg.push { margin-left: auto; }

.statusline__seg.is-acc::before,
.statusline__seg.is-hot::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 8px var(--acc);
}

.statusline__seg.is-acc { color: var(--acc); }
.statusline__seg.is-hot { color: var(--bad); }
.statusline__seg.is-hot::before { background: var(--bad); box-shadow: 0 0 8px var(--bad); }

/* ── Headings ───────────────────────────────────────────────────────────── */

.head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.head__title {
  position: relative;
  font-size: 27px;
  font-weight: 720;
  letter-spacing: -.032em;
  padding-left: 13px;
}

/* A stub of accent off the front of every panel title. Cheap, and it stops
   each screen opening on an unannounced block of text. */
.head__title::before {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 3px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--acc), color-mix(in srgb, var(--acc) 20%, transparent));
  box-shadow: 0 0 14px -1px var(--acc);
}

.head__sub { font-size: 12.5px; color: var(--ink3); margin-top: 4px; padding-left: 13px; }
.head__tools { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

.slab__title {
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--ink4);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 11px;
}

/* A slab heading with something on the end of it. The button keeps its own
   casing and size, which it would not inside .slab__title itself. */
.slab__head { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.slab__head .slab__title { margin-bottom: 0; }
.slab__head > .btn { margin-left: auto; }

/* ── Controls ───────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: var(--r-sm);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink2);
  background: var(--s3);
  border: 1px solid var(--line2);
  box-shadow: var(--e1), var(--lip);
  transition: color .16s, border-color .16s, background .16s, transform .1s, box-shadow .16s;
}

.btn:hover { color: var(--ink); background: var(--s4); border-color: var(--line3); }
.btn:active { transform: translateY(1px); }

.btn--acc {
  background: linear-gradient(145deg, color-mix(in srgb, var(--acc) 92%, #fff), var(--acc-2));
  border-color: color-mix(in srgb, var(--acc) 70%, transparent);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
  box-shadow:
    0 8px 22px -9px var(--acc),
    inset 0 1px 0 rgba(255,255,255,.28),
    inset 0 -1px 0 rgba(0,0,0,.25);
}

.btn--acc:hover {
  filter: brightness(1.1);
  color: #fff;
  box-shadow:
    0 12px 28px -8px var(--acc),
    inset 0 1px 0 rgba(255,255,255,.34),
    inset 0 -1px 0 rgba(0,0,0,.25);
}

.btn--bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 32%, transparent); background: color-mix(in srgb, var(--bad) 9%, transparent); }
.btn--bad:hover { background: color-mix(in srgb, var(--bad) 18%, transparent); color: #fff; }

.btn[disabled] { opacity: .4; pointer-events: none; }
.btn--sm { padding: 7px 11px; font-size: 11.5px; }

.chipbar { display: flex; gap: 7px; flex-wrap: wrap; }

.chip {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink3);
  background: var(--s2);
  border: 1px solid var(--line);
  transition: all .16s;
}

.chip:hover { color: var(--ink2); border-color: var(--line2); background: var(--s3); }

.chip.is-on {
  color: #fff;
  background: linear-gradient(145deg, var(--acc), var(--acc-2));
  border-color: transparent;
  box-shadow: 0 4px 14px -6px var(--acc);
}

.empty {
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 56px 20px;
  text-align: center;
  color: var(--ink3);
  border-radius: var(--r);
  background: var(--s1);
  border: 1px dashed var(--line2);
}

.empty__mark { width: 38px; height: 38px; opacity: .3; }
.empty h4 { font-size: 15px; font-weight: 650; color: var(--ink2); }
.empty p { font-size: 12.5px; max-width: 44ch; line-height: 1.6; }

.note {
  padding: 14px 16px;
  border-radius: var(--r);
  background: linear-gradient(120deg, color-mix(in srgb, var(--acc) 11%, transparent), color-mix(in srgb, var(--acc) 3%, transparent));
  border: 1px solid color-mix(in srgb, var(--acc) 24%, transparent);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink2);
  margin-bottom: 16px;
}

.note b { color: var(--acc); font-weight: 650; }

/* ── Tags ───────────────────────────────────────────────────────────────── */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: var(--r-xs);
  font-size: 11px;
  font-weight: 550;
  color: var(--ink2);
  background: var(--s4);
  border: 1px solid var(--line2);
}

.tag--warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); border-color: color-mix(in srgb, var(--warn) 26%, transparent); }
.tag--acc  { color: var(--good); background: color-mix(in srgb, var(--good) 12%, transparent); border-color: color-mix(in srgb, var(--good) 26%, transparent); }
.tag--bad  { color: var(--bad);  background: color-mix(in srgb, var(--bad) 12%, transparent);  border-color: color-mix(in srgb, var(--bad) 26%, transparent); }

.swatch { width: 11px; height: 11px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(255,255,255,.3); flex-shrink: 0; }

/* ── Cards ──────────────────────────────────────────────────────────────── */

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); gap: 14px; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, var(--s3) 0%, var(--s2) 55%, var(--s1) 100%);
  border: 1px solid var(--line2);
  box-shadow: var(--e2), var(--lip);
  overflow: hidden;
  transition: transform .22s var(--ease-out), box-shadow .22s var(--ease), border-color .22s;
}

/* A tier-tinted wash in the corner, so six cards read as six things */
.card::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 70%; height: 80%;
  background: radial-gradient(118% 110% at 100% 0%, color-mix(in srgb, var(--tier, var(--acc)) 32%, transparent), transparent 64%);
  pointer-events: none;
  opacity: .8;
  transition: opacity .22s var(--ease);
}

/* The tier along the top edge. A coloured dot is a legend; a coloured edge is
   the card being that tier, which is what you actually scan for. */
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 2;
  background: linear-gradient(90deg, var(--tier, var(--acc)), color-mix(in srgb, var(--tier, var(--acc)) 30%, transparent) 46%, transparent 78%);
  box-shadow: 0 0 14px -2px var(--tier, var(--acc));
  transition: opacity .22s var(--ease);
}

.card__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 1;
}

.card__path {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tier, var(--acc));
}

.card__path::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--tier, var(--acc));
  box-shadow: 0 0 8px var(--tier, var(--acc));
}

.card__index { font-family: var(--mono); font-size: 11px; color: var(--ink4); }

.card__inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 11px; padding: 15px; flex: 1; }

.card:not(.is-locked) { cursor: pointer; }

.card:not(.is-locked):hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--tier, var(--acc)) 60%, var(--line2));
  box-shadow: var(--e3), 0 0 52px -16px var(--tier, var(--acc)), var(--lip);
}

.card:not(.is-locked):hover::after { opacity: 1; }
.card.is-locked { opacity: .5; }

.card__top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }

.card__tier {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--tier, var(--acc));
  background: color-mix(in srgb, var(--tier, var(--acc)) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--tier, var(--acc)) 32%, transparent);
}

.card__type {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--ink3);
  background: var(--s4);
}

.card__type.is-spec { color: var(--acc2); background: color-mix(in srgb, var(--acc2) 14%, transparent); }

.card__name { font-size: 22px; font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
.card__meta { display: flex; flex-wrap: wrap; gap: 5px; }

.card__foot {
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card__pay small { display: block; font-size: 9.5px; letter-spacing: .13em; color: var(--ink4); font-weight: 700; text-transform: uppercase; margin-bottom: 2px; }
/* The figure you are actually deciding on, in the colour of the risk it
   carries. Mixed toward white so four tiers on one screen stay readable. */
.card__pay b {
  font-family: var(--mono);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -.03em;
  color: color-mix(in srgb, var(--tier, var(--acc)) 72%, #fff);
  text-shadow: 0 0 22px color-mix(in srgb, var(--tier, var(--acc)) 45%, transparent);
}

.card__take {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 650;
  color: var(--ink2);
  background: var(--s4);
  border: 1px solid var(--line2);
  transition: all .18s var(--ease);
}

.card:not(.is-locked):hover .card__take {
  color: #fff;
  background: linear-gradient(145deg, var(--acc), var(--acc-2));
  border-color: transparent;
  box-shadow: 0 5px 16px -7px var(--acc);
}

.card__lock {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--ink4);
  padding: 7px 11px;
  border-radius: var(--r-sm);
  border: 1px dashed var(--line2);
}

.card__lock svg { width: 13px; height: 13px; }
.card__mark { display: none; }

/* ── Home ───────────────────────────────────────────────────────────────── */

.home { display: grid; gap: 16px; }

.home__hello {
  position: relative;
  padding: 24px 26px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(86% 150% at 0% 0%, color-mix(in srgb, var(--acc) 26%, transparent), transparent 60%),
    radial-gradient(60% 120% at 100% 100%, color-mix(in srgb, var(--acc2) 16%, transparent), transparent 66%),
    linear-gradient(160deg, var(--s3), var(--s1));
  border: 1px solid color-mix(in srgb, var(--acc) 22%, var(--line2));
  box-shadow: var(--e2), 0 0 44px -30px var(--acc), var(--lip);
  overflow: hidden;
}

/* A soft edge of light down the left, where the wash is strongest. */
.home__hello::before {
  content: "";
  position: absolute;
  left: 0; top: 14%; bottom: 14%;
  width: 2px;
  border-radius: 99px;
  background: linear-gradient(180deg, transparent, var(--acc), transparent);
  opacity: .8;
}

.home__line { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--acc); }
.home__big { font-size: 30px; font-weight: 730; letter-spacing: -.035em; margin-top: 10px; line-height: 1.22; }
.home__big em {
  font-style: normal;
  color: var(--acc);
  text-shadow: 0 0 30px color-mix(in srgb, var(--acc) 55%, transparent);
}
.home__cursor { display: none; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); gap: 12px; }

.tile {
  position: relative;
  display: grid;
  gap: 9px;
  padding: 16px;
  border-radius: var(--r);
  background: linear-gradient(160deg, var(--s3), var(--s1));
  border: 1px solid var(--line);
  box-shadow: var(--e1), var(--lip);
  overflow: hidden;
  transition: transform .2s var(--ease-out), border-color .2s, box-shadow .2s;
}

.tile__icon {
  width: 36px; height: 36px;
  padding: 9px;
  border-radius: var(--r-sm);
  color: var(--acc);
  background: linear-gradient(150deg, color-mix(in srgb, var(--acc) 30%, transparent), color-mix(in srgb, var(--acc) 7%, transparent));
  border: 1px solid color-mix(in srgb, var(--acc) 34%, transparent);
  box-shadow: 0 6px 18px -12px var(--acc), var(--lip);
  transition: background .22s var(--ease), color .22s, box-shadow .22s;
}

.tile b { font-size: 13.5px; font-weight: 650; letter-spacing: -.01em; }
.tile small { display: block; font-size: 11.5px; color: var(--ink4); margin-top: 3px; line-height: 1.5; }
.tile__go { margin-top: 2px; font-size: 11px; font-weight: 650; color: var(--ink4); transition: color .18s; }
.tile__go::after { content: " →"; }

.home__split { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; align-items: start; }

.feed { display: grid; gap: 5px; }

.feed__row {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: var(--r-sm);
  background: linear-gradient(120deg, var(--s3) -20%, var(--s2) 55%, var(--s1));
  border: 1px solid var(--line);
  box-shadow: var(--e1);
  font-size: 12px;
  transition: background .16s, border-color .16s, transform .16s var(--ease-out);
}

.feed__row:hover { background: linear-gradient(120deg, var(--s4) -20%, var(--s3) 60%, var(--s2)); border-color: var(--line2); transform: translateX(2px); }
.feed__row.win  { border-left: 2px solid var(--good); box-shadow: var(--e1), inset 8px 0 18px -14px var(--good); }
.feed__row.lose { border-left: 2px solid var(--bad); box-shadow: var(--e1), inset 8px 0 18px -14px var(--bad); }
/* A feed row standing in for a tier — the fence rates on the home page —
   names it in the tier's own colour, so the two rate lists agree. */
.feed__row.is-tiered .feed__what b { color: color-mix(in srgb, var(--tier, var(--acc)) 68%, #fff); }

.feed__when { color: var(--ink4); font-size: 10.5px; }
.feed__what { color: var(--ink3); }
.feed__what b { color: var(--ink); font-weight: 600; }
.feed__amt { font-family: var(--mono); color: var(--good); font-variant-numeric: tabular-nums; }
.feed__amt.zero { color: var(--ink4); }

.livecard {
  position: relative;
  display: grid;
  gap: 13px;
  padding: 20px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(80% 130% at 100% 0%, color-mix(in srgb, var(--acc) 18%, transparent), transparent 60%),
    linear-gradient(160deg, var(--s3), var(--s1));
  border: 1px solid color-mix(in srgb, var(--acc) 40%, var(--line2));
  box-shadow: var(--e2), 0 0 40px -24px var(--acc), var(--lip);
  cursor: pointer;
  overflow: hidden;
  transition: transform .2s var(--ease-out), box-shadow .2s;
}

.livecard__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.livecard__tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  padding: 5px 11px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(145deg, var(--acc), var(--acc-2));
  box-shadow: 0 4px 14px -6px var(--acc);
}

.livecard__clock { font-family: var(--mono); font-size: 22px; font-weight: 600; letter-spacing: -.03em; }
.livecard__name { font-size: 25px; font-weight: 700; letter-spacing: -.03em; }
.livecard__meta { display: flex; gap: 6px; flex-wrap: wrap; }
.livecard__prog { height: 5px; border-radius: 99px; background: var(--s4); overflow: hidden; }
.livecard__prog i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--acc-2), var(--acc)); }

/* ── Job ────────────────────────────────────────────────────────────────── */

.job { display: grid; grid-template-columns: 300px 1fr; gap: 15px; align-items: start; }

.cluster {
  position: relative;
  display: grid;
  place-items: center;
  padding: 22px;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--s3), var(--s1));
  border: 1px solid var(--line2);
  box-shadow: var(--e2), var(--lip);
}

.cluster__ring { width: 204px; height: 204px; transform: rotate(-90deg); }
.cluster__ring circle { fill: none; stroke-linecap: round; }
.cluster__track { stroke: var(--s4); }
.cluster__time  { stroke: var(--acc); filter: drop-shadow(0 0 7px color-mix(in srgb, var(--acc) 55%, transparent)); transition: stroke-dashoffset .5s linear, stroke .3s; }
.cluster__cond  { stroke: var(--good); transition: stroke-dashoffset .4s var(--ease), stroke .3s; }

.cluster__core { position: absolute; display: grid; gap: 3px; justify-items: center; text-align: center; }
.cluster__clock { font-family: var(--mono); font-size: 37px; font-weight: 600; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.cluster__label { font-size: 9.5px; font-weight: 700; letter-spacing: .18em; color: var(--acc); text-transform: uppercase; }

.cluster__readout { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; margin-top: 16px; border-top: 1px solid var(--line); }
.readout { display: grid; gap: 3px; justify-items: center; padding: 13px 4px 0; border-right: 1px solid var(--line); }
.readout:last-child { border-right: 0; }
.readout b { font-family: var(--mono); font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.readout small { font-size: 9px; letter-spacing: .13em; color: var(--ink4); font-weight: 700; text-transform: uppercase; }

.jobmain { display: grid; gap: 13px; }

.slab {
  position: relative;
  padding: 17px;
  border-radius: var(--r);
  background: linear-gradient(160deg, var(--s3) -10%, var(--s2) 40%, var(--s1));
  border: 1px solid var(--line2);
  box-shadow: var(--e2), var(--lip);
}

.bolo { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.bolo__name { font-size: 29px; font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
.bolo__sub { margin-top: 9px; display: flex; gap: 6px; flex-wrap: wrap; }

.plate {
  display: grid;
  gap: 2px;
  justify-items: center;
  padding: 9px 17px;
  border-radius: var(--r-xs);
  background: linear-gradient(180deg, #f2f4f0, #d6dad2);
  border: 2px solid #10131a;
  box-shadow: var(--e2);
}

.plate small { font-size: 7px; letter-spacing: .2em; color: #4a5058; font-weight: 700; }
.plate b { font-family: var(--mono); font-size: 20px; font-weight: 700; letter-spacing: .11em; color: #10131a; }

.steps { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.step { position: relative; display: grid; gap: 10px; justify-items: center; padding-top: 16px; text-align: center; }
.step::before { content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 2px; background: var(--s4); }
.step:first-child::before { left: 50%; }
.step:last-child::before  { right: 50%; }
.step__dot { position: absolute; top: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--s2); border: 2px solid var(--line3); transition: all .3s var(--ease); }
.step span { font-size: 11px; font-weight: 600; color: var(--ink4); transition: color .3s; }
.step.is-done .step__dot { background: var(--acc); border-color: var(--acc); }
.step.is-done::before { background: var(--acc); }
.step.is-done span { color: var(--ink3); }
.step.is-now .step__dot { background: var(--acc2); border-color: var(--acc2); box-shadow: 0 0 0 5px color-mix(in srgb, var(--acc2) 20%, transparent); }
.step.is-now span { color: var(--acc2); }

.hw { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.hwitem { display: flex; align-items: center; gap: 11px; padding: 13px; border-radius: var(--r-sm); background: var(--s3); border: 1px solid var(--line); }
.hwitem__icon { width: 32px; height: 32px; flex: 0 0 auto; padding: 7px; border-radius: var(--r-xs); color: var(--ink3); background: var(--s4); }
.hwitem b { display: block; font-size: 13px; font-weight: 650; }
.hwitem small { font-size: 11px; color: var(--ink4); }
.hwitem.is-hot { border-color: color-mix(in srgb, var(--bad) 45%, transparent); background: color-mix(in srgb, var(--bad) 8%, transparent); }
.hwitem.is-hot .hwitem__icon { color: var(--bad); background: color-mix(in srgb, var(--bad) 16%, transparent); }
.hwitem.is-hot b { color: var(--bad); }
.hwitem.is-dead { opacity: .42; }
.hwitem.is-ok .hwitem__icon { color: var(--good); background: color-mix(in srgb, var(--good) 14%, transparent); }

.broadcast {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--r);
  background: linear-gradient(120deg, color-mix(in srgb, var(--bad) 16%, transparent), color-mix(in srgb, var(--bad) 5%, transparent));
  border: 1px solid color-mix(in srgb, var(--bad) 40%, transparent);
}

.broadcast b { font-size: 14px; font-weight: 700; color: var(--bad); }
.broadcast small { display: block; font-size: 11.5px; color: var(--ink2); margin-top: 2px; }

.wave { display: flex; gap: 3px; align-items: flex-end; height: 22px; flex-shrink: 0; }
.wave i { width: 3px; border-radius: 2px; background: var(--bad); animation: wave 1s ease-in-out infinite; }
.wave i:nth-child(1) { height: 35%; animation-delay: 0s; }
.wave i:nth-child(2) { height: 70%; animation-delay: .12s; }
.wave i:nth-child(3) { height: 100%; animation-delay: .24s; }
.wave i:nth-child(4) { height: 55%; animation-delay: .36s; }

@keyframes wave { 50% { transform: scaleY(.3); } }

.parts { display: grid; gap: 6px; }
.part { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: var(--r-sm); background: var(--s3); font-size: 12.5px; }
.part__box { width: 16px; height: 16px; border-radius: 5px; border: 2px solid var(--ink4); display: grid; place-items: center; flex-shrink: 0; transition: all .25s var(--ease); }
.part.is-got { color: var(--ink3); }
.part.is-got .part__box { background: var(--good); border-color: var(--good); }
.part.is-got .part__box svg { width: 9px; color: #021a10; }

/* ── Crew ───────────────────────────────────────────────────────────────── */

.crew { display: grid; gap: 14px; }
.crewlist { display: grid; gap: 7px; }

.member { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); background: linear-gradient(160deg, var(--s2), var(--s1)); border: 1px solid var(--line); box-shadow: var(--lip); }

.avatar {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--s4);
  color: var(--acc);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--line2);
}

.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar svg { width: 100%; height: 100%; }
.avatar--lg { width: 72px; height: 72px; border-radius: var(--r); font-size: 24px; }

.member b { font-size: 13.5px; font-weight: 650; }
.member small { display: block; font-size: 11px; color: var(--ink4); }
.member__role { margin-left: auto; }

.seats { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.seat { display: grid; place-items: center; gap: 7px; padding: 18px 8px; border-radius: var(--r); border: 1px dashed var(--line2); background: var(--s1); font-size: 11.5px; color: var(--ink4); }
.seat svg { width: 20px; height: 20px; }
.seat.is-filled { border-style: solid; border-color: color-mix(in srgb, var(--acc) 45%, transparent); background: color-mix(in srgb, var(--acc) 8%, transparent); color: var(--acc); }

/* ── Rates ──────────────────────────────────────────────────────────────── */

.market { display: grid; gap: 7px; }

.rate {
  position: relative;
  display: grid;
  grid-template-columns: 140px 1fr 98px;
  align-items: center;
  gap: 18px;
  padding: 15px 17px;
  border-radius: var(--r);
  background: linear-gradient(120deg, color-mix(in srgb, var(--tier, var(--acc)) 8%, var(--s2)), var(--s1) 58%);
  border: 1px solid var(--line2);
  box-shadow: var(--e1), var(--lip);
  overflow: hidden;
}

.rate::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--tier, var(--acc)), color-mix(in srgb, var(--tier, var(--acc)) 25%, transparent));
}
.rate__name b { display: block; font-size: 14.5px; font-weight: 650; }
.rate__name small { font-size: 11px; color: var(--ink4); }
.rate__bar { position: relative; height: 8px; border-radius: 99px; background: var(--s4); overflow: hidden; }
.rate__bar i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 99px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--tier, var(--acc)) 45%, #000), var(--tier, var(--acc)));
  box-shadow: 0 0 16px -4px var(--tier, var(--acc));
  transition: width .6s var(--ease);
}
.rate__bar::after { content: ""; position: absolute; left: 38.5%; top: -3px; bottom: -3px; width: 1px; background: var(--ink3); }
.rate__val { text-align: right; }
.rate__val b { font-family: var(--mono); font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rate__val small { display: block; font-size: 10.5px; font-weight: 650; }
.rate__val .up   { color: var(--good); }
.rate__val .down { color: var(--bad); }
.rate__val .flat { color: var(--ink4); }

/* ── Stats ──────────────────────────────────────────────────────────────── */

.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin-bottom: 18px; }

.stat {
  position: relative;
  padding: 17px 16px 16px;
  border-radius: var(--r);
  background: linear-gradient(158deg, var(--s3), var(--s1) 72%);
  border: 1px solid var(--line2);
  box-shadow: var(--e2), var(--lip);
  overflow: hidden;
}

/* Light falling across the corner, and a stub of accent under the number.
   Four identical grey boxes is what made this screen read as a form. */
.stat::before {
  content: "";
  position: absolute;
  inset: -40% -40% auto auto;
  width: 150%; height: 150%;
  background: radial-gradient(52% 52% at 100% 0%, color-mix(in srgb, var(--acc) 20%, transparent), transparent 70%);
  pointer-events: none;
}

.stat::after {
  content: "";
  position: absolute;
  left: 16px; bottom: 0;
  width: 26px; height: 2px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(90deg, var(--acc), transparent);
  box-shadow: 0 0 12px -1px var(--acc);
}

.stat b {
  position: relative;
  display: block;
  font-family: var(--mono);
  font-size: 29px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.04em;
  background: linear-gradient(168deg, #fff 18%, var(--ink2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat small { position: relative; font-size: 9.5px; letter-spacing: .13em; color: var(--ink4); font-weight: 700; }

.ladder { display: grid; gap: 7px; margin-bottom: 18px; }
/* Same colours as the board, so a tier looks like itself everywhere. */
.rung {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--r);
  background: linear-gradient(120deg, color-mix(in srgb, var(--tier, var(--acc)) 9%, var(--s2)), var(--s1) 62%);
  border: 1px solid var(--line2);
  box-shadow: var(--e1), var(--lip);
  overflow: hidden;
}

.rung::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--tier, var(--acc)), color-mix(in srgb, var(--tier, var(--acc)) 25%, transparent));
}

.rung.is-on {
  border-color: color-mix(in srgb, var(--tier, var(--acc)) 45%, transparent);
  background: linear-gradient(120deg, color-mix(in srgb, var(--tier, var(--acc)) 20%, var(--s2)), var(--s1) 68%);
  box-shadow: var(--e2), 0 0 34px -20px var(--tier, var(--acc)), var(--lip);
}

.rung.is-locked { opacity: .42; }
.rung__mark { width: 28px; height: 28px; display: grid; place-items: center; border-radius: var(--r-xs); background: var(--s4); color: var(--ink4); box-shadow: var(--lip); }
.rung__mark svg { width: 12px; height: 12px; }
.rung.is-on .rung__mark { background: linear-gradient(145deg, var(--tier, var(--acc)), color-mix(in srgb, var(--tier, var(--acc)) 55%, #000)); color: #fff; box-shadow: 0 5px 14px -6px var(--tier, var(--acc)); }
.rung__need { color: var(--ink3); }
.rung.is-on .rung__need { color: color-mix(in srgb, var(--tier, var(--acc)) 70%, #fff); }
.rung b { font-size: 14.5px; font-weight: 650; }
.rung small { display: block; font-size: 11.5px; color: var(--ink4); margin-top: 1px; }
.rung__need { font-family: var(--mono); font-size: 11.5px; color: var(--ink3); }

.table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.table th { text-align: left; padding: 10px 12px; font-size: 9.5px; letter-spacing: .13em; color: var(--ink3); font-weight: 700; text-transform: uppercase; border-bottom: 1px solid var(--line3); }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--line); transition: background .14s; }
.table tbody tr { transition: box-shadow .14s; }
.table tbody tr:hover td { background: color-mix(in srgb, var(--acc) 7%, var(--s2)); }
.table tbody tr:hover td:first-child { box-shadow: inset 2px 0 0 var(--acc); }
.table .num { color: var(--ink2); }
.table .win  { color: var(--good); }
.table .lose { color: var(--bad); }
.table .anon { color: var(--ink4); }

.rank { width: 24px; height: 24px; display: grid; place-items: center; border-radius: var(--r-xs); font-family: var(--mono); font-size: 11px; color: var(--ink3); background: var(--s4); }
.rank.is-top { background: linear-gradient(145deg, var(--acc), var(--acc-2)); color: #fff; font-weight: 700; }

.lbname { display: flex; align-items: center; gap: 10px; }
.lbface { width: 26px; height: 26px; flex-shrink: 0; overflow: hidden; border-radius: var(--r-xs); background: var(--s4); border: 1px solid var(--line2); }
.lbface img, .lbface svg { width: 100%; height: 100%; object-fit: cover; }

/* ── Unlocks ────────────────────────────────────────────────────────────── */

.unlocks { display: grid; gap: 7px; }
.unlock { display: grid; grid-template-columns: auto 1fr 184px; align-items: center; gap: 15px; padding: 14px 16px; border-radius: var(--r); background: linear-gradient(160deg, var(--s2), var(--s1)); border: 1px solid var(--line); }
.unlock.is-got { border-color: color-mix(in srgb, var(--good) 30%, transparent); }
.unlock:not(.is-got) { opacity: .62; }
.unlock__mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: var(--r-xs); background: var(--s4); color: var(--ink4); }
.unlock__mark svg { width: 13px; height: 13px; }
.unlock.is-got .unlock__mark { background: linear-gradient(145deg, var(--good), #1f9c63); color: #021a10; }
.unlock__body b { display: block; font-size: 14px; font-weight: 650; }
.unlock__body small { display: block; font-size: 11.5px; color: var(--ink4); margin-top: 2px; }
.unlock__effect { display: inline-block; margin-top: 7px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; color: var(--acc); background: color-mix(in srgb, var(--acc) 13%, transparent); }
.unlock.is-got .unlock__effect { color: var(--good); background: color-mix(in srgb, var(--good) 13%, transparent); }
.unlock__meter { display: grid; gap: 6px; justify-items: end; }
.unlock__meter .num { font-size: 10.5px; color: var(--ink4); }
.unlock__bar { width: 100%; height: 6px; border-radius: 99px; background: var(--s4); overflow: hidden; }
.unlock__bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--acc-2), var(--acc)); transition: width .5s var(--ease); }
.unlock__done { font-size: 10px; font-weight: 700; letter-spacing: .13em; color: var(--good); }

/* ── Profile ────────────────────────────────────────────────────────────── */

.profile { display: grid; gap: 14px; }

.identity {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 20px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(80% 140% at 0% 0%, color-mix(in srgb, var(--acc) 14%, transparent), transparent 60%),
    linear-gradient(160deg, var(--s3), var(--s1));
  border: 1px solid var(--line2);
  box-shadow: var(--e2), var(--lip);
}

.identity__label { font-size: 9.5px; letter-spacing: .15em; color: var(--ink4); font-weight: 700; text-transform: uppercase; }
.identity__name { margin-top: 4px; font-size: 24px; font-weight: 700; letter-spacing: -.03em; }
.identity__hint { margin-top: 4px; font-size: 12px; color: var(--ink3); }
.identity__edit { display: flex; gap: 8px; align-items: center; }

.identity__edit input,
.field input, .field select {
  padding: 10px 13px;
  border-radius: var(--r-sm);
  background: var(--s1);
  border: 1px solid var(--line2);
  color: var(--ink);
  font-size: 12.5px;
  outline: none;
  transition: border-color .16s, box-shadow .16s;
}

.identity__edit input { width: 194px; }
.identity__edit input:focus,
.field input:focus, .field select:focus { border-color: var(--acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 16%, transparent); }
.field select option { background: var(--s2); }

.avatars { display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: 9px; }
.avopt { aspect-ratio: 1; padding: 0; border-radius: var(--r-sm); background: var(--s3); border: 1px solid var(--line2); overflow: hidden; transition: all .16s var(--ease); }
.avopt:hover { border-color: var(--line3); transform: translateY(-2px); box-shadow: var(--e2); }
.avopt.is-on { border-color: var(--acc); box-shadow: 0 0 0 2px color-mix(in srgb, var(--acc) 35%, transparent), var(--e2); }
.avopt svg { width: 100%; height: 100%; }

/* ── Settings ───────────────────────────────────────────────────────────── */

.settings { display: grid; gap: 13px; }

.setgroup {
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--s2), var(--s1));
  border: 1px solid var(--line);
  box-shadow: var(--e1), var(--lip);
  overflow: hidden;
}

.setgroup__head { padding: 15px 18px 13px; border-bottom: 1px solid var(--line); }
.setgroup__head b { display: block; font-size: 14px; font-weight: 650; }
.setgroup__head small { display: block; font-size: 11.5px; color: var(--ink4); margin-top: 2px; }

.setrow {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.setrow:last-child { border-bottom: 0; }
.setrow b { display: block; font-size: 13px; font-weight: 600; }
.setrow small { display: block; font-size: 11.5px; color: var(--ink4); margin-top: 2px; line-height: 1.5; }

/* Switch */
.sw {
  width: 44px; height: 25px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--s4);
  border: 1px solid var(--line2);
  position: relative;
  transition: background .2s var(--ease), border-color .2s;
}

.sw::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: var(--ink3);
  transition: transform .22s var(--ease-out), background .2s;
}

.sw.is-on { background: linear-gradient(145deg, var(--acc), var(--acc-2)); border-color: transparent; }
.sw.is-on::after { transform: translateX(19px); background: #fff; }

/* Theme swatches */
.themes { display: flex; gap: 9px; flex-wrap: wrap; }

.themeopt {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line2);
  position: relative;
  overflow: hidden;
  transition: transform .16s var(--ease), box-shadow .16s, border-color .16s;
}

.themeopt span { position: absolute; inset: 0; }
.themeopt:hover { transform: translateY(-2px); box-shadow: var(--e2); }
.themeopt.is-on { border-color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.28), var(--e2); }

.seg { display: flex; gap: 4px; padding: 3px; border-radius: var(--r-sm); background: var(--s1); border: 1px solid var(--line2); }
.seg button { padding: 7px 13px; border-radius: var(--r-xs); font-size: 11.5px; font-weight: 600; color: var(--ink3); transition: all .16s; }
.seg button:hover { color: var(--ink2); }
.seg button.is-on { color: #fff; background: linear-gradient(145deg, var(--acc), var(--acc-2)); box-shadow: 0 3px 10px -4px var(--acc); }

/* ── Boot ───────────────────────────────────────────────────────────────── */

.boot { position: relative; display: grid; place-items: center; }
.boot__frame { display: grid; gap: 20px; justify-items: center; width: 320px; text-align: center; }

.boot__mark {
  width: 62px; height: 62px;
  padding: 14px;
  border-radius: var(--r-lg);
  color: #fff;
  background: linear-gradient(145deg, var(--acc), var(--acc-2));
  box-shadow: 0 16px 40px -14px var(--acc), var(--lip);
  animation: bootMark 1.8s var(--ease) infinite alternate;
}

@keyframes bootMark { to { transform: translateY(-5px); } }

.boot__lines { width: 100%; min-height: 22px; font-size: 12.5px; color: var(--ink3); }
.boot__lines b { color: var(--ink); font-weight: 600; }
.boot__lines .ok { color: var(--good); }
.boot__bar { width: 100%; height: 4px; border-radius: 99px; background: var(--s3); overflow: hidden; }
.boot__bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--acc-2), var(--acc)); transition: width .3s var(--ease); }

/* ── Placement ──────────────────────────────────────────────────────────── */

.placing { position: fixed; inset: auto 0 44px 0; display: grid; place-items: center; pointer-events: none; }
.placing__card { display: grid; gap: 6px; justify-items: center; padding: 16px 30px; border-radius: var(--r); background: var(--s2); border: 1px solid color-mix(in srgb, var(--acc) 45%, transparent); box-shadow: var(--e3); text-align: center; }
.placing__pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 5px color-mix(in srgb, var(--acc) 18%, transparent); }
.placing h3 { font-size: 14px; font-weight: 700; letter-spacing: .06em; }
.placing p { font-size: 12px; color: var(--ink3); }
.placing b { color: var(--acc); }

/* ── Minigame ───────────────────────────────────────────────────────────── */

.minigame { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(2,4,9,.66); backdrop-filter: blur(4px); }
.mg { display: grid; gap: 17px; justify-items: center; padding: 28px 34px; border-radius: var(--r-lg); background: linear-gradient(160deg, var(--s3), var(--s1)); border: 1px solid var(--line2); box-shadow: var(--e4), var(--lip); }
.mg__title { font-size: 10.5px; font-weight: 700; letter-spacing: .2em; color: var(--ink4); text-transform: uppercase; }
.mg__hint { font-size: 12px; color: var(--ink3); }
.mg__hint b { color: var(--acc); font-weight: 650; }

.mgbar { position: relative; width: 420px; height: 52px; border-radius: var(--r-sm); background: var(--s1); border: 1px solid var(--line2); overflow: hidden; }
.mgbar__zone { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--good) 20%, transparent); border-left: 2px solid var(--good); border-right: 2px solid var(--good); }
.mgbar__head { position: absolute; top: -2px; bottom: -2px; width: 3px; background: var(--acc); box-shadow: 0 0 12px var(--acc); }
.mgbar.is-win  { border-color: var(--good); }
.mgbar.is-fail { border-color: var(--bad); animation: shake .32s; }

@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.mgpips { display: flex; gap: 6px; }
.mgpip { width: 34px; height: 5px; border-radius: 99px; background: var(--s4); transition: background .2s; }
.mgpip.is-done { background: var(--good); }
.mgpip.is-now  { background: var(--acc); box-shadow: 0 0 10px var(--acc); }

/* ── ECU handshake ──────────────────────────────────────────────────────── */

.hack { display: grid; gap: 16px; width: min(570px, 88vw); padding: 22px 24px; border-radius: var(--r-lg); background: linear-gradient(160deg, var(--s3), var(--s1)); border: 1px solid var(--line2); box-shadow: var(--e4), var(--lip); }
.hack.is-win  { border-color: var(--good); }
.hack.is-fail { border-color: var(--bad); animation: shake .32s; }

.hack__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.hack__title { font-size: 16px; font-weight: 700; letter-spacing: -.015em; }
.hack__sub { font-size: 11.5px; color: var(--ink4); margin-top: 4px; }
.hack__trace { display: grid; gap: 5px; justify-items: end; min-width: 154px; }
.hack__trace > span { font-size: 9px; letter-spacing: .18em; color: var(--ink4); font-weight: 700; }
.hack__trace b { font-family: var(--mono); font-size: 12px; color: var(--ink2); font-weight: 600; }
.hack__tracebar { width: 154px; height: 5px; border-radius: 99px; background: var(--s4); overflow: hidden; }
.hack__tracebar i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--warn); }
.hack__tracebar i.is-hot { background: var(--bad); }

.hack__seq { display: flex; gap: 6px; flex-wrap: wrap; }
.seqchip { padding: 6px 12px; border-radius: var(--r-xs); font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--ink4); background: var(--s3); border: 1px solid var(--line2); transition: all .22s var(--ease); }
.seqchip.is-now { color: #fff; background: linear-gradient(145deg, var(--acc), var(--acc-2)); border-color: transparent; box-shadow: 0 5px 16px -6px var(--acc); }
.seqchip.is-done { color: var(--good); border-color: color-mix(in srgb, var(--good) 35%, transparent); background: color-mix(in srgb, var(--good) 10%, transparent); }

.hack__grid { display: grid; gap: 6px; }
.addr { padding: 11px 0; text-align: center; border-radius: var(--r-xs); font-family: var(--mono); font-size: 13px; letter-spacing: .06em; color: var(--ink2); background: var(--s3); border: 1px solid transparent; transition: all .12s; }
.addr:hover:not(:disabled) { background: var(--s4); color: var(--ink); border-color: var(--line3); }
.addr:active:not(:disabled) { transform: scale(.95); }
.addr.is-got { color: var(--good); border-color: var(--good); background: color-mix(in srgb, var(--good) 12%, transparent); }
.addr.is-wrong { color: var(--bad); border-color: var(--bad); background: color-mix(in srgb, var(--bad) 14%, transparent); }
.addr:disabled { cursor: default; }
.hack__foot { font-size: 11.5px; color: var(--ink4); text-align: center; }

/* ── Toasts ─────────────────────────────────────────────────────────────── */

.toasts { position: fixed; right: 22px; bottom: 46px; display: grid; gap: 8px; justify-items: end; pointer-events: none; z-index: 40; }

.toast { display: flex; align-items: center; gap: 11px; padding: 12px 17px; border-radius: var(--r); background: var(--s3); border: 1px solid var(--line2); box-shadow: var(--e3), var(--lip); font-size: 12.5px; animation: toastIn .24s var(--ease-out) both; }
.toast i { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 8px var(--acc); flex-shrink: 0; }
.toast.is-good i { background: var(--good); box-shadow: 0 0 8px var(--good); }
.toast.is-bad i { background: var(--bad); box-shadow: 0 0 8px var(--bad); }
.toast.is-out { animation: toastOut .2s var(--ease) forwards; }

@keyframes toastIn  { from { opacity: 0; transform: translateX(16px) scale(.96); } }
@keyframes toastOut { to   { opacity: 0; transform: translateX(16px) scale(.96); } }

/* ── Builder ────────────────────────────────────────────────────────────── */

.builder { position: relative; width: min(1280px, 94vw); height: min(800px, 92vh); display: flex; flex-direction: column; border-radius: var(--r-xl); background: linear-gradient(168deg, var(--s2), var(--s0)); border: 1px solid var(--line2); box-shadow: var(--e4), var(--lip); overflow: hidden; }
.bhead { display: flex; align-items: center; gap: 13px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.bhead h2 { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.bhead__tag { font-size: 10px; font-weight: 700; letter-spacing: .13em; padding: 4px 9px; border-radius: 999px; color: #fff; background: linear-gradient(145deg, var(--acc2), var(--acc)); }
.bhead__tools { margin-left: auto; display: flex; gap: 7px; }

.btabs { display: flex; gap: 4px; padding: 12px 20px 0; border-bottom: 1px solid var(--line); }
.btab { padding: 10px 15px; border-radius: var(--r-sm) var(--r-sm) 0 0; font-size: 12.5px; font-weight: 600; color: var(--ink4); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .16s; }
.btab:hover { color: var(--ink2); }
.btab.is-on { color: var(--acc); border-bottom-color: var(--acc); background: color-mix(in srgb, var(--acc) 8%, transparent); }

.bbody { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 20px; }
.bbody::-webkit-scrollbar { width: 10px; }
.bbody::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 99px; border: 3px solid transparent; background-clip: content-box; }

.places { display: grid; gap: 6px; }
.place { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 12px 15px; border-radius: var(--r); background: var(--s2); border: 1px solid var(--line); transition: border-color .16s; }
.place:hover { border-color: var(--line2); }
.place.is-off { opacity: .42; }
.place__kind { font-size: 9.5px; font-weight: 700; letter-spacing: .11em; padding: 4px 9px; border-radius: 999px; text-transform: uppercase; color: #fff; background: linear-gradient(145deg, var(--acc), var(--acc-2)); white-space: nowrap; }
.place b { font-size: 13.5px; font-weight: 650; }
.place small { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--ink4); }
.place__acts { display: flex; gap: 5px; }

.field { display: grid; gap: 6px; margin-bottom: 13px; }
.field label { font-size: 10px; letter-spacing: .13em; color: var(--ink4); font-weight: 700; text-transform: uppercase; }
.formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

/* ── Narrow ─────────────────────────────────────────────────────────────── */

@media (max-width: 1020px) {
  .unit, .builder { width: 96vw; height: 93vh; }
  .body { grid-template-columns: 176px 1fr; }
  .job { grid-template-columns: 1fr; }
  .home__split { grid-template-columns: 1fr; }
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .status__ticker, .status__build { display: none; }
  .bolo { grid-template-columns: 1fr; }
  .hw { grid-template-columns: 1fr; }
  .unlock { grid-template-columns: auto 1fr; }
  .unlock__meter { grid-column: 1 / -1; justify-items: stretch; }
  .rate { grid-template-columns: 108px 1fr 80px; gap: 12px; }
  .identity { grid-template-columns: auto 1fr; }
  .identity__edit { grid-column: 1 / -1; }
  .identity__edit input { flex: 1; width: auto; }
  .setrow { grid-template-columns: 1fr; }
}

/* ── HUD ────────────────────────────────────────────────────────────────────
   Shown in the world while a contract runs and the unit is shut. It never
   takes focus, so nothing in here is clickable — it only tells you things.
   ─────────────────────────────────────────────────────────────────────────── */

.hud {
  position: fixed;
  top: 50%;
  width: 268px;
  display: grid;
  gap: 8px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 20;
}

.hud[data-side="left"]  { left: 24px;  animation: hudInL .34s var(--ease-out) both; }
.hud[data-side="right"] { right: 24px; animation: hudInR .34s var(--ease-out) both; }

@keyframes hudInL { from { opacity: 0; transform: translate(-14px, -50%); } }
@keyframes hudInR { from { opacity: 0; transform: translate(14px, -50%); } }

.hud.is-out[data-side="left"]  { animation: hudOutL .22s var(--ease) forwards; }
.hud.is-out[data-side="right"] { animation: hudOutR .22s var(--ease) forwards; }

@keyframes hudOutL { to { opacity: 0; transform: translate(-14px, -50%); } }
@keyframes hudOutR { to { opacity: 0; transform: translate(14px, -50%); } }

.hudcard {
  position: relative;
  border-radius: var(--r);
  background: linear-gradient(160deg, rgba(22,28,45,.96), rgba(9,12,20,.96));
  border: 1px solid var(--line2);
  box-shadow: var(--e3), var(--lip);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.hudcard.is-hot { border-color: color-mix(in srgb, var(--bad) 60%, transparent); }

/* Accent rail down the leading edge */
.hudcard::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--acc), var(--acc-2));
}

.hudcard.is-hot::before { background: var(--bad); }

.hud__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
}

.hud__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--acc);
}

.hud__label::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 8px var(--acc);
  animation: hudBlink 2s ease-in-out infinite;
}

.hudcard.is-hot .hud__label { color: var(--bad); }
.hudcard.is-hot .hud__label::before { background: var(--bad); box-shadow: 0 0 8px var(--bad); }

@keyframes hudBlink { 50% { opacity: .35; } }

.hud__clock { font-family: var(--mono); font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.hud__clock.is-low { color: var(--bad); }

.hud__body { padding: 12px; display: grid; gap: 11px; }

.hud__car { display: grid; gap: 3px; }
.hud__name { font-size: 17px; font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
.hud__model { font-size: 10.5px; color: var(--ink4); }

/* The plate is the thing you are actually hunting for, so it gets to look
   like a plate rather than a line of text. */
.hud__plate {
  display: grid;
  gap: 1px;
  justify-items: center;
  padding: 6px 10px;
  border-radius: var(--r-xs);
  background: linear-gradient(180deg, #f2f4f0, #d6dad2);
  border: 2px solid #10131a;
  box-shadow: var(--e1);
}

.hud__plate small { font-size: 6px; letter-spacing: .22em; color: #4a5058; font-weight: 700; }
.hud__plate b { font-family: var(--mono); font-size: 17px; font-weight: 700; letter-spacing: .12em; color: #10131a; }

.hud__stage { display: flex; align-items: center; gap: 5px; }

.hud__pip {
  flex: 1;
  height: 3px;
  border-radius: 99px;
  background: var(--s4);
  transition: background .3s var(--ease);
}

.hud__pip.is-done { background: var(--acc); }
.hud__pip.is-now  { background: var(--acc2); box-shadow: 0 0 8px var(--acc2); }

.hud__stagelabel { font-size: 9.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--ink4); }

.hud__meters { display: grid; gap: 7px; }

.hud__meter { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 9px; }
.hud__meter span { font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink4); }
.hud__meter b { font-family: var(--mono); font-size: 11px; font-variant-numeric: tabular-nums; }

.hud__bar { height: 5px; border-radius: 99px; background: var(--s4); overflow: hidden; }
.hud__bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--acc-2), var(--acc)); transition: width .45s var(--ease); }
.hud__bar i.is-good { background: linear-gradient(90deg, #1f9c63, var(--good)); }
.hud__bar i.is-warn { background: linear-gradient(90deg, #c08320, var(--warn)); }
.hud__bar i.is-bad  { background: linear-gradient(90deg, #c32c43, var(--bad)); }

.hud__chips { display: flex; gap: 5px; flex-wrap: wrap; }

.hud__chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 650;
  color: var(--ink3);
  background: var(--s4);
}

.hud__chip.on   { color: var(--good); background: color-mix(in srgb, var(--good) 14%, transparent); }
.hud__chip.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.hud__chip.bad  { color: var(--bad);  background: color-mix(in srgb, var(--bad) 15%, transparent); animation: hudBlink 1.2s ease-in-out infinite; }

/* Alerts stack under the card and fade themselves out */
.hud__alerts { display: grid; gap: 6px; }

.hudalert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  background: linear-gradient(160deg, rgba(22,28,45,.96), rgba(9,12,20,.96));
  border: 1px solid var(--line2);
  border-left: 2px solid var(--acc);
  box-shadow: var(--e2);
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ink2);
  backdrop-filter: blur(10px);
  animation: alertIn .26s var(--ease-out) both;
}

.hudalert b { display: block; color: var(--ink); font-weight: 650; font-size: 11.5px; }
.hudalert__icon { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; color: var(--acc); }

.hudalert.warn { border-left-color: var(--warn); }
.hudalert.warn .hudalert__icon { color: var(--warn); }
.hudalert.bad  { border-left-color: var(--bad); }
.hudalert.bad .hudalert__icon { color: var(--bad); }
.hudalert.good { border-left-color: var(--good); }
.hudalert.good .hudalert__icon { color: var(--good); }

.hud[data-side="right"] .hudalert { animation-name: alertInR; }

@keyframes alertIn  { from { opacity: 0; transform: translateX(-12px); } }
@keyframes alertInR { from { opacity: 0; transform: translateX(12px); } }

.hudalert.is-out { animation: alertOut .22s var(--ease) forwards; }

@keyframes alertOut { to { opacity: 0; transform: translateY(-6px); } }

/* ── Motion and depth ───────────────────────────────────────────────────── */

/* Panel entrance. Only on a real panel switch — a live data redraw
   underneath you must never re-animate. */
.panel.is-entering > * { animation: riseIn .38s var(--ease-out) both; }

.panel.is-entering > *:nth-child(1) { animation-delay: .02s; }
.panel.is-entering > *:nth-child(2) { animation-delay: .06s; }
.panel.is-entering > *:nth-child(3) { animation-delay: .10s; }
.panel.is-entering > *:nth-child(4) { animation-delay: .14s; }
.panel.is-entering > *:nth-child(n+5) { animation-delay: .18s; }

@keyframes riseIn { from { opacity: 0; transform: translateY(10px); } }

.panel.is-entering .cards > .card,
.panel.is-entering .tiles > .tile,
.panel.is-entering .unlocks > .unlock,
.panel.is-entering .market > .rate,
.panel.is-entering .feed > .feed__row,
.panel.is-entering .settings > .setgroup { animation: cardIn .34s var(--ease-out) both; }

.panel.is-entering .cards > .card:nth-child(1),
.panel.is-entering .tiles > .tile:nth-child(1),
.panel.is-entering .unlocks > .unlock:nth-child(1),
.panel.is-entering .market > .rate:nth-child(1),
.panel.is-entering .feed > .feed__row:nth-child(1),
.panel.is-entering .settings > .setgroup:nth-child(1) { animation-delay: .06s; }

.panel.is-entering .cards > .card:nth-child(2),
.panel.is-entering .tiles > .tile:nth-child(2),
.panel.is-entering .unlocks > .unlock:nth-child(2),
.panel.is-entering .market > .rate:nth-child(2),
.panel.is-entering .feed > .feed__row:nth-child(2),
.panel.is-entering .settings > .setgroup:nth-child(2) { animation-delay: .11s; }

.panel.is-entering .cards > .card:nth-child(3),
.panel.is-entering .tiles > .tile:nth-child(3),
.panel.is-entering .unlocks > .unlock:nth-child(3),
.panel.is-entering .market > .rate:nth-child(3),
.panel.is-entering .feed > .feed__row:nth-child(3),
.panel.is-entering .settings > .setgroup:nth-child(3) { animation-delay: .16s; }

.panel.is-entering .cards > .card:nth-child(4),
.panel.is-entering .tiles > .tile:nth-child(4),
.panel.is-entering .unlocks > .unlock:nth-child(4),
.panel.is-entering .market > .rate:nth-child(4),
.panel.is-entering .feed > .feed__row:nth-child(4) { animation-delay: .21s; }

.panel.is-entering .cards > .card:nth-child(n+5),
.panel.is-entering .tiles > .tile:nth-child(n+5),
.panel.is-entering .unlocks > .unlock:nth-child(n+5),
.panel.is-entering .market > .rate:nth-child(n+5),
.panel.is-entering .feed > .feed__row:nth-child(n+5) { animation-delay: .26s; }

@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(.985); } }

/* Cards */
.card__name { transition: transform .2s var(--ease-out); }
.card:not(.is-locked):hover .card__name { transform: translateX(3px); }
.card.is-taken { animation: taken .42s var(--ease) both; }

@keyframes taken {
  40%  { transform: scale(.975); }
  100% { opacity: 0; transform: scale(.95) translateY(-6px); }
}

/* Tiles */
.tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--acc) 45%, var(--line)); box-shadow: var(--e3), 0 0 28px -16px var(--acc); }
.tile__icon { transition: transform .22s var(--ease-out); }
.tile:hover .tile__icon {
  transform: scale(1.08);
  color: var(--acc-ink);
  background: linear-gradient(150deg, var(--acc), var(--acc-2));
  box-shadow: 0 10px 24px -10px var(--acc);
}
.tile:hover .tile__go { color: var(--acc); }

/* Live card */
.livecard:hover { transform: translateY(-3px); box-shadow: var(--e3), 0 0 46px -22px var(--acc), var(--lip); }

.livecard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 42%, rgba(255,255,255,.055) 50%, transparent 58%);
  transform: translateX(-100%);
  animation: shine 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shine { 0%, 70% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* Ticker marquee. Two identical tracks so the loop never shows a seam. */
.status__ticker .track { display: flex; gap: 18px; padding-right: 18px; animation: marquee 26s linear infinite; flex-shrink: 0; }
.status__ticker:hover .track { animation-play-state: paused; }

@keyframes marquee { to { transform: translateX(-100%); } }

/* Sidebar */
.dock__item svg { transition: transform .2s var(--ease-out); }
.dock__item:hover svg { transform: scale(1.1); }

/* Values that just changed flash once rather than silently swapping */
.is-bumped { animation: bump .5s var(--ease); }

@keyframes bump { 30% { transform: translateY(-3px); color: var(--acc); } }

@media (prefers-reduced-motion: reduce) {
  .livecard::after,
  .status__ticker .track,
  .hud__label::before,
  .hud__chip.bad,
  .boot__mark { animation: none; }

  .panel.is-entering > *,
  .panel.is-entering .cards > .card,
  .panel.is-entering .tiles > .tile { animation-duration: .01s; }
}

/* ── Contested contract ─────────────────────────────────────────────────────
   One shared car everybody can see, so it gets a banner above the board
   rather than a card among the listings. Deliberately louder than anything
   else on the screen. */

.eventcard {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 18px 20px;
  margin-bottom: 16px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(70% 130% at 100% 0%, color-mix(in srgb, var(--bad) 22%, transparent), transparent 62%),
    linear-gradient(160deg, var(--s3), var(--s1));
  border: 1px solid color-mix(in srgb, var(--bad) 45%, transparent);
  box-shadow: var(--e2), 0 0 42px -22px var(--bad), var(--lip);
  overflow: hidden;
}

.eventcard.is-in { border-color: color-mix(in srgb, var(--acc) 55%, transparent); box-shadow: var(--e2), 0 0 42px -22px var(--acc), var(--lip); }

.eventcard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 42%, rgba(255,255,255,.06) 50%, transparent 58%);
  transform: translateX(-100%);
  animation: shine 4s ease-in-out infinite;
  pointer-events: none;
}

.eventcard__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.eventcard__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(145deg, var(--bad), #c32c43);
  box-shadow: 0 4px 14px -6px var(--bad);
}

.eventcard.is-in .eventcard__tag { background: linear-gradient(145deg, var(--acc), var(--acc-2)); box-shadow: 0 4px 14px -6px var(--acc); }

.eventcard__tag::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: hudBlink 1.4s ease-in-out infinite;
}

@keyframes hudBlink { 50% { opacity: .3; } }

.eventcard__clock { font-size: 20px; font-weight: 600; letter-spacing: -.03em; }

.eventcard__body { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.eventcard__name { font-size: 28px; font-weight: 700; letter-spacing: -.035em; }
.eventcard__meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.eventcard__right { display: flex; align-items: flex-end; gap: 18px; }

.eventcard__in {
  padding: 9px 15px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 650;
  color: var(--acc);
  background: color-mix(in srgb, var(--acc) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--acc) 32%, transparent);
}

.eventcard__prog { height: 4px; border-radius: 99px; background: var(--s4); overflow: hidden; }
.eventcard__prog i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #c32c43, var(--bad)); transition: width .6s var(--ease); }
.eventcard.is-in .eventcard__prog i { background: linear-gradient(90deg, var(--acc-2), var(--acc)); }

@media (max-width: 1020px) {
  .eventcard__body { flex-direction: column; align-items: flex-start; }
  .eventcard__right { width: 100%; justify-content: space-between; }
}
