/* AB LIVE design pack — shared by every app window (launcher, game pages, control panels).
   Near-black broadcast canvas with a blue studio glow, red LIVE accent,
   Barlow Condensed display type, Barlow body, JetBrains Mono for labels & data. */
:root {
  --bg: #06080C; --bg2: #0A0D12; --panel: #0E1117; --panel2: #141821; --raise: #1A1F29; --field: #090B10;
  --line: #1E2025; --line2: #2A2E37; --line3: #3A404C;
  --text: #F2F2F2; --text2: #D9DADC; --muted: #A9ACB2; --dim: #8A8D93;
  --accent: #E3141F; --accent-soft: rgba(227, 20, 31, .16);
  --good: #2BB673; --warn: #F2A93B; --bad: #FF4D57; --info: #4C8DFF; --blue: #2E62B4;
  --display: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --body: 'Barlow', 'Segoe UI', system-ui, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, Menlo, monospace;
  --r: 6px;
  color-scheme: dark;
  /* old names still used by a few scripts */
  --mint: var(--accent); --mint-2: var(--accent); --mint-ink: #fff; --ok: var(--good);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font: 15px/1.5 var(--body); color: var(--text2); -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1100px 700px at 85% -10%, rgba(46, 98, 180, .28), rgba(20, 44, 92, .12) 40%, transparent 70%),
    radial-gradient(900px 600px at -10% 110%, rgba(28, 62, 124, .22), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
a { color: var(--text); text-decoration: none; }
a:hover { color: #fff; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--text); letter-spacing: .02em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: rgba(227, 20, 31, .45); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--line3); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- AB LIVE wordmark: "AB" + red italic LIVE tag, product name under it */
.wordmark { display: flex; align-items: center; gap: 10px; }
.wm-top { display: flex; align-items: center; gap: 6px; font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; letter-spacing: .02em; color: #F2F2F2; }
.wm-live { display: block; border-radius: 3px; background: var(--accent); color: #fff; font-style: italic; font-size: 22px; line-height: 1; letter-spacing: .03em; padding: .1em .425em .2em .395em; /* optically centred (true italic) */ }
.wm-tag { display: block; font-family: var(--display); font-weight: 600; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.wordmark.sm .wm-top { font-size: 24px; } .wordmark.sm .wm-live { font-size: 17px; }
.ver { font: 500 11px var(--mono); color: var(--dim); border: 1px solid var(--line2); border-radius: 3px; padding: 2px 6px; align-self: center; }

/* ---------- top bar (launcher / game pages) */
.topnav { display: flex; align-items: center; gap: 16px; padding: 18px 40px; border-bottom: 1px solid var(--line); background: rgba(8, 10, 14, .55); backdrop-filter: blur(8px); }
.navpills { margin: 0 auto; display: flex; gap: 2px; }
.navpills a, .navpills button { padding: 9px 14px; font: 600 14px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); background: none; border: 0; border-bottom: 2px solid transparent; }
.navpills a:hover, .navpills button:hover { color: var(--text); }
.navpills .on { color: #fff; border-bottom-color: var(--accent); }
.navicons { display: flex; gap: 8px; align-items: center; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--r); border: 1px solid var(--line2); background: var(--raise); color: var(--muted); }
.icon-btn:hover { color: #fff; border-color: var(--line3); background: #202633; }
.icon-btn svg { width: 17px; height: 17px; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--r); font-weight: 600; font-size: 14px; border: 1px solid var(--line2); background: var(--raise); color: var(--text); white-space: nowrap; }
.btn:hover { border-color: var(--line3); background: #202633; color: #fff; }
.btn.mint, .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.mint:hover, .btn.primary:hover { filter: brightness(1.1); background: var(--accent); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 7px 12px; font-size: 13px; }

/* ---------- tally / chips */
.tally { display: inline-flex; align-items: center; gap: 6px; font: 700 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; padding: 5px 9px 4px; border-radius: 3px; background: var(--raise); color: var(--dim); }
.tally.on { background: var(--accent); color: #fff; box-shadow: 0 0 18px rgba(227, 20, 31, .45); }
.tally.on::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: ab-pulse 1.4s infinite; }
@keyframes ab-pulse { 50% { opacity: .25; } }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 500 11px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; padding: 4px 7px; border-radius: 3px; background: var(--raise); color: var(--muted); border: 1px solid var(--line2); white-space: nowrap; }
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.ok { color: var(--good); border-color: rgba(43, 182, 115, .35); background: rgba(43, 182, 115, .08); }
.chip.warn { color: var(--warn); border-color: rgba(242, 169, 59, .35); background: rgba(242, 169, 59, .08); }
.chip.off { color: var(--dim); }

.glass { background: linear-gradient(180deg, rgba(20, 24, 33, .9), rgba(14, 17, 23, .92)); border: 1px solid var(--line); border-radius: 10px; }
.frame { max-width: 1320px; margin: 0 auto; padding-bottom: 48px; }
.dim { color: var(--dim); font-size: 14px; }

#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--panel2); color: var(--text); border: 1px solid var(--line2); border-left: 3px solid var(--accent);
  font-weight: 600; padding: 9px 16px; border-radius: var(--r); box-shadow: 0 12px 30px rgba(0, 0, 0, .5); opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 100; }
#toast.show { opacity: 1; }

@media (max-width: 760px) {
  .topnav { flex-wrap: wrap; padding: 12px 16px; }
  .navpills { order: 3; margin: 0; width: 100%; justify-content: center; }
}

/* Embedded HUD pages are transparent: keep their colour scheme "normal" so the browser
   doesn't paint an opaque background behind them in this dark-mode UI. */
iframe { color-scheme: normal; }
