/* The Blade Exchange: its own trading-floor look (forge-black, ember gold, neon rarity edges) on top of site.css. */
.bx {
  --bx-bg: #0b0a10; --bx-panel: #14121c; --bx-panel-2: #1c1927; --bx-line: #2c2838; --bx-gold: #ffc247; --bx-ember: #ff6a3d;
  --bx-text: #f2eefc; --bx-dim: #a7a0bd;
  --r-plain: #c9ccd1; --r-common: #9aa5b1; --r-uncommon: #4fc36b; --r-rare: #5b97ff;
  --r-legendary: #f0a830; --r-mythic: #d36bff; --r-limited: #ff5a6a; --r-seasonal: #3fd6d0;
  background: var(--bx-bg); color: var(--bx-text);
}
[data-r="plain"] { --rc: var(--r-plain); } [data-r="common"] { --rc: var(--r-common); } [data-r="uncommon"] { --rc: var(--r-uncommon); }
[data-r="rare"] { --rc: var(--r-rare); } [data-r="legendary"] { --rc: var(--r-legendary); } [data-r="mythic"] { --rc: var(--r-mythic); }
[data-r="limited"] { --rc: var(--r-limited); } [data-r="seasonal"] { --rc: var(--r-seasonal); } [data-r="supporter"] { --rc: #ffd84a; }
.pix { image-rendering: pixelated; image-rendering: crisp-edges; }
.bx code { font-family: var(--font-mono); background: var(--bx-panel-2); border: 1px solid var(--bx-line); border-radius: 6px; padding: 1px 6px; font-size: .92em; }

/* ---------------------------------------------------------------- hero + ticker */
.bx-hero { position: relative; border-bottom: 1px solid var(--bx-line);
  background:
    linear-gradient(180deg, transparent 60%, var(--bx-bg)),
    repeating-linear-gradient(90deg, transparent 0 79px, #ffffff08 79px 80px),
    radial-gradient(70% 120% at 80% 0%, #ff6a3d33, transparent 60%),
    radial-gradient(60% 100% at 0% 100%, #d36bff26, transparent 60%), #0e0c15; }
.bx-ticker { overflow: hidden; border-bottom: 1px solid var(--bx-line); background: #07060b; font-family: var(--font-mono); font-size: 13px; }
.bx-ticker-track { display: flex; gap: 28px; width: max-content; padding: 8px 0; animation: bx-scroll 60s linear infinite; }
.bx-ticker-track span { white-space: nowrap; color: var(--bx-dim); }
.bx-ticker-track b { color: var(--rc, var(--bx-text)); font-weight: 800; }
.bx-ticker-track .up { color: var(--r-uncommon); } .bx-ticker-track .down { color: var(--r-limited); }
@keyframes bx-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .bx-ticker-track { animation: none; } }

.bx-hero-in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 34px 16px 30px; }
.bx-kicker { margin: 0 0 8px; color: var(--bx-gold); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; }
.bx-title { margin: 0; font-size: clamp(40px, 7.5vw, 78px); line-height: .95; letter-spacing: -0.02em; text-transform: uppercase; font-weight: 900; }
.bx-title span:first-child { color: var(--bx-text); }
.bx-title span:last-child { background: linear-gradient(90deg, var(--bx-gold), var(--bx-ember) 60%, #d36bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bx-lede { color: var(--bx-dim); font-size: 18px; max-width: 48ch; margin: 14px 0 16px; }
.bx-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.bx-quick a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; border: 1px solid var(--bx-line);
  color: var(--bx-text); text-decoration: none; font-weight: 750; font-size: 14px; background: #ffffff08; }
.bx-quick a:hover { border-color: var(--bx-gold); color: var(--bx-gold); }

.bx-account { background: var(--bx-panel); border: 1px solid var(--bx-line); border-radius: 18px; padding: 18px; box-shadow: 0 20px 50px #0008, inset 0 1px 0 #ffffff0d; }
.bx-account h2 { margin: 0 0 6px; font-size: 18px; }
.bx-account p { margin: 0 0 10px; color: var(--bx-dim); font-size: 15px; }
.bx-acc-load { color: var(--bx-dim); }
.bx-acc-row { display: flex; gap: 8px; }
.bx-acc-row input { flex: 1; min-width: 0; }
.bx-bal { font-size: 30px; font-weight: 900; color: var(--bx-gold); margin: 2px 0 8px; font-variant-numeric: tabular-nums; }
.bx-me { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.bx-me img { width: 40px; height: 40px; border-radius: 8px; }
.bx-me strong { font-size: 18px; }
@media (max-width: 800px) { .bx-hero-in { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- shared bits */
.bx-main { display: grid; gap: 22px; padding-top: 22px; padding-bottom: 48px; }
.bx-panel { background: var(--bx-panel); border: 1px solid var(--bx-line); border-radius: 18px; padding: 20px; box-shadow: inset 0 1px 0 #ffffff0a; }
@media (max-width: 560px) { .bx-panel { padding: 14px; } }
.bx-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 14px; }
.bx-head h2 { margin: 0; font-size: 26px; text-transform: uppercase; letter-spacing: .02em; }
.bx-h3 { margin: 0 0 10px; font-size: 16px; text-transform: uppercase; letter-spacing: .06em; color: var(--bx-gold); }
.bx-sub, .bx-note { margin: 0; color: var(--bx-dim); font-size: 14px; }
.bx-note { margin-top: 14px; }
.bx input, .bx select { min-height: 44px; border-radius: 10px; border: 1px solid var(--bx-line); background: var(--bx-panel-2); color: var(--bx-text); padding: 0 12px; font: inherit; }
.bx input:focus-visible, .bx select:focus-visible, .bx-btn:focus-visible { outline: 3px solid var(--bx-gold); outline-offset: 2px; }
.bx-btn { min-height: 44px; padding: 0 18px; border-radius: 10px; border: 0; cursor: pointer; font: inherit; font-weight: 850;
  background: linear-gradient(180deg, var(--bx-gold), #f29a2e); color: #2a1600; box-shadow: 0 6px 16px #ff9a2e33; }
.bx-btn:hover { filter: brightness(1.08); }
.bx-btn.ghost { background: transparent; color: var(--bx-text); border: 1px solid var(--bx-line); box-shadow: none; }
.bx-btn.small { min-height: 36px; padding: 0 12px; font-size: 14px; }
.bx-btn[disabled] { opacity: .5; cursor: not-allowed; }
.bx-link { background: none; border: 0; color: var(--bx-dim); text-decoration: underline; cursor: pointer; font: inherit; font-size: 14px; padding: 6px 0; min-height: 32px; }
.bx-tag { font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--rc); }

/* ---------------------------------------------------------------- market */
.bx-tools { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.bx-field { flex: 1 1 240px; display: flex; }
.bx-field input { width: 100%; }
.bx-sel { flex: 0 1 auto; align-items: center; gap: 8px; color: var(--bx-dim); font-weight: 700; font-size: 14px; }
.bx-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.bx-card { position: relative; display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: linear-gradient(180deg, var(--bx-panel-2), var(--bx-panel));
  border: 1px solid color-mix(in oklch, var(--rc) 45%, var(--bx-line)); box-shadow: 0 0 0 0 transparent; transition: box-shadow .2s, transform .2s; }
.bx-card:hover { box-shadow: 0 0 24px color-mix(in oklch, var(--rc) 35%, transparent); transform: translateY(-2px); }
.bx-card .art { display: grid; place-items: center; height: 120px; border-radius: 10px; background: radial-gradient(circle, color-mix(in oklch, var(--rc) 30%, transparent), transparent 70%); }
.bx-card .art img { width: 96px; height: 96px; }
.bx-card h3 { margin: 0; font-size: 18px; display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.bx-card .serial { color: var(--bx-dim); font-size: 13px; font-weight: 700; }
.bx-price { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.bx-price strong { font-size: 22px; color: var(--bx-gold); font-variant-numeric: tabular-nums; }
.bx-deal { font-size: 12px; font-weight: 850; padding: 2px 8px; border-radius: 999px; }
.bx-deal.good { background: #4fc36b26; color: #7fe39a; } .bx-deal.high { background: #ff5a6a22; color: #ff9aa4; } .bx-deal.fair { background: #ffffff10; color: var(--bx-dim); }
.bx-card .seller { color: var(--bx-dim); font-size: 13px; }
.bx-empty { color: var(--bx-dim); padding: 18px 0; }

/* ---------------------------------------------------------------- locker */
.bx-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .bx-two { grid-template-columns: minmax(0, 1fr); } }
.bx-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bx-rows li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px;
  background: var(--bx-panel-2); border-left: 4px solid var(--rc); }
.bx-rows img { width: 44px; height: 44px; }
.bx-rows .nm { font-weight: 800; }
.bx-rows small { display: block; color: var(--bx-dim); }

/* ---------------------------------------------------------------- celebrate */
.bx-celebrate { position: relative; overflow: hidden; border-radius: 18px; padding: 20px; border: 1px solid #ffc24766;
  background: radial-gradient(80% 140% at 50% 0%, #ffc24733, transparent 70%), var(--bx-panel); }
.bx-celebrate h2 { margin: 0 0 12px; font-size: 26px; text-transform: uppercase; position: relative; }
.bx-cel-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; flex-wrap: wrap; position: relative; }
.bx-cel-list li { display: flex; gap: 12px; align-items: center; padding: 10px 14px 10px 10px; border-radius: 14px; background: #0009; border: 1px solid var(--rc); box-shadow: 0 0 22px color-mix(in oklch, var(--rc) 40%, transparent); }
.bx-cel-list img.k { width: 56px; height: 56px; animation: bx-bob 2.4s ease-in-out infinite alternate; }
.bx-cel-list .who { font-weight: 900; font-size: 17px; }
.bx-cel-list .what { color: var(--rc); font-weight: 850; }
.bx-cel-list small { display: block; color: var(--bx-dim); }
@keyframes bx-bob { from { transform: translateY(0) rotate(-6deg); } to { transform: translateY(-6px) rotate(6deg); } }
.bx-confetti { position: absolute; inset: 0; pointer-events: none; }
.bx-confetti i { position: absolute; top: -12px; width: 8px; height: 12px; border-radius: 2px; opacity: .9; animation: bx-fall linear infinite; }
@keyframes bx-fall { to { transform: translateY(260px) rotate(540deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bx-confetti { display: none; } .bx-cel-list img.k { animation: none; } }

/* ---------------------------------------------------------------- hall of pulls */
.bx-hall-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 22px; }
@media (max-width: 860px) { .bx-hall-grid { grid-template-columns: minmax(0, 1fr); } }
.bx-podium { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: h; }
.bx-podium li { counter-increment: h; display: grid; grid-template-columns: 34px 52px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px; border-radius: 12px;
  background: linear-gradient(90deg, color-mix(in oklch, var(--rc) 18%, transparent), transparent 60%), var(--bx-panel-2); }
.bx-podium li::before { content: counter(h); font-weight: 900; font-size: 18px; text-align: center; color: var(--bx-dim); }
.bx-podium li:nth-child(1)::before { content: "\1F947"; } .bx-podium li:nth-child(2)::before { content: "\1F948"; } .bx-podium li:nth-child(3)::before { content: "\1F949"; }
.bx-podium li:nth-child(-n+3) { border: 1px solid color-mix(in oklch, var(--rc) 50%, transparent); }
.bx-podium img.k { width: 52px; height: 52px; }
.bx-podium .line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bx-podium .line img.face { width: 24px; height: 24px; border-radius: 5px; }
.bx-podium .what { color: var(--rc); font-weight: 850; }
.bx-podium small { color: var(--bx-dim); }
.bx-podium .v { font-weight: 900; color: var(--bx-gold); font-variant-numeric: tabular-nums; text-align: right; }
.bx-luck { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: l; }
.bx-luck li { counter-increment: l; display: grid; grid-template-columns: 22px 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.bx-luck li::before { content: counter(l); color: var(--bx-gold); font-weight: 900; text-align: center; }
.bx-luck img { width: 34px; height: 34px; border-radius: 7px; }
.bx-luck small { display: block; color: var(--bx-dim); }
.bx-luck .n { font-weight: 900; color: var(--bx-gold); }

/* ---------------------------------------------------------------- drops */
.bx-drops { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.bx-drops > li { padding: 14px; border-radius: 14px; background: var(--bx-panel-2); border: 1px solid var(--bx-line); display: grid; gap: 10px; }
.bx-drops > li.live { border-color: #4fc36b88; box-shadow: 0 0 22px #4fc36b22; }
.bx-drops > li.over { opacity: .6; }
.bx-drops h3 { margin: 0; font-size: 17px; display: flex; justify-content: space-between; gap: 8px; }
.bx-live { font-size: 12px; font-weight: 900; color: #7fe39a; text-transform: uppercase; letter-spacing: .08em; }
.bx-live::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #4fc36b; margin-right: 6px; animation: bx-pulse 1.4s infinite; }
@keyframes bx-pulse { 50% { opacity: .3; } }
.bx-drops .when { color: var(--bx-dim); font-size: 13px; margin: 0; }
.bx-drop-skins { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bx-drop-skins li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 14px; }
.bx-drop-skins img { width: 36px; height: 36px; }
.bx-meter { height: 6px; border-radius: 99px; background: #ffffff14; overflow: hidden; margin-top: 3px; }
.bx-meter span { display: block; height: 100%; background: var(--rc); }
.bx-left { font-weight: 800; font-size: 13px; color: var(--bx-dim); white-space: nowrap; }

/* ---------------------------------------------------------------- dialog + toast */
.bx-dlg { border: 1px solid var(--bx-line); border-radius: 18px; background: var(--bx-panel); color: var(--bx-text); padding: 20px; width: min(420px, calc(100vw - 32px)); }
.bx-dlg::backdrop { background: #000b; }
.bx-dlg h2 { margin: 0 0 12px; }
.bx-dlg-art { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.bx-dlg-art img { width: 64px; height: 64px; }
.bx-dlg label { display: grid; gap: 6px; font-weight: 750; }
.bx-dlg-btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.bx-err { color: #ff9aa4; min-height: 1.2em; margin: 8px 0 0; }
.bx-toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h, 0px) + 18px); transform: translate(-50%, 140%); background: #000d; border: 1px solid var(--bx-gold);
  color: var(--bx-text); padding: 12px 18px; border-radius: 12px; font-weight: 750; transition: transform .25s var(--ease, ease); z-index: 60; max-width: calc(100vw - 32px); }
.bx-toast.show { transform: translate(-50%, 0); }
.bx-foot { color: var(--bx-dim); padding: 18px 0 calc(var(--tabbar-h, 0px) + 18px); font-size: 13px; }

/* empty states span the whole list; hidden toast never peeks */
.bx-grid > .bx-empty, .bx-podium > .bx-empty, .bx-luck > .bx-empty, .bx-rows > .bx-empty { grid-column: 1 / -1; display: block; background: none; border: 0; padding: 12px 0; }
.bx-podium > .bx-empty::before, .bx-luck > .bx-empty::before { content: none; }
.bx-toast { visibility: hidden; }
.bx-toast.show { visibility: visible; }

/* supporter shop */
.bx-sup { border-color: #ffd84a55; background: radial-gradient(70% 120% at 100% 0%, #ffd84a1f, transparent 60%), var(--bx-panel); }
.bx-sup-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.bx-sup-card { display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: var(--bx-panel-2); border: 1px solid #ffd84a44; align-content: start; }
.bx-sup-card .art { display: grid; place-items: center; height: 110px; border-radius: 10px; background: radial-gradient(circle, #ffd84a33, transparent 70%); }
.bx-sup-card .art img { width: 90px; height: 90px; }
.bx-sup-card h3 { margin: 0; font-size: 18px; color: #ffe27a; }
.bx-sup-card .bx-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.bx-sup-rules { margin-top: 16px; display: grid; gap: 6px; color: var(--bx-dim); font-size: 14px; max-width: 80ch; }
.bx-sup-rules p { margin: 0; }
.bx-sup-rules strong { color: var(--bx-text); }

.bx-mt { margin-top: 22px; }
