/* ============================================================
   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; }
