/* galaxy.css — ARC GALAXY (arcircle.app/galaxy): a full-screen WebGL galaxy with glass panels over it. */
:root {
  --bg: #02040c; --glass: rgba(7, 14, 32, 0.58); --glass2: rgba(10, 22, 48, 0.72); --line: rgba(120, 200, 255, 0.16); --line2: rgba(120, 220, 255, 0.34);
  --ink: #eaf4ff; --dim: #8fa6c8; --cyan: #3ce6ff; --mint: #4dffb0; --gold: #ffd166; --red: #ff5c6c;
  --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; }
a { color: var(--cyan); text-decoration: none; } a:hover { text-decoration: underline; }
button, input, select { font: inherit; color: inherit; }
#gx-c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
#gx-c:active { cursor: grabbing; }
.gx-top, .gx-stats, .gx-side, .gx-search, .gx-bottom, .gx-card, .gx-note { position: fixed; z-index: 2; }
.gx-glass, .gx-st, .gx-side, .gx-live, .gx-search, .gx-tape, .gx-card, .gx-tools button, .gx-tools select, .gx-note {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--r);
  -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
}

/* brand + live */
.gx-top { top: calc(var(--pad) + var(--sa-t)); left: var(--pad); right: var(--pad); display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; }
.gx-top > * { pointer-events: auto; }
.gx-brand h1 { margin: 0; font: 900 34px/1 "Exo 2", sans-serif; letter-spacing: 0.06em; text-shadow: 0 0 24px rgba(60, 230, 255, 0.35); }
.gx-b1 { color: #fff; } .gx-b2 { background: linear-gradient(90deg, var(--cyan), var(--mint)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gx-brand p { margin: 6px 0 0; color: var(--dim); font-size: 13px; } .gx-brand .gx-by { font-size: 11.5px; opacity: 0.85; }
.gx-live { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: 12.5px; white-space: nowrap; }
.gx-live i { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); box-shadow: 0 0 0 0 rgba(77, 255, 176, 0.6); }
.gx-live.on i { background: var(--mint); animation: gx-pulse 1.6s infinite; }
.gx-live.bad i { background: var(--red); }
.gx-live b { font: 700 12.5px "JetBrains Mono", monospace; color: var(--cyan); }
@keyframes gx-pulse { 0% { box-shadow: 0 0 0 0 rgba(77, 255, 176, 0.6); } 70% { box-shadow: 0 0 0 10px rgba(77, 255, 176, 0); } 100% { box-shadow: 0 0 0 0 rgba(77, 255, 176, 0); } }

/* stats */
.gx-stats { top: calc(110px + var(--sa-t)); left: var(--pad); display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 8px; width: min(440px, calc(100vw - 2 * var(--pad))); }
.gx-st { padding: 10px 12px; }
.gx-st b { display: block; font: 800 22px/1.1 "Exo 2", sans-serif; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.gx-st span { display: block; margin-top: 3px; color: var(--dim); font-size: 11px; }
.gx-st.gold b { color: var(--gold); text-shadow: 0 0 14px rgba(255, 209, 102, 0.35); }
/* GX7: the fee / signed-payment row is slimmer on computers; the legend follows the stats down */
@media (min-width: 761px) { .gx-st.mini { padding: 7px 12px; } .gx-st.mini b { font-size: 16px; } .gx-st.mini span { font-size: 10.5px; margin-top: 1px; } }
.gx-st.agent b { color: #ff9a3c; text-shadow: 0 0 14px rgba(255, 154, 60, 0.4); }
.gx-tx.auth { border-color: rgba(255, 154, 60, 0.45); }

/* side panels */
.gx-side { padding: 12px 14px; }
.gx-side h2 { margin: 0 0 8px; font: 700 12px/1.2 Sora, sans-serif; color: var(--dim); letter-spacing: 0.08em; text-transform: uppercase; }
.gx-legend { left: var(--pad); top: calc(290px + var(--sa-t)); width: 220px; }
.gx-legend ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.gx-legend li button { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 9px; width: 100%; padding: 5px 6px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.gx-legend li button:hover { background: rgba(120, 200, 255, 0.08); }
.gx-legend li button i { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: 0 0 10px currentColor; background: currentColor; }
.gx-legend li button em { margin-left: auto; font: 500 12px "JetBrains Mono", monospace; color: var(--dim); font-style: normal; }
.gx-legend li.off button { opacity: 0.38; } .gx-legend li.off button i { box-shadow: none; }
.gx-hint { margin: 8px 0 0; font-size: 11px; color: var(--dim); opacity: 0.8; }
.gx-topc { right: var(--pad); top: calc(96px + var(--sa-t)); width: 290px; max-height: calc(100vh - 306px); overflow: auto; scrollbar-width: thin; }
.gx-topc ol { margin: 0; padding: 0; list-style: none; counter-reset: c; }
.gx-topc li button { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 2px 8px; width: 100%; padding: 4px 6px; border-radius: 8px; cursor: pointer; }
.gx-topc li button:hover, .gx-topc li.sel button { background: rgba(120, 200, 255, 0.1); }
.gx-topc li button::before { counter-increment: c; content: counter(c); font: 700 11px "JetBrains Mono", monospace; color: var(--dim); text-align: right; }
.gx-topc .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.gx-topc .n small { display: block; font: 500 10.5px "JetBrains Mono", monospace; color: var(--dim); }
.gx-topc .c { font: 700 12px "JetBrains Mono", monospace; color: var(--cyan); }
.gx-topc .bar { grid-column: 2 / 4; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--cyan), transparent); opacity: 0.6; }
.gx-empty { color: var(--dim); font-size: 12px; padding: 6px; }

/* search + selection card */
.gx-search { left: 50%; transform: translateX(-50%); bottom: calc(118px + var(--sa-b)); display: flex; gap: 6px; padding: 6px; width: min(520px, calc(100vw - 2 * var(--pad))); }
.gx-search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; padding: 6px 8px; font: 500 13px "JetBrains Mono", monospace; }
.gx-search input::placeholder { color: var(--dim); font-family: Sora, sans-serif; }
.gx-search button { border: 0; border-radius: 10px; padding: 6px 14px; background: linear-gradient(90deg, #1fb6ff, #2be3a8); color: #021018; font-weight: 700; cursor: pointer; }
.gx-card { right: var(--pad); top: calc(96px + var(--sa-t)); width: 320px; max-height: calc(100vh - 290px); overflow: auto; padding: 14px 16px; background: var(--glass2); border-color: var(--line2); animation: gx-in 0.25s ease-out; }
.gx-card h3 { margin: 0 0 4px; font: 800 17px "Exo 2", sans-serif; padding-right: 24px; }
.gx-card .ad { font: 500 10.5px "JetBrains Mono", monospace; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gx-card .x { position: absolute; top: 8px; right: 10px; border: 0; background: none; color: var(--dim); font-size: 18px; cursor: pointer; }
.gx-card dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; margin: 10px 0; font-size: 12.5px; }
.gx-card dt { color: var(--dim); } .gx-card dd { margin: 0; font-family: "JetBrains Mono", monospace; text-align: right; }
.gx-card ul { list-style: none; margin: 6px 0 0; padding: 0; font-size: 12px; display: grid; gap: 4px; }
.gx-card ul i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; margin-right: 6px; }
.gx-card .ln { display: flex; gap: 10px; margin-top: 10px; font-size: 12.5px; }
/* GX12: how many times ARC GALAXY has been opened, all told */
.gx-live { flex-shrink: 0; } .gx-brand { min-width: 0; }
.gx-live em { font-style: normal; display: inline-flex; align-items: center; gap: 4px; padding-left: 9px; margin-left: 1px; border-left: 1px solid var(--line); color: var(--ink); }
.gx-live em strong { font: 700 12.5px "JetBrains Mono", monospace; color: var(--mint); }
.gx-live em small { font-size: 11.5px; color: var(--dim); }
.gx-live em.pop strong { animation: gx-wpop 0.6s ease-out; }
@keyframes gx-wpop { 30% { transform: scale(1.35); color: #fff; } }
/* GX9: records + the next milestone */
.gx-rec { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.gx-rec h2 { margin-bottom: 6px; }
.gx-rec dl { display: grid; grid-template-columns: 1fr; gap: 2px 0; margin: 0; font-size: 12px; }
.gx-rec dt { color: var(--dim); font-size: 11px; margin-top: 4px; }
.gx-rec dd { margin: 0; font: 500 12px "JetBrains Mono", monospace; color: var(--ink); }
.gx-rec dd b { color: var(--gold); }
.gx-recgo { all: unset; cursor: pointer; margin-top: 8px; display: inline-block; font-size: 11.5px; color: var(--cyan); }
.gx-mile { margin-bottom: 10px; padding: 7px 10px; border-radius: 10px; background: rgba(255, 209, 102, 0.08); border: 1px solid rgba(255, 209, 102, 0.3); font: 600 12px Sora, sans-serif; color: #ffe9b8; }
.gx-mile.soon { animation: gx-pulse2 1.2s infinite; border-color: rgba(255, 209, 102, 0.8); }
@keyframes gx-pulse2 { 50% { box-shadow: 0 0 22px rgba(255, 209, 102, 0.45); } }
.gx-whale.rec { border-color: rgba(169, 139, 255, 0.8); background: linear-gradient(180deg, rgba(40, 20, 70, 0.82), rgba(20, 10, 40, 0.86)); box-shadow: 0 0 40px rgba(169, 139, 255, 0.4); }
.gx-whale.rec b { color: #d9c9ff; }
.gx-whale.mile { border-color: rgba(77, 255, 176, 0.8); background: linear-gradient(180deg, rgba(0, 50, 40, 0.82), rgba(0, 25, 20, 0.86)); box-shadow: 0 0 60px rgba(77, 255, 176, 0.45); }
.gx-whale.mile b { color: var(--mint); font-size: 30px; }
/* GX8: share a star / name it as its owner */
.gx-cact { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.gx-cact button, .gx-claimf button { border: 1px solid var(--line2); background: rgba(60, 230, 255, 0.08); color: var(--ink); font: 600 12px Sora, sans-serif; padding: 6px 10px; border-radius: 999px; cursor: pointer; }
.gx-cact button:hover, .gx-claimf button:hover { background: rgba(60, 230, 255, 0.18); }
.gx-claimed { margin: 8px 0 0; font-size: 12px; color: var(--mint); }
.gx-claimf { margin-top: 10px; display: grid; gap: 6px; }
.gx-claimf p { margin: 0; font-size: 12px; color: var(--dim); }
.gx-claimf input { background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line2); color: var(--ink); border-radius: 8px; padding: 7px 9px; font: 500 13px Sora, sans-serif; }
.gx-claimf .gx-claimst { color: #ffb3bb; min-height: 1em; }
body.carded .gx-topc { display: none; }
@keyframes gx-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* bottom: tape + tools */
.gx-bottom { left: var(--pad); right: var(--pad); bottom: calc(10px + var(--sa-b)); display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; pointer-events: none; }
.gx-bottom > * { pointer-events: auto; }
.gx-tape { height: 64px; display: flex; gap: 6px; padding: 6px; overflow: hidden; mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); }
.gx-tx { flex: none; display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 150px; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.05); font-size: 11.5px; color: var(--ink); animation: gx-tin 0.35s ease-out; text-decoration: none !important; }
.gx-tx:hover { border-color: var(--line2); }
.gx-tx .k { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.gx-tx .k i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.gx-tx .k em { margin-left: auto; font-style: normal; font: 700 11.5px "JetBrains Mono", monospace; color: var(--gold); }
.gx-tx .p { font: 500 10.5px "JetBrains Mono", monospace; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.gx-tx.fail { border-color: rgba(255, 92, 108, 0.35); } .gx-tx.fail .k { color: var(--red) !important; }
.gx-tx.me { border-color: #fff; box-shadow: 0 0 12px rgba(255, 255, 255, 0.25); }
@keyframes gx-tin { from { transform: translateX(-12px); border-color: rgba(60, 230, 255, 0.5); } to { transform: none; } }
.gx-tools { display: flex; gap: 6px; }
.gx-tools button, .gx-tools select { height: 40px; min-width: 40px; padding: 0 12px; cursor: pointer; font-size: 14px; }
.gx-tools button:hover { border-color: var(--line2); }
.gx-tools select { appearance: none; -webkit-appearance: none; padding: 0 10px; }
.gx-tools select option { background: #0a1630; }
.gx-src { grid-column: 1 / 3; margin: 0; font-size: 10.5px; color: var(--dim); opacity: 0.8; text-align: center; }

/* the opening card: Meshy's key art until the first feed */
.gx-splash { position: fixed; inset: 0; z-index: 10; background: #02040c; display: grid; place-items: center; transition: opacity 0.8s ease; }
.gx-splash img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; opacity: 0.9; animation: gx-zoom 6s ease-out forwards; }
.gx-splash div { position: relative; text-align: center; text-shadow: 0 0 30px #000; }
.gx-splash b { display: block; font: 900 clamp(40px, 8vw, 84px)/1 "Exo 2", sans-serif; letter-spacing: 0.08em; }
.gx-splash b i { font-style: normal; background: linear-gradient(90deg, var(--cyan), var(--mint)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gx-splash span { display: block; margin-top: 10px; color: var(--dim); font-size: clamp(13px, 2vw, 17px); }
.gx-splash.out { opacity: 0; pointer-events: none; }
@keyframes gx-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }

/* GX2: whale banner, gate labels, landing amounts */
.gx-whale { white-space: nowrap; max-width: calc(100vw - 20px); position: fixed; z-index: 6; left: 50%; top: calc(70px + var(--sa-t)); transform: translate(-50%, -20px) scale(0.92); opacity: 0; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 22px; border-radius: 16px; background: linear-gradient(180deg, rgba(60, 40, 0, 0.78), rgba(30, 18, 0, 0.82)); border: 1px solid rgba(255, 209, 102, 0.7); box-shadow: 0 0 40px rgba(255, 209, 102, 0.35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: opacity 0.35s, transform 0.45s cubic-bezier(.2, 1.4, .4, 1); }
.gx-whale.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.gx-whale b { font: 900 26px/1 "Exo 2", sans-serif; color: var(--gold); text-shadow: 0 0 18px rgba(255, 209, 102, 0.6); }
.gx-whale span { font-size: 12.5px; color: #ffe9b8; }
body.whaling .gx-note, body.topopen .gx-whale, body.carded .gx-whale { opacity: 0 !important; visibility: hidden; }
.gx-tx.whale { border-color: rgba(255, 209, 102, 0.75); box-shadow: 0 0 14px rgba(255, 209, 102, 0.3); }
.gx-live { overflow: hidden; } .gx-live b { display: inline-block; vertical-align: middle; } .gx-live b.roll { animation: gx-roll 0.3s ease-out; }
@keyframes gx-roll { from { transform: translateY(-22%); opacity: 0.6; } to { transform: none; opacity: 1; } }
.gx-lb.hover { font: 700 12px Sora, sans-serif; color: #fff; background: rgba(6, 14, 32, 0.8); border: 1px solid var(--line2); padding: 4px 9px; border-radius: 8px; text-shadow: none; }
.gx-lb.gate { font: 700 11px "JetBrains Mono", monospace; color: #e6f0ff; opacity: 0.85; }
.gx-lb.pop { font: 800 13px "JetBrains Mono", monospace; text-shadow: 0 0 10px currentColor, 0 0 3px #000; }

/* GX4: network switch, Play, embed / OBS */
.gx-net { position: fixed; z-index: 2; top: calc(58px + var(--sa-t)); right: var(--pad); display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--glass); border: 1px solid var(--line); font-size: 11px; }
.gx-net a { padding: 3px 9px; border-radius: 7px; color: var(--dim); text-decoration: none !important; }
.gx-net a.on { background: rgba(60, 230, 255, 0.16); color: #fff; }
.gx-play { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: var(--r); background: linear-gradient(90deg, #1fb6ff, #2be3a8); color: #021018 !important; font-weight: 800; text-decoration: none !important; }
body.gx-embed .gx-stats, body.gx-embed .gx-side, body.gx-embed .gx-search, body.gx-embed .gx-bottom, body.gx-embed .gx-net, body.gx-embed .gx-brand p, body.gx-embed .gx-card { display: none !important; }
body.gx-embed .gx-brand h1 { font-size: 22px; }
.gx-open { position: fixed; z-index: 3; right: 10px; bottom: 10px; padding: 7px 12px; border-radius: 10px; background: var(--glass2); border: 1px solid var(--line2); color: #fff !important; font: 700 12px Sora, sans-serif; text-decoration: none !important; }
body.gx-obs .gx-top, body.gx-obs .gx-stats, body.gx-obs .gx-side, body.gx-obs .gx-search, body.gx-obs .gx-bottom, body.gx-obs .gx-net, body.gx-obs .gx-note, body.gx-obs .gx-card { display: none !important; }

/* GX5: sparklines, deltas, rankings tabs, day chart, mini chart, focus, phone tabs */
.gx-st { position: relative; overflow: hidden; }
/* the sparkline gets its own band under the label (it used to run through it) */
.gx-st.sp { padding-bottom: 22px; }
.gx-st span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gx-st svg.sp { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 16px; opacity: 0.75; pointer-events: none; }
.gx-st span em { font-style: normal; font-weight: 700; } .gx-st span em.up { color: var(--mint); } .gx-st span em.dn { color: #ff8a96; }
.gx-rtabs { display: flex; gap: 2px; margin: -2px 0 8px; padding: 2px; border-radius: 9px; background: rgba(255, 255, 255, 0.04); }
.gx-rtabs button { flex: 1; border: 0; background: none; color: var(--dim); font-size: 11.5px; padding: 5px 4px; border-radius: 7px; cursor: pointer; }
.gx-rtabs button.on { background: rgba(60, 230, 255, 0.14); color: #fff; }
.gx-day { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.gx-day .bars { display: flex; align-items: flex-end; gap: 1px; height: 42px; }
.gx-day .bars i { flex: 1; background: linear-gradient(180deg, var(--cyan), rgba(60, 230, 255, 0.25)); border-radius: 1px; }
.gx-day .bars i.gap { background: rgba(255, 255, 255, 0.08); }
.gx-mini { display: flex; align-items: flex-end; gap: 2px; height: 34px; margin: 8px 0 2px; }
.gx-mini i { flex: 1; background: linear-gradient(180deg, var(--mint), rgba(77, 255, 176, 0.2)); border-radius: 2px; }
body.gx-focus .gx-stats, body.gx-focus .gx-side, body.gx-focus .gx-search, body.gx-focus .gx-net, body.gx-focus .gx-brand p { display: none !important; }
.gx-ptabs { display: none; }

/* labels drawn over the 3D */
#gx-labels { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.gx-lb { position: absolute; left: 0; top: 0; transform: translate(-50%, -140%); white-space: nowrap; font: 600 11px Sora, sans-serif; color: #dff3ff; text-shadow: 0 0 6px #000, 0 0 12px #000; opacity: 0.9; will-change: transform; }
.gx-lb.hub { font: 800 13px "Exo 2", sans-serif; letter-spacing: 0.08em; text-transform: uppercase; }
.gx-lb.big { color: var(--gold); font: 800 12px "JetBrains Mono", monospace; }
.gx-lb.me { color: #fff; font-weight: 800; }

.gx-note { left: 50%; top: calc(18px + var(--sa-t)); transform: translateX(-50%); padding: 8px 14px; font-size: 12.5px; color: var(--ink); z-index: 3; max-width: calc(100vw - 2 * var(--pad)); text-align: center; }
.gx-note.demo { background: rgba(80, 20, 40, 0.8); border-color: rgba(255, 92, 108, 0.5); }
.gx-nojs { position: fixed; inset: 0; display: grid; place-items: center; color: var(--dim); }

/* phones */
@media (max-width: 760px) {
  :root { --pad: 10px; }
  .gx-brand h1 { font-size: 24px; } .gx-brand p { font-size: 11.5px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .gx-brand .gx-by { display: none; }
  .gx-live { padding: 6px 10px; font-size: 11px; } .gx-live b { font-size: 11px; } .gx-live span { display: none; }
  .gx-live em { padding-left: 7px; } .gx-live em small { display: none; } .gx-live em strong { font-size: 11px; }
  .gx-whale { top: calc(132px + var(--sa-t)); padding: 8px 14px; } .gx-whale b { font-size: 18px; }
  .gx-whale.mini { padding: 5px 12px; } .gx-whale.mini b { font-size: 14px; } .gx-whale.mini span { display: none; }
  .gx-note { top: calc(132px + var(--sa-t)); font-size: 11.5px; padding: 6px 12px; }
  /* GX6: one swipeable row — three cards at a time, the galaxy gets the rest of the screen */
  .gx-stats { top: calc(70px + var(--sa-t)); width: auto; right: var(--pad); display: flex; gap: 5px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); }
  .gx-stats > .gx-st { flex: 0 0 calc((100vw - 2 * var(--pad) - 10px) / 3.15); scroll-snap-align: start; }
  .gx-stats::-webkit-scrollbar { display: none; }
  .gx-st { padding: 6px 8px; border-radius: 10px; } .gx-st.sp { padding-bottom: 14px; } .gx-st svg.sp { height: 11px; } .gx-st b { font-size: 15px; } .gx-st span { font-size: 9.5px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .gx-legend { top: auto; bottom: calc(176px + var(--sa-b)); left: var(--pad); right: var(--pad); width: auto; padding: 6px 8px; background: transparent; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .gx-legend h2, .gx-hint { display: none; }
  .gx-legend ul { display: flex; overflow-x: auto; scrollbar-width: none; gap: 4px; mask-image: linear-gradient(90deg, #000 82%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); padding-right: 30px; }
  .gx-legend li button { padding: 4px 9px; background: var(--glass); border: 1px solid var(--line); border-radius: 999px; font-size: 11.5px; white-space: nowrap; width: auto; }
  .gx-legend li button em { margin-left: 4px; font-size: 10.5px; }
  .gx-topc { display: none; }
  .gx-topc.open { display: block; top: auto; bottom: calc(176px + var(--sa-b)); left: var(--pad); right: var(--pad); width: auto; max-height: 46vh; z-index: 4; background: var(--glass2); }
  .gx-search { bottom: calc(132px + var(--sa-b)); padding: 4px; }
  .gx-search input { font-size: 12px; }
  .gx-card { left: var(--pad); right: var(--pad); width: auto; top: auto; bottom: calc(176px + var(--sa-b)); max-height: 42vh; z-index: 5; }
  body.carded .gx-legend, body.topopen .gx-legend { display: none; }
  .gx-bottom { grid-template-columns: 1fr; }
  .gx-tape { height: 56px; } .gx-tx { min-width: 128px; padding: 4px 8px; }
  .gx-tools { justify-content: center; } .gx-tools button, .gx-tools select { height: 34px; min-width: 34px; padding: 0 9px; font-size: 13px; }
  .gx-src { display: none; }
  .gx-ptabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); }
  .gx-ptabs button { flex: 1; border: 0; background: none; color: var(--dim); font-size: 12px; font-weight: 600; padding: 6px 4px; border-radius: 9px; }
  .gx-ptabs button.on { background: rgba(60, 230, 255, 0.16); color: #fff; }
  body:not(.pt-kinds) .gx-legend { display: none; }
  body.pt-kinds .gx-legend { display: block; bottom: calc(150px + var(--sa-b)); background: var(--glass2); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  body.pt-kinds .gx-legend ul { flex-wrap: wrap; overflow: visible; mask-image: none; -webkit-mask-image: none; padding-right: 0; }
  body:not(.pt-follow) .gx-search { display: none; }
  body.pt-follow .gx-search { bottom: calc(150px + var(--sa-b)); }
  body.pt-top .gx-topc { display: block; top: auto; bottom: calc(150px + var(--sa-b)); left: var(--pad); right: var(--pad); width: auto; max-height: 46vh; z-index: 4; background: var(--glass2); }
  body:not(.pt-live) .gx-tape { display: none; }
  .gx-card { bottom: calc(150px + var(--sa-b)); }
  .gx-net { top: calc(42px + var(--sa-t)); font-size: 10px; } .gx-play span { display: none; } .gx-play { height: 34px; padding: 0 10px; }
  .gx-tools { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; } .gx-tools::-webkit-scrollbar { display: none; } #gx-full, #gx-share { display: none; }
}
@media (prefers-reduced-motion: reduce) { .gx-tx, .gx-card { animation: none; } .gx-live.on i { animation: none; } }
/* GXD2: the daily records panel (galaxy-daily.js) */
.gxd { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: calc(16px + var(--sa-t)) 16px calc(16px + var(--sa-b)); background: rgba(2, 4, 12, 0.62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); outline: none; }
.gxd[hidden] { display: none; }
.gxd-in { position: relative; width: min(940px, 100%); max-height: 100%; overflow: auto; scrollbar-width: thin; background: rgba(8, 17, 38, 0.94); border: 1px solid var(--line2); border-radius: 18px; padding: 18px 20px 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); animation: gx-in 0.22s ease-out; }
.gxd-in header { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-right: 34px; }
.gxd-in h2 { margin: 0; font: 800 20px "Exo 2", sans-serif; } .gxd-in h2 small { font: 500 12px Sora, sans-serif; color: var(--dim); margin-left: 6px; }
.gxd-x { position: absolute; top: 12px; right: 14px; border: 0; background: none; color: var(--dim); font-size: 24px; line-height: 1; cursor: pointer; padding: 4px 8px; }
.gxd-tabs { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 11px; margin-left: auto; }
.gxd-tabs button { border: 0; background: none; color: var(--dim); font: 600 12.5px Sora, sans-serif; padding: 6px 12px; border-radius: 8px; cursor: pointer; }
.gxd-tabs button.on { background: rgba(60, 230, 255, 0.16); color: #fff; }
.gxd-pick { display: flex; gap: 6px; margin: 14px 0 4px; }
.gxd-pick button, .gxd-pick select { height: 36px; background: var(--glass); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; font: 600 13px "JetBrains Mono", monospace; padding: 0 12px; cursor: pointer; }
.gxd-pick button:disabled { opacity: 0.35; cursor: default; } .gxd-pick select { flex: 0 1 auto; appearance: none; -webkit-appearance: none; } .gxd-pick option { background: #0a1630; }
.gxd-cov { margin: 10px 0 10px; font-size: 12.5px; color: var(--gold); } .gxd-cov.full { color: var(--mint); }
.gxd-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.gxd-t { padding: 10px 12px; background: var(--glass); border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.gxd-t b { display: block; font: 800 20px "Exo 2", sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gxd-t span { display: block; margin-top: 2px; font-size: 11px; color: var(--dim); }
.gxd-t.gold b { color: var(--gold); } .gxd-t.agent b { color: #ff9a3c; }
.gxd-acts { display: flex; gap: 8px; margin: 12px 0 2px; flex-wrap: wrap; }
.gxd-acts button { height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line2); background: var(--glass); color: var(--ink); font: 600 13px Sora, sans-serif; cursor: pointer; }
.gxd-acts button.pri { background: linear-gradient(90deg, rgba(60, 230, 255, 0.28), rgba(77, 255, 176, 0.22)); }
.gxd-body section { margin-top: 16px; }
.gxd-body h3 { margin: 0 0 6px; font: 700 12px/1.2 Sora, sans-serif; color: var(--dim); letter-spacing: 0.06em; text-transform: uppercase; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.gxd-chart { position: relative; }
.gxd-svg { display: block; width: 100%; height: auto; touch-action: pan-y; }
.gxd-svg .gl { stroke: rgba(143, 166, 200, 0.14); stroke-width: 1; } .gxd-svg .base { stroke: rgba(143, 166, 200, 0.4); stroke-width: 1; }
.gxd-svg .ax { fill: var(--dim); font: 500 10px "JetBrains Mono", monospace; }
.gxd-svg .hv.on { fill: rgba(60, 230, 255, 0.08); }
.gxd-tip { position: absolute; z-index: 3; pointer-events: none; padding: 7px 10px; background: rgba(4, 10, 24, 0.96); border: 1px solid var(--line2); border-radius: 10px; font-size: 11.5px; color: var(--dim); white-space: nowrap; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); }
.gxd-tip b { display: block; color: var(--ink); font: 700 14px "JetBrains Mono", monospace; margin: 2px 0; } .gxd-tip em { display: block; font-style: normal; color: var(--gold); margin-top: 2px; }
.gxd-foot { margin: 6px 0 0; font-size: 11px; color: var(--dim); }
.gxd-stack { display: flex; gap: 2px; height: 14px; border-radius: 4px; overflow: hidden; }
.gxd-stack i { min-width: 2px; }
.gxd-leg { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 14px; font-size: 12.5px; }
.gxd-leg li { display: flex; align-items: center; gap: 7px; } .gxd-leg li i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.gxd-leg em { margin-left: auto; font: 500 11.5px "JetBrains Mono", monospace; color: var(--dim); font-style: normal; }
.gxd-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.gxd-top { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; counter-reset: c; }
.gxd-top li { position: relative; padding: 5px 8px 7px 28px; background: var(--glass); border: 1px solid var(--line); border-radius: 9px; font-size: 12.5px; }
.gxd-top li::before { counter-increment: c; content: counter(c); position: absolute; left: 9px; top: 6px; font: 700 11px "JetBrains Mono", monospace; color: var(--dim); }
.gxd-top a { display: flex; gap: 8px; color: var(--ink); text-decoration: none; } .gxd-top a span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gxd-top a em { font: 500 11.5px "JetBrains Mono", monospace; color: var(--dim); font-style: normal; }
.gxd-top li > i { position: absolute; left: 28px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--cyan); opacity: 0.6; max-width: calc(100% - 36px); }
.gxd-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.gxd-tbl th { text-align: right; color: var(--dim); font-weight: 600; font-size: 11px; padding: 0 6px 4px; } .gxd-tbl th:first-child { text-align: left; }
.gxd-tbl td { padding: 5px 6px; border-top: 1px solid var(--line); text-align: right; font-family: "JetBrains Mono", monospace; } .gxd-tbl td:first-child { text-align: left; font-family: Sora, sans-serif; }
.gxd-rec { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 16px 0 0; font-size: 12.5px; }
.gxd-rec dt { color: var(--dim); } .gxd-rec dd { margin: 0; } .gxd-rec a, .gxd-in a { color: var(--cyan); text-decoration: none; }
.gxd-delta { font: 600 11.5px "JetBrains Mono", monospace; letter-spacing: 0; text-transform: none; } .gxd-delta.up { color: var(--mint); } .gxd-delta.dn { color: var(--red); }
.gxd-msg { color: var(--dim); font-size: 13px; padding: 18px 4px; }
@media (max-width: 760px) {
  .gxd { padding: 0; place-items: stretch; }
  .gxd-in { width: 100%; max-height: none; height: 100%; border-radius: 0; border: 0; padding: calc(14px + var(--sa-t)) 16px calc(24px + var(--sa-b)); }
  .gxd-in header { gap: 10px; } .gxd-in h2 { font-size: 17px; } .gxd-tabs { margin-left: 0; }
  .gxd-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; } .gxd-t { padding: 8px 10px; } .gxd-t b { font-size: 17px; }
  .gxd-two { grid-template-columns: 1fr; gap: 0; }
}
/* GXR: Robinhood Chain — lime accent, the net switch with an Arena link */
body.gx-rh { --cyan: #ccff00; }
body.gx-rh .gx-b1 { color: #ccff00; }
.gx-net a.rh.on { color: #0b1300; background: #ccff00; }
.gx-net a.ar { color: var(--gold); }
.gx-st[hidden] { display: none !important; }
