/* bags.css — BAGS GALAXY (arcircle.app/bags) */
:root {
  --bg: #0a0716; --glass: rgba(18, 12, 38, 0.62); --glass2: rgba(24, 16, 50, 0.8); --line: rgba(200, 180, 255, 0.16); --line2: rgba(220, 200, 255, 0.36);
  --ink: #f4f0ff; --dim: #a99fcc; --mint: #c6b3ff; --green: #5effb1; --gold: #ffd98a; --red: #ff6f91; --buy: #5effb1; --sell: #ff6f91;
  --r: 14px; --pad: 16px; --sa-b: env(safe-area-inset-bottom, 0px); --sa-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font: 14px/1.4 Sora, system-ui, sans-serif; overflow: hidden; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a { color: var(--mint); text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
#bg-c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.bg-labels { position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.bg-top, .bg-stats, .bg-side, .bg-bottom, .bg-card, .bg-note { position: fixed; z-index: 2; }
.bg-live, .bg-st, .bg-side, .bg-card, .bg-note, .bg-tools select, .bg-btn, .bg-tr {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}

/* top */
.bg-top { top: calc(var(--pad) + var(--sa-t)); left: var(--pad); right: var(--pad); display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; pointer-events: none; }
.bg-top > * { pointer-events: auto; }
.bg-brand h1 { margin: 0; font: 900 30px/1 "Exo 2", sans-serif; letter-spacing: 0.04em; }
.bg-brand .b1 { color: #fff; } .bg-brand .b2 { background: linear-gradient(90deg, var(--mint), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bg-brand .bg-mode { display: none; color: var(--mint) !important; }
.bg-brand p { margin: 6px 0 0; color: var(--dim); font-size: 13px; } .bg-brand .bg-by { font-size: 11.5px; opacity: 0.85; }
.bg-tools { display: flex; gap: 8px; align-items: center; }
.bg-tools select { color: var(--ink); padding: 8px 10px; font-size: 12.5px; }
.bg-live { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: 12.5px; white-space: nowrap; flex-shrink: 0; }
.bg-live i { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); }
.bg-live.on i { background: var(--mint); animation: bg-pulse 1.6s infinite; }
.bg-live.bad i { background: var(--red); }
@keyframes bg-pulse { 0% { box-shadow: 0 0 0 0 rgba(198, 179, 255, 0.6); } 100% { box-shadow: 0 0 0 9px rgba(198, 179, 255, 0); } }
.bg-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; color: var(--ink); font-size: 12.5px; }
.bg-btn:hover { border-color: var(--line2); }

/* stats */
.bg-stats { top: var(--stats-top, calc(118px + var(--sa-t))); left: var(--pad); display: grid; grid-template-columns: repeat(2, minmax(130px, 1fr)); gap: 8px; width: min(320px, calc(100vw - 2 * var(--pad))); }
.bg-st { padding: 10px 12px; }
.bg-st b { font: 800 20px/1.1 "Exo 2", sans-serif; }
.bg-st span { display: block; margin-top: 3px; color: var(--dim); font-size: 11px; }
.bg-st.gold b { color: var(--gold); text-shadow: 0 0 14px rgba(255, 209, 102, 0.35); }

/* side list */
.bg-side { top: calc(118px + var(--sa-t)); right: var(--pad); width: 330px; max-height: calc(100vh - 260px - var(--sa-t)); display: flex; flex-direction: column; padding: 8px; }
.bg-handle { display: none; }
.bg-tabs { display: flex; gap: 4px; margin-bottom: 6px; }
.bg-tabs button { flex: 1; background: none; border: 1px solid transparent; border-radius: 10px; padding: 7px 4px; color: var(--dim); font-size: 12.5px; font-weight: 600; }
.bg-tabs button.on { color: var(--ink); background: rgba(198, 179, 255, 0.08); border-color: var(--line); }
.bg-list { overflow-y: auto; min-height: 0; flex: 1; }
.bg-row { display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 6px; border: 0; border-radius: 10px; background: none; text-align: left; color: var(--ink); }
.bg-row:hover { background: rgba(198, 179, 255, 0.07); }
.bg-row em { width: 18px; color: var(--dim); font: 700 11px "JetBrains Mono", monospace; text-align: right; flex-shrink: 0; }
.bg-row span { flex: 1; min-width: 0; }
.bg-row span b, .bg-row span small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bg-row span small { color: var(--dim); font-size: 11px; display: flex; align-items: center; gap: 4px; }
.bg-row strong { color: var(--gold); font: 700 12.5px "JetBrains Mono", monospace; flex-shrink: 0; }
.bg-sub { color: var(--dim); font-size: 11.5px; margin: 4px 6px 8px; }
.bg-hint { color: var(--dim); font-size: 11px; margin: 8px 6px 2px; }

/* pictures */
.pf, .lg { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: #1d1440; border: 1.5px solid rgba(255, 255, 255, 0.25); }
.lg { border-radius: 50%; border-color: rgba(198, 179, 255, 0.5); }
.pf.sm, .lg.sm { width: 18px; height: 18px; border-width: 1px; }
.pf.xl, .lg.xl { width: 58px; height: 58px; border-width: 2px; }
i.ph { display: inline-flex; align-items: center; justify-content: center; font: 800 11px "Exo 2", sans-serif; font-style: normal; color: var(--ink); background: linear-gradient(135deg, #0f4a35, #133a5a); }
i.ph.sm { font-size: 8px; } i.ph.xl { font-size: 20px; }

/* chips over the 3D */
.bg-chip { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: 0; padding: 0; pointer-events: auto; will-change: transform, opacity; transition: opacity 0.3s; }
.bg-chip b { font: 700 11.5px "Exo 2", sans-serif; letter-spacing: 0.02em; white-space: nowrap; padding: 1px 7px; border-radius: 99px; background: rgba(10, 6, 22, 0.62); text-shadow: 0 1px 2px #000; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.bg-chip.tok .lg { width: 40px; height: 40px; box-shadow: 0 0 18px rgba(198, 179, 255, 0.45); border: 2px solid rgba(215, 200, 255, 0.75); }
.bg-chip.tok b { color: #f1eaff; }
.bg-chip.tok { gap: 2px; transform-origin: 50% 20px; }
.bg-chip.pp .pf { width: 32px; height: 32px; box-shadow: 0 0 14px rgba(255, 255, 255, 0.35); border: 2px solid rgba(255, 255, 255, 0.85); }
.bg-chip.pp b { color: #fff; font-size: 11px; }
.bg-chip:hover b { background: rgba(198, 179, 255, 0.25); }
.bg-pop { position: absolute; left: 0; top: 0; font: 800 14px "Exo 2", sans-serif; color: var(--mint); text-shadow: 0 0 10px rgba(198, 179, 255, 0.7), 0 1px 2px #000; white-space: nowrap; }
.bg-pop.big { color: var(--gold); font-size: 19px; text-shadow: 0 0 14px rgba(255, 209, 102, 0.8), 0 1px 2px #000; }
.bg-pop.xm { color: var(--gold); }

/* tape */
.bg-bottom { left: var(--pad); right: calc(330px + 2 * var(--pad)); bottom: calc(var(--pad) + var(--sa-b)); pointer-events: none; }
.bg-tape { display: flex; flex-direction: column-reverse; gap: 6px; align-items: flex-start; }
.bg-tr { pointer-events: auto; display: flex; align-items: center; gap: 7px; padding: 6px 10px; font-size: 12.5px; max-width: 100%; }
.bg-tr.in { animation: bg-in 0.35s ease-out; }
.bg-tr .tk { font-weight: 700; color: #f1eaff; } .bg-tr .ar { color: var(--dim); }
.bg-tr .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.bg-tr b { color: var(--mint); font-family: "JetBrains Mono", monospace; }
.bg-tr.big { border-color: rgba(255, 209, 102, 0.5); } .bg-tr.big b, .bg-tr.xm b { color: var(--gold); }
.bg-tr .fc { font-style: normal; font-size: 10px; padding: 1px 6px; border-radius: 99px; background: rgba(198, 179, 255, 0.15); color: var(--mint); }
@keyframes bg-in { from { opacity: 0; transform: translateY(8px); } }

/* card */
body.bg-carding .bg-side { display: none; }
.bg-card { right: var(--pad); bottom: calc(var(--pad) + var(--sa-b)); width: 340px; padding: 16px; background: var(--glass2); z-index: 3; }
.bg-x { position: absolute; top: 8px; right: 10px; background: none; border: 0; font-size: 22px; color: var(--dim); }
.bg-ch { display: flex; gap: 12px; align-items: center; }
.bg-ch small { color: var(--dim); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.bg-ch h3 { margin: 2px 0; font: 800 18px "Exo 2", sans-serif; word-break: break-word; }
.bg-ch p { margin: 0; color: var(--dim); font-size: 12px; }
.bg-cst { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.bg-cst div { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.bg-cst b { font: 800 17px "Exo 2", sans-serif; color: var(--gold); } .bg-cst span { display: block; color: var(--dim); font-size: 11px; }
.bg-cl a { display: flex; align-items: center; gap: 8px; padding: 5px 2px; color: var(--ink); font-size: 12.5px; border-bottom: 1px solid rgba(200, 180, 255, 0.07); }
.bg-cl a span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bg-cl a b { color: var(--mint); font: 700 12px "JetBrains Mono", monospace; } .bg-cl a small { color: var(--dim); font-size: 10.5px; width: 30px; text-align: right; }
.bg-acts { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

.bg-note { top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 10px 16px; font-size: 13px; z-index: 4; }
body:has(.bg-splash.off) .bg-note { top: auto; bottom: calc(80px + var(--sa-b)); transform: translateX(-50%); }
.bg-splash { position: fixed; inset: 0; z-index: 5; display: grid; place-items: center; background: radial-gradient(circle at 50% 50%, #062417, #020806 70%); transition: opacity 0.8s; }
.bg-splash.off { opacity: 0; pointer-events: none; }
.bg-splash div { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.bg-splash b { font: 900 34px "Exo 2", sans-serif; letter-spacing: 0.06em; background: linear-gradient(90deg, var(--mint), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bg-splash span { color: var(--dim); font-size: 13px; }

@media (max-width: 760px) {
  :root { --pad: 12px; }
  .bg-top { gap: 8px; }
  .bg-brand { min-width: 0; }
  .bg-brand h1 { font-size: 21px; white-space: nowrap; } .bg-brand p { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .bg-brand .bg-by { display: none; }
  .bg-live { padding: 9px 10px; font-size: 11.5px; } .bg-live #bg-live-t { display: none; }
  .bg-brand { flex: 1 1 auto; } .bg-brand .bg-mode { display: block; }
  .bg-tools select { padding: 7px 6px; font-size: 11.5px; }
  .bg-tools .bg-btn { display: none; }
  .bg-stats { top: var(--stats-top, calc(88px + var(--sa-t))); grid-template-columns: repeat(4, 1fr); width: calc(100vw - 2 * var(--pad)); gap: 6px; }
  .bg-st { padding: 7px 8px; } .bg-st b { font-size: 15px; } .bg-st span { font-size: 9.5px; line-height: 1.2; }
  .bg-side { top: auto; bottom: calc(var(--pad) + var(--sa-b)); left: var(--pad); right: var(--pad); width: auto; max-height: 152px; padding: 4px 6px 6px; transition: max-height 0.35s cubic-bezier(.2,.8,.2,1); }
  .bg-side.open { max-height: 62vh; }
  .bg-handle { display: block; width: 100%; height: 16px; background: none; border: 0; padding: 0; }
  .bg-handle i { display: block; width: 40px; height: 4px; margin: 4px auto; border-radius: 4px; background: rgba(215, 200, 255, 0.35); }
  .bg-hint { display: none; }
  .bg-row { padding: 5px 4px; } .bg-row .pf, .bg-row .lg { width: 26px; height: 26px; }
  .bg-tabs button { padding: 5px 4px; }
  .bg-bottom { right: var(--pad); bottom: calc(var(--sheet, 152px) + 2 * var(--pad) + var(--sa-b)); transition: bottom 0.35s; }
  .bg-tr { font-size: 11.5px; padding: 5px 8px; } .bg-tr .nm { max-width: 110px; }
  .bg-card { left: var(--pad); right: var(--pad); width: auto; max-height: 70vh; overflow-y: auto; }
  .bg-chip.tok { transform-origin: 50% 15px; } .bg-chip.tok .lg { width: 30px; height: 30px; } .bg-chip.pp .pf { width: 24px; height: 24px; } .bg-chip b { font-size: 10px; }
}

/* BX2: tiers, moments, motion */
.bg-splash { background-size: cover; background-position: center; }
.bg-chip.pp.t1 .pf { border-color: var(--mint); box-shadow: 0 0 16px rgba(198, 179, 255, 0.6); }
.bg-chip.pp.t2 .pf { border-color: var(--gold); box-shadow: 0 0 20px rgba(255, 209, 102, 0.75); }
.bg-chip.pp.t3 .pf { border: 2px solid transparent; background: linear-gradient(#1d1440, #1d1440) padding-box, conic-gradient(from var(--a, 0deg), #ff6fd8, #ffd166, #3dffa0, #3ce6ff, #a98bff, #ff6fd8) border-box; box-shadow: 0 0 24px rgba(255, 209, 102, 0.8); animation: bg-spin 3s linear infinite; }
img.pf { background: #1d1440; }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes bg-spin { to { --a: 360deg; } }
.bg-chip.tok.new::after { content: "NEW"; position: absolute; top: -2px; right: -14px; font: 800 8.5px "Exo 2", sans-serif; letter-spacing: 0.06em; padding: 1px 5px; border-radius: 99px; background: var(--mint); color: #120a28; }
.bg-pop.xm { color: var(--gold); font-size: 13px; }
.bg-pop.first { color: #fff; font-size: 13px; text-shadow: 0 0 12px rgba(255, 255, 255, 0.8), 0 1px 2px #000; }
.bg-st { position: relative; overflow: hidden; transition: border-color 0.3s; }
.bg-st.bump { border-color: var(--line2); }
.bg-st i { font-style: normal; font-size: 10px; margin-left: 5px; vertical-align: 3px; } .bg-st i.up { color: var(--mint); } .bg-st i.dn { color: var(--red); }
.bg-sp { position: absolute; right: 10px; top: 12px; width: 48px; height: 14px; fill: rgba(198, 179, 255, 0.45); }
.bg-st.gold .bg-sp { fill: rgba(255, 209, 102, 0.5); }
.bg-whale { position: fixed; z-index: 4; top: calc(116px + var(--sa-t)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 99px; background: linear-gradient(90deg, rgba(60, 40, 0, 0.85), rgba(110, 80, 10, 0.9), rgba(60, 40, 0, 0.85)); border: 1px solid rgba(255, 209, 102, 0.7); box-shadow: 0 0 40px rgba(255, 209, 102, 0.45); font-size: 13px; white-space: nowrap; pointer-events: none; }
.bg-whale strong { color: var(--gold); font: 900 18px "Exo 2", sans-serif; text-shadow: 0 0 14px rgba(255, 209, 102, 0.9); }
.bg-whale.go { animation: bg-whale 4.2s ease-out forwards; }
@keyframes bg-whale { 0% { opacity: 0; transform: translateX(-50%) scale(0.6); } 8% { opacity: 1; transform: translateX(-50%) scale(1.08); } 14% { transform: translateX(-50%) scale(1); } 85% { opacity: 1; } 100% { opacity: 0; transform: translateX(-50%) translateY(-10px); } }
body.bg-intro .bg-stats, body.bg-intro .bg-side, body.bg-intro .bg-bottom { opacity: 0; transform: translateY(10px); }
.bg-stats, .bg-side, .bg-bottom { transition: opacity 0.8s ease, transform 0.8s ease, max-height 0.35s cubic-bezier(.2,.8,.2,1), bottom 0.35s; }
body.bg-intro .bg-brand h1 { animation: bg-title 3.4s ease both; }
@keyframes bg-title { 0% { opacity: 0; letter-spacing: 0.4em; } 40% { opacity: 1; } 100% { letter-spacing: 0.04em; } }
@media (prefers-reduced-motion: reduce) { .bg-chip.pp.t3 .pf, .bg-whale.go, body.bg-intro .bg-brand h1 { animation: none; } }
@media (max-width: 760px) { .bg-sp { display: none; } .bg-whale { top: calc(164px + var(--sa-t)); font-size: 11.5px; padding: 8px 12px; } .bg-whale strong { font-size: 15px; } .bg-tools #bg-snd { display: inline-flex; padding: 7px 8px; } }

/* BX3: find, follow, split, daily, embed / OBS */
.bg-find { display: flex; gap: 6px; margin-bottom: 6px; }
.bg-find input { flex: 1; min-width: 0; background: rgba(10, 6, 22, 0.55); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); padding: 7px 10px; font: inherit; font-size: 12.5px; }
.bg-find input:focus { outline: none; border-color: var(--line2); }
.bg-find button { background: rgba(198, 179, 255, 0.1); border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; font-size: 15px; }
.bg-btn.on { border-color: var(--gold); color: var(--gold); }
.bg-chip.fol b { background: rgba(255, 209, 102, 0.3); box-shadow: 0 0 0 1px rgba(255, 209, 102, 0.6); }
.bg-split { display: flex; flex-wrap: wrap; gap: 6px; }
.bg-split button { display: flex; align-items: center; gap: 6px; padding: 4px 9px 4px 4px; border: 1px solid var(--line); border-radius: 99px; background: rgba(10, 6, 22, 0.4); font-size: 12px; }
.bg-split b { color: var(--mint); font-family: "JetBrains Mono", monospace; }
.bg-daily { position: fixed; z-index: 3; right: var(--pad); top: calc(118px + var(--sa-t)); width: 360px; max-height: calc(100vh - 140px - var(--sa-t)); overflow-y: auto; padding: 16px; background: var(--glass2); border: 1px solid var(--line); border-radius: var(--r); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.bg-daily h3 { margin: 0 0 10px; font: 800 17px "Exo 2", sans-serif; }
.bg-dtiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 4px; }
.bg-dtiles div { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.bg-dtiles b { font: 800 18px "Exo 2", sans-serif; } .bg-dtiles div:first-child b { color: var(--gold); }
.bg-dtiles span { display: block; color: var(--dim); font-size: 11px; }
.bg-dbars { width: 100%; height: 70px; display: block; } .bg-dbars rect { fill: var(--mint); opacity: 0.8; } .bg-dbars rect.fut, .bg-dbars rect.none { opacity: 0.15; } .bg-dbars rect.part { opacity: 0.5; }
body.bg-carding .bg-daily ~ .bg-card { z-index: 4; }
.bg-open { position: fixed; z-index: 3; right: 12px; bottom: 12px; padding: 8px 12px; border-radius: 99px; background: var(--glass2); border: 1px solid var(--line2); color: var(--ink); font-size: 12.5px; }
body.bg-embed .bg-side, body.bg-embed .bg-bottom, body.bg-embed #bg-daily, body.bg-embed #bg-snap, body.bg-embed .bg-brand .bg-by, body.bg-embed .bg-tools a.bg-btn { display: none; }
body.bg-obs .bg-top, body.bg-obs .bg-stats, body.bg-obs .bg-side, body.bg-obs .bg-bottom, body.bg-obs .bg-open, body.bg-obs .bg-splash { display: none !important; }
@media (max-width: 760px) { .bg-daily { left: var(--pad); right: var(--pad); width: auto; top: calc(88px + var(--sa-t)); bottom: calc(var(--pad) + var(--sa-b)); max-height: none; z-index: 4; } .bg-find input { font-size: 16px; } .bg-tools #bg-daily, .bg-tools #bg-snap { display: inline-flex; padding: 7px 8px; } }
.bg-whale[hidden], .bg-daily[hidden], .bg-open[hidden] { display: none !important; }

/* pictures over their initials (BX4) */
i.pw { position: relative; overflow: hidden; }
i.pw img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; opacity: 0; transition: opacity 0.3s; }
i.pw img.ok { opacity: 1; }
@media (max-width: 760px) {
  .bg-brand h1 { font-size: 19px; letter-spacing: 0.02em; }
  .bg-tools { gap: 6px; flex-shrink: 0; } .bg-tools #bg-snap { display: none; }
  .bg-tools select { width: 54px; }
}
@media (max-width: 760px) {
  .bg-tools .bg-live { display: none; } /* the mode line under the tag says it on a phone */
  .bg-brand .bg-mode::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--mint); vertical-align: 1px; }
}
@media (max-width: 760px) { .bg-side:not(.open) .bg-find { display: none; } } /* the closed sheet shows rows, the open one the search too */

/* the logo lives on the planet now: the chip is its name, hanging just under it */
.bg-chip.tok { transform-origin: 50% 0; } .bg-chip.tok b { font-size: 11.5px; background: rgba(10, 6, 22, 0.5); border: 1px solid rgba(215, 200, 255, 0.18); backdrop-filter: blur(2px); }
@media (max-width: 760px) { .bg-chip.tok { transform-origin: 50% 0; } .bg-chip.tok b { font-size: 10px; } }

/* OBOL GALAXY: buys / sells, the bonding curve, the all-time row */
.bg-pop.buy { color: var(--buy); text-shadow: 0 0 10px rgba(94, 255, 177, 0.7), 0 1px 2px #000; }
.bg-pop.sell { color: var(--sell); text-shadow: 0 0 10px rgba(255, 111, 145, 0.7), 0 1px 2px #000; }
.bs { font-style: normal; font: 800 9.5px "Exo 2", sans-serif; letter-spacing: 0.06em; padding: 2px 6px; border-radius: 99px; flex-shrink: 0; }
.bs.b { color: #062a18; background: var(--buy); } .bs.s { color: #2a0612; background: var(--sell); }
.bg-tr.buy b { color: var(--buy); } .bg-tr.sell b { color: var(--sell); } .bg-tr.big b { color: var(--gold); }
.bg-cv { display: block; height: 4px; margin-top: 4px; border-radius: 4px; background: rgba(200, 180, 255, 0.14); overflow: hidden; max-width: 160px; }
.bg-cv i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #9ef7ff, #c6b3ff); }
.bg-cv.g i { background: linear-gradient(90deg, #ffd98a, #fff1c4); }
.bg-card .bg-cv { max-width: none; height: 7px; margin: 2px 0 10px; }
.bg-chip.tok.gradc b { color: var(--gold); border: 1px solid rgba(255, 217, 138, 0.5); }
.pf.hx { background: hsl(var(--h), 55%, 32%); color: #fff; font: 800 11px "JetBrains Mono", monospace; }
.bg-st.allst { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: 11.5px; color: var(--dim); }
.bg-st.allst .al { width: 100%; margin: 0; text-transform: uppercase; letter-spacing: 0.08em; font-size: 9.5px; }
.bg-st.allst span { display: inline; margin: 0; } .bg-st.allst b { font: 800 14px "Exo 2", sans-serif; color: var(--ink); }
.bg-cl a .bs { margin-right: 2px; }
@media (max-width: 760px) { .bg-st.allst { padding: 5px 8px; gap: 2px 10px; font-size: 10px; } .bg-st.allst .al { display: none; } .bg-st.allst b { font-size: 12px; } .bg-whale { top: calc(196px + var(--sa-t)); } }

/* OX — the stream's block, the mainnet countdown, the Arena's crown */
.bg-blk { color: var(--dim); font: 500 11px "JetBrains Mono", monospace; }
.bg-brand .bg-mn { position: relative; z-index: 3; display: inline-flex; margin-top: 8px !important; pointer-events: auto; align-items: center; gap: 7px; margin: 0; white-space: nowrap; padding: 5px 11px; border: 1px solid rgba(255, 217, 138, 0.35); border-radius: 999px; background: rgba(40, 26, 8, 0.55); color: var(--gold); font-size: 12px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.bg-brand .bg-mn b { font: 800 13px "Exo 2", sans-serif; color: #fff; letter-spacing: 0.02em; } .bg-brand .bg-mn em { font-style: normal; color: var(--dim); font-size: 11px; }
.bg-brand .bg-mn.live { border-color: rgba(94, 255, 177, 0.45); color: var(--green); background: rgba(8, 40, 26, 0.55); animation: bg-mnp 2s ease-in-out infinite; }
@keyframes bg-mnp { 50% { box-shadow: 0 0 18px rgba(94, 255, 177, 0.35); } }
.bg-crown { padding: 8px 12px; border-radius: var(--r); border: 1px solid rgba(255, 217, 138, 0.4); background: rgba(40, 26, 8, 0.6); color: var(--gold); font-size: 12px; white-space: nowrap; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.bg-crown[hidden], .bg-mn[hidden] { display: none !important; }
/* tabs: six now — they scroll on narrow lists */
.bg-tabs, .bg-size, .bg-find { flex-shrink: 0; }
.bg-tabs { overflow-x: auto; scrollbar-width: none; } .bg-tabs::-webkit-scrollbar { display: none; }
.bg-tabs button { flex: 1 0 auto; padding: 7px 7px; white-space: nowrap; }
.bg-size { display: flex; align-items: center; gap: 4px; margin: 0 4px 6px; color: var(--dim); font-size: 11px; }
.bg-size span { margin-right: 4px; }
.bg-size button { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; color: var(--dim); font-size: 11px; }
.bg-size button.on { color: var(--ink); border-color: var(--line2); background: rgba(198, 179, 255, 0.1); }
.bg-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 8px 6px 0; color: var(--dim); font-size: 10.5px; }
.bg-legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.bg-legend .lb { background: var(--buy); box-shadow: 0 0 6px var(--buy); } .bg-legend .ls { background: var(--sell); box-shadow: 0 0 6px var(--sell); }
.bg-legend .lc { border: 2px solid #bfe9ff; } .bg-legend .lg2 { border: 2px solid var(--gold); box-shadow: 0 0 6px rgba(255, 209, 102, 0.6); }
.bq { display: inline-block; margin-left: 5px; padding: 0 5px; border-radius: 6px; border: 1px solid rgba(158, 247, 255, 0.4); color: #bfe9ff; font: 600 9.5px/1.5 Sora, sans-serif; font-style: normal; vertical-align: 1px; }
.bq.stk { border-color: rgba(255, 217, 138, 0.45); color: var(--gold); } .bq.pump { border-color: rgba(94, 255, 177, 0.45); color: var(--green); }
.lg.gold { border-color: var(--gold); box-shadow: 0 0 10px rgba(255, 209, 102, 0.45); }
.bg-row.hall strong { color: var(--gold); }
.hallsum b { color: var(--ink); }
.idc { background-size: cover; image-rendering: pixelated; border-color: rgba(255, 255, 255, 0.3); }
.idc.sm { width: 22px; height: 22px; }
/* the coin card in full */
.bg-chgs { display: flex; gap: 5px; flex-wrap: wrap; margin: 10px 0 6px; }
.bg-chg { border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); border-radius: 8px; padding: 3px 7px; font: 700 11px "JetBrains Mono", monospace; color: var(--ink); }
.bg-chg span { color: var(--dim); font: 500 10px Sora, sans-serif; margin-right: 4px; }
.bg-chg.up { color: var(--green); } .bg-chg.dn { color: var(--red); } .bg-chg.on { border-color: var(--line2); background: rgba(198, 179, 255, 0.12); }
.bg-chart { position: relative; height: 80px; margin-bottom: 6px; }
.bg-chart svg { width: 100%; height: 74px; display: block; } .bg-chart svg.up { color: var(--green); } .bg-chart svg.dn { color: var(--red); }
.bg-chart .draw { stroke-dasharray: 900; stroke-dashoffset: 900; animation: bg-draw 1.1s ease-out forwards; }
@keyframes bg-draw { to { stroke-dashoffset: 0; } }
.bg-chart .lo, .bg-chart .hi { position: absolute; right: 2px; color: var(--dim); font: 500 9.5px "JetBrains Mono", monospace; } .bg-chart .hi { top: 0; } .bg-chart .lo { bottom: 0; }
.bg-desc { color: var(--ink); opacity: 0.85; font-size: 12px; margin: 6px 0; }
.bg-cst.sm div b { font-size: 15px; } .bg-cst b.up { color: var(--green); } .bg-cst b.dn { color: var(--red); }
.bg-burn { margin-top: 8px; padding: 8px 10px; border: 1px solid rgba(255, 138, 61, 0.35); border-radius: 12px; background: rgba(60, 20, 6, 0.35); }
.bg-det summary { cursor: pointer; color: var(--mint); font-size: 12px; margin: 8px 2px; }
.bg-dsel select { width: 100%; margin: 4px 0 2px; color: var(--ink); background: var(--glass); border: 1px solid var(--line); border-radius: 10px; padding: 7px 9px; }
.bg-dtiles i { font-style: normal; font-size: 10.5px; margin-left: 4px; } .bg-dtiles i.up, .bg-stats i.up { color: var(--green); } .bg-dtiles i.dn { color: var(--red); }
.bg-dtiles { grid-template-columns: 1fr 1fr 1fr !important; }
.bg-pop.combo { color: #9ef7ff; font-weight: 800; text-shadow: 0 0 12px rgba(158, 247, 255, 0.8); }
/* the widget (/embed/elysium/top) */
.bg-widget { display: none; }
body.bg-wid > *:not(.bg-widget):not(script) { display: none !important; }
body.bg-wid { overflow: auto; background: radial-gradient(circle at 30% 0%, #2a1a5a, var(--bg) 70%); }
body.bg-wid .bg-widget { display: block; padding: 14px; max-width: 520px; }
.bg-widget h2 { margin: 0 0 10px; font: 800 16px "Exo 2", sans-serif; }
.bg-wrow { display: flex; align-items: center; gap: 10px; padding: 9px 10px; margin-bottom: 7px; border: 1px solid var(--line); border-radius: 12px; background: var(--glass); color: var(--ink); }
.bg-wrow em { color: var(--gold); font: 800 14px "Exo 2", sans-serif; width: 14px; } .bg-wrow span { flex: 1; min-width: 0; } .bg-wrow span b, .bg-wrow span small { display: block; } .bg-wrow small { color: var(--dim); font-size: 11px; } .bg-wrow strong { color: var(--gold); font: 700 13px "JetBrains Mono", monospace; }
.bg-wfoot { display: block; text-align: right; font-size: 12px; color: var(--mint); }
@media (max-width: 760px) {
  .bg-st.allst { display: none !important; } /* the phone's top stays short: Obol's totals live in the Hall of fame tab */
  .bg-brand .bg-mn { font-size: 10.5px; padding: 3px 10px; margin-top: 6px !important; } .bg-brand .bg-mn b { font-size: 11px; }
  .bg-crown { display: none !important; } .bg-legend { display: none; } .bg-blk { display: none; }
  .bg-tools #bg-daily { display: inline-flex; padding: 7px 8px; }
}

/* a non-Obol Elysium coin's launchpad tag */
.bg-lp { font-style: normal; font-size: 10.5px; padding: 1px 6px; border-radius: 999px; background: rgba(150,120,255,.18); color: #cdbfff; white-space: nowrap; }

/* the stat cards sit just under the title block (its height changes with the mainnet chip, the language, the width) */
.bg-brand .bg-mn[hidden] { display: none; }
