/* ============================================================
   BETA THEME — "Neon Candy". Pink / magenta / cyan on deep ink.
   Scoped to body.beta so it can be trialled page by page.
   ============================================================ */
body.beta {
  --ink: #120d1a;
  --ink-2: #1a1324;
  --card: #221a2f;
  --card-2: #2a2039;
  --line: #3a2e4d;
  --text: #f7f1ff;
  --muted: #a99bbd;
  --pink: #ff8fd1;
  --magenta: #e21cf0;
  --cyan: #1fb6ff;
  --gold: #ffd36e;
  --grad: linear-gradient(120deg, var(--magenta), #8a2bff 50%, var(--cyan));
  --soft: 0 1px 0 #ffffff12 inset, 0 10px 30px -12px #000c, 0 2px 6px -2px #0008;
  --ease: cubic-bezier(.2, .9, .25, 1.15);   /* springy */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  background:
    radial-gradient(1100px 500px at 85% -10%, #e21cf01f, transparent 60%),
    radial-gradient(900px 500px at -10% 10%, #1fb6ff17, transparent 60%),
    var(--ink);
  color: var(--text);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
}
body.beta a { color: inherit; }
body.beta ::selection { background: var(--magenta); color: #fff; }

/* themed top bar */
body.beta > header { background: #120d1acc; backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
body.beta > header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--grad); opacity: .85; }
body.beta > header .brand { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.beta > header nav a { color: var(--muted); }
body.beta > header nav a.on { color: var(--text); border-bottom-color: var(--magenta); }
body.beta .curtoggle { border-color: var(--line); border-radius: 999px; background: var(--ink-2); }
body.beta .curtoggle a.on { background: var(--grad); }
body.beta input, body.beta select { background: var(--ink-2); border-color: var(--line); color: var(--text); border-radius: 10px; }
body.beta .badge { background: var(--magenta); }
/* every page grows with the window (small gutter left for the blueprint backdrop) */
body.beta main { max-width: none; width: min(2400px, calc(100% - 2 * clamp(10px, 2.6vw, 72px))); box-sizing: border-box; padding: 22px 26px 40px; }

.bx { display: grid; gap: 18px; }
.bx-label { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.bx-muted, .bx .dim { color: var(--muted); }
.bx .small { font-size: 12px; }
.pinkt { color: var(--pink); }

/* ---------- buttons ---------- */
.bx-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card-2); color: var(--text); font-weight: 650; font-size: 13px; text-decoration: none; cursor: pointer;
  box-shadow: var(--soft); transition: transform .18s var(--ease), box-shadow .2s, filter .2s; }
.bx-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.bx-btn:active { transform: translateY(1px) scale(.97); }
.bx-btn.primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 24px -10px var(--magenta), var(--soft); }
.bx-btn.cyan { background: #1fb6ff1f; border-color: #1fb6ff66; color: var(--cyan); }
.bx-btn.ghost { background: transparent; }

/* ---------- hero ---------- */
.bx-hero { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; padding: 22px 26px; border-radius: 26px;
  background: linear-gradient(135deg, #2a1838, #1c1530 55%, #132436); border: 1px solid var(--line); box-shadow: var(--soft); position: relative; overflow: hidden; }
.bx-hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, #e21cf033, transparent 65%); pointer-events: none; }
.bx-big { font-size: 40px; font-weight: 850; letter-spacing: -1px; line-height: 1.05;
  background: linear-gradient(90deg, #fff, var(--pink) 70%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bx-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.bx-pill { display: grid; justify-items: center; min-width: 96px; padding: 10px 16px; border-radius: 18px; background: #ffffff0a; border: 1px solid #ffffff14; }
.bx-pill b { font-size: 24px; font-weight: 800; line-height: 1.1; }
.bx-pill span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.bx-pill.cyan b { color: var(--cyan); } .bx-pill.pink b { color: var(--pink); }

/* ---------- tab bar ---------- */
.bx-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bx-seg { position: relative; display: inline-flex; padding: 5px; border-radius: 999px; background: var(--ink-2); border: 1px solid var(--line); box-shadow: inset 0 2px 6px #0007; }
.bx-seg button { position: relative; z-index: 1; border: 0; background: none; color: var(--muted); font-weight: 700; font-size: 14px; padding: 9px 20px; border-radius: 999px; cursor: pointer; transition: color .25s; }
.bx-seg button span { font-size: 11px; opacity: .7; margin-left: 4px; }
.bx-seg button.on { color: #fff; }
.bx-seg-ind { position: absolute; z-index: 0; top: 5px; left: 0; height: calc(100% - 10px); border-radius: 999px; background: var(--grad);
  box-shadow: 0 6px 20px -8px var(--magenta); transition: transform .45s var(--ease), width .45s var(--ease); }
.bx-search { margin-left: auto; display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 44px; border-radius: 999px; background: var(--ink-2); border: 1px solid var(--line); min-width: 280px; transition: border-color .2s, box-shadow .2s; }
.bx-search:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 4px #1fb6ff22; }
.bx-search span { color: var(--muted); font-size: 18px; }
body.beta .bx-search input { border: 0; background: none; outline: none; padding: 0; flex: 1; font-size: 14px; }

/* ---------- panels + rails ---------- */
@keyframes bx-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.bx-rail-wrap { display: grid; gap: 8px; }
.bx-rail-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.bx-rail-head h3 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.2px; display: flex; align-items: center; gap: 8px; }
.bx-emoji { font-size: 18px; }
.bx-count { font-size: 12px; font-weight: 700; color: var(--muted); background: #ffffff0d; border-radius: 999px; padding: 2px 9px; }
.bx-arrows { display: flex; gap: 6px; }
.bx-arrow { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer;
  box-shadow: var(--soft); transition: transform .18s var(--ease), opacity .2s, background .2s; }
.bx-arrow:hover:not(:disabled) { background: var(--card-2); transform: scale(1.06); }
.bx-arrow:active:not(:disabled) { transform: scale(.94); }
.bx-arrow:disabled { opacity: .3; cursor: default; }
.bx-rail { display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; padding: 6px 4px 16px; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 28px), transparent); }
.bx-rail::-webkit-scrollbar { display: none; }
.bx-rail.dragging { cursor: grabbing; }
.bx-rail.dragging .bx-tile { pointer-events: none; }

/* ---------- tiles (shared) ---------- */
.bx-tile { flex: 0 0 auto; position: relative; display: grid; justify-items: center; align-content: start; gap: 6px;
  border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(180deg, var(--card-2), var(--card)); color: var(--text);
  padding: 14px 12px 12px; cursor: pointer; text-align: center; font: inherit; box-shadow: var(--soft);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease-out), border-color .2s; user-select: none; }
.bx-tile:hover { transform: translateY(-4px); border-color: #ff8fd166; box-shadow: 0 18px 36px -16px #e21cf077, var(--soft); }
.bx-tile:active { transform: translateY(0) scale(.97); transition-duration: .08s; }
.bx-tile:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.bx-tile[hidden] { display: none; }
.bx-t-name { font-weight: 750; font-size: 13.5px; line-height: 1.25; max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bx-t-sub { font-size: 12px; color: var(--muted); }
.bx-t-sub b { color: var(--text); }

/* set tile: fat icon in a progress ring */
.bx-set { width: 186px; }
.bx-ring { --p: 0; width: 132px; height: 132px; border-radius: 50%; padding: 6px; display: block;
  background: conic-gradient(var(--magenta), #8a2bff calc(var(--p) * .5%), var(--cyan) calc(var(--p) * 1%), #ffffff12 0); }
.bx-ring-in { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #3b2d50, #1a1324 72%); box-shadow: inset 0 3px 10px #0009; }
.bx-ring-in img { width: 78%; height: 78%; object-fit: contain; filter: drop-shadow(0 6px 10px #0009); transition: transform .35s var(--ease); }
.bx-tile:hover .bx-ring-in img { transform: scale(1.08) rotate(-3deg); }
.bx-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; max-width: 150px; }
.bx-dots i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid #ffffff38; }
.bx-dots i.on { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 6px #1fb6ff99; }
.bx-dots i.lock { border-style: dashed; opacity: .5; }
.bx-dots em { font-size: 10px; color: var(--muted); font-style: normal; }
.bx-flag { position: absolute; top: 10px; left: 10px; font-size: 10px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; padding: 3px 9px; border-radius: 999px;
  background: var(--grad); color: #fff; box-shadow: 0 4px 14px -4px var(--magenta); }
.bx-flag.gold { background: linear-gradient(120deg, #ffd36e, #ff8fd1); color: #2a1838; }
.bx-hunting { position: absolute; top: 9px; right: 11px; font-size: 15px; }
.bx-set.hot { border-color: #e21cf077; }
.bx-set.trophy .bx-ring { background: conic-gradient(var(--gold), var(--pink), var(--gold)); }

/* skin tile: fat square icon */
.bx-skin { width: 156px; --tc: #5b4d6e; }
.bx-skin.t-legendary { --tc: var(--gold); } .bx-skin.t-epic { --tc: var(--magenta); } .bx-skin.t-rare { --tc: var(--cyan); } .bx-skin.t-uncommon { --tc: #9b8cff; }
.bx-skin::before { content: ""; position: absolute; top: 0; left: 22px; right: 22px; height: 3px; border-radius: 0 0 4px 4px; background: var(--tc); box-shadow: 0 0 12px var(--tc); }
.bx-pic { position: relative; display: grid; place-items: center; width: 128px; height: 128px; border-radius: 18px;
  background: radial-gradient(circle at 50% 38%, #3b2d50, #1a1324 75%); box-shadow: inset 0 3px 10px #0009; }
.bx-pic img { width: 86%; height: 86%; object-fit: contain; filter: drop-shadow(0 6px 10px #0009); transition: transform .35s var(--ease); }
.bx-tile:hover .bx-pic img { transform: scale(1.08) rotate(-3deg); }
.bx-qty { position: absolute; right: 6px; bottom: 6px; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: #000b; color: var(--cyan); }
.bx-lock { position: absolute; left: 6px; top: 6px; font-size: 12px; }

.bx-none, .bx-empty { color: var(--muted); padding: 30px; text-align: center; }
.bx-empty { border: 1px dashed var(--line); border-radius: 26px; display: grid; gap: 10px; justify-items: center; }

/* ---------- drawer ---------- */
.bx-scrim { position: fixed; inset: 0; z-index: 40; background: #07040ca6; backdrop-filter: blur(4px); opacity: 0; transition: opacity .25s; }
.bx-scrim.on { opacity: 1; }
.bx-drawer { position: fixed; z-index: 50; top: 12px; right: 12px; bottom: 12px; width: min(480px, calc(100vw - 24px)); border-radius: 28px;
  background: linear-gradient(180deg, #2a1f3a, #1b1427); border: 1px solid var(--line); box-shadow: -30px 0 60px -20px #000, 0 0 0 1px #ffffff08 inset;
  transform: translateX(calc(100% + 24px)); transition: transform .5s var(--ease-out); display: flex; flex-direction: column; overflow: hidden; }
.bx-drawer.open { transform: none; }
.bx-drawer::before { content: ""; height: 3px; background: var(--grad); flex: none; }
.bx-drawer-body { overflow-y: auto; padding: 22px 22px 28px; display: grid; gap: 16px; align-content: start; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.bx-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--card);
  color: var(--text); font-size: 22px; cursor: pointer; transition: transform .2s var(--ease); }
.bx-close:hover { transform: rotate(90deg); }
.bx-drawer h2 { margin: 2px 0 4px; font-size: 22px; font-weight: 850; letter-spacing: -.4px; color: var(--text); text-transform: none; padding-right: 40px; }
.dr-head { display: flex; gap: 16px; align-items: center; }
.bx-ring.big { width: 128px; height: 128px; flex: none; }
.dr-meta { color: var(--muted); font-size: 13px; }
.dr-meta b { color: var(--text); }
.dr-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dr-actions form { margin: 0; }
.dr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dr-piece { display: grid; justify-items: center; gap: 4px; text-align: center; text-decoration: none; padding: 10px 6px; border-radius: 18px;
  background: #ffffff07; border: 1px solid var(--line); transition: transform .22s var(--ease), border-color .2s; }
.dr-piece:hover { transform: translateY(-3px); border-color: #1fb6ff66; }
.dr-piece:active { transform: scale(.97); }
.dr-piece .bx-pic { width: 100%; height: auto; aspect-ratio: 1; }
.dr-piece.have { border-color: #1fb6ff55; background: #1fb6ff0d; }
.dr-piece.need .bx-pic img { filter: grayscale(.85) brightness(.75); }
.dr-piece.need:hover .bx-pic img { filter: none; }
.dr-piece.lock { opacity: .55; }
.dr-piece .bx-t-name { font-size: 12px; }
.dr-check { position: absolute; right: 6px; bottom: 6px; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: var(--cyan); color: #0d1a24; }
.dr-deal { position: absolute; left: 6px; top: 6px; font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 999px; background: var(--magenta); color: #fff; }
.dr-hero { --tc: #5b4d6e; position: relative; height: 260px; border-radius: 24px; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, #44345c, #1a1324 72%); box-shadow: inset 0 4px 16px #0009; }
.dr-hero.t-legendary { --tc: var(--gold); } .dr-hero.t-epic { --tc: var(--magenta); } .dr-hero.t-rare { --tc: var(--cyan); } .dr-hero.t-uncommon { --tc: #9b8cff; }
.dr-hero img { width: 78%; height: 228px; object-fit: contain;  /* fixed: a % height let it spill over the title */ filter: drop-shadow(0 14px 20px #000b); animation: dr-float 5s ease-in-out infinite; }
@keyframes dr-float { 50% { transform: translateY(-6px) rotate(-1.5deg); } }
.dr-tier { position: absolute; top: 12px; left: 12px; font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 3px 10px; border-radius: 999px;
  color: #120d1a; background: var(--tc); box-shadow: 0 0 16px var(--tc); }
.dr-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dr-stats > div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 16px; background: #ffffff08; border: 1px solid var(--line); }
.dr-stats b { font-size: 17px; }
.dr-stats small { color: var(--muted); font-size: 11px; }

@media (max-width: 820px) {
  .bx-hero { grid-template-columns: 1fr; }
  .bx-search { min-width: 0; width: 100%; margin-left: 0; }
  .bx-big { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  body.beta *, body.beta *::before { animation: none !important; transition: none !important; }
}

/* ============================================================
   Site-wide: legacy pages inherit the theme through the old variables,
   so anything not yet rebuilt still looks at home.
   ============================================================ */
body.beta {
  --bg: var(--ink); --panel: var(--card); --text: #f7f1ff; --dim: var(--muted);
  --accent: var(--magenta); --good: var(--cyan); --warn: var(--pink);
}
body.beta h1 { font-weight: 850; letter-spacing: -.5px; }
body.beta h2 { color: var(--muted); letter-spacing: 1.4px; }
body.beta table { background: var(--card); border: 1px solid var(--line); border-radius: 18px; border-collapse: separate; border-spacing: 0; overflow: hidden; box-shadow: var(--soft); }
body.beta th { background: #ffffff06; color: var(--muted); letter-spacing: 1px; }
body.beta th, body.beta td { border-bottom: 1px solid #ffffff0d; }
body.beta tr:last-child td { border-bottom: 0; }
body.beta tbody tr, body.beta table tr { transition: background .15s; }
body.beta table tr:hover td { background: #ffffff05; }
body.beta tr.owned td { background: #1fb6ff0b; }
body.beta table button, body.beta .controls button, body.beta form.inline button { border-radius: 999px; }
body.beta button.primary { background: var(--grad); border-color: transparent; box-shadow: 0 8px 22px -10px var(--magenta); }
body.beta .controls { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 16px 18px; box-shadow: var(--soft); gap: 12px; }
body.beta .ctl .lbl { color: var(--muted); }
body.beta .chip span { border-radius: 999px; border-color: var(--line); padding: 5px 12px; transition: all .2s var(--ease); }
body.beta .chip input:checked + span { border-color: transparent; background: var(--grad); color: #fff; box-shadow: 0 6px 16px -8px var(--magenta); }
body.beta .chip span:active { transform: scale(.95); }
body.beta .pill { border-radius: 999px; background: #ffffff10; }
body.beta .pill.c-high { background: var(--cyan); color: #0d1a24; }
body.beta .pill.c-med { background: var(--pink); color: #2a1838; }
body.beta .card, body.beta .tile { background: var(--card); border-color: var(--line); border-radius: 20px; box-shadow: var(--soft); }
body.beta img.icon { border-radius: 10px; background: radial-gradient(circle, #3b2d50, #1a1324 75%); }
body.beta .good { color: var(--cyan); }
body.beta .bad { color: var(--magenta); }
body.beta .bar > div, body.beta .sc-bar > div { background: var(--grad); }
body.beta svg.chart { border-radius: 18px; background: var(--card); border-color: var(--line); }
body.beta details.caveats summary { color: var(--muted); }
body.beta .lnk, body.beta a.lnk { color: var(--cyan); text-decoration: none; cursor: pointer; }
body.beta .lnk:hover { text-decoration: underline; }
body.beta .hdr-search input { border-radius: 999px; padding: 7px 14px; min-width: 210px; }
body.beta > header { gap: 16px; }

/* ---------- page heroes (slim variant for every page) ---------- */
.bx-hero.slim { grid-template-columns: 1fr auto; padding: 20px 24px; }
.bx-h1 { font-size: 26px; font-weight: 850; letter-spacing: -.6px; margin: 2px 0 4px; }
.bx-hint { color: var(--muted); font-size: 13px; line-height: 1.6; padding: 14px 18px; border-radius: 18px; border: 1px dashed var(--line); }
.bx-search.big { height: 54px; min-width: 460px; font-size: 16px; }
body.beta .bx-search.big input { font-size: 16px; }
.bx-btn.sm { padding: 5px 11px; font-size: 12px; }
.bx-flag.cyan { background: var(--cyan); color: #0d1a24; box-shadow: 0 4px 14px -4px var(--cyan); }
.bx-qty.set { color: #0d1a24; background: var(--cyan); }

/* tile states */
.bx-tile.mine { border-color: #1fb6ff55; }
.bx-tile.hit { border-color: var(--magenta); box-shadow: 0 0 0 1px var(--magenta), 0 14px 36px -14px var(--magenta); animation: bx-pulse 2.4s ease-in-out infinite; }
@keyframes bx-pulse { 50% { box-shadow: 0 0 0 1px var(--magenta), 0 14px 46px -10px var(--magenta); } }

/* wrapping grid of tiles (search results) */
.bx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(156px, 8.6vw, 204px), 1fr)); gap: 14px; }
.bx-grid .bx-skin { width: auto; }
.bx-grid .bx-pic { width: 100%; height: auto; aspect-ratio: 1; }

/* segmented links (server-side tabs) */
.bx-seg.links { display: inline-flex; gap: 4px; }
.bx-seg.links a { padding: 9px 18px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 700; font-size: 14px; transition: background .2s, color .2s; }
.bx-seg.links a:hover { color: var(--text); }
.bx-seg.links a.on { background: var(--grad); color: #fff; box-shadow: 0 6px 20px -8px var(--magenta); }

/* ---------- filter cards (kit matcher) ---------- */
.bx-filters { display: grid; gap: 12px; padding: 16px 18px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--soft); }
.bx-frow { display: grid; grid-template-columns: 90px 1fr; align-items: start; gap: 10px; }
.bx-frow.end { display: flex; justify-content: flex-end; align-items: center; gap: 14px; }
.bx-frow > .bx-label { padding-top: 8px; }
.bx-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bx-chip input { display: none; }
.bx-chip span { display: inline-block; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--ink-2); color: var(--muted);
  font-weight: 650; font-size: 13px; cursor: pointer; user-select: none; transition: all .22s var(--ease); }
.bx-chip span:hover { color: var(--text); border-color: #ff8fd166; }
.bx-chip span:active { transform: scale(.94); }
.bx-chip input:checked + span { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 16px -8px var(--magenta); }
body.beta .bx-add { border-radius: 999px; padding: 6px 13px; width: 170px; }
.bx-more { display: contents; }
.bx-more summary { cursor: pointer; color: var(--cyan); font-weight: 650; font-size: 13px; list-style: none; padding: 6px 4px; }
.bx-more[open] summary { color: var(--muted); }

/* ---------- cards (kit sections) ---------- */
.bx-card { border-radius: 26px; background: linear-gradient(180deg, #241b33, #1b1427); border: 1px solid var(--line); box-shadow: var(--soft); padding: 18px 20px 8px; display: grid; gap: 6px; }
.bx-card-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.bx-card-head h2 { margin: 0 0 8px; font-size: 20px; letter-spacing: -.3px; text-transform: none; color: var(--text); }
.bx-palette { display: flex; width: 240px; height: 8px; border-radius: 999px; overflow: hidden; box-shadow: inset 0 1px 3px #0008; }
.bx-palette span { flex: 1; }
.bx-minis { display: flex; flex-wrap: wrap; gap: 6px; }
.bx-mini { width: 52px; height: 52px; padding: 3px; border-radius: 14px; border: 2px solid transparent; background: radial-gradient(circle, #3b2d50, #1a1324 75%); cursor: pointer;
  transition: transform .2s var(--ease), border-color .2s; }
.bx-mini img { width: 100%; height: 100%; object-fit: contain; }
.bx-mini.on { border-color: var(--cyan); }
.bx-mini:hover { transform: translateY(-2px) scale(1.05); }
.bx-fit { width: 100%; height: 5px; border-radius: 999px; background: #ffffff12; overflow: hidden; }
.bx-fit i { display: block; height: 100%; background: var(--grad); border-radius: 999px; }

/* ---------- drawer: header row, back, loading, toast ---------- */
.bx-drawer-top { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; pointer-events: none; z-index: 3; }
.bx-drawer-top > * { pointer-events: auto; }
.bx-drawer-top .bx-close { position: static; margin-left: auto; }
.bx-back { height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-weight: 700; cursor: pointer; transition: transform .2s var(--ease); }
.bx-back:hover { transform: translateX(-2px); }
.bx-drawer-body { padding-top: 64px; transition: opacity .2s; }
.bx-drawer-body.loading { opacity: .4; }
.bx-toast { position: fixed; z-index: 60; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  padding: 12px 20px; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 700; box-shadow: 0 14px 40px -10px var(--magenta);
  transition: transform .4s var(--ease), opacity .3s; }
.bx-toast.on { transform: translate(-50%, 0); opacity: 1; }
.dr-piece { font: inherit; color: inherit; cursor: pointer; }
.dr-eye { position: absolute; right: 6px; top: 6px; font-size: 12px; }
.dr-warn { position: absolute; bottom: 12px; left: 12px; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--pink); color: #2a1838; }

/* drawer: watch rules with tactile toggles */
.dr-watch { display: grid; gap: 10px; padding: 16px; border-radius: 20px; background: #ffffff07; border: 1px solid var(--line); }
.dr-watch.on { border-color: #1fb6ff55; background: #1fb6ff0a; }
.dr-watch-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.dr-hit { font-size: 12px; font-weight: 700; color: var(--magenta); }
.tog { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.tog > input[type=checkbox] { display: none; }
.tog > span { flex: none; width: 40px; height: 24px; border-radius: 999px; background: #ffffff18; position: relative; transition: background .25s; box-shadow: inset 0 2px 4px #0008; }
.tog > span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px #0009; transition: transform .3s var(--ease); }
.tog > input:checked + span { background: var(--grad); }
.tog > input:checked + span::after { transform: translateX(16px); }
body.beta .tog input[type=text], body.beta .tog input:not([type]) { width: 64px; padding: 5px 8px; text-align: center; border-radius: 10px; }
.dr-markets { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dr-markets .bx-label { margin-right: 4px; }
.chip-r input { display: none; }
.chip-r span { display: inline-block; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; font-weight: 650; color: var(--muted); cursor: pointer; transition: all .2s var(--ease); }
.chip-r input:checked + span { background: var(--cyan); color: #0d1a24; border-color: transparent; }

/* drawer: every market's price */
.dr-quotes { display: grid; gap: 6px; }
.dr-q { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name price" "sup price"; align-items: center; gap: 0 10px; padding: 10px 14px; border-radius: 16px;
  background: #ffffff06; border: 1px solid transparent; text-decoration: none; transition: transform .2s var(--ease), border-color .2s, background .2s; }
.dr-q:hover { transform: translateX(3px); border-color: var(--line); background: #ffffff0b; }
.dr-q-name { grid-area: name; font-weight: 700; font-size: 14px; }
.dr-q-sup { grid-area: sup; font-size: 11px; color: var(--muted); }
.dr-q b { grid-area: price; font-size: 16px; }
.dr-q.best { border-color: #1fb6ff66; background: #1fb6ff10; }
.dr-q.best b { color: var(--cyan); }
.dr-q.out { opacity: .45; }

/* ---------- watchlist alerts ---------- */
.bx-alerts { display: grid; gap: 8px; }
.bx-alert { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line);
  color: var(--text); font: inherit; text-align: left; cursor: pointer; box-shadow: var(--soft); transition: transform .2s var(--ease), border-color .2s; }
.bx-alert:hover { transform: translateY(-2px); border-color: #ff8fd166; }
.bx-alert.new { border-color: var(--magenta); background: linear-gradient(90deg, #e21cf014, var(--card) 40%); }
.bx-pic.sm { width: 52px; height: 52px; border-radius: 12px; }
.bx-alert-msg { font-size: 14px; line-height: 1.4; }
.bx-alert-side { display: grid; justify-items: end; }
.bx-alert-side small { color: var(--muted); font-size: 11px; }

/* ---------- vendors ---------- */
.bx-vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.bx-vcard { display: grid; gap: 10px; align-content: start; padding: 18px; border-radius: 22px; background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line);
  box-shadow: var(--soft); transition: transform .25s var(--ease), border-color .2s; }
.bx-vcard:hover { transform: translateY(-3px); }
.bx-vcard.mine { border-color: #8a2bff; box-shadow: 0 0 0 1px #8a2bff66, var(--soft); }
.bx-vcard.v-risky { border-color: #e21cf088; }
.bx-vcard header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.bx-vcard h3 { margin: 0; font-size: 18px; font-weight: 800; }
.bx-vscore { display: flex; align-items: baseline; gap: 8px; }
.bx-vscore b { font-size: 34px; font-weight: 850; letter-spacing: -1px; }
.bx-vscore small { color: var(--muted); }
.bx-vscore .stars { font-size: 18px; }
.bx-vfacts { display: flex; flex-wrap: wrap; gap: 6px; }
.bx-vfacts span { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #ffffff10; }
.bx-vfacts .yes { color: var(--cyan); } .bx-vfacts .no { color: var(--pink); } .bx-vfacts .yours { background: #8a2bff; color: #fff; }
.bx-vcard p { margin: 0; color: var(--muted); line-height: 1.5; }
body.beta .vb { border-radius: 999px; padding: 1px 7px; }
body.beta .vb.t-trusted { background: var(--cyan); color: #0d1a24; }
body.beta .vb.t-good { background: #6b5cff; color: #fff; }
body.beta .vb.t-limited { background: #5b4d6e; color: #f3e9ff; }
body.beta .vb.t-risky { background: var(--magenta); color: #fff; }
body.beta .vb.yours { background: #8a2bff; }

/* profit finder: rows get a touch more air */
body.beta table.deals td { padding: 12px 12px; }
body.beta table.deals tr:hover td { background: #e21cf00a; }

@media (max-width: 820px) { .bx-search.big { min-width: 0; width: 100%; } .bx-frow { grid-template-columns: 1fr; } }

/* fixes */
body.beta [hidden] { display: none !important; }
body.beta .bx-drawer h2 { color: var(--text); letter-spacing: -.4px; text-transform: none; font-size: 22px; }
body.beta .chip span span { display: inline; padding: 0; border: 0; background: none; box-shadow: none; opacity: .75; }
body.beta table.deals a { text-decoration: none; }
body.beta table.deals a:hover { color: var(--pink); }

/* ============================================================
   v3: header tabs, sliding panels, shelves, currency switch, wishlist
   ============================================================ */

/* USD / CAD switch: a real toggle with a sliding knob */
.cur-switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; width: 108px; height: 34px; padding: 3px;
  border-radius: 999px; background: var(--ink-2); border: 1px solid var(--line); box-shadow: inset 0 2px 6px #0009;
  text-decoration: none; margin-left: auto; user-select: none; cursor: pointer; flex: none; }
.cur-switch .cs-opt { position: relative; z-index: 1; display: grid; place-items: center; font-size: 12px; font-weight: 800;
  letter-spacing: 1px; color: var(--muted); transition: color .3s; }
.cur-switch .cs-knob { position: absolute; top: 3px; left: 3px; width: calc(50% - 3px); height: calc(100% - 6px); border-radius: 999px;
  background: var(--grad); box-shadow: 0 4px 14px -4px var(--magenta), inset 0 1px 0 #ffffff44; transition: transform .38s var(--ease); }
.cur-switch.is-cad .cs-knob { transform: translateX(100%); }
.cur-switch:not(.is-cad) .cs-opt:nth-child(1), .cur-switch.is-cad .cs-opt:nth-child(2) { color: #fff; }
.cur-switch:hover { border-color: #ff8fd166; }
.cur-switch:active .cs-knob { filter: brightness(1.12); }
body.beta .curtoggle { display: none; }

/* header tabs with a sliding underline */
.bx-bar { align-items: flex-end; border-bottom: 1px solid var(--line); padding-bottom: 0; margin-bottom: 6px; }
.bx-bar .bx-search { margin-bottom: 10px; }
.bx-tabs { position: relative; display: inline-flex; gap: 30px; padding: 0 2px; }
.bx-tabs button { background: none; border: 0; padding: 8px 0 14px; font: inherit; font-size: 22px; font-weight: 800; letter-spacing: -.4px;
  color: var(--muted); cursor: pointer; transition: color .25s; display: inline-flex; align-items: center; gap: 8px; border-radius: 0; }
.bx-tabs button:hover { color: #d9cdea; }
.bx-tabs button span { font-size: 12px; font-weight: 800; padding: 2px 9px; border-radius: 999px; background: #ffffff10; color: var(--muted); transition: all .3s; }
.bx-tabs button.on { color: var(--text); }
.bx-tabs button.on span { background: var(--grad); color: #fff; }
.bx-tabs-ind { position: absolute; left: 0; bottom: -1px; height: 4px; border-radius: 4px 4px 0 0; background: var(--grad);
  box-shadow: 0 0 16px var(--magenta); transition: transform .5s var(--ease), width .5s var(--ease); }

/* panels sit side by side on a track that slides */
.bx-panels { overflow: hidden; overflow: clip; min-width: 0; margin: 0 -12px; }
/* clip: nothing can scroll it, so content never slides out of view. min-width: 0 because, unlike hidden,
   clip doesn't stop a grid/flex item growing to fit every tab side by side (that made pages super wide) */
.bx-panels.ready { transition: height .5s var(--ease-out); }
.bx-track { display: flex; align-items: flex-start; transition: transform .6s var(--ease-out); will-change: transform; }
.bx-panel { flex: 0 0 100%; min-width: 0; display: grid; gap: 8px; align-content: start; padding: 6px 12px 0; transition: opacity .45s; }
.bx-panel:not(.on) { opacity: .15; }

/* slide-out shelf under a rail (set details) */
.bx-shelf { height: 0; overflow: hidden; transition: height .5s var(--ease-out); }
.bx-shelf-in { position: relative; margin: 2px 4px 16px; padding: 22px 24px; border-radius: 26px; display: grid; gap: 14px;
  background: linear-gradient(180deg, #2c2040, #1d1529); border: 1px solid #ff8fd144; box-shadow: var(--soft); transition: opacity .2s; }
.bx-shelf-in::before { content: ""; position: absolute; top: -1px; left: 34px; right: 34px; height: 3px; border-radius: 0 0 3px 3px; background: var(--grad); }
.bx-shelf-in.loading { opacity: .5; }
.bx-shelf h2 { margin: 2px 0 4px; font-size: 24px; font-weight: 850; letter-spacing: -.5px; color: var(--text); text-transform: none; }
.bx-shelf .dr-head { padding-right: 48px; }
.bx-shelf .dr-grid { grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); }
.bx-shelf-x { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); color: var(--text); font-size: 22px; cursor: pointer; transition: transform .2s var(--ease); }
.bx-shelf-x:hover { transform: rotate(90deg); }
.bx-tile.active { border-color: var(--magenta); box-shadow: 0 0 0 1px var(--magenta), 0 16px 36px -14px var(--magenta); transform: translateY(-4px); }
.bx-tile.active::after { content: ""; position: absolute; bottom: -12px; left: 50%; width: 14px; height: 14px; transform: translateX(-50%) rotate(45deg);
  background: #2c2040; border-left: 1px solid #ff8fd144; border-top: 1px solid #ff8fd144; z-index: 2; }

/* wishlist */
.bx-wishbar { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 14px 18px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--soft); }
.bx-wishbar > div { display: grid; }
.bx-wishbar b { font-size: 20px; font-weight: 850; }
.bx-heart { position: absolute; left: 7px; top: 6px; font-size: 14px; color: var(--magenta); text-shadow: 0 0 10px var(--magenta); }
.bx-eye { position: absolute; right: 7px; top: 6px; font-size: 13px; }
.bx-btn.wished { background: #e21cf01f; border-color: #e21cf077; color: var(--pink); }
.dr-wishrow { display: flex; align-items: center; gap: 10px; margin: 0; }

body.beta .bx-shelf h2, body.beta .cs-room-head h2 { color: var(--text); }

/* ---------- accounts ---------- */
body.beta .hdr-me { display: flex; align-items: center; gap: 8px; margin-left: 4px; font-size: 13px; font-weight: 700; }
body.beta .hdr-me img { width: 28px; height: 28px; border-radius: 50%; box-shadow: 0 0 0 2px var(--line); }
body.beta .hdr-me span { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bx.auth { display: grid; place-items: center; min-height: 70vh; }
.auth-card { width: min(440px, 100%); display: grid; gap: 14px; padding: 30px 30px 22px; border-radius: 28px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--soft), 0 30px 80px -40px var(--magenta); }
.auth-card .bx-muted { margin: 0; }
.auth-f { display: grid; gap: 6px; }
.auth-f input { width: 100%; box-sizing: border-box; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--ink-2); color: var(--text); font: inherit; transition: border-color .2s, box-shadow .2s; }
.auth-f input:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px #e21cf033; }
.auth-f small { font-size: 12px; line-height: 1.5; }
.auth-err { padding: 10px 14px; border-radius: 14px; background: #e21cf018; border: 1px solid #e21cf066; color: #ffd2ec; font-size: 14px; }
.auth-go { width: 100%; justify-content: center; margin-top: 4px; }
.auth-switch { text-align: center; font-size: 14px; }
.auth-switch a { color: var(--cyan); font-weight: 700; }
.bx-vcard form { margin: 0; }
.bx-vcard .v-use { width: 100%; justify-content: center; }
.bx-vcard.mine .v-use { box-shadow: 0 0 18px -6px var(--cyan); }

/* ============================================================
   BRAND — from the Rust Skin Tracker brand sheet.
   Palette: magenta #e21cf0 · violet #6a22ff · blue #1f9bff ·
   night #0b0a20 · slate #262b55 · frost #e6e6f2.
   Looks only: nothing below changes layout behaviour or function.
   ============================================================ */
body.beta {
  --ink: #0b0a20;
  --ink-2: #13122e;
  --card: #18163a;
  --card-2: #1f1c47;
  --line: #2f2b5e;
  --text: #f2f0ff;
  --muted: #a3a0cc;
  --pink: #ff6be8;
  --magenta: #e21cf0;
  --violet: #6a22ff;
  --cyan: #1fb6ff;
  --frost: #e6e6f2;
  --grad: linear-gradient(110deg, #e21cf0, #8a2bff 50%, #1f9bff);
  --grad-soft: linear-gradient(110deg, #e21cf033, #6a22ff26 50%, #1f9bff26);
  --hazard: repeating-linear-gradient(-55deg, #e21cf0 0 14px, transparent 14px 22px, #8a2bff 22px 36px, transparent 36px 44px, #1f9bff 44px 58px, transparent 58px 66px);
  --soft: 0 1px 0 #ffffff10 inset, 0 12px 32px -14px #000d, 0 2px 6px -2px #0009;
  background:
    radial-gradient(1200px 520px at 88% -12%, #8a2bff2e, transparent 60%),
    radial-gradient(900px 520px at -8% 8%, #e21cf01c, transparent 60%),
    radial-gradient(800px 600px at 50% 120%, #1f9bff14, transparent 60%),
    var(--ink);
}
/* faint scope grid behind everything */
body.beta::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(#ffffff06 1px, transparent 1px), linear-gradient(90deg, #ffffff06 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%); }

/* header: logo mark + RUST / SKIN TRACKER wordmark */
body.beta > header { background: #0b0a20d9; }
body.beta > header::after { height: 3px; background: var(--grad); opacity: 1; box-shadow: 0 0 18px #8a2bffaa; }
body.beta > header .brand { display: inline-flex; align-items: center; gap: 9px; background: none; color: inherit; text-decoration: none; flex: none; }
.brand-mark { width: 34px; height: 34px; filter: drop-shadow(0 0 8px #e21cf080); transition: transform .5s var(--ease); }
.brand:hover .brand-mark { transform: rotate(60deg); }
.brand-word { display: grid; line-height: .92; }
.brand-word b { font-size: 19px; font-weight: 900; font-style: italic; letter-spacing: .5px;
  background: linear-gradient(180deg, #ffffff, #c9c6e0 55%, #8f8bb5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-word i { font-size: 9.5px; font-weight: 900; font-style: italic; letter-spacing: 1.6px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.beta > header nav a { font-weight: 650; transition: color .2s; }
body.beta > header nav a:hover { color: var(--text); }
body.beta > header nav a.on { color: var(--text); border-bottom-color: transparent; position: relative; }
body.beta > header nav a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px;
  background: var(--grad); box-shadow: 0 0 10px var(--magenta); }
body.beta .badge { background: var(--grad); box-shadow: 0 0 10px #e21cf088; }

/* hero panels get the night-outpost banner on the right */
.bx-hero { background:
    linear-gradient(90deg, #12103a 0%, #12103af2 34%, #12103a99 58%, #12103a33 100%),
    url("/static/brand/scene.svg") right center / auto 115% no-repeat, #12103a;
  border-color: #3b2f7a; box-shadow: var(--soft), inset 0 0 0 1px #ffffff08; }
.bx-hero::before { inset: auto auto -60% -10%; width: 520px; height: 520px; background: radial-gradient(circle, #e21cf026, transparent 65%); }
.bx-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--hazard); opacity: .9;
  mask-image: linear-gradient(90deg, #000 0 40%, transparent 70%); pointer-events: none; }
.bx-big { background: linear-gradient(90deg, #ffffff, #ffb8f4 55%, #7fd0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bx-pill { background: #0b0a2099; border-color: #ffffff17; backdrop-filter: blur(6px); }
.bx-pill.cyan b { color: var(--cyan); } .bx-pill.pink b { color: var(--pink); }
.bx-h1 { font-style: italic; font-weight: 900; letter-spacing: -.2px; }

/* buttons: gradient primary with a chevron, outlined secondary */
.bx-btn { border-radius: 14px; border-color: #3a3577; background: #1a1840; }
.bx-btn.ghost { background: #0b0a2066; border-color: #4a3f9a; }
.bx-btn.ghost:hover { border-color: #8a2bff; box-shadow: 0 0 0 1px #8a2bff66, var(--soft); }
.bx-btn.primary { background: var(--grad); background-size: 140% 100%; background-position: 0 0; border-color: transparent;
  box-shadow: 0 10px 28px -10px #e21cf0, 0 0 0 1px #ffffff1f inset; transition: transform .18s var(--ease), box-shadow .2s, background-position .4s; }
.bx-btn.primary:hover { background-position: 100% 0; box-shadow: 0 12px 32px -10px #8a2bff, 0 0 0 1px #ffffff2a inset; }
.bx-btn.primary.big::after { content: "›"; font-size: 1.3em; line-height: 0; margin-left: 4px; transition: transform .2s var(--ease); }
.bx-btn.primary.big:hover::after { transform: translateX(3px); }
.bx-btn.cyan { background: #1f9bff1f; border-color: #1f9bff77; color: #8fd6ff; }
body.beta input, body.beta select, body.beta textarea { background: #0e0d28; border-color: #2f2b5e; }
body.beta input:focus, body.beta select:focus, body.beta textarea:focus { outline: none; border-color: #8a2bff; box-shadow: 0 0 0 3px #8a2bff33; }

/* tabs, chips and toggles in the new gradient */
.bx-tabs button { font-style: italic; }
.bx-tabs-ind { box-shadow: 0 0 14px #e21cf0aa; }
.bx-chip span { border-radius: 12px; }
.bx-chip input:checked + span { box-shadow: 0 6px 18px -8px #e21cf0, 0 0 0 1px #ffffff1f inset; }

/* cards: a hairline of the gradient along the top edge */
.bx-vcard, .pf-card, .cs-side, .cs-setup, .cs-lb, .lb-row, .auth-card, .bx-wishbar, .dr-chart, .cs-board {
  border-color: #2f2b5e; background-image: linear-gradient(180deg, #ffffff06, transparent 40%); }
.bx-vcard, .pf-card, .cs-setup, .auth-card { position: relative; }
.bx-vcard::before, .pf-card::before, .cs-setup::before, .auth-card::before { content: ""; position: absolute; left: 18px; right: 18px; top: -1px; height: 2px;
  border-radius: 2px; background: var(--grad); opacity: .55; pointer-events: none; }
.bx-tile .bx-pic, .bx-pic { background: radial-gradient(circle at 50% 38%, #2c2163, #12103a 72%); }

/* status chips (Online / Live prices / Updated) used by tags like "yours" */
body.beta .vb.yours, .bx-vfacts .yours { background: var(--grad); color: #fff; }

/* sign-in page: the full banner */
.bx.auth { background: url("/static/brand/scene.svg") center / cover no-repeat; border-radius: 30px; padding: 30px 16px; position: relative; overflow: hidden; }
.bx.auth::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0b0a20f0, #0b0a20b3 45%, #0b0a2033); }
.auth-card { position: relative; background: #13122ee6; backdrop-filter: blur(12px); }
.auth-card .bx-h1::before { content: ""; display: block; width: 54px; height: 54px; margin-bottom: 12px;
  background: url("/static/brand/mark.svg") center / contain no-repeat; filter: drop-shadow(0 0 12px #e21cf099); }

/* scrollbar + selection in brand colours */
body.beta ::selection { background: #8a2bff; }
body.beta { scrollbar-color: #3a3577 var(--ink); }

/* chat + toast pick up the gradient */
.chat-toggle { background: var(--grad); }
.bx-toast { border-color: #8a2bff66 !important; }

@media (max-width: 760px) { .brand-word { display: none; } }
@media (prefers-reduced-motion: reduce) { .brand:hover .brand-mark { transform: none; } }

/* ============================================================
   UI v2 — the angular mockup: cut-corner panels and tiles with
   magenta/blue corner accents, icon stat cards, slashed section
   headers, pill navigation and a blueprint backdrop.
   Styling only.
   ============================================================ */
body.beta { --cut: 14px; }
body.beta::after { content: ""; position: fixed; z-index: -1; pointer-events: none; right: -60px; top: 40px; width: min(900px, 70vw); aspect-ratio: 900 / 640;
  background: url("/static/brand/blueprint.svg") center / contain no-repeat; opacity: .32;
  mask-image: linear-gradient(200deg, #000 30%, transparent 85%); }

/* header */
.brand-mark { width: 40px; height: 40px; }
.brand-word b { font-size: 21px; }
.brand-word i { font-size: 10.5px; }
body.beta > header nav a { padding: 7px 13px; border-radius: 10px; border: 1px solid transparent; margin-right: 2px; font-size: 13.5px; }
body.beta > header nav a.on { background: linear-gradient(110deg, #e21cf02e, #6a22ff2e); border-color: #8a2bff99; box-shadow: 0 0 16px -6px #8a2bff; }
body.beta > header nav a.on::after { display: none; }
body.beta .hdr-search input { padding-left: 36px; border-radius: 12px;
  background: url("/static/brand/i/search.svg") 12px center / 15px no-repeat, #0e0d28; filter: none; }
body.beta .hdr-search input { background-blend-mode: normal; }
.hdr-me img { box-shadow: 0 0 0 2px #8a2bff !important; }

/* panels and tiles with cut corners */
.bx-hero, .bx-skin, .bx-set, .bx-vcard, .pf-card, .dr-chart, .bx-wishbar, .auth-card, .bx-pill, .bx-drawer, .chat {
  border-radius: 6px;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  background:
    linear-gradient(135deg, transparent calc(var(--cut) * .7071 - 1.4px), var(--c1, #e21cf0) calc(var(--cut) * .7071 - 1.4px) calc(var(--cut) * .7071 + 1.2px), transparent 0),
    linear-gradient(-45deg, transparent calc(var(--cut) * .7071 - 1.4px), var(--c2, #1f9bff) calc(var(--cut) * .7071 - 1.4px) calc(var(--cut) * .7071 + 1.2px), transparent 0),
    var(--fill, linear-gradient(165deg, #1e1b4c, #141235 55%, #100f2c));
  border-color: #2e2a63;
}
.bx-hero { --cut: 24px; border-radius: 8px;
  background:
    linear-gradient(135deg, transparent calc(var(--cut) * .7071 - 1.4px), #e21cf0 calc(var(--cut) * .7071 - 1.4px) calc(var(--cut) * .7071 + 1.4px), transparent 0),
    linear-gradient(-45deg, transparent calc(var(--cut) * .7071 - 1.4px), #1f9bff calc(var(--cut) * .7071 - 1.4px) calc(var(--cut) * .7071 + 1.4px), transparent 0),
    linear-gradient(90deg, #12103a 0%, #12103af2 34%, #12103a99 58%, #12103a33 100%),
    url("/static/brand/scene.svg") right center / auto 115% no-repeat, #12103a; }
/* hatch marks in the hero's cut corner */
.bx-hero::before { inset: 10px auto auto 30px; width: 70px; height: 10px; border-radius: 0;
  background: repeating-linear-gradient(-60deg, #e21cf0 0 4px, transparent 4px 9px); opacity: .9; }
.bx-pill { --cut: 10px; min-width: 112px; padding: 12px 16px 10px; gap: 2px;
  --fill: linear-gradient(170deg, #1d1a4dcc, #0e0d2bcc); backdrop-filter: blur(6px); }
.bx-pill[data-i]::before { content: ""; width: 22px; height: 22px; margin-bottom: 4px; background: var(--pc, #ff6be8);
  -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; filter: drop-shadow(0 0 6px var(--pc, #ff6be8)); }
.bx-pill.cyan { --pc: #1fb6ff; } .bx-pill.pink { --pc: #e21cf0; }
.bx-pill[data-i="box"] { --ic: url("/static/brand/i/box.svg"); --pc: #ff7ab8; }
.bx-pill[data-i="check"] { --ic: url("/static/brand/i/check.svg"); }
.bx-pill[data-i="star"] { --ic: url("/static/brand/i/star.svg"); }
.bx-pill[data-i="crown"] { --ic: url("/static/brand/i/crown.svg"); --pc: #4fb0ff; }
.bx-pill[data-i="coins"] { --ic: url("/static/brand/i/coins.svg"); --pc: #ffd36e; }
.bx-pill[data-i="trend"] { --ic: url("/static/brand/i/trend.svg"); }
.bx-pill[data-i="play"] { --ic: url("/static/brand/i/play.svg"); }
.bx-pill[data-i="swords"] { --ic: url("/static/brand/i/swords.svg"); }
.bx-pill b { font-size: 25px; }

/* item tiles: dark well for the skin, cyan price */
.bx-skin, .bx-set { --cut: 12px; border-radius: 4px; }
.bx-skin::before { left: 30px; right: 30px; height: 2px; opacity: .9; }
.bx-tile .bx-pic, .bx-pic { border-radius: 4px;
  background: radial-gradient(circle at 50% 42%, #2a2368 0, #171445 45%, #0d0c26 78%); box-shadow: inset 0 0 0 1px #ffffff0a, inset 0 -18px 30px -18px #000; }
.bx-t-sub b { color: #7fd0ff; }
.bx-tile:hover { box-shadow: none; border-color: #8a2bff; }
.bx-tile.active { box-shadow: none; }
.bx-tile.active::after { bottom: 0; left: 25%; right: 25%; width: auto; height: 3px; transform: none; border: 0; border-radius: 3px 3px 0 0; background: var(--grad); }

/* section headers: icon, title, count, then slashes */
.bx-rail-head h3 { font-size: 17px; }
.bx-rail-head h3::after { content: ""; width: 46px; height: 10px; margin-left: 4px;
  background: repeating-linear-gradient(-60deg, #8a2bff 0 3px, transparent 3px 8px); opacity: .8; }
.bx-count { border-radius: 6px; }
.bx-arrow { border-radius: 10px; }

/* the tab bar: an angular strip with the active tab as a lit pill */
.bx-bar { position: relative; padding: 8px 10px; border: 1px solid #2e2a63; --cut: 14px;
  border-radius: 6px;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  background:
    linear-gradient(135deg, transparent calc(var(--cut) * .7071 - 1.4px), var(--c1, #e21cf0) calc(var(--cut) * .7071 - 1.4px) calc(var(--cut) * .7071 + 1.2px), transparent 0),
    linear-gradient(-45deg, transparent calc(var(--cut) * .7071 - 1.4px), var(--c2, #1f9bff) calc(var(--cut) * .7071 - 1.4px) calc(var(--cut) * .7071 + 1.2px), transparent 0),
    var(--fill, linear-gradient(165deg, #1e1b4c, #141235 55%, #100f2c));
}
.bx-tabs { gap: 4px; align-items: center; }
.bx-tabs button { font-style: normal; font-size: 15.5px; font-weight: 750; letter-spacing: 0; padding: 9px 18px; position: relative; z-index: 1; }
.bx-tabs button + button::before { content: ""; position: absolute; left: -3px; top: 25%; bottom: 25%; width: 1px; background: #3a3577; transform: skewX(-20deg); }
.bx-tabs-ind { top: 0; bottom: 0; height: auto; z-index: 0; border-radius: 10px;
  background: linear-gradient(110deg, #e21cf033, #6a22ff40); box-shadow: inset 0 0 0 1px #a24bffaa, 0 0 18px -6px #e21cf0; }
.bx-bar .bx-search { margin-left: auto; }
.bx-search, body.beta .bx-search input { border-radius: 12px; }

/* drawer + chat edges */
.bx-drawer { --cut: 16px; }
.chat { --cut: 16px; }
.bx-btn { border-radius: 10px; }
.bx-bar .bx-search { margin-bottom: 0; }
/* keep the header on one row */
body.beta > header { flex-wrap: nowrap; gap: 12px; }
body.beta > header nav { display: flex; flex-wrap: nowrap; min-width: 0; overflow: hidden; }
body.beta > header nav a { padding: 7px 11px; font-size: 13px; white-space: nowrap; }
body.beta .hdr-search input { min-width: 0; width: 200px; }
body.beta .hdr-me { flex: none; }
body.beta .hdr-me span { max-width: 90px; }
@media (max-width: 1250px) { body.beta .hdr-search { display: none; } }
@media (max-width: 1000px) { body.beta > header { flex-wrap: wrap; } }
.bx-hero .bx-btn { background: #0b0a20cc; backdrop-filter: blur(6px); }

/* ---------- blueprint backdrop (v3): a repeating drafting sheet, very faint ----------
   Fine + major grid, registration marks, circuit traces, a chip, dimension lines.
   Stronger at the edges, almost gone behind the content in the middle. */
body.beta::before { opacity: 1; background-image: url("/static/brand/bp-tile.svg"); background-size: 480px 480px;
  background-position: 50% 0; filter: opacity(.11);
  -webkit-mask-image: radial-gradient(ellipse 65% 70% at 50% 42%, #0006 0%, #000c 55%, #000 100%);
  mask-image: radial-gradient(ellipse 65% 70% at 50% 42%, #0006 0%, #000c 55%, #000 100%); }
body.beta::after { opacity: .2; }
@media (prefers-reduced-transparency: reduce) { body.beta::before { filter: opacity(.06); } }

/* v4: a touch stronger, plus a drafting ruler down both screen edges */
body.beta::before { filter: opacity(.15); }
html::before, html::after { content: ""; position: fixed; top: 0; bottom: 0; width: 40px; z-index: -1; pointer-events: none;
  background: url("/static/brand/bp-edge.svg") 0 0 / 40px 240px repeat-y; opacity: .55;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); }
html::before { left: 0; } html::after { right: 0; transform: scaleX(-1); }
@media (max-width: 700px) { html::before, html::after { display: none; } }
@media (prefers-reduced-transparency: reduce) { body.beta::before { filter: opacity(.06); } html::before, html::after { opacity: .25; } }

/* account on hold (waiting for an admin): header chip, page bar, review page */
.hdr-hold { font-size: 12.5px; font-weight: 700; color: #ffd36e; text-decoration: none; white-space: nowrap; }
.hdr-hold:hover { text-decoration: underline; }
.bx-hold-bar { margin-bottom: 16px; padding: 10px 14px; border-radius: 6px; font-size: 13.5px; color: #ffe7a8;
  background: linear-gradient(90deg, #ffd36e1f, #ffd36e08); box-shadow: inset 0 0 0 1px #ffd36e44; }
.bx-hold-bar a { color: #ffd36e; font-weight: 700; }
.bx-hold-card { display: grid; gap: 10px; max-width: 760px; padding: 18px 22px; line-height: 1.55; background: var(--card); border: 1px solid var(--line); }
.bx-hold-card p { margin: 0; }

/* tiles grow a little on big screens (base size up to ~1800px wide, capped around 2400px) */
.bx-skin { width: clamp(156px, 8.6vw, 204px); }
.bx-pic { width: clamp(128px, 7.1vw, 170px); height: clamp(128px, 7.1vw, 170px); }
.bx-set { width: clamp(186px, 10.2vw, 240px); }
.bx-ring { width: clamp(132px, 7.3vw, 172px); height: clamp(132px, 7.3vw, 172px); }
.bx-dots { max-width: clamp(150px, 8.3vw, 196px); }
.bx-t-name { font-size: clamp(13.5px, .72vw, 15px); }
.bx-grid .bx-skin { width: auto; }
.bx-ring.big { width: 128px; height: 128px; }

/* ---------- Search / explore page ---------- */
.bx-hero.sx-hero { grid-template-columns: minmax(280px, 1fr) minmax(0, 820px); row-gap: 14px; }
.sx-form { display: contents; }
.sx-searchrow { display: flex; gap: 10px; align-items: center; position: relative; z-index: 1; }
.sx-searchrow .bx-search.big { flex: 1; min-width: 0; margin-left: 0; }
.sx-ftoggle { height: 54px; padding: 0 18px; white-space: nowrap; }
.sx-ftoggle.on, .sx-ftoggle[aria-expanded="true"] { box-shadow: inset 0 0 0 1px var(--cyan); }
.sx-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 4px; border-radius: 999px; background: var(--grad); font-size: 11px; color: #fff; }
.sx-filters { grid-column: 1 / -1; position: relative; z-index: 1; display: grid; gap: 12px 16px; align-items: end;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); padding: 14px 16px; border-radius: 6px;
  background: #0b0a20d9; box-shadow: inset 0 0 0 1px #1f9bff33; backdrop-filter: blur(6px); }
.sx-filters[hidden] { display: none; }
.sx-filters > label { display: grid; gap: 6px; }
.sx-filters select, .sx-filters input { height: 38px; padding: 0 10px; width: 100%; box-sizing: border-box; }
.sx-range { display: flex; gap: 6px; align-items: center; } .sx-range i { font-style: normal; color: var(--muted); font-size: 12px; }
.sx-checks { display: flex; flex-wrap: wrap; gap: 8px 16px; grid-column: span 2; }
.sx-chk { display: inline-flex; gap: 8px; align-items: center; font-size: 13.5px; cursor: pointer; }
.sx-chk input { width: 16px !important; height: 16px !important; accent-color: var(--magenta); }
.sx-fgo { display: flex; gap: 10px; justify-content: flex-end; align-items: center; grid-column: -2 / -1; }
@media (max-width: 1100px) { .bx-hero.sx-hero { grid-template-columns: 1fr; } .sx-checks { grid-column: 1 / -1; } .sx-fgo { grid-column: 1 / -1; } }

.sx-browse { display: grid; gap: 8px; padding: 4px 4px 16px; }
.sx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sx-chip { display: inline-flex; gap: 6px; align-items: baseline; padding: 6px 12px; border-radius: 4px; font: inherit; font-size: 13px; font-weight: 700;
  color: var(--text); text-decoration: none; background: var(--ink-2); border: 1px solid var(--line); cursor: pointer;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); transition: border-color .2s, background .2s; }
.sx-chip small { color: var(--muted); font-weight: 600; font-size: 11px; }
.sx-chip:hover { border-color: var(--cyan); background: #1f9bff14; }
.sx-chip.on { background: var(--grad); border-color: transparent; color: #fff; }

.sx-group { position: relative; }
.sx-hint { position: absolute; top: 10px; right: 96px; font-size: 12px; color: var(--muted); }
.sx-hint a { color: var(--cyan); text-decoration: none; font-weight: 700; } .sx-hint a:hover { text-decoration: underline; }
.sx-group:has(> [data-rail][hidden]) { display: none; }
@media (max-width: 900px) { .sx-hint { display: none; } }
.bx-skin.up .bx-t-sub { color: #5dffa8; } .bx-skin.down .bx-t-sub { color: #ff7ad9; }

.sx-settools { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding: 4px 4px 14px; }
.sx-settools .bx-search { margin-left: 0; flex: 1 1 320px; max-width: 520px; }
.sx-sort { display: flex; gap: 8px; align-items: center; margin-left: auto; } .sx-sort select { height: 38px; }
.sx-sets { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(clamp(210px, 11.5vw, 270px), 1fr)); padding-bottom: 20px; }
.sx-set { position: relative; display: grid; gap: 4px; justify-items: center; text-align: center; padding: 12px 12px 14px; font: inherit; color: var(--text); cursor: pointer;
  background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--soft);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); transition: transform .25s var(--ease), border-color .2s; }
.sx-set[hidden] { display: none; }
.sx-set:hover { transform: translateY(-3px); border-color: #ff8fd166; }
.sx-set-pics { position: relative; width: 100%; aspect-ratio: 16 / 9; margin-bottom: 4px; border-radius: 4px;
  background: url("/static/brand/bp-well.svg") center / 100% 100% no-repeat, radial-gradient(circle at 50% 46%, #17145a, #0d0b2b 72%); box-shadow: inset 0 0 0 1px #1f9bff2e; }
.sx-pic { position: absolute; top: 12%; height: 76%; aspect-ratio: 1; display: grid; place-items: center; }
.sx-pic img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 10px #000a); transition: transform .35s var(--ease); }
.sx-p0 { left: 50%; transform: translateX(-50%); z-index: 2; }
.sx-p1 { left: 6%; transform: rotate(-10deg) scale(.78); opacity: .85; } .sx-p2 { right: 6%; transform: rotate(10deg) scale(.78); opacity: .85; }
.sx-set:hover .sx-p0 img { transform: scale(1.08); }
.sx-set-name { font-size: 14.5px; line-height: 1.25; }
.sx-set-meta { font-size: 12px; color: var(--muted); }
.sx-set-cost { font-size: 13px; font-weight: 800; color: var(--pink); } .sx-set-cost small { color: var(--muted); font-weight: 600; }
.sx-own { position: absolute; top: 10px; right: 12px; font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 4px; background: #1f9bff26; color: #8fd6ff; }

/* ---------- accounts: Steam sign-in, account page ---------- */
.bx.auth { align-content: center; gap: 12px; }
.bx-btn.steam { display: inline-flex; align-items: center; justify-content: center; gap: 10px; color: #fff; border: 1px solid #66c0f455;
  background: linear-gradient(135deg, #171a21, #1b2838 55%, #2a475e); box-shadow: 0 8px 22px -12px #66c0f4; }
.bx-btn.steam:hover { border-color: #66c0f4; box-shadow: 0 10px 26px -10px #66c0f4; }
.auth-alt { gap: 10px; padding-top: 18px; }
.auth-alt .bx-btn.steam { width: 100%; }
.auth-alt p { text-align: center; line-height: 1.5; }
.auth-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1.4px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-steam-ok { display: grid; gap: 2px; padding: 10px 14px; border-radius: 10px; background: #66c0f414; border: 1px solid #66c0f455; color: #bfe6ff; font-weight: 700; }
.auth-steam-ok small { color: var(--muted); font-weight: 600; }
.auth-claim { display: grid; gap: 8px; padding: 14px; border-radius: 10px; background: #ffffff06; border: 1px solid var(--line); }
.auth-claim p { margin: 0; line-height: 1.5; }
.auth-switch { position: relative; }
body.beta .hdr-me .hdr-acct { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); text-decoration: none; }
body.beta .hdr-me .hdr-acct:hover { color: var(--cyan); }
.acct-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); align-items: start; }
.acct-card { display: grid; gap: 12px; } .acct-card h3 { margin: 0; } .acct-card p { margin: 0; line-height: 1.5; }
.acct-form { display: grid; gap: 12px; }
.acct-row { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 12px; border-radius: 8px; background: #ffffff06; border: 1px solid var(--line); }
.acct-card.danger-zone { box-shadow: inset 0 0 0 1px #e21cf033; }
.ad-flash.ad-secret { font-size: 15px; letter-spacing: .2px; }
.ad-backup { display: grid; gap: 10px; margin-bottom: 16px; } .ad-backup p { margin: 0; }
.ad-backup .bx-btn { justify-self: start; }
.bx-btn.danger { background: #e21cf026; border-color: #e21cf088; color: #ffc2f5; }

/* ---------- Overview (/) ---------- */
.ov { gap: 16px; }
.bx-hero.ov-hero { grid-template-columns: auto 1fr minmax(240px, 420px); }
.bx-hero.ov-hero.guest { grid-template-columns: minmax(0, 1fr) minmax(280px, 560px); padding: 30px 32px; }
.ov-hero .bx-pills { justify-content: flex-start; }
a.bx-pill { text-decoration: none; color: inherit; transition: transform .2s var(--ease); } a.bx-pill:hover { transform: translateY(-2px); }
.ov-search { position: relative; z-index: 1; margin-left: 0; width: 100%; box-sizing: border-box; }
.ov-cta { display: flex; gap: 10px; margin-top: 16px; }
.ov-alerts { display: flex; flex-wrap: wrap; gap: 8px; }
.ov-alert { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 6px; font-size: 13px; color: var(--text); text-decoration: none;
  background: #e21cf014; box-shadow: inset 0 0 0 1px #e21cf044; max-width: 100%; }
.ov-alert span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ov-alert b { color: var(--pink); }
.ov-alert:hover { box-shadow: inset 0 0 0 1px var(--pink); }
.ov-more { text-align: center; margin: 0; }
@media (max-width: 1000px) { .bx-hero.ov-hero, .bx-hero.ov-hero.guest { grid-template-columns: 1fr; } }
.ov-cta .bx-btn.primary { background: var(--grad); border-color: transparent; color: #fff; backdrop-filter: none; }

/* ============================================================
   UI v3: generated art (docs/ASSETS.md #5, #6).
   Each page's hero gets its own banner; line icons replace emoji.
   ============================================================ */
/* hero banners: the art already fades out on its left, so it sits on the panel colour */
.bx-hero { --hero: url("/static/brand/scene.svg");
  background:
    linear-gradient(135deg, transparent calc(var(--cut) * .7071 - 1.4px), #e21cf0 calc(var(--cut) * .7071 - 1.4px) calc(var(--cut) * .7071 + 1.4px), transparent 0),
    linear-gradient(-45deg, transparent calc(var(--cut) * .7071 - 1.4px), #1f9bff calc(var(--cut) * .7071 - 1.4px) calc(var(--cut) * .7071 + 1.4px), transparent 0),
    linear-gradient(90deg, #12103a 0%, #12103ad9 30%, #12103a33 62%, transparent 100%),
    var(--hero) right center / auto 125% no-repeat, #12103a; }
.bx-hero[data-art] { --hero: image-set(var(--h1x) 1x, var(--h2x) 2x); }
.bx-hero[data-art="overview"]  { --h1x: url("/static/art/hero/overview.webp");  --h2x: url("/static/art/hero/overview@2x.webp"); }
.bx-hero[data-art="inventory"] { --h1x: url("/static/art/hero/inventory.webp"); --h2x: url("/static/art/hero/inventory@2x.webp"); }
.bx-hero[data-art="explore"]   { --h1x: url("/static/art/hero/explore.webp");   --h2x: url("/static/art/hero/explore@2x.webp"); }
.bx-hero[data-art="games"]     { --h1x: url("/static/art/hero/games.webp");     --h2x: url("/static/art/hero/games@2x.webp"); }
.bx-hero[data-art="watchlist"] { --h1x: url("/static/art/hero/watchlist.webp"); --h2x: url("/static/art/hero/watchlist@2x.webp"); }
.bx-hero[data-art="vendors"]   { --h1x: url("/static/art/hero/vendors.webp");   --h2x: url("/static/art/hero/vendors@2x.webp"); }
.bx-hero[data-art="profit"]    { --h1x: url("/static/art/hero/profit.webp");    --h2x: url("/static/art/hero/profit@2x.webp"); }
.bx-hero[data-art="kits"]      { --h1x: url("/static/art/hero/kits.webp");      --h2x: url("/static/art/hero/kits@2x.webp"); }
.bx-hero[data-art="account"]   { --h1x: url("/static/art/hero/account.webp");   --h2x: url("/static/art/hero/account@2x.webp"); }
.bx-hero[data-art="admin"]     { --h1x: url("/static/art/hero/admin.webp");     --h2x: url("/static/art/hero/admin@2x.webp"); }
@media (max-width: 820px) { .bx-hero { background-size: auto, auto, auto, auto 100%, auto; } }
.bx-hero:not([data-art]) { background-size: auto, auto, auto, auto 128%, auto; }
/* sign-in: the compound gate, full bleed */
.bx.auth { background: image-set(url("/static/art/hero/signin.webp") 1x, url("/static/art/hero/signin@2x.webp") 2x) 70% center / cover no-repeat, #0b0a20; }

/* line icons: 24x24 SVG masks in /static/brand/i, coloured by the text colour or --ic-c */
/* i.ic only: <td class="ic"> is the thumbnail column in the Profit tables */
i.ic { display: inline-block; flex: none; width: 1.15em; height: 1.15em; vertical-align: -.2em; background: var(--ic-c, currentColor);
  -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.bx-btn .ic { margin-right: 6px; } .bx-btn.sm .ic { margin-right: 4px; }
.ic-alert { --ic: url("/static/brand/i/alert.svg"); } .ic-backpack { --ic: url("/static/brand/i/backpack.svg"); }
.ic-bolt { --ic: url("/static/brand/i/bolt.svg"); } .ic-box { --ic: url("/static/brand/i/box.svg"); }
.ic-chat { --ic: url("/static/brand/i/chat.svg"); } .ic-check { --ic: url("/static/brand/i/check.svg"); }
.ic-coin-stack { --ic: url("/static/brand/i/coin-stack.svg"); } .ic-coins { --ic: url("/static/brand/i/coins.svg"); }
.ic-compass { --ic: url("/static/brand/i/compass.svg"); } .ic-crate { --ic: url("/static/brand/i/crate.svg"); }
.ic-crown { --ic: url("/static/brand/i/crown.svg"); } .ic-download { --ic: url("/static/brand/i/download.svg"); }
.ic-external { --ic: url("/static/brand/i/external.svg"); } .ic-eye { --ic: url("/static/brand/i/eye.svg"); }
.ic-flame { --ic: url("/static/brand/i/flame.svg"); } .ic-gamepad { --ic: url("/static/brand/i/gamepad.svg"); }
.ic-gem { --ic: url("/static/brand/i/gem.svg"); } .ic-hanger { --ic: url("/static/brand/i/hanger.svg"); }
.ic-heart { --ic: url("/static/brand/i/heart.svg"); } .ic-hourglass { --ic: url("/static/brand/i/hourglass.svg"); }
.ic-jacket { --ic: url("/static/brand/i/jacket.svg"); } .ic-key { --ic: url("/static/brand/i/key.svg"); }
.ic-lock { --ic: url("/static/brand/i/lock.svg"); } .ic-megaphone { --ic: url("/static/brand/i/megaphone.svg"); }
.ic-moon { --ic: url("/static/brand/i/moon.svg"); } .ic-play { --ic: url("/static/brand/i/play.svg"); }
.ic-plinko { --ic: url("/static/brand/i/plinko.svg"); } .ic-plus { --ic: url("/static/brand/i/plus.svg"); }
.ic-podium { --ic: url("/static/brand/i/podium.svg"); } .ic-radar { --ic: url("/static/brand/i/radar.svg"); }
.ic-refresh { --ic: url("/static/brand/i/refresh.svg"); } .ic-rifle { --ic: url("/static/brand/i/rifle.svg"); }
.ic-robot { --ic: url("/static/brand/i/robot.svg"); } .ic-rocket { --ic: url("/static/brand/i/rocket.svg"); }
.ic-save { --ic: url("/static/brand/i/save.svg"); } .ic-search { --ic: url("/static/brand/i/search.svg"); }
.ic-shield { --ic: url("/static/brand/i/shield.svg"); } .ic-sliders { --ic: url("/static/brand/i/sliders.svg"); }
.ic-sparkles { --ic: url("/static/brand/i/sparkles.svg"); } .ic-sprout { --ic: url("/static/brand/i/sprout.svg"); }
.ic-star { --ic: url("/static/brand/i/star.svg"); } .ic-store { --ic: url("/static/brand/i/store.svg"); }
.ic-swords { --ic: url("/static/brand/i/swords.svg"); } .ic-target { --ic: url("/static/brand/i/target.svg"); }
.ic-ticket { --ic: url("/static/brand/i/ticket.svg"); } .ic-toolbox { --ic: url("/static/brand/i/toolbox.svg"); }
.ic-trend { --ic: url("/static/brand/i/trend.svg"); } .ic-trend-down { --ic: url("/static/brand/i/trend-down.svg"); }
.ic-trend-up { --ic: url("/static/brand/i/trend-up.svg"); } .ic-trophy { --ic: url("/static/brand/i/trophy.svg"); }

/* rail titles: a gradient icon in a small cut-corner chip */
.bx-rail-head h3 > .ic { width: 28px; height: 28px; background: none; -webkit-mask: none; mask: none; position: relative;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  box-shadow: inset 0 0 0 1px #3b2f7a; background: linear-gradient(160deg, #241f5a, #141235); }
.bx-rail-head h3 > .ic::after { content: ""; position: absolute; inset: 6px; background: linear-gradient(110deg, #ff5ae6, #8a2bff 55%, #1fb6ff);
  -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }

/* nav: icons ahead of the labels where there's room */
body.beta > header nav a .ic { display: none; margin-right: 6px; opacity: .8; }
body.beta > header nav a.on .ic { opacity: 1; color: #ff7ae8; }
@media (min-width: 1600px) { body.beta > header nav a .ic { display: inline-block; } }

/* chat toggle and the on-hold chip */
.chat-toggle .ic { width: 24px; height: 24px; vertical-align: middle; color: #fff; }
.hdr-hold .ic { margin-right: 4px; }

/* small inline status icons on tiles and drawers */
.bx-hunting .ic, .bx-lock .ic, .bx-eye .ic, .dr-eye .ic { width: 14px; height: 14px; vertical-align: -2px; }
.bx-hunting .ic { color: #1fb6ff; } .bx-eye .ic, .dr-eye .ic { color: #8fc8ff; }
.pf-h h3 .ic { margin-right: 6px; color: #8fc8ff; }
.pf-h h3 .ic-trend-down { color: #ff6b9d; }
/* tab icons (Games) */
.bx-tabs button .ic { margin-right: 7px; width: 17px; height: 17px; vertical-align: -3px; opacity: .7; }
.bx-tabs button.on .ic { opacity: 1; color: #ff7ae8; }
/* hero copy stays clear of the banner art */
.bx-hero p { max-width: 720px; }

/* ============================================================
   UI v5: layout + type pass.
   A centred page column (the blueprint backdrop fills the sides on wide screens),
   a display face for titles and numbers, taller heroes whose banner scales with
   the page, and more air between sections.
   ============================================================ */
@font-face { font-family: "Oxanium"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/static/fonts/oxanium.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
body.beta { --display: "Oxanium", "Noto Sans", system-ui, sans-serif; --page: 1880px; }

/* page column + header aligned to it */
body.beta main { width: min(var(--page), calc(100% - 2 * clamp(10px, 2.6vw, 72px))); margin: 0 auto; padding: 26px 0 56px; }
body.beta > header { padding-inline: max(clamp(10px, 2.6vw, 72px), calc((100% - var(--page)) / 2)); }
.bx { gap: 26px; }

/* display type: titles, big numbers, rail titles, tabs, labels */
.bx-h1, .bx-big, .bx-rail-head h3, .bx-pill b, .bx-tabs button, .cs-name, .cs-price, .pf-h h3, .acct-card h3,
.brand-word b, .brand-word i { font-family: var(--display); }
.bx-h1 { font-size: clamp(28px, 2vw, 38px); font-style: normal; font-weight: 800; letter-spacing: .2px; text-transform: none; }
.bx-big { font-size: clamp(40px, 2.7vw, 54px); font-weight: 800; letter-spacing: -.5px; }
.bx-hero .bx-label { font-family: var(--display); font-size: 12px; letter-spacing: 2.4px; color: #8fc8ff; font-weight: 700; }
.bx-hero p, .bx-hero .bx-muted { font-size: 14.5px; line-height: 1.5; color: #b9b3d9; }
.bx-pill b { font-size: 28px; font-weight: 700; }
.bx-pill span { font-family: var(--display); letter-spacing: 1.6px; }
.bx-tabs button { font-weight: 700; letter-spacing: .3px; }

/* heroes: taller, banner sized to the panel so it reads the same at 1440 and 2560 */
.bx-hero { min-height: clamp(150px, 10.4vw, 220px); padding: 28px clamp(26px, 2.2vw, 40px); box-sizing: border-box; }
.bx-hero[data-art] { background-size: auto, auto, auto, 56% auto, auto; background-position: 0 0, 0 0, 0 0, right center, 0 0; }
.bx-hero.ov-hero.guest { min-height: clamp(200px, 13vw, 280px); }
@media (max-width: 820px) { .bx-hero[data-art] { background-size: auto, auto, auto, auto 100%, auto; } }

/* rail titles: bigger, display face, a hairline under the head */
.bx-rail-wrap { gap: 12px; }
.bx-rail-head { padding: 0 4px 10px; border-bottom: 1px solid #2e2a6366; }
.bx-rail-head h3 { font-size: clamp(18px, 1.15vw, 21px); font-weight: 700; letter-spacing: .2px; gap: 12px; }
.bx-rail-head h3 > .ic { width: 32px; height: 32px; }
.bx-rail-head h3 > .ic::after { inset: 7px; }
.bx-count { font-family: var(--display); font-size: 12.5px; }

/* buttons: display face, a touch taller */
.bx-btn { font-family: var(--display); font-weight: 700; letter-spacing: .3px; padding: 10px 18px; }
.bx-btn.sm { padding: 7px 12px; }

/* filter panels (Profit finder, Outfit): labelled fields on a cut-corner panel, one height for every control */
body.beta .controls { --cut: 14px; border-radius: 6px; padding: 18px 22px; gap: 16px; border-color: #2e2a63;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  background: linear-gradient(135deg, transparent 8.5px, #e21cf0 8.5px 11px, transparent 0),
    linear-gradient(-45deg, transparent 8.5px, #1f9bff 8.5px 11px, transparent 0), linear-gradient(165deg, #1e1b4c, #141235 55%, #100f2c); }
body.beta .ctl { gap: 12px 14px; align-items: flex-end; }
body.beta .ctl + .ctl { padding-top: 14px; border-top: 1px solid #2e2a6377; }
body.beta .ctl > label:not(.chip) { display: inline-grid; gap: 6px; font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: #8fc8ff; }
body.beta .ctl > label:not(.chip) input, body.beta .ctl > label:not(.chip) select { height: 38px; box-sizing: border-box; padding: 0 12px; min-width: 92px;
  font: 600 14px/1 "Noto Sans", system-ui, sans-serif; letter-spacing: 0; text-transform: none; color: var(--text);
  background: #0e0d28; border: 1px solid #2e2a63; border-radius: 6px; }
body.beta .ctl > label:not(.chip) input:focus, body.beta .ctl > label:not(.chip) select:focus { outline: none; border-color: #1f9bff; box-shadow: 0 0 0 3px #1f9bff26; }
body.beta .ctl .lbl { width: 84px; align-self: center; font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: 1.6px; color: #8fc8ff; }
body.beta .ctl > .lbl + label, body.beta .ctl > .lbl ~ label, body.beta .ctl > .lbl ~ a { align-self: center; }
body.beta .chip span { border-radius: 6px; padding: 8px 14px; font-weight: 700; font-size: 13px; background: #0e0d28; border-color: #2e2a63;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
body.beta .ctl > label.chip { align-self: flex-end; }
body.beta .controls button.primary { height: 40px; padding: 0 26px; border-radius: 6px; font-family: var(--display); font-weight: 700; letter-spacing: .6px; font-size: 14px; }

/* data tables: header strip, roomier rows, aligned to the cut-corner look */
body.beta table { border-radius: 6px; border-color: #2e2a63; }
body.beta table th { font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: #8fc8ff;
  background: #16143e; padding: 12px; border-bottom: 1px solid #2e2a63; text-align: left; }
body.beta table th.num { text-align: right; }
body.beta table.deals td { border-bottom: 1px solid #2e2a6355; vertical-align: middle; }
body.beta table.deals tr:last-child td { border-bottom: 0; }
body.beta table.deals td.ic { width: 60px; padding-right: 4px; }
body.beta table.deals td.num b.good { font-family: var(--display); font-size: 16px; }

/* footer */
.site-foot { width: min(var(--page), calc(100% - 2 * clamp(10px, 2.6vw, 72px))); margin: 0 auto; padding: 26px 0 40px; display: grid;
  grid-template-columns: auto 1fr auto; gap: 14px 28px; align-items: center; border-top: 1px solid #2e2a63; color: var(--muted); font-size: 12.5px; }
.site-foot .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.site-foot .brand img { width: 28px; height: 28px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-foot nav a { color: var(--muted); text-decoration: none; font-weight: 600; } .site-foot nav a:hover { color: var(--text); }
.site-foot p { margin: 0; grid-column: 1 / -1; font-size: 11.5px; line-height: 1.5; color: #8580aa; }
@media (max-width: 820px) { .site-foot { grid-template-columns: 1fr; } }
/* phones: heroes stack (the slim rule used to keep two columns and squeeze the title) */
@media (max-width: 820px) {
  .bx-hero, .bx-hero.slim, .bx-hero.cs-hero, .ad .bx-hero.slim { grid-template-columns: 1fr; min-height: 0; padding: 22px 20px; }
  .bx-hero .bx-seg.links { justify-self: start; max-width: 100%; overflow-x: auto; }
}

/* ============================================================
   UI v6: backdrop, trims and tile textures.
   ============================================================ */
/* -- site backdrop: replaces the drafting sheet, the big blueprint drawing and the edge rulers.
   Fixed layers that only animate transform/opacity, so the browser composites them
   without repainting; everything stops for prefers-reduced-motion and in hidden tabs. -- */
body.beta { background: linear-gradient(180deg, #0c0b24 0%, #0a0920 45%, #08071a 100%); }
body.beta::before, body.beta::after, html::before, html::after { display: none !important; }
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; contain: strict; }
.bg-fx > i { position: absolute; display: block; will-change: transform; }
/* two soft colour fields, pre-blurred gradients (no filter), drifting over ~70 s */
.bg-glow { width: 90vmax; height: 90vmax; border-radius: 50%; opacity: .9; }
.bg-glow.a { left: -44vmax; top: -50vmax; background: radial-gradient(closest-side, #b21cd018, #6a22ff0e 45%, transparent 72%);
  animation: bg-drift-a 70s ease-in-out infinite alternate; }
.bg-glow.b { right: -34vmax; top: -10vmax; background: radial-gradient(closest-side, #1f9bff24, #6a22ff12 48%, transparent 72%);
  animation: bg-drift-b 84s ease-in-out infinite alternate; }
@keyframes bg-drift-a { to { transform: translate3d(16vmax, 12vmax, 0) scale(1.06); } }
@keyframes bg-drift-b { to { transform: translate3d(-18vmax, 26vmax, 0) scale(.92); } }
/* a perspective grid floor that recedes into the bottom of the screen and slowly scrolls toward you */
.bg-floor { left: -50%; right: -50%; bottom: -2vh; height: 40vh; perspective: 520px; perspective-origin: 50% 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 45%, #000 100%); mask-image: linear-gradient(180deg, transparent 0, #000 45%, #000 100%); }
.bg-floor > i { position: absolute; left: 0; right: 0; top: -64px; height: calc(100% + 128px); transform-origin: 50% 0; will-change: transform;
  background: linear-gradient(90deg, #6a22ff2e 1px, transparent 1px) 0 0 / 64px 64px, linear-gradient(0deg, #1f9bff26 1px, transparent 1px) 0 0 / 64px 64px;
  transform: rotateX(62deg); animation: bg-floor 9s linear infinite; }
@keyframes bg-floor { to { transform: rotateX(62deg) translate3d(0, 64px, 0); } }
/* a band of light that crosses the screen every ~14 s */
.bg-sweep { top: 0; bottom: 0; left: 0; width: 38vw; opacity: .5;
  background: linear-gradient(100deg, transparent 0, #8fc8ff07 40%, #e21cf00a 55%, transparent 100%);
  transform: translate3d(-40vw, 0, 0); animation: bg-sweep 14s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes bg-sweep { 0%, 35% { transform: translate3d(-40vw, 0, 0); } 100% { transform: translate3d(110vw, 0, 0); } }
/* a fine dot grid over everything, very faint, static */
.bg-fx::before { content: ""; position: absolute; inset: 0; opacity: .55;
  background: radial-gradient(circle, #8fc8ff1c 1px, transparent 1.4px) 0 0 / 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 0, #0008 60%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 0, #0008 60%, transparent 100%); }
@media (prefers-reduced-motion: reduce) { .bg-fx > i, .bg-floor > i { animation: none !important; } .bg-sweep { display: none; } }

/* -- hero trims -- */
/* bottom edge: a thin lit rule that fades out, with a short bright segment gliding along it (was the dashed hazard strip) */
.bx-hero::after { height: 2px; opacity: 1; background: linear-gradient(90deg, #e21cf0, #8a2bff 35%, #1f9bff 60%, transparent 92%);
  -webkit-mask-image: none; mask-image: none; box-shadow: 0 0 12px #8a2bff66; }
.bx-hero > .bx-glint { position: absolute; left: 0; bottom: 0; width: 140px; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, #fff, transparent); opacity: .8; animation: bx-glint 7s ease-in-out infinite; }
@keyframes bx-glint { 0%, 30% { transform: translateX(-160px); opacity: 0; } 40% { opacity: .9; } 70% { opacity: .9; } 100% { transform: translateX(min(60vw, 1100px)); opacity: 0; } }
/* corner hatch: longer, fainter, fading toward its end */
.bx-hero::before { inset: 12px auto auto 34px; width: 150px; height: 8px; opacity: .45;
  background: repeating-linear-gradient(-60deg, #e21cf0 0 3px, transparent 3px 8px);
  -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent); mask-image: linear-gradient(90deg, #000 30%, transparent); }
/* rail titles get the same treatment */
.bx-rail-head h3::after { width: 90px; height: 8px; opacity: .4;
  background: repeating-linear-gradient(-60deg, #8a2bff 0 3px, transparent 3px 8px);
  -webkit-mask-image: linear-gradient(90deg, #000 20%, transparent); mask-image: linear-gradient(90deg, #000 20%, transparent); }

/* -- item tiles: textured frame, HUD well, and a light sweep on hover -- */
.bx-skin, .bx-set { --fill: url("/static/brand/tex-trace.svg") 0 0 / 160px 160px, linear-gradient(165deg, #1e1b4c, #141235 55%, #100f2c);
  box-shadow: inset 0 1px 0 #ffffff0d; }
.bx-skin { overflow: hidden; }
/* the well: deep radial glow, fine scanlines, HUD corner brackets */
.bx-tile .bx-pic, .bx-pic {
  background:
    url("/static/brand/well-hud.svg") center / 100% 100% no-repeat,
    repeating-linear-gradient(0deg, #8fc8ff08 0 1px, transparent 1px 4px),
    radial-gradient(circle at 50% 42%, #33289a 0, #1a1652 40%, #0d0c26 78%);
  box-shadow: inset 0 0 0 1px #8fc8ff14, inset 0 -22px 30px -18px #000, inset 0 18px 30px -24px #8a2bff66; overflow: hidden; }
/* a diagonal light that crosses the well when you hover the tile */
.bx-tile .bx-pic::after { content: ""; position: absolute; inset: -30% -60%; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 40%, #ffffff16 48%, #8fc8ff22 50%, transparent 58%);
  transform: translateX(-40%); transition: transform .9s var(--ease-out), opacity .3s; }
.bx-tile:hover .bx-pic::after { transform: translateX(40%); opacity: 1; }
/* the set ring's inner well gets the same light */
.bx-ring-in { background: repeating-linear-gradient(0deg, #8fc8ff08 0 1px, transparent 1px 4px), radial-gradient(circle at 50% 40%, #33289a, #141235 72%); }
@media (prefers-reduced-motion: reduce) { .bx-hero > .bx-glint { display: none; } }
/* the sticky header was blurring whatever is behind it (backdrop-filter); with an animated backdrop that
   re-runs every frame across the full width. A near-opaque solid looks the same and costs nothing. */
body.beta > header { background: #0b0a20f5; -webkit-backdrop-filter: none; backdrop-filter: none; }
/* long-form text pages (Privacy) */
.bx-prose { max-width: 820px; line-height: 1.65; font-size: 14.5px; }
.bx-prose h3 { font-family: var(--display); margin: 18px 0 6px; font-size: 18px; } .bx-prose h3:first-child { margin-top: 0; }
.bx-prose p, .bx-prose ul { margin: 0 0 10px; color: #cfcae8; } .bx-prose code { color: #a8c8ff; }
.bx-hero[data-art="security"] { --h1x: url("/static/art/hero/security.webp"); --h2x: url("/static/art/hero/security@2x.webp"); }
/* site-wide notice set by an admin (base.html #site-toast) */
.site-toast { position: fixed; z-index: 90; left: 50%; top: 74px; transform: translateX(-50%); width: min(720px, calc(100% - 32px));
  display: flex; align-items: center; gap: 12px; padding: 14px 16px 14px 18px; box-sizing: border-box; font-weight: 700; font-size: 14.5px; color: #fff;
  border-radius: 6px; background: linear-gradient(110deg, #2a1d6bf2, #1a1652f2); box-shadow: 0 18px 40px -12px #000c, inset 0 0 0 1px #8a2bff;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); animation: site-toast-in .5s var(--ease-out) both; }
.site-toast[hidden] { display: none; }
.site-toast .ic { width: 22px; height: 22px; color: #8fd6ff; }
.site-toast span { flex: 1; line-height: 1.4; }
.site-toast button { background: none; border: 0; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; opacity: .7; padding: 0 4px; }
.site-toast button:hover { opacity: 1; }
.site-toast.lv-warn { background: linear-gradient(110deg, #4a3410f2, #2a1d10f2); box-shadow: 0 18px 40px -12px #000c, inset 0 0 0 1px #ffd36e; }
.site-toast.lv-warn .ic { color: #ffd36e; }
.site-toast.lv-alert { background: linear-gradient(110deg, #5a0f4af2, #2a0b2ef2); box-shadow: 0 18px 40px -12px #e21cf0aa, inset 0 0 0 1px #ff5ab8; }
.site-toast.lv-alert .ic { color: #ff7ae8; }
@keyframes site-toast-in { from { opacity: 0; transform: translate(-50%, -12px); } }

/* ============================================================
   Blueprint drawings (art/bp): one technical line drawing per page, set in base.html as --bp.
   It sits on the backdrop's grid floor at one side of the screen, faint enough that panels
   read cleanly over it, and fades in once. Empty states reuse the same drawing (no extra request).
   ============================================================ */
.bg-bp { bottom: -4vh; width: clamp(620px, 58vw, 1700px); aspect-ratio: 3 / 2; opacity: 0;
  background: var(--bp) center bottom / contain no-repeat;
  -webkit-mask-image: radial-gradient(ellipse 70% 75% at 50% 55%, #000 45%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 75% at 50% 55%, #000 45%, transparent 100%);
  /* fades in once, then drifts very slowly like the glow fields (transform only, composited) */
  animation: bg-bp-in 2.4s .25s ease-out forwards, bg-bp-drift 90s ease-in-out 2.6s infinite alternate; }
.bp-l .bg-bp { left: -6vw; } .bp-r .bg-bp { right: -6vw; }
.bp-r .bg-bp { animation-name: bg-bp-in, bg-bp-drift-r; }
@keyframes bg-bp-in { from { opacity: 0; } to { opacity: var(--bp-o, .08); } }
@keyframes bg-bp-drift { from { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); } to { transform: translate3d(5vw, -6vh, 0) rotate(-2deg) scale(1.06); } }
@keyframes bg-bp-drift-r { from { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); } to { transform: translate3d(-5vw, -6vh, 0) rotate(2deg) scale(1.06); } }
/* wide screens: the drawing has open gutter to sit in, so it can be a touch clearer */
@media (min-width: 2200px) { .bg-bp { --bp-o: .1; } }
@media (max-width: 760px) { .bg-bp { display: none; } }
@media (prefers-reduced-motion: reduce) { .bg-bp { animation: none; opacity: var(--bp-o, .08); } }
@media (prefers-reduced-transparency: reduce) { .bg-bp { display: none; } }

/* empty states: the page's drawing above the message */
.has-bp .bx-empty::before { content: ""; width: min(340px, 72%); aspect-ratio: 3 / 2; margin: -6px 0 2px; opacity: .42;
  background: var(--bp) center / contain no-repeat; filter: drop-shadow(0 0 14px #1f9bff33); }
.bx-empty.bx-span { grid-column: 1 / -1; }
/* a visible empty state already shows the drawing: don't repeat it in the backdrop (tabs that aren't open don't count) */
body:has(.bx-empty:not([data-panel]:not(.on) .bx-empty)) .bg-bp { display: none; }

/* ============================================================
   Type picker (_picker.html): Search's browse menu and the kit matcher's targets.
   Group tabs + filter on one line, then picture cards. Phones: the tabs scroll sideways, two cards a row.
   ============================================================ */
.tp { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.tp-top { display: flex; gap: 10px 14px; align-items: center; flex-wrap: wrap; }
.tp-groups { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: #0b0a20b3; box-shadow: inset 0 0 0 1px var(--line);
  overflow-x: auto; scrollbar-width: none; max-width: 100%; scroll-snap-type: x proximity; }
.tp-groups::-webkit-scrollbar { display: none; }
.tp-g { display: inline-flex; align-items: center; gap: 7px; flex: none; height: 34px; padding: 0 13px; border: 0; border-radius: 7px; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); background: transparent; scroll-snap-align: start; transition: color .15s, background .15s; }
.tp-g small { font-size: 11px; font-weight: 700; color: #8b86b8; }
.tp-g .ic { width: 15px; height: 15px; }
.tp-g:hover { color: var(--text); background: #ffffff0a; }
.tp-g.on { color: #fff; background: linear-gradient(135deg, #8a2bff55, #1f9bff40); box-shadow: inset 0 0 0 1px #b48cff66; }
.tp-g.on small { color: #d9ccff; }
.tp-find { display: flex; align-items: center; gap: 8px; flex: 1 1 220px; max-width: 340px; margin-left: auto; height: 42px; padding: 0 12px;
  border-radius: 10px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.tp-find:focus-within { box-shadow: inset 0 0 0 1px var(--cyan); }
.tp-find .ic { width: 15px; height: 15px; color: var(--muted); flex: none; }
body.beta .tp-find input { flex: 1; min-width: 0; height: 100%; border: 0 !important; background: transparent !important; padding: 0; font-size: 14px; outline: none; }
.tp-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(clamp(190px, 11vw, 240px), 1fr)); }
.tp-card { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; padding: 8px 12px 8px 8px; cursor: pointer;
  color: var(--text); text-decoration: none; border-radius: 8px; background: linear-gradient(180deg, #1a1846cc, #12113acc);
  box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .15s, transform .15s, background .15s; }
.tp-card[hidden] { display: none; }
.tp-card:hover { box-shadow: inset 0 0 0 1px #1f9bffaa, 0 6px 18px -8px #1f9bff66; transform: translateY(-1px); }
.tp-pic { flex: none; width: 48px; height: 48px; border-radius: 6px; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 45%, #241f6e, #0d0b2b 75%); box-shadow: inset 0 0 0 1px #1f9bff26; }
.tp-pic img { width: 88%; height: 88%; object-fit: contain; filter: drop-shadow(0 3px 5px #000a); }
.tp-txt { display: grid; min-width: 0; }
.tp-name { font-size: 13.5px; font-weight: 700; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-txt small { font-size: 11.5px; color: var(--muted); }
/* checkbox mode */
.tp-card input { position: absolute; opacity: 0; pointer-events: none; }
.tp-tick { margin-left: auto; flex: none; width: 18px; height: 18px; border-radius: 5px; box-shadow: inset 0 0 0 1.5px #6d68a8; transition: background .15s, box-shadow .15s; }
.tp-card:has(input:checked) { background: linear-gradient(135deg, #8a2bff3a, #1f9bff26); box-shadow: inset 0 0 0 1px #c38bff; }
.tp-tick { display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 900; color: #fff; }
.tp-card:has(input:checked) .tp-tick { background: var(--grad); box-shadow: none; }
.tp-card:has(input:checked) .tp-tick::after { content: "✓"; }
.tp-card:has(input:focus-visible) { outline: 2px solid var(--cyan); outline-offset: 2px; }
.tp-card.off { opacity: .45; cursor: not-allowed; }
.tp-tray { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; min-height: 34px; }
.tp-tray-chips { display: contents; }
.tp-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 12.5px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #8a2bffaa, #1f9bff88); }
.tp-chip::after { content: "×"; font-size: 15px; line-height: 1; opacity: .8; }
.tp-chip:hover::after { opacity: 1; }
.tp-foot { display: flex; gap: 16px; align-items: center; justify-content: center; }
.tp-foot:not(:has(> :not([hidden]))) { display: none; }
.tp-all { font-size: 13px; font-weight: 700; }
@media (max-width: 820px) {
  .tp-top { flex-direction: column; align-items: stretch; }
  .tp-groups { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .tp-find { max-width: none; margin-left: 0; flex: none; }
  .tp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .tp-card { gap: 8px; padding: 6px 8px 6px 6px; }
  .tp-pic { width: 40px; height: 40px; }
  .tp-name { font-size: 12.5px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}

/* Search: the browse block around the picker */
.sx-browse2 { display: grid; gap: 12px; padding: 16px; margin-bottom: 18px; border-radius: 12px;
  background: linear-gradient(180deg, #15133dcc, #0f0e30cc); box-shadow: inset 0 0 0 1px var(--line); }
.sx-browse2 > header { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sx-browse2 > header h3 { margin: 0; font-size: 17px; }
@media (max-width: 820px) { .sx-browse2 { padding: 12px; margin-inline: -4px; } }
/* the picker's sideways-scrolling tabs must not stretch the grid cell they sit in */
.tp, .bx-frow > * { min-width: 0; }

/* ============================================================
   Inventory > All items: filters, draggable rows, kits and showcases (inv.js)
   ============================================================ */
.iv-tools { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 18px; padding: 12px 14px; margin-bottom: 18px; border-radius: 12px;
  background: linear-gradient(180deg, #15133dcc, #0f0e30cc); box-shadow: inset 0 0 0 1px var(--line); }
.iv-f { display: grid; gap: 6px; }
.iv-f select { height: 36px; padding: 0 10px; min-width: 150px; max-width: 240px; }
.iv-seg { display: flex; gap: 3px; padding: 3px; border-radius: 9px; background: #0b0a20b3; box-shadow: inset 0 0 0 1px var(--line); }
.iv-seg button { height: 30px; padding: 0 11px; border: 0; border-radius: 6px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700;
  color: var(--muted); background: transparent; }
.iv-seg button:hover { color: var(--text); }
.iv-seg button.on { color: #fff; background: linear-gradient(135deg, #8a2bff66, #1f9bff4d); box-shadow: inset 0 0 0 1px #b48cff66; }
.iv-checks { display: flex; gap: 8px 14px; align-items: center; height: 36px; }
.iv-reset { align-self: end; height: 36px; }
.iv-new { display: flex; gap: 8px; margin-left: auto; align-self: end; }
.iv-new form { margin: 0; }

/* each row head: a grip on the left */
.iv-rail > .bx-rail-head { gap: 10px; }
.iv-grip { flex: none; width: 26px; height: 32px; margin-left: -6px; display: grid; place-items: center; border: 0; border-radius: 6px; cursor: grab;
  background: transparent; touch-action: none; color: #6f6aa8; }
.iv-grip i { width: 10px; height: 16px; background: radial-gradient(circle, currentColor 1.6px, transparent 2px) 0 0 / 5px 5px; }
.iv-grip:hover, .iv-grip:focus-visible { color: var(--cyan); background: #1f9bff14; }
.iv-grip:active { cursor: grabbing; }
.iv-sorting { user-select: none; }
.iv-sorting > .iv-rail > .bx-rail, .iv-sorting > .iv-rail .bx-arrows, .iv-sorting > .iv-rail .iv-acts { display: none; }
.iv-sorting > .iv-rail { padding: 2px 10px; margin-bottom: 6px; border-radius: 10px; background: #15133dcc; box-shadow: inset 0 0 0 1px var(--line);
  transition: background .15s, box-shadow .15s; }
.iv-sorting > .iv-rail.iv-lift { background: linear-gradient(135deg, #8a2bff40, #1f9bff33); box-shadow: inset 0 0 0 1px #c38bff, 0 12px 30px -10px #8a2bffaa; }
.iv-sorting > .iv-rail > .bx-shelf { display: none; }

/* your own rows */
.iv-custom > .bx-rail-head h3 { display: flex; align-items: center; gap: 8px; }
.iv-kind { font-family: var(--body, inherit); font-size: 10.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; padding: 3px 8px; border-radius: 999px;
  color: #d9ccff; background: #8a2bff33; box-shadow: inset 0 0 0 1px #8a2bff66; }
.iv-custom.kit .iv-kind { color: #9ee0ff; background: #1f9bff26; box-shadow: inset 0 0 0 1px #1f9bff66; }
.iv-sum { font-size: 13px; color: var(--muted); white-space: nowrap; }
.iv-sum b { color: var(--text); }
.iv-acts { display: flex; gap: 8px; margin-left: auto; }
.iv-custom .bx-arrows { margin-left: 0; }
.bx-skin.want .bx-pic img { opacity: .55; filter: grayscale(.4) drop-shadow(0 6px 10px #000a); }
.bx-skin.want .bx-t-sub { color: #ff9ad9; }
.iv-slot { border-style: dashed !important; }
.iv-slot .bx-pic { display: grid; place-items: center; }
.iv-plus { font-style: normal; font-size: 40px; font-weight: 300; color: #6f6aa8; transition: color .15s, transform .15s; }
.iv-slot:hover .iv-plus { color: var(--cyan); transform: scale(1.1); }
.iv-slot .bx-t-sub { color: var(--muted); }
@media (max-width: 820px) {
  .iv-tools { gap: 10px 12px; padding: 10px; }
  .iv-f select { min-width: 0; max-width: none; width: 100%; }
  label.iv-f { flex: 1 1 140px; }
  .iv-seg { overflow-x: auto; scrollbar-width: none; }
  .iv-new { margin-left: 0; width: 100%; } .iv-new form { flex: 1; } .iv-new .bx-btn { width: 100%; justify-content: center; }
  .iv-custom > .bx-rail-head { flex-wrap: wrap; }
  .iv-sum { order: 3; width: 100%; white-space: normal; padding-left: 30px; }
  .iv-acts { margin-left: auto; }
}

/* ---- the editor in the drawer ---- */
.sc { display: grid; gap: 16px; }
.sc-head { display: grid; gap: 6px; }
.sc-name { display: flex; gap: 8px; }
.sc-name input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; font-size: 18px; font-weight: 800; font-family: var(--display); }
.sc-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.sc-slot { position: relative; border-radius: 10px; background: #15133dcc; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .15s, background .15s; }
.sc-slot:not(.filled) { box-shadow: inset 0 0 0 1px #3b3780; background: transparent; outline: 1px dashed #3b378099; outline-offset: -1px; }
.sc-slot.on { box-shadow: inset 0 0 0 1.5px var(--cyan), 0 0 0 3px #1f9bff22; }
.sc-slot-main { display: flex; gap: 10px; align-items: center; width: 100%; padding: 8px; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.sc-pic { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 8px; padding: 0; border: 0; cursor: pointer;
  background: radial-gradient(circle at 50% 45%, #241f6e, #0d0b2b 75%); box-shadow: inset 0 0 0 1px #1f9bff26; }
.sc-pic img { width: 88%; height: 88%; object-fit: contain; filter: drop-shadow(0 3px 5px #000a); }
.sc-pic i { font-style: normal; font-size: 26px; color: #6f6aa8; }
.sc-txt { display: grid; gap: 1px; min-width: 0; }
.sc-txt .bx-label { font-size: 10px; }
.sc-n { font-size: 13px; font-weight: 700; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sc-txt small { font-size: 11.5px; color: var(--muted); }
.sc-slot.want .sc-txt small, .sc-row.want .sc-txt small { color: #ff9ad9; }
.sc-slot.want .sc-pic img, .sc-row.want .sc-pic img { opacity: .6; }
.sc-slots:empty { display: none; }
.sc-addslots { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.sc-addslots > .bx-label { margin-right: 4px; }
.sc-slot.sc-chip { border-radius: 999px; outline: 0; box-shadow: inset 0 0 0 1px #3b3780; }
.sc-slot.sc-chip .sc-slot-main { gap: 5px; padding: 5px 11px 5px 9px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.sc-slot.sc-chip i { font-style: normal; color: #8f8ad0; }
.sc-slot.sc-chip small { padding: 0 6px; border-radius: 999px; background: #8a2bff33; color: #e6c8ff; font-size: 11px; }
.sc-slot.sc-chip.has .sc-slot-main { color: var(--text); }
.sc-slot.sc-chip:hover { box-shadow: inset 0 0 0 1px var(--cyan); }
.sc-slot.sc-chip.on { box-shadow: inset 0 0 0 1.5px var(--cyan), 0 0 0 3px #1f9bff22; background: #1f9bff1a; }
.sc-x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border: 0; border-radius: 6px; cursor: pointer; font-size: 15px; line-height: 1;
  color: var(--muted); background: #0b0a20cc; }
.sc-x:hover { color: #fff; background: #e21cf0aa; }
.sc-list { display: grid; gap: 6px; }
.sc-row { position: relative; display: flex; align-items: center; gap: 10px; padding: 6px 34px 6px 6px; border-radius: 10px; background: #15133dcc; box-shadow: inset 0 0 0 1px var(--line); }
.sc-row .sc-txt { flex: 1; }
.sc-row .sc-x { top: 50%; transform: translateY(-50%); right: 8px; }
.sc-moves { display: flex; gap: 2px; }
.sc-mv { width: 26px; height: 26px; border: 0; border-radius: 6px; cursor: pointer; font-size: 16px; color: var(--muted); background: #0b0a2099; }
.sc-mv:hover:not(:disabled) { color: #fff; background: #1f9bff44; } .sc-mv:disabled { opacity: .3; cursor: default; }
.sc-add { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.sc-addhead { display: flex; align-items: center; gap: 10px; }
.sc-filling { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 10px; border-radius: 999px; font-size: 12.5px; color: #9ee0ff; background: #1f9bff1f; box-shadow: inset 0 0 0 1px #1f9bff55; }
.sc-filling[hidden] { display: none; }
.sc-unpick { width: 20px; height: 20px; border: 0; border-radius: 50%; cursor: pointer; color: inherit; background: #0b0a2099; }
.sc-q { margin: 0; width: 100%; box-sizing: border-box; }
.sc-results { display: grid; gap: 10px; min-height: 40px; transition: opacity .15s; }
.sc-results.loading { opacity: .5; }
.sc-sets { display: grid; gap: 6px; }
.sc-set { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border-radius: 10px; background: linear-gradient(135deg, #8a2bff1f, #1f9bff14); box-shadow: inset 0 0 0 1px #8a2bff44; }
.sc-set .sc-n { flex: 1; } .sc-set small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.sc-found { display: grid; gap: 6px; }
.sc-hit { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 6px; border-radius: 10px; background: #15133dcc; box-shadow: inset 0 0 0 1px var(--line); }
.sc-hit .sc-txt { flex: 1; }
.sc-hit.mine .sc-txt small { color: #5dffa8; }
.sc-hit.added { opacity: .6; }
.sc-foot { display: flex; gap: 10px; justify-content: space-between; align-items: center; padding-top: 8px; border-top: 1px solid var(--line); }
.sc-foot form { margin-left: auto; }
.sc-del:hover { color: #fff; box-shadow: inset 0 0 0 1px #ff5ab8; background: #e21cf026; }
.dr-addto { display: flex; gap: 8px; align-items: center; } .dr-addto select { flex: 1; min-width: 0; height: 34px; padding: 0 10px; }
.bx-chip.mine span { box-shadow: inset 0 0 0 1px #1f9bff88; }
/* with a grip in front, keep the title on the left and push the controls right */
.iv-rail > .bx-rail-head { justify-content: flex-start; }
.iv-rail > .bx-rail-head > h3 { margin-right: 0; }
.iv-rail > .bx-rail-head > .bx-arrows { margin-left: auto; }
.iv-custom > .bx-rail-head > .iv-acts + .bx-arrows { margin-left: 0; }
/* phones: page sections may shrink below their content; long tab bars scroll sideways instead of widening the page */
.bx > * { min-width: 0; }
@media (max-width: 820px) {
  .bx-bar { min-width: 0; }
  .bx-tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .bx-tabs::-webkit-scrollbar { display: none; }
  .bx-tabs > button { flex: none; }
}
.bx-panel { grid-template-columns: minmax(0, 1fr); }
.iv-emptyrow { margin: 4px 4px 18px 34px; }
.iv-emptyrow .lnk { background: none; border: 0; padding: 0; font: inherit; color: var(--cyan); cursor: pointer; }
