/* Aura Battle. A quiet, data-first interface: neutral surfaces, hairline borders, one violet accent
   for primary actions and focus, and the six side colours only in data (dots, thin bars, chart
   lines). Light is the base; dark follows the system unless the toggle says otherwise. */

:root {
  color-scheme: light;
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-2: #f5f5f6;
  --surface-3: #ececee;
  --border: #e5e5e8;
  --border-strong: #d8d8dd;
  --hairline: #e7e7ea;
  --text: #111113;
  --text-2: #5d5d66;
  --text-3: #8a8a93;
  --accent: #5b3fd6;
  --accent-hover: #4b31bd;
  --accent-text: #4b31bd;
  --accent-soft: rgba(91, 63, 214, 0.07);
  --accent-ring: rgba(91, 63, 214, 0.28);
  --on-accent: #ffffff;
  /* The mark (two sides overlapping, the lens lit). Its cyan is a step deeper on light surfaces,
     where the brand's #22d3ee alone reads too faint against white. */
  --mark-a: #7c5cff;
  --mark-b: #06b6d4;
  --mark-lens: #ffffff;
  --flash: #ffffff;
  --live: #15803d;
  --danger: #c4231c;
  --warn: #a15c07;
  --shadow-sm: 0 1px 2px rgba(17, 17, 19, 0.04);
  --shadow-pop: 0 1px 2px rgba(17, 17, 19, 0.06), 0 8px 24px rgba(17, 17, 19, 0.10);
  --avatar-l: 92%;
  --avatar-ink: 32%;
  --r-sm: 6px;
  --r: 8px;
  --gutter: 24px;
  --header-h: 60px;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Inter Tight', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --tint-lead: 7%;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b0c0f;
    --surface: #111216;
    --surface-2: #16171c;
    --surface-3: #1e1f25;
    --border: #23242b;
    --border-strong: #32333c;
    --hairline: rgba(255, 255, 255, .08);
    --text: #ececf0;
    --text-2: #a1a1ab;
    --text-3: #6f6f7a;
    --accent: #7058e8;
    --accent-hover: #8069f0;
    --accent-text: #a796f7;
    --accent-soft: rgba(139, 120, 245, 0.10);
    --accent-ring: rgba(139, 120, 245, 0.40);
    --mark-b: #22d3ee;
    --flash: #ffffff;
    --flash-peak: .28;
    --live: #3fb26b;
    --danger: #f06a62;
    --warn: #e0a243;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-pop: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.45);
    --avatar-l: 24%;
    --avatar-ink: 80%;
    --tint-lead: 12%;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0c0f;
  --surface: #111216;
  --surface-2: #16171c;
  --surface-3: #1e1f25;
  --border: #23242b;
  --border-strong: #32333c;
  --hairline: rgba(255, 255, 255, .08);
  --text: #ececf0;
  --text-2: #a1a1ab;
  --text-3: #6f6f7a;
  --accent: #7058e8;
  --accent-hover: #8069f0;
  --accent-text: #a796f7;
  --accent-soft: rgba(139, 120, 245, 0.10);
  --accent-ring: rgba(139, 120, 245, 0.40);
  --mark-b: #22d3ee;
  --flash: #ffffff;
  --flash-peak: .28;
  --live: #3fb26b;
  --danger: #f06a62;
  --warn: #e0a243;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-pop: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.45);
  --avatar-l: 24%;
  --avatar-ink: 80%;
  --tint-lead: 12%;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 400 14px/1.5 var(--font);
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
main { flex: 1; outline: none; width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); font-weight: 600; letter-spacing: -0.012em; line-height: 1.25; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled, [aria-disabled="true"] { cursor: not-allowed; }
img { max-width: 100%; }
kbd { font-family: var(--mono); font-size: 11px; }
table { border-collapse: collapse; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm); }
.icon { flex: none; display: inline-block; vertical-align: middle; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: var(--r-sm); font-weight: 500; }
.skip:focus { top: 12px; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: 13px; }
.xsmall { font-size: 12px; }
.center { text-align: center; }
.mono { font-family: var(--mono); }
.noscript { padding: 40px 16px; text-align: center; }
.num, .tnum, td, .metric-value, .pct, .mkt, .count { font-variant-numeric: tabular-nums; }
.link { color: var(--accent-text); font-weight: 500; }
.link:hover { text-decoration: underline; text-underline-offset: 2px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--text-3)); flex: none; display: inline-block; }
.dot-sm { width: 6px; height: 6px; }

/* ---------- header ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.topbar-inner { max-width: 1200px; height: var(--header-h); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 600; font-size: 16px; letter-spacing: -0.015em; white-space: nowrap; color: var(--text); }
/* The mark's 24-unit box has ~2 units of air left and right, so a 6px gap reads as 8px. The nudge
   puts the circles' centre on the wordmark's x-height centre rather than its line box's. */
.mark { width: 28px; height: 28px; flex: none; overflow: visible; }
.brand > .mark, .brand > .brand-aura { translate: 0 1px; }
.mark-a { fill: var(--mark-a); }
.mark-b { fill: var(--mark-b); }
.mark-lens { fill: var(--mark-lens); }
.nav { display: flex; gap: 2px; }
.nav-link { display: inline-flex; align-items: center; height: 32px; padding: 0 10px; border-radius: var(--r-sm); color: var(--text-2); font-weight: 500; white-space: nowrap; }
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link[aria-current] { color: var(--text); background: var(--surface-2); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.search { position: relative; display: flex; align-items: center; width: 240px; height: 34px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); color: var(--text-3); transition: border-color .15s, box-shadow .15s; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.search .icon { margin-left: 10px; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; padding: 0 8px; color: var(--text); font-size: 13px; }
.search input::placeholder { color: var(--text-3); }
.search kbd { margin-right: 8px; border: 1px solid var(--border); border-radius: 4px; padding: 0 5px; color: var(--text-3); line-height: 18px; }

/* account menu */
.acct { position: relative; }
.acct-btn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 8px 0 4px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); }
.acct-btn:hover { border-color: var(--border-strong); }
.acct-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.acct-handle { font-size: 12px; font-weight: 500; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-aura { font-size: 11px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.acct-btn .icon { color: var(--text-3); }
.menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; width: 280px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-pop); padding: 6px; }
.menu-head { display: flex; align-items: center; gap: 10px; padding: 8px; }
.menu-head b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-sep { height: 1px; background: var(--border); margin: 6px -6px; }
.menu-label { font-size: 11px; font-weight: 500; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; padding: 6px 8px 4px; }
.menu-inv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 0 4px 4px; }
.menu-inv span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border-radius: var(--r-sm); background: var(--surface-2); font-size: 12px; font-variant-numeric: tabular-nums; color: var(--text); }
.menu-inv .icon { color: var(--text-2); }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 8px; border: 0; background: none; border-radius: var(--r-sm); color: var(--text); font-size: 13px; text-align: left; }
.menu-item:hover, .menu-item:focus-visible { background: var(--surface-2); outline: none; }
.menu-item .icon { color: var(--text-2); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid transparent; font-size: 13px; font-weight: 500; white-space: nowrap; transition: background .12s, border-color .12s, color .12s; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); border-color: var(--border-strong); color: var(--text); box-shadow: var(--shadow-sm); }
.btn-secondary:hover:not(:disabled) { background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { filter: brightness(1.06); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; }
.btn-lg { height: 40px; padding: 0 18px; font-size: 14px; }
.btn:disabled { opacity: .5; }
.icon-btn { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text-2); }
.icon-btn:hover:not(:disabled) { color: var(--text); background: var(--surface-2); }
.icon-btn:disabled { opacity: .4; }
.icon-btn.bare { border-color: transparent; background: transparent; }

/* ---------- page shells ---------- */
.page { max-width: 1200px; margin: 0 auto; padding: 32px var(--gutter) 64px; }
.narrow { max-width: 720px; }
.medium { max-width: 960px; }
.page-head { margin-bottom: 24px; }
.page-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.eyebrow { font-size: 12px; font-weight: 500; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; display: flex; gap: 6px; align-items: center; }
.page-title { font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; }
.page-lead { color: var(--text-2); font-size: 16px; margin-top: 8px; max-width: 64ch; }
.section-title { font-size: 16px; margin: 32px 0 12px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); }
.panel + .panel { margin-top: 16px; }
.panel-pad { padding: 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); min-height: 52px; }
.panel-title { font-size: 14px; font-weight: 600; font-family: var(--font); letter-spacing: 0; display: flex; align-items: center; gap: 8px; }
.panel-sub { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.panel-body { padding: 16px; }
.panel-foot { padding: 12px 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-2); }
.row-between { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.note { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 8px 12px; }
.note .icon { margin-top: 2px; color: var(--text-3); }
.stack-8 > * + * { margin-top: 8px; }
.stack-16 > * + * { margin-top: 16px; }

/* badges and status */
.badge { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 4px; font-size: 11px; font-weight: 500; border: 1px solid var(--border); color: var(--text-2); background: var(--surface); white-space: nowrap; }
.src-badge { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 4px; font-size: 11px; font-weight: 600; letter-spacing: .01em; border: 1px solid var(--border-strong); color: var(--text); background: var(--surface-2); white-space: nowrap; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.status-live { color: var(--live); }
.status-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-locked { color: var(--warn); }
.status-void { color: var(--text-3); }
.cat { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); white-space: nowrap; }
.cat .icon { color: var(--text-3); }
.tag { font-size: 12px; color: var(--text-2); }
.tag:hover { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--border); font-size: 12px; }

/* tabs and filters */
.tabs { display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0; border: 0; background: none; color: var(--text-2); font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 14px; }
.tab .icon { color: var(--text-3); }
.tab:hover { color: var(--text); }
.tab[aria-current], .tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.tab[aria-current] .icon, .tab[aria-selected="true"] .icon { color: var(--text); }
.filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-bottom: 24px; }
.filters::-webkit-scrollbar { display: none; }
.filter { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 13px; font-weight: 500; white-space: nowrap; }
.filter .icon { color: var(--text-3); }
.filter:hover { color: var(--text); border-color: var(--border-strong); }
.filter[aria-current] { color: var(--accent-text); border-color: color-mix(in srgb, var(--accent) 35%, transparent); background: var(--accent-soft); }
.filter[aria-current] .icon { color: var(--accent-text); }
.filter-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -8px 0 20px; color: var(--text-2); font-size: 13px; }

/* ---------- home ---------- */
.home-top { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; margin-bottom: 32px; }
.home-top.no-rail, .home-top.no-hero { grid-template-columns: minmax(0, 1fr); }
.home-top.no-hero .hero-slot { display: none; }
.hero-slot:empty { min-height: 380px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface); }
.featured .panel-head { align-items: flex-start; }
.featured-title { font-size: 20px; letter-spacing: -0.015em; margin-top: 6px; }
.featured-title a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.featured-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.featured-body { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 0; }
.featured-chart { padding: 12px 8px 4px 16px; border-right: 1px solid var(--border); min-width: 0; }
.featured-sides { padding: 8px 0; }

.sponsor-mod { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); display: flex; flex-direction: column; }
.sponsor-label { font-size: 11px; font-weight: 500; font-variant: all-small-caps; letter-spacing: .08em; color: var(--text-3); }
.sponsor-mod .sponsor-label { padding: 12px 16px 4px; }
.sponsor-list { list-style: none; margin: 0; padding: 4px 8px 8px; display: flex; flex-direction: column; }
.sponsor-item { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: var(--r-sm); }
.sponsor-item:hover { background: var(--surface-2); }
.sponsor-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sponsor-name { font-weight: 500; font-size: 13px; }
.sponsor-desc { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sponsor-item .icon { color: var(--text-3); }
.sponsor-cta { margin-top: auto; padding: 10px 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-2); }
.sponsor-cta:hover { color: var(--text); }
.sponsor-logo { border-radius: var(--r-sm); object-fit: cover; flex: none; background: var(--surface-2); border: 1px solid var(--border); }
.sponsor-initial { display: inline-grid; place-items: center; color: var(--text-2); font-weight: 600; font-size: 12px; }

/* ---------- battle cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.bcard { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); transition: border-color .15s; }
.bcard:hover { border-color: var(--border-strong); }
.bcard.fresh { border-color: var(--accent); }
.bcard-head { padding: 14px 16px 10px; display: flex; flex-direction: column; gap: 6px; }
.bcard-meta { display: flex; align-items: center; gap: 8px; min-height: 20px; }
.bcard-meta .status { margin-left: auto; }
.bcard-title { font-family: var(--font); font-size: 15px; font-weight: 600; letter-spacing: -0.005em; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.bcard-title a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.bcard-sides { padding: 0 16px 12px; display: flex; flex-direction: column; }
.bcard-more { font-size: 12px; color: var(--text-2); padding-top: 6px; }
.bcard-more:hover { color: var(--text); }
.bcard-foot { margin-top: auto; display: flex; align-items: center; gap: 4px 14px; flex-wrap: wrap; padding: 10px 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.bcard-foot .sep { margin-left: auto; }
.bcard.ended .srow .bar-fill { opacity: .55; }

/* a side as a data row: dot, label, thin bar, numbers, a small outline push button */
.srow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; column-gap: 12px; padding: 7px 0; }
.srow + .srow { border-top: 1px solid var(--border); }
.srow.outcome { grid-template-columns: minmax(0, 1fr) 44px 44px auto; }
.srow-main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.srow-label { display: flex; align-items: center; gap: 8px; font-size: 13px; min-width: 0; }
.srow-label span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srow.lead .srow-label { font-weight: 600; }
.srow.lead .pct { color: color-mix(in srgb, var(--c, var(--text)) 70%, var(--text)); }
.srow-cols { display: grid; grid-template-columns: minmax(0, 1fr) 44px 44px auto; column-gap: 12px; font-size: 11px; color: var(--text-3); padding-bottom: 2px; text-transform: uppercase; letter-spacing: .04em; }
.srow-cols span { text-align: right; }
.srow-cols span:first-child { text-align: left; }
.bar { height: 3px; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
.bar-fill { display: block; height: 100%; width: 0; background: var(--c, var(--text-3)); border-radius: 2px; transition: width .4s var(--ease); }
.pct { font-size: 13px; font-weight: 600; text-align: right; min-width: 36px; }
.mkt { font-size: 13px; color: var(--text-2); text-align: right; min-width: 36px; }
.push-sm { height: 26px; padding: 0 10px; border-radius: var(--r-sm); border: 1px solid var(--hairline); background: var(--surface); color: var(--text); font-size: 12px; font-weight: 500; position: relative; transition: background .12s, border-color .12s; -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.push-sm:hover:not(:disabled) { background: color-mix(in srgb, var(--c, var(--text-3)) 5%, var(--surface)); border-color: var(--border-strong); }
.push-sm:active:not(:disabled) { background: var(--surface-3); }
.push-sm:disabled { opacity: .45; }
.mkt-line { font-size: 12px; color: var(--text-2); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

.float-plus { position: absolute; left: 50%; top: 0; pointer-events: none; font-size: 12px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; transform: translate(-50%, -2px); animation: floatUp .5s var(--ease) forwards; z-index: 5; white-space: nowrap; }
.float-plus.big { font-size: 16px; color: var(--text); }
.float-plus.huge { font-size: 20px; color: var(--text); }
@keyframes floatUp { to { transform: translate(calc(-50% + var(--dx, 0px)), -22px); opacity: 0; } }

.more { display: flex; margin: 24px auto 0; }
.grid-status:empty { display: none; }
.empty { text-align: center; padding: 48px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--text-2); }
.empty h1, .empty h2 { font-size: 20px; color: var(--text); }
.empty-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface); color: var(--text-3); margin-bottom: 4px; }
.empty .btn { margin-top: 6px; }

/* skeletons */
.skeleton-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.skeleton { height: 220px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--border); position: relative; overflow: hidden; }
.skeleton::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 60%, transparent), transparent); transform: translateX(-100%); animation: shimmer 1.4s ease-in-out infinite; }
.skeleton-hero { height: 340px; margin-bottom: 16px; }
.skeleton-rows { height: 420px; }
.skeleton-line { height: 12px; border-radius: 4px; background: var(--surface-3); }
@keyframes shimmer { to { transform: translateX(100%); } }
.boot { min-height: 60vh; }

/* ---------- chart ---------- */
.chart { position: relative; width: 100%; }
.chart-svg { display: block; width: 100%; height: 100%; overflow: visible; touch-action: pan-y; }
.chart-grid line { stroke: var(--border); stroke-width: 1; }
.chart-grid line.mid { stroke: var(--border-strong); }
.chart-ylab, .chart-xlab { fill: var(--text-3); font-size: 11px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.chart-line { fill: none; stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart-ref { fill: none; stroke-width: 1.25; stroke-dasharray: 4 4; opacity: .85; vector-effect: non-scaling-stroke; }
.chart-reflab { font-size: 10px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.chart-dot circle { fill: var(--c); stroke: var(--surface); stroke-width: 2; }
.chart-hover { stroke: var(--text-3); stroke-width: 1; stroke-dasharray: 2 3; }
.chart-tip { position: absolute; top: 4px; transform: translateX(-50%); pointer-events: none; z-index: 3; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 8px 10px; box-shadow: var(--shadow-pop); font-size: 12px; min-width: 150px; }
.chart-tip-time { color: var(--text-3); margin-bottom: 4px; }
.chart-tip-row { display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.chart-tip-row .lab { flex: 1; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart-tip-row .m { color: var(--text-3); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.legend-item { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.legend-item b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.legend-item .m { color: var(--text-3); font-variant-numeric: tabular-nums; }
.legend-key { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); }
.legend-key i { display: inline-block; width: 16px; border-top: 1.75px solid var(--text-2); }
.legend-key i.dash { border-top: 1.25px dashed var(--text-2); }

/* ---------- battle page ---------- */
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); margin-bottom: 16px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--text); }
.crumbs .icon { color: var(--text-3); }
.b-head { margin-bottom: 24px; }
.b-head-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 8px; }
.b-title { font-size: 28px; letter-spacing: -0.02em; overflow-wrap: anywhere; max-width: 32ch; }
.b-sub { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 13px; color: var(--text-2); align-items: center; }
.conn { display: none; color: var(--warn); font-weight: 500; }
.conn.on { display: inline; }
.b-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.b-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.b-main > .panel + .panel { margin-top: 0; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); }
.metric { padding: 14px 16px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.metric + .metric { border-left: 1px solid var(--border); }
.metric-label { font-size: 12px; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.metric-label .icon { color: var(--text-3); }
.metric-value { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-head); }
.metric-value.urgent { color: var(--danger); }
.metric-value.accent { color: var(--accent-text); }
.metric-sub { font-size: 12px; color: var(--text-3); }
.chart-panel .panel-head { flex-wrap: wrap; }
.chart-panel .chart-box { padding: 12px 8px 8px 16px; }
.mkt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-2); }
.mkt-bar a { color: var(--text); font-weight: 500; display: inline-flex; gap: 4px; align-items: center; }
.mkt-bar a:hover { text-decoration: underline; text-underline-offset: 2px; }
.b-desc p { color: var(--text-2); white-space: pre-line; overflow-wrap: anywhere; }
.b-lower { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.b-lower .panel + .panel { margin-top: 0; }
.scroll-y { max-height: 380px; overflow-y: auto; }

/* tables */
.table { width: 100%; font-size: 13px; }
.table th { position: sticky; top: 0; z-index: 1; background: var(--surface-2); color: var(--text-2); font-weight: 500; font-size: 12px; text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .r, .table th.r { text-align: right; }
.table .rank { width: 44px; color: var(--text-3); font-weight: 500; }
.table tr.me td { background: var(--accent-soft); }
.table .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.table .who-text { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.table .who-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table .side { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); white-space: nowrap; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.table .w-icon { color: var(--text); }
.table td.trunc { max-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table tbody tr.new td { animation: rowIn .6s var(--ease); }
@keyframes rowIn { from { background: var(--surface-2); } }
.table-empty { padding: 24px 16px; color: var(--text-2); font-size: 13px; text-align: center; }
.you-tag { display: inline-flex; font-size: 11px; font-weight: 500; color: var(--accent-text); border: 1px solid var(--accent-ring); padding: 0 5px; border-radius: 4px; margin-left: 6px; }
.avatar { flex: none; display: inline-grid; place-items: center; border-radius: 50%; font-weight: 600; color: hsl(var(--hue, 250) 30% var(--avatar-ink)); background: hsl(var(--hue, 250) 28% var(--avatar-l)); letter-spacing: .01em; }
.avatar.ghost { width: 26px; height: 26px; background: var(--surface-3); color: var(--text-3); font-size: 11px; }
.plinks { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; }
.plink { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-2); max-width: 180px; }
.plink span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plink:hover { color: var(--text); }
.plink:hover span { text-decoration: underline; text-underline-offset: 2px; }

/* push panel */
.b-rail { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 16px; }
.pp-title { font-size: 14px; font-weight: 600; font-family: var(--font); }
.pp-hint { font-size: 12px; color: var(--text-2); }
.pp-sides { display: flex; flex-direction: column; gap: 8px; }
.pp-side { position: relative; display: flex; flex-direction: column; gap: 8px; width: 100%; text-align: left; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--hairline); background: var(--surface); color: var(--text); transition: border-color .12s, background .12s, transform .08s; -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.pp-side:hover:not(:disabled) { border-color: var(--border-strong); background: color-mix(in srgb, var(--c) 4%, var(--surface)); }
.pp-side:active:not(:disabled) { transform: scale(.99); }
.pp-side:disabled { cursor: default; }
.pp-side:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pp-side.lead { border-color: color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) var(--tint-lead), var(--surface)); }
.pp-side.lead:hover:not(:disabled) { border-color: color-mix(in srgb, var(--c) 60%, transparent); background: color-mix(in srgb, var(--c) calc(var(--tint-lead) + 3%), var(--surface)); }
.pp-side.heavy { animation: heavy .28s var(--ease); }
@keyframes heavy { 0% { transform: scale(.985); } 100% { transform: none; } }
.pp-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; width: 100%; }
.pp-label { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; min-width: 0; }
.pp-label span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-pct { font-size: 20px; font-weight: 600; font-family: var(--font-head); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.pp-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.pp-meta kbd { border: 1px solid var(--hairline); border-radius: 4px; padding: 0 5px; color: var(--text-3); background: transparent; }
.pp-mkt { color: var(--text-2); }
.pp-lead { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 999px; font-size: 11px; font-weight: 500; color: color-mix(in srgb, var(--c) 75%, var(--text)); background: color-mix(in srgb, var(--c) 14%, transparent); }
.pp-state { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 10px 12px; }
.pp-state .icon { color: var(--text-2); margin-top: 1px; }
.combo { font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; min-height: 18px; opacity: 0; transition: opacity .15s; text-align: center; }
.combo.on { opacity: 1; }
.you-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); margin-bottom: 6px; }
.you-head b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.you-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.you-list li { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.you-list li span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.you-list b { font-weight: 600; font-variant-numeric: tabular-nums; }
.rail-actions { display: flex; gap: 8px; }
.rail-actions .btn { flex: 1; }
.end-box { border: 1px solid var(--border); border-radius: var(--r-sm); padding: 14px; background: var(--surface-2); }
.end-title { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.end-title .icon { color: var(--text-2); }
.end-sub { color: var(--text-2); font-size: 13px; margin-top: 4px; }
.called { margin-top: 10px; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--live); }
.end-you { margin-top: 10px; font-size: 13px; color: var(--text-2); }
.page-shake { animation: shake .32s linear; }
.page-shake.hard { animation: shakeHard .5s linear; }
@keyframes shake { 20% { transform: translate(-2px, 1px); } 40% { transform: translate(2px, -1px); } 60% { transform: translate(-1px, 1px); } 80% { transform: translate(1px, 0); } }
@keyframes shakeHard { 10%, 50% { transform: translate(-4px, 2px); } 30%, 70% { transform: translate(4px, -2px); } 90% { transform: translate(-1px, 1px); } }
.impact { position: fixed; left: 50%; top: 96px; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r-sm); background: var(--text); color: var(--bg); font-size: 13px; font-weight: 500; box-shadow: var(--shadow-pop); pointer-events: none; animation: impact 1.6s var(--ease) forwards; }
@keyframes impact { 0% { opacity: 0; transform: translate(-50%, -6px); } 12%, 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }

/* arsenal control on battle pages */
.arsenal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.arsenal-head .pp-title { display: flex; align-items: center; gap: 6px; }
.seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border-strong); border-radius: var(--r-sm); overflow: hidden; background: var(--surface); }
.seg-btn { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 7px; border: 0; background: none; color: var(--text); font-size: 11px; line-height: 1.2; min-width: 0; }
.seg-btn + .seg-btn { border-left: 1px solid var(--border); }
.seg-btn:hover:not([aria-disabled="true"]) { background: var(--surface-2); }
.seg-btn .icon { color: var(--text-2); }
.seg-name { font-weight: 500; }
.seg-count { color: var(--text-2); font-variant-numeric: tabular-nums; }
.seg-btn[aria-pressed="true"] { background: var(--accent-soft); box-shadow: inset 0 -2px 0 var(--accent); }
.seg-btn[aria-pressed="true"] .icon, .seg-btn[aria-pressed="true"] .seg-count { color: var(--accent-text); }
.seg-btn[aria-disabled="true"] { color: var(--text-3); }
.seg-btn[aria-disabled="true"] .icon, .seg-btn[aria-disabled="true"] .seg-count { color: var(--text-3); opacity: .7; }
.seg-btn.arming { background: var(--surface-2); }
.armed-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; min-height: 28px; }
.armed-line b { color: var(--text); font-weight: 600; }
.arsenal-note { font-size: 12px; color: var(--text-3); margin-top: 6px; }

/* airdrop crate */
.crate { position: fixed; z-index: 45; width: 76px; height: 76px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface); box-shadow: var(--shadow-pop); display: grid; place-items: center; padding: 0; color: var(--text); animation: crateIn .2s var(--ease); }
.crate:hover { border-color: var(--accent); }
.crate-ring { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); transform: rotate(-90deg); pointer-events: none; }
.crate-ring circle { fill: none; stroke-width: 2.5; }
.crate-ring .track { stroke: var(--surface-3); }
.crate-ring .left { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .25s linear; }
.crate-inner { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); }
.crate-inner .icon { color: var(--text); }
.crate.grabbing { opacity: .6; }
@keyframes crateIn { from { opacity: 0; transform: scale(.92); } }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field > legend, .field-label { font-weight: 500; font-size: 13px; padding: 0; color: var(--text); }
.field > legend { margin-bottom: 6px; }
.field-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
input[type="text"], input[type="url"], input[type="search"]:not(.search input), select, textarea {
  width: 100%; min-width: 0; height: 36px; border: 1px solid var(--border-strong); background: var(--surface); border-radius: var(--r-sm); padding: 0 10px; outline: none; font-size: 14px;
  transition: border-color .12s, box-shadow .12s;
}
textarea { height: auto; padding: 8px 10px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--text-3); }
input[type="text"]:focus, input[type="url"]:focus, input[type="search"]:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 22%, transparent) !important; }
.prefix-input { display: flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--surface); height: 36px; overflow: hidden; }
.prefix-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.prefix-input span { padding: 0 0 0 10px; color: var(--text-3); font-size: 14px; }
.prefix-input input[type="text"] { border: 0 !important; box-shadow: none !important; height: 34px; padding-left: 2px; }
.prefix-input:has([aria-invalid="true"]) { border-color: var(--danger); }
.help { font-size: 12px; color: var(--text-2); display: flex; justify-content: space-between; gap: 8px; }
.help.bad, .field-error { color: var(--danger); }
.field-error { font-size: 12px; }
.count { color: var(--text-3); }
.tag-box { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--r-sm); padding: 4px 6px; background: var(--surface); min-height: 36px; }
.tag-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.tag-box input[type="text"] { border: 0; flex: 1; min-width: 140px; height: 26px; padding: 0 4px; box-shadow: none !important; }
.chips { display: contents; }
.chip-x { border: 0; background: none; padding: 0; color: var(--text-3); display: inline-grid; place-items: center; }
.chip-x:hover { color: var(--danger); }
.sides-edit { display: flex; flex-direction: column; gap: 8px; }
.side-edit { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.sides-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 8px; }
.segmented { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--border-strong); border-radius: var(--r-sm); overflow: hidden; width: max-content; max-width: 100%; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label { padding: 0 14px; height: 34px; display: inline-flex; align-items: center; cursor: pointer; font-weight: 500; font-size: 13px; background: var(--surface); color: var(--text-2); border-right: 1px solid var(--border); }
.segmented label:last-of-type { border-right: 0; }
.segmented input:checked + label { background: var(--surface-3); color: var(--text); }
.segmented input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: -2px; }
.form-error { display: flex; gap: 8px; border: 1px solid color-mix(in srgb, var(--danger) 35%, var(--border)); background: color-mix(in srgb, var(--danger) 6%, var(--surface)); color: var(--text); border-radius: var(--r-sm); padding: 10px 12px; font-size: 13px; }
.form-error .icon { color: var(--danger); margin-top: 2px; }
.form-error b { font-weight: 600; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.inline-form { display: flex; gap: 8px; }
.inline-form input { flex: 1; }

/* kind chooser */
.kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.kind { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--border-strong); border-radius: var(--r); background: var(--surface); cursor: pointer; }
.kind:hover { border-color: var(--border-strong); }
.kind input { position: absolute; opacity: 0; pointer-events: none; }
.kind:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.kind:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.kind-icon { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--border); color: var(--text-2); background: var(--surface-2); }
.kind b { display: block; font-weight: 600; font-size: 14px; }
.kind span.muted { font-size: 13px; }

/* market combobox */
.combo-wrap { position: relative; }
.combo-input { display: flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--surface); height: 40px; color: var(--text-3); }
.combo-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.combo-input .icon { margin-left: 12px; }
.combo-input input[type="text"] { border: 0 !important; box-shadow: none !important; height: 38px; color: var(--text); }
.combo-spin { width: 14px; height: 14px; margin-right: 12px; border-radius: 50%; border: 1.5px solid var(--border-strong); border-top-color: var(--text-2); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.listbox { list-style: none; margin: 6px 0 0; padding: 4px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-pop); max-height: 480px; overflow-y: auto; }
.listbox-head { padding: 6px 10px 4px; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.opt { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 10px; border-radius: var(--r-sm); cursor: pointer; }
.opt + .opt { border-top: 1px solid var(--border); }
.opt[aria-selected="true"], .opt:hover { background: var(--surface-2); }
.opt-img { width: 40px; height: 40px; border-radius: var(--r-sm); object-fit: cover; border: 1px solid var(--border); background: var(--surface-2); display: grid; place-items: center; color: var(--text-3); }
.opt-main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.opt-top { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); flex-wrap: wrap; }
.opt-title { font-weight: 500; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.opt-sides { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.opt-sides b { color: var(--text); font-weight: 600; }
.opt-exists { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--accent-text); font-weight: 500; }
.listbox-empty { padding: 20px 12px; text-align: center; color: var(--text-2); font-size: 13px; }

/* switch */
.switch { flex: none; width: 36px; height: 20px; border-radius: 999px; border: 0; background: var(--border-strong); position: relative; padding: 0; transition: background .15s; }
.switch-knob { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s var(--ease); }
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"] .switch-knob { transform: translateX(16px); }

/* ---------- leaderboard ---------- */
.lb-wrap { overflow-x: auto; }
.lb-wrap .table th { top: 0; }
.lb-battle { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lb-title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.lb-battle:hover .lb-title { text-decoration: underline; text-underline-offset: 2px; }
.lb-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12px; color: var(--text-2); }
.mini-split { display: flex; gap: 2px; height: 3px; border-radius: 2px; overflow: hidden; max-width: 220px; }
.mini-split span { flex-basis: 0; }
.week-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-2); }
.week-bar b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.week-earn { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; }
.week-earn span { display: inline-flex; gap: 4px; align-items: center; }

/* ---------- me ---------- */
.me-head { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; }
.me-name { font-size: 24px; overflow-wrap: anywhere; }
.metrics.me-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; }
.metrics.me-metrics .metric:nth-child(n+5) { border-top: 1px solid var(--border); }
.metrics.me-metrics .metric:nth-child(4n+1) { border-left: 0; }
.inv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.inv { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--border); border-radius: var(--r-sm); }
.inv-top { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.inv-top .icon { color: var(--text-2); }
.inv-n { font-size: 20px; font-weight: 600; font-family: var(--font-head); font-variant-numeric: tabular-nums; }
.inv-sub { font-size: 12px; color: var(--text-3); }
.interests, .your-sides { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.interests li { display: grid; grid-template-columns: 140px minmax(0, 1fr) 44px; gap: 12px; align-items: center; font-size: 13px; }
.interests .tag { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.interests .bar { height: 4px; }
.interests .bar-fill { background: var(--text-3); }
.your-sides li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; font-size: 13px; }
.your-sides a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.your-sides a:hover { text-decoration: underline; text-underline-offset: 2px; }
.side-chip { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.danger-zone .panel-title { color: var(--danger); }

/* ---------- arsenal page ---------- */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(5, auto); border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); }
.plan { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; min-width: 0; }
.plan + .plan { border-left: 1px solid var(--border); }
.plan-head { padding: 20px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.plan-icon { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: var(--r); color: var(--text); background: var(--surface-2); }
.plan-name { font-size: 16px; font-weight: 600; }
.plan-effect { font-size: 20px; font-weight: 600; font-family: var(--font-head); letter-spacing: -0.01em; line-height: 1.3; }
.plan-effect-sub { font-size: 13px; color: var(--text-2); }
.plan-have { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 12px 20px; border-bottom: 1px solid var(--border); background: var(--surface-2); font-size: 13px; color: var(--text-2); }
.plan-have b { font-size: 16px; color: var(--text); font-variant-numeric: tabular-nums; font-weight: 600; }
.plan-sec { padding: 16px 20px; display: flex; flex-direction: column; gap: 8px; }
.plan-sec + .plan-sec { border-top: 1px solid var(--border); }
.plan-sec h3 { font-size: 12px; font-weight: 500; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; font-family: var(--font); }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.checks li { display: flex; gap: 8px; align-items: flex-start; }
.checks .icon { color: var(--text-3); margin-top: 2px; }
.checks li.off { color: var(--text-3); }
.rules-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rule { padding: 16px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.rule .icon { color: var(--text-2); }
.rule b { font-weight: 600; }
.rule p { font-size: 13px; color: var(--text-2); }
.cta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.faq { border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); }
.faq details + details { border-top: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 500; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--text-3); transition: transform .15s var(--ease); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding: 0 16px 14px; color: var(--text-2); font-size: 13px; max-width: 72ch; }

/* ---------- about ---------- */
.prose h2 { font-size: 16px; margin-bottom: 12px; }
.prose p + p { margin-top: 10px; }
.prose a:not(.btn) { color: var(--accent-text); }
.prose a:not(.btn):hover { text-decoration: underline; text-underline-offset: 2px; }
.steps { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.step h3 { font-size: 14px; font-family: var(--font); }
.step p { font-size: 13px; color: var(--text-2); }
.step-n { font-size: 12px; font-weight: 500; color: var(--text-3); font-variant-numeric: tabular-nums; }
.rules { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; color: var(--text-2); }
.rules b { color: var(--text); font-weight: 600; }
.prose .panel { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--surface); margin-top: 48px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 40px var(--gutter) 32px; display: grid; grid-template-columns: 2fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-brand p { margin-top: 12px; color: var(--text-3); font-size: 13px; }
.footer-col h2 { font-size: 12px; font-weight: 500; color: var(--text); font-family: var(--font); margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 13px; color: var(--text-2); }
.footer-col a:hover { color: var(--text); }
.footer-base { max-width: 1200px; margin: 0 auto; padding: 16px var(--gutter) 24px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-3); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- toasts, modal, mock badge ---------- */
.toasts { position: fixed; z-index: 60; right: 20px; bottom: calc(20px + var(--dock-h, 0px) + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; width: min(360px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 10px; align-items: flex-start; background: var(--surface); color: var(--text); border: 1px solid var(--border); padding: 10px 12px; border-radius: var(--r); font-size: 13px; box-shadow: var(--shadow-pop); animation: toastIn .18s var(--ease); transition: opacity .25s, transform .25s; }
.toast-icon { color: var(--text-2); display: inline-flex; margin-top: 1px; }
.toast-error .toast-icon { color: var(--danger); }
.toast-warn .toast-icon { color: var(--warn); }
.toast.out { opacity: 0; transform: translateY(6px); }
@keyframes toastIn { from { opacity: 0; transform: translateY(6px); } }
.modal { border: 1px solid var(--border); border-radius: var(--r); padding: 0; background: var(--surface); color: var(--text); width: min(440px, calc(100vw - 32px)); box-shadow: var(--shadow-pop); }
.modal::backdrop { background: rgba(10, 10, 14, .45); }
.modal-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.modal-title { font-size: 16px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.mock-badge { position: fixed; left: 12px; bottom: 12px; z-index: 70; display: flex; gap: 8px; align-items: center; background: var(--surface); color: var(--text-2); border: 1px solid var(--border-strong); font-size: 11px; font-weight: 500; padding: 4px 10px; border-radius: var(--r-sm); box-shadow: var(--shadow-sm); }
.mock-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }
.mock-badge a { text-decoration: underline; color: var(--text); }


/* ---------- weapon effects (js/weapon-fx.js) ---------- */
.fx-layer { position: fixed; inset: 0; z-index: 46; pointer-events: none; overflow: hidden; }
.fx-canvas { position: absolute; left: 0; top: 0; pointer-events: none; }
.fx-n { position: absolute; pointer-events: none; will-change: transform, opacity; }
.fx-num { transform: translate(-50%, -100%); font-size: 13px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fx-ripple { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: var(--c); opacity: 0; animation: fxRipple .45s var(--ease); }
@keyframes fxRipple { 0% { transform: scale(.1); opacity: .22; } 100% { transform: scale(1); opacity: 0; } }
.fx-float { transform: translate(-50%, 0); font-size: 12px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; animation: fxFloat .5s var(--ease) forwards; }
@keyframes fxFloat { 0% { transform: translate(-50%, -4px); opacity: 1; } 100% { transform: translate(calc(-50% + var(--dx, 0px)), -26px); opacity: 0; } }
.fx-float.fx-drop { font-size: 17px; font-weight: 700; color: var(--text); animation: fxDrop .68s cubic-bezier(.3, 1.4, .5, 1) forwards; }
@keyframes fxDrop { 0% { transform: translate(-50%, -40px) scale(1.35); opacity: 0; } 25% { transform: translate(-50%, -12px) scale(1); opacity: 1; } 70% { transform: translate(calc(-50% + var(--dx)), -18px); opacity: 1; } 100% { transform: translate(calc(-50% + var(--dx)), -30px); opacity: 0; } }
.fx-float.fx-launch { font-size: 15px; font-weight: 700; color: var(--text); animation: fxLaunch .6s cubic-bezier(.2, .6, .3, 1) forwards; }
@keyframes fxLaunch { 0% { transform: translate(-50%, 0); opacity: 1; } 60% { opacity: 1; } 100% { transform: translate(calc(-50% + var(--dx)), -90px) rotate(calc(var(--dx) / 4 * 1deg)); opacity: 0; } }
.fx-float.fx-big { font-size: 24px; font-weight: 700; color: var(--text); font-family: var(--font-head); animation: fxBig .8s var(--ease) forwards; }
@keyframes fxBig { 0% { transform: translate(-50%, 0) scale(.6); opacity: 0; } 18% { transform: translate(-50%, -16px) scale(1.08); opacity: 1; } 30% { transform: translate(-50%, -18px) scale(1); } 75% { opacity: 1; } 100% { transform: translate(-50%, -40px); opacity: 0; } }
.fx-float.fx-hold { font-size: 34px; font-weight: 700; color: var(--text); font-family: var(--font-head); letter-spacing: -0.02em; animation: fxHold 1.5s var(--ease) forwards; }
@keyframes fxHold { 0% { transform: translate(-50%, 0) scale(.6); opacity: 0; } 12% { transform: translate(-50%, -24px) scale(1.06); opacity: 1; } 20% { transform: translate(-50%, -26px) scale(1); } 78% { transform: translate(-50%, -30px); opacity: 1; } 100% { transform: translate(-50%, -48px); opacity: 0; } }
.fx-ring { width: var(--size); height: var(--size); margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2); border-radius: 50%; border: 2px solid var(--c); opacity: 0; animation: fxRing .4s cubic-bezier(.1, .7, .3, 1); }
.fx-ring-hard { border-width: 3px; border-color: var(--text); }
.fx-ring-bright { border-width: 2px; border-color: var(--c); animation-duration: .55s; }
.fx-ring.fx-wave { border-width: 2px; animation: fxWave .9s cubic-bezier(.15, .6, .3, 1); }
@keyframes fxRing { 0% { transform: scale(.08); opacity: .95; } 100% { transform: scale(1); opacity: 0; } }
@keyframes fxWave { 0% { transform: scale(.02); opacity: .9; } 100% { transform: scale(1); opacity: 0; } }
.fx-blast { width: var(--size); height: var(--size); margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2); border-radius: 50%; background: var(--c); opacity: 0; animation: fxBlast .5s var(--ease); }
@keyframes fxBlast { 0% { transform: scale(.1); opacity: .5; } 40% { opacity: .22; } 100% { transform: scale(1); opacity: 0; } }
.fx-spark { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 2px color-mix(in srgb, var(--warn) 30%, transparent); animation: fxSpark .15s steps(3) infinite; }
@keyframes fxSpark { 0% { transform: scale(.6); } 50% { transform: scale(1.3) translate(1px, -1px); } 100% { transform: scale(.8); } }
.fx-streak { width: 2px; height: 46px; margin-left: -1px; background: var(--c); border-radius: 2px; transform-origin: bottom; opacity: 0; animation: fxStreak .5s cubic-bezier(.2, .7, .2, 1); }
@keyframes fxStreak { 0% { transform: translateY(-46px) scaleY(.2); opacity: .9; } 100% { transform: translateY(-150px) scaleY(1); opacity: 0; } }
.fx-speed { width: 1px; height: 18px; background: var(--text-3); opacity: 0; animation: fxSpeed .4s linear both; }
@keyframes fxSpeed { 0% { transform: translateY(0); opacity: .8; } 100% { transform: translateY(-70px); opacity: 0; } }
.fx-flash { position: absolute; inset: 0; background: var(--flash); opacity: 0; animation: fxFlash .5s ease-out; }
@keyframes fxFlash { 0% { opacity: 0; } 12% { opacity: var(--flash-peak, .55); } 100% { opacity: 0; } }
.fx-squash { animation: fxSquash .3s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes fxSquash { 0% { transform: scale(1); } 30% { transform: scale(.94, .9); } 65% { transform: scale(1.025, 1.03); } 100% { transform: scale(1); } }
.fx-jolt { animation: fxJolt .2s linear; }
@keyframes fxJolt { 25% { transform: translateY(3px); } 60% { transform: translateY(-1px); } 100% { transform: none; } }
.fx-shake { animation: fxShake .36s linear; }
@keyframes fxShake { 15% { transform: translate(-4px, 2px); } 35% { transform: translate(4px, -2px); } 55% { transform: translate(-3px, 1px); } 75% { transform: translate(2px, -1px); } 100% { transform: none; } }
.fx-shake-hard { animation: fxShakeHard .55s linear; }
@keyframes fxShakeHard { 10% { transform: translate(-7px, 3px) rotate(-.2deg); } 25% { transform: translate(7px, -3px) rotate(.2deg); } 40% { transform: translate(-5px, 2px); } 55% { transform: translate(4px, -2px); } 75% { transform: translate(-2px, 1px); } 100% { transform: none; } }
.fx-chart-pulse { animation: fxChart .6s var(--ease); transform-origin: 50% 60%; }
@keyframes fxChart { 0% { transform: none; filter: none; } 20% { transform: scale(1.012, .97) skewX(-1.2deg); filter: blur(.6px); } 45% { transform: scale(.995, 1.01) skewX(.6deg); filter: none; } 100% { transform: none; } }
.fx-rocket-on .bar-fill { position: relative; overflow: hidden; }
.fx-rocket-on .bar-fill::after { content: ''; position: absolute; top: 0; bottom: 0; width: 30%; background: color-mix(in srgb, var(--surface) 70%, transparent); animation: fxShimmer .7s linear infinite; }
@keyframes fxShimmer { from { transform: translateX(-120%); } to { transform: translateX(400%); } }
.fx-countdown { flex: none; transform: rotate(-90deg); }
.fx-countdown circle { fill: none; stroke-width: 2; }
.fx-countdown .track { stroke: var(--surface-3); }
.fx-countdown .left { stroke: var(--accent); stroke-linecap: round; stroke-dashoffset: var(--from); animation-name: fxCount; animation-timing-function: linear; animation-fill-mode: forwards; }
@keyframes fxCount { to { stroke-dashoffset: var(--to); } }

/* preview stages */
.fx-stage { position: relative; overflow: hidden; height: 120px; border: 1px dashed var(--border-strong); border-radius: var(--r-sm); background: var(--surface-2); display: grid; place-items: center; isolation: isolate; }
.fx-stage-sm { height: 76px; }
.fx-stage-tag { position: absolute; left: 8px; top: 6px; font-size: 10px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.fx-stage .fx-n { z-index: 2; }
.fx-stage .fx-canvas { z-index: 1; }
.fx-mini { position: relative; width: 132px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 4px; padding: 8px 10px; border-radius: var(--r-sm); border: 1px solid var(--border-strong); background: var(--surface); font-size: 12px; }
.fx-stage-sm .fx-mini { width: 116px; padding: 6px 8px; }
.fx-mini-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.fx-mini-pct { font-weight: 600; font-variant-numeric: tabular-nums; }
.fx-mini-bar { flex-basis: 100%; height: 3px; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
.fx-mini-bar span { display: block; height: 100%; background: var(--c); }
.seg-preview { margin-top: 8px; }
.seg-preview-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--text-2); }


/* ---------- create form ---------- */
.cf-label { font-family: var(--font-head); font-size: 20px !important; font-weight: 600 !important; letter-spacing: -0.015em; }
.create-form .combo-input { height: 48px; }
.create-form .combo-input input[type="text"] { height: 46px; font-size: 16px; }
.side-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.side-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 6px 0 10px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--surface); }
.side-chip:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.side-chip input[type="text"] { border: 0 !important; box-shadow: none !important; height: 28px; padding: 0 2px; min-width: 4ch; font-size: 13px; font-weight: 500; background: transparent; }
.side-chip .chip-x:disabled { opacity: .3; cursor: not-allowed; }
.more-opts { border: 1px solid var(--border); border-radius: var(--r-sm); }
.more-opts summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-weight: 500; font-size: 13px; }
.more-opts summary::-webkit-details-marker { display: none; }
.more-opts summary .icon { color: var(--text-3); transition: transform .15s var(--ease); }
.more-opts[open] summary .icon { transform: rotate(90deg); }
.more-opts[open] summary { border-bottom: 1px solid var(--border); }
.more-body { padding: 16px 12px; display: flex; flex-direction: column; gap: 16px; }

/* create: while POST /api/battles runs. The form stays in place, dimmed and inert; the button (or
   the picked market row) carries the spinner, and the line under it names the step and the seconds. */
.busy-ind { flex: none; display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, currentColor 28%, transparent); border-top-color: currentColor; animation: spin .7s linear infinite; }
.busy-ind i { display: none; }
@media (prefers-reduced-motion: reduce) {
  .busy-ind { width: auto; height: auto; border: 0; border-radius: 0; animation: none !important; display: inline-flex; align-items: center; gap: 3px; }
  .busy-ind i { display: block; width: 3.5px; height: 3.5px; border-radius: 50%; background: currentColor; }
  .busy-ind i:nth-child(2) { opacity: .7; }
  .busy-ind i:nth-child(3) { opacity: .45; }
}
.btn-primary[aria-disabled="true"]:not(.is-loading) { opacity: .5; }
.btn-primary[aria-disabled="true"]:hover { background: var(--accent); }
.btn.is-loading { cursor: progress; gap: 8px; }
.cf-foot { display: flex; flex-direction: column; }
.cf-status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.cf-status.on { margin-top: 12px; min-height: 20px; }
.cf-status-icon { display: inline-flex; color: var(--text-3); }
.cf-status-icon:empty { display: none; }
.cf-status-time { color: var(--text-3); font-variant-numeric: tabular-nums; }
.cf-status-time::before { content: '·'; margin-right: 8px; }
.text-btn { border: 0; background: none; padding: 2px 0; font-size: 13px; font-weight: 500; color: var(--accent-text); border-radius: 2px; }
.text-btn:hover { text-decoration: underline; text-underline-offset: 2px; }
.cf-cancel { margin-left: auto; }
.cf-field-error { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; color: var(--danger); overflow-wrap: anywhere; }
.cf-field-error .icon { margin-top: 2px; }
.cf-field-error b { font-weight: 600; }
.create-form.is-busy .combo-input { background: var(--surface-2); color: var(--text-3); }
.create-form.is-busy .combo-input input { color: var(--text-2); cursor: progress; }
.create-form.is-busy .side-chips, .create-form.is-busy .sides-foot, .create-form.is-busy .more-opts { opacity: .55; }
.create-form.is-busy .more-opts summary, .create-form.is-busy .side-chip input { cursor: not-allowed; }
.listbox[aria-busy="true"] .opt[aria-disabled="true"] { opacity: .45; cursor: not-allowed; background: none; }
.opt.is-picking { grid-template-columns: 40px minmax(0, 1fr) auto; background: var(--surface-2); cursor: progress; }
.opt-busy { align-self: center; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: var(--accent-text); white-space: nowrap; }
@media (max-width: 480px) {
  .opt.is-picking { grid-template-columns: 40px minmax(0, 1fr); }
  .opt.is-picking .opt-busy { grid-column: 2; }
}
.modal-wide { width: min(640px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); overflow-y: auto; }
.modal-wide .listbox { max-height: 340px; }
.modal.sheet { margin-bottom: 0; }
@media (max-width: 640px) {
  .modal.sheet { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: var(--r) var(--r) 0 0; animation: sheetUp .22s var(--ease); padding-bottom: env(safe-area-inset-bottom); }
  @keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } }
}
.medal { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border-strong); color: var(--text); font-size: 11px; font-weight: 600; }
.medal-1 { border-color: color-mix(in srgb, var(--accent) 40%, transparent); color: var(--accent-text); background: var(--accent-soft); }
.inferred { align-items: center; flex-wrap: wrap; }
.social-row { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.social-actions { display: flex; gap: 8px; }
.social-form { display: flex; flex-direction: column; gap: 8px; }
.side-chip-ro { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.panel-foot .icon { vertical-align: -2px; color: var(--text-3); }
.arsenal-compact .seg-btn { flex-direction: row; justify-content: center; gap: 6px; padding: 8px 2px; }
.arsenal-compact .seg-name { display: none; }
.arsenal-compact .armed-line { margin-top: 6px; min-height: 24px; }

/* ---------- mobile tab bar and swipe entry ---------- */
.swipe-entry { display: none; }
@media (max-width: 767px) {
  .nav { display: none; }
  .swipe-entry { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 20px; border: 1px solid var(--border-strong); border-radius: var(--r); background: var(--surface); }
  .swipe-icon { width: 36px; height: 36px; border-radius: var(--r-sm); background: var(--accent); color: var(--on-accent); display: grid; place-items: center; flex: none; }
  .swipe-text { display: flex; flex-direction: column; flex: 1; min-width: 0; font-size: 12px; color: var(--text-2); }
  .swipe-text b { font-size: 15px; color: var(--text); font-weight: 600; }
  .swipe-entry > .icon { color: var(--text-3); }
}

/* ---------- swipe feed ---------- */
body.feed-mode .footer, body.feed-mode .mock-badge { display: none; }
body.feed-mode { overflow: hidden; }
.feed-wrap { position: relative; }
.feed { height: calc(100dvh - var(--feed-top, 60px)); overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior-y: contain; scrollbar-width: none; outline: none; max-width: 600px; margin: 0 auto; border-left: 1px solid var(--border); border-right: 1px solid var(--border); background: var(--bg); }
.feed::-webkit-scrollbar { display: none; }
.fscreen { height: 100%; scroll-snap-align: start; scroll-snap-stop: always; position: relative; overflow: hidden; }
.fscreen + .fscreen { border-top: 1px solid var(--border); }
.fs-inner { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 12px; padding: 20px 16px calc(16px + env(safe-area-inset-bottom)); padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.fs-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12px; }
.fs-meta > span:last-child { margin-left: auto; }
.fs-title { font-size: 24px; letter-spacing: -0.02em; margin-top: 8px; line-height: 1.2; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.fs-stream { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; overflow: hidden; pointer-events: none; min-height: 0; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 32px); mask-image: linear-gradient(to bottom, transparent, #000 32px); }
.fs-push { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; min-height: 26px; animation: fsIn .22s var(--ease); transition: opacity .35s, transform .35s; }
.fs-push b { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; max-width: 40%; }
.fs-push .plink { pointer-events: auto; color: var(--text); font-weight: 600; }
.fs-push .w-icon { color: var(--text); }
.fs-side { color: var(--text); font-weight: 500; }
.fs-n { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.fs-push.out { opacity: 0; transform: translateY(-6px); }
@keyframes fsIn { from { opacity: 0; transform: translateY(8px); } }
.fs-sides .pp-side { padding: 14px; }
.fs-sides .pp-pct { font-size: 22px; }
.fs-bottom { display: flex; flex-direction: column; gap: 10px; }
.fs-actions { display: flex; justify-content: space-between; gap: 8px; }
.fs-note { display: flex; gap: 6px; font-size: 12px; color: var(--text-2); }
.fs-note .icon { margin-top: 2px; color: var(--text-3); }
.ptr { position: absolute; left: 50%; top: 0; z-index: 5; transform: translate(-50%, -40px); display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 12px; color: var(--text-2); box-shadow: var(--shadow-sm); transition: transform .2s var(--ease); pointer-events: none; }
.ptr.ready .icon { transform: rotate(180deg); }
@media (max-width: 767px) {
  .feed { border: 0; max-width: none; }
  .fs-title { font-size: 22px; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .search { width: 180px; }
  .b-layout { grid-template-columns: minmax(0, 1fr) 320px; }
  .featured-body { grid-template-columns: minmax(0, 1fr); }
  .featured-chart { border-right: 0; border-bottom: 1px solid var(--border); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan:nth-child(3) { border-left: 0; }
  .plan:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 900px) {
  :root { --gutter: 16px; }
  .topbar { position: static; }
  .topbar-inner { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 0; gap: 10px 12px; }
  .nav { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; width: calc(100% + 2 * var(--gutter)); }
  .nav::-webkit-scrollbar { display: none; }
  .search { order: 2; width: 100%; }
  .top-right { order: 1; }
  .search kbd { display: none; }
  .home-top { grid-template-columns: minmax(0, 1fr); }
  .b-layout { display: flex; flex-direction: column; }
  .b-main { display: contents; }
  .metrics.b-metrics { order: 1; }
  .chart-panel { order: 2; }
  .b-rail { order: 3; position: static; width: 100%; }
  .b-desc { order: 4; }
  .b-lower { order: 5; }
  .b-layout > *, .b-main > * { width: 100%; }
  .steps, .rules-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .social-row { grid-template-columns: minmax(0, 1fr); }
  .page { padding-top: 20px; }
  .acct-text { display: none; }
  .new-text { display: none; }
  .new-btn { width: 34px; padding: 0; }
  .metrics.b-metrics, .metrics.me-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics.b-metrics .metric:nth-child(3), .metrics.me-metrics .metric:nth-child(odd) { border-left: 0; }
  .metrics.b-metrics .metric:nth-child(n+3), .metrics.me-metrics .metric:nth-child(n+3) { border-top: 1px solid var(--border); }
  .metrics.me-metrics .metric:nth-child(4n+1) { border-left: 0; }
  .metrics.me-metrics .metric:nth-child(even) { border-left: 1px solid var(--border); }
  .metric-value { font-size: 18px; }
  .b-chart .chart { height: 220px !important; }
  .b-lower { grid-template-columns: minmax(0, 1fr); }
  .b-title { font-size: 22px; }
  .page-title { font-size: 24px; }
  .featured-title { font-size: 17px; }
  .hide-sm { display: none; }
  .table th, .table td { padding-left: 8px; padding-right: 8px; }
  .inv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .interests li { grid-template-columns: 100px minmax(0, 1fr) 40px; }
  .inline-form { flex-direction: column; }
  .kinds { grid-template-columns: minmax(0, 1fr); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--border); }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toasts { right: 16px; left: 16px; width: auto; }
  .crate { width: 68px; height: 68px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .skeleton::after { display: none; }
  .page-shake, .page-shake.hard, .fx-shake, .fx-shake-hard, .fx-jolt, .fx-squash, .fx-chart-pulse { animation: none !important; }
}

/* nuke: cracks, the landing number, the miniature page in the preview */
.fx-cracks { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 3; }
.fx-cracks path { fill: none; stroke: var(--text); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: .55; vector-effect: non-scaling-stroke; }
.fx-float.fx-land { font-size: 40px; font-weight: 600; color: var(--text); font-family: var(--font-head); letter-spacing: -0.02em; transform: translate(-50%, -50%); animation: fxLand 1.1s cubic-bezier(.3, 1.3, .5, 1) forwards; }
.fx-stage .fx-float.fx-land { font-size: 22px; }
@keyframes fxLand { 0% { transform: translate(-50%, -110%) scale(1.5); opacity: 0; } 25% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 75% { opacity: 1; } 100% { transform: translate(-50%, -60%); opacity: 0; } }
.fx-num-huge { font-size: 40px; font-family: var(--font-head); transform: translate(-50%, -50%); }
.fx-stage-inner { display: grid; grid-template-columns: auto auto; gap: 6px; align-items: center; justify-items: center; }
.fx-mini-block { display: block; height: 10px; border-radius: 3px; background: var(--surface-3); border: 1px solid var(--border); }
.fx-mini-block.b1 { width: 60px; grid-column: 1 / -1; }
.fx-mini-block.b2 { width: 34px; height: 30px; }
.fx-mini-block.b3 { width: 132px; grid-column: 1 / -1; }
.fx-stage-inner > .fx-mini { grid-column: 1; }
.fx-stage-inner:has(.b2) { grid-template-columns: auto auto; }
.nuke-badge { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 6px; border-radius: 4px; font-size: 11px; font-weight: 500; color: var(--warn); background: color-mix(in srgb, var(--warn) 10%, transparent); }

/* ---------- floating weapon dock ---------- */
/* Centred by flex on a full-width fixed strip, never by transform, so no animation can move it. */
.dock { position: fixed; left: 0; right: 0; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 44; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; }
.dock-inner { position: relative; max-width: 100%; pointer-events: auto; }
.dock-bar { display: flex; gap: 4px; padding: 4px; max-width: 100%; border-radius: 999px; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--hairline); box-shadow: 0 1px 2px rgba(17, 17, 19, .06), 0 8px 24px rgba(17, 17, 19, .12); }
.dock-slot { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; min-width: 44px; padding: 0 12px 0 11px; border: 0; border-radius: 999px; background: transparent; color: var(--text-2); font-size: 13px; font-weight: 500; transition: background .15s, color .15s; -webkit-tap-highlight-color: transparent; }
.dock-slot:hover { background: var(--surface-2); color: var(--text); }
.dock-slot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dock-icon { position: relative; display: grid; place-items: center; width: 22px; height: 22px; flex: none; }
.dock-icon > .icon { grid-area: 1 / 1; }
.dock-ring { grid-area: 1 / 1; width: 34px; height: 34px; margin: -6px; transform: rotate(-90deg); pointer-events: none; }
.dock-ring circle { fill: none; stroke-width: 2; }
.dock-ring .track { stroke: color-mix(in srgb, var(--on-accent) 25%, transparent); }
.dock-ring .left { stroke: var(--on-accent); stroke-linecap: round; transition: stroke-dashoffset .25s linear; }
.dock-label { display: none; }
.dock-badge { min-width: 18px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--surface-3); color: var(--text); font-size: 10px; font-weight: 600; line-height: 16px; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; justify-content: center; }
.dock-slot.on { background: var(--accent); color: var(--on-accent); }
.dock-slot.on .dock-label { display: inline; }
.dock-slot.on .dock-badge { background: color-mix(in srgb, var(--on-accent) 22%, transparent); color: var(--on-accent); }
.dock-slot.arming { background: var(--accent-soft); color: var(--accent-text); }
.dock-slot.is-empty, .dock-slot.is-late { color: var(--text-3); }
.dock-slot.is-empty .dock-icon, .dock-slot.is-late .dock-icon { opacity: .5; }
.dock-slot.is-empty .dock-badge, .dock-slot.is-late .dock-badge { background: var(--surface); color: var(--text-3); box-shadow: inset 0 0 0 1px var(--hairline); }
@media (max-width: 480px) {
  .dock { padding: 0 12px; }
  .dock-slot { width: 44px; min-width: 44px; padding: 0; }
  .dock-slot .dock-label, .dock-slot.on .dock-label { display: none; }
  .dock-badge { position: absolute; top: 3px; right: 1px; min-width: 16px; height: 15px; line-height: 15px; font-size: 9.5px; padding: 0 3px; box-shadow: 0 0 0 2px var(--surface); }
  .dock-slot.on .dock-badge { background: var(--surface); color: var(--accent-text); box-shadow: 0 0 0 2px var(--accent); }
}
.dock-pop { position: absolute; bottom: calc(100% + 10px); left: 0; width: 300px; max-width: calc(100vw - 24px); padding: 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--hairline); box-shadow: var(--shadow-pop); display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.dock-pop-head { display: flex; align-items: center; gap: 8px; }
.dock-pop-head b { font-weight: 600; }
.dock-pop-head .faint { margin-left: auto; font-size: 12px; }
.dock-pop-effect { color: var(--text-2); }
.dock-pop-row { display: flex; align-items: center; gap: 10px; }
.dock-pop-why { display: flex; gap: 6px; color: var(--text-2); }
.dock-pop-why .icon { margin-top: 2px; color: var(--warn); }
.dock-pop-sec b { display: block; font-weight: 600; margin-bottom: 2px; }
.dock-pop-sec p { color: var(--text-2); }
.dock-pop .fx-stage { height: 84px; }
body.has-dock .page.battle { padding-bottom: 120px; }
body.has-dock .fs-inner { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }

/* ---------- one focus ring per field ---------- */
/* Plain fields draw their own border and ring, so no extra outline. Composite fields (a wrapper
   around a bare input) show focus once, on the wrapper, through :focus-within. */
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }
input[type="text"]:focus, input[type="url"]:focus, input[type="search"]:focus, select:focus, textarea:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.search, .combo-input, .prefix-input, .tag-box, .side-chip { transition: border-color .12s, box-shadow .12s; }
.search input, .combo-input input, .prefix-input input, .tag-box input, .side-chip input,
.search input:focus, .combo-input input:focus, .prefix-input input:focus, .tag-box input:focus, .side-chip input:focus {
  border: 0 !important; outline: none !important; box-shadow: none !important; background: transparent; border-radius: 0; }
.search:focus-within, .combo-input:focus-within, .prefix-input:focus-within, .tag-box:focus-within, .side-chip:focus-within {
  border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.search input::-webkit-search-cancel-button, .search input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.search input { padding: 0 6px; }
.search:focus-within kbd, .search.has-text kbd { display: none; }
.search-clear { display: none; width: 22px; height: 22px; margin-right: 6px; border: 0; border-radius: 4px; background: transparent; color: var(--text-3); place-items: center; padding: 0; }
.search-clear:hover { background: var(--surface-2); color: var(--text); }
.search.has-text .search-clear { display: inline-grid; }
@media (forced-colors: active) {
  .search:focus-within, .combo-input:focus-within, .prefix-input:focus-within, .tag-box:focus-within, .side-chip:focus-within { outline: 2px solid CanvasText; outline-offset: 2px; }
  input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid CanvasText; }
}
.table td.pcell { width: 100%; max-width: 0; }
.table .who-text { overflow: hidden; }
.table .plink { max-width: 100%; }
.week-bar > span:first-child { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- side rows sized by how many sides there are ---------- */
.pp-nums { display: inline-flex; align-items: baseline; gap: 8px; flex: none; }
.pp-mkt { font-size: 12px; color: var(--text-3); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pp-sides.n-2 .pp-pct { font-size: 24px; }

/* The swipe feed: one slide holds the question, every side, the stream and the dock. */
.fs-inner { grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 10px; padding-top: 14px; }
body.has-dock .fs-inner:not(.is-outcome) { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
.fs-head h2 { font-size: clamp(19px, 5.6vw, 25px); letter-spacing: -0.02em; margin-top: 6px; line-height: 1.2; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fs-head h2.mid { font-size: clamp(17px, 5vw, 22px); }
.fs-head h2.long { font-size: clamp(16px, 4.4vw, 19px); }
.fs-mid { position: relative; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.fs-mid .fs-stream { max-height: 100%; }
.fs-inner.n-56 .fs-mid { overflow: visible; }
.fs-inner.n-56 .fs-stream { position: absolute; left: 0; right: 0; bottom: 0; max-height: 84px; z-index: 2; background: linear-gradient(to bottom, transparent, var(--bg) 30%); -webkit-mask-image: none; mask-image: none; padding-top: 8px; }
.fs-sides { gap: 6px; }
.fs-sides .pp-side { padding: 10px 12px; gap: 6px; }
.fs-sides .pp-meta { display: none; }
.fs-sides.n-2 .pp-side { min-height: 88px; padding: 14px; justify-content: center; }
.fs-sides.n-2 .pp-meta { display: flex; }
.fs-sides.n-2 .pp-pct { font-size: 28px; }
.fs-sides.n-34 .pp-side { min-height: 52px; justify-content: center; }
.fs-sides.n-34 .pp-pct { font-size: 18px; }
.fs-sides.n-56 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fs-sides.n-56 .pp-side { min-height: 50px; padding: 8px 10px; justify-content: center; min-width: 0; }
.fs-sides.n-56 .pp-label { font-size: 13px; }
.fs-sides.n-56 .pp-pct { font-size: 15px; }
.fs-sides.n-56 .pp-nums { gap: 5px; }
.fs-sides.n-56 .mkt-src { display: none; }
.fs-actions { gap: 4px; }
.fs-actions .btn { padding: 0 8px; }
@media (max-height: 700px) {
  .fs-inner { gap: 8px; padding-top: 10px; }
  .fs-sides.n-2 .pp-side { min-height: 72px; }
  .fs-sides.n-34 .pp-side { min-height: 46px; padding: 7px 12px; }
  .fs-sides.n-56 .pp-side { min-height: 44px; padding: 6px 10px; }
  .fs-head h2 { -webkit-line-clamp: 3; }
}

/* The battle page on a phone: the push panel comes first, compact like the feed. */
@media (max-width: 640px) {
  .b-rail { order: 0 !important; }
  .b-head { margin-bottom: 16px; }
  .rail-card .pp-hint { display: none; }
  .pp-sides.n-34 .pp-side, .pp-sides.n-56 .pp-side { padding: 9px 12px; gap: 6px; }
  .pp-sides.n-34 .pp-meta, .pp-sides.n-56 .pp-meta { display: none; }
  .pp-sides.n-34 .pp-pct { font-size: 18px; }
  .pp-sides.n-56 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .pp-sides.n-56 .pp-side { min-width: 0; padding: 8px 10px; }
  .pp-sides.n-56 .pp-pct { font-size: 15px; }
  .pp-sides.n-56 .pp-label { font-size: 13px; }
  .pp-sides.n-56 .mkt-src { display: none; }
}

/* crate prize flying into its dock slot */
.prize-fly { position: fixed; left: 0; top: 0; z-index: 47; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--hairline); box-shadow: var(--shadow-pop); color: var(--text); pointer-events: none; }
.dock-badge.pulse { animation: badgePulse .5s var(--ease); }
@keyframes badgePulse { 30% { transform: scale(1.35); } 100% { transform: none; } }
.dock-gain { position: absolute; bottom: calc(100% + 8px); transform: translateX(-50%); white-space: nowrap; padding: 3px 8px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 12px; font-weight: 600; pointer-events: none; animation: gainIn 1.5s var(--ease) forwards; }
@keyframes gainIn { 0% { opacity: 0; transform: translate(-50%, 6px); } 15%, 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -4px); } }

/* ---------- phones: one header row, the site is the feed ---------- */
.search-toggle, .menu-phone { display: none !important; }
@media (max-width: 767px) {
  .topbar { position: sticky; }
  .topbar-inner { position: relative; height: 56px; flex-wrap: nowrap; padding: 0 12px; gap: 8px; }
  .nav { display: none !important; }
  .search { display: none; }
  .search-toggle { display: inline-grid !important; }
  .menu-phone { display: flex !important; }
  .top-right { order: 0; gap: 6px; }
  .acct-text { display: none; }
  .new-text { display: none; }
  .new-btn { width: 34px; padding: 0; }
  .topbar.searching .search { display: flex; position: absolute; left: 12px; right: 12px; top: 11px; width: auto; z-index: 3; background: var(--surface); }
  .topbar.searching .brand, .topbar.searching .top-right > :not(.search) { visibility: hidden; }
}

/* summary slides */
.sum-inner { height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px calc(12px + env(safe-area-inset-bottom)); min-height: 0; }
.sum-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: none; margin: 0 -16px; padding: 0 16px; }
.sum-chips::-webkit-scrollbar { display: none; }
.sum-chips .filter { height: 28px; font-size: 12px; }
.sum-head { display: flex; flex-direction: column; gap: 8px; flex: none; }
.sum-title { font-size: 20px; letter-spacing: -0.015em; }
.sum-sorts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--hairline); border-radius: var(--r-sm); overflow: hidden; background: var(--surface); }
.sum-sort { height: 30px; padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 0; background: none; font-size: 12px; font-weight: 500; color: var(--text-2); }
.sum-sort + .sum-sort { border-left: 1px solid var(--hairline); }
.sum-sort[aria-checked="true"] { background: var(--accent-soft); color: var(--accent-text); }
.sum-list { list-style: none; margin: 0; padding: 0; flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.sum-list li { flex: none; height: 46px; }
.sum-list li + li { border-top: 1px solid var(--hairline); }
.sum-row { width: 100%; height: 100%; display: grid; grid-template-columns: 22px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 8px; align-content: center; padding: 0 2px; border: 0; background: none; text-align: left; color: var(--text); }
.sum-row:hover { background: var(--surface-2); }
.sum-n { grid-row: span 2; align-self: center; font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; text-align: right; }
.sum-q { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sum-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; min-width: 0; }
.sum-lead { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sum-total { margin-left: auto; color: var(--text-3); }
.sum-meta .live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--live); flex: none; }
.sum-sponsor .sum-row { display: flex; align-items: center; gap: 8px; }
.sum-sponsor .sponsor-label { flex: none; }
.sum-sponsor .sum-q { flex: 1; font-weight: 400; }
.sum-hint { flex: none; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--text-3); }
.fs-inner { grid-template-columns: minmax(0, 1fr); }
.fs-actions { min-width: 0; overflow: hidden; }
.fs-actions .btn { min-width: 0; }
.sum-inner, .fs-head, .fs-meta { min-width: 0; }
.fs-meta { flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
body.has-dock .mock-badge { bottom: calc(var(--dock-h, 0px) + 8px); }

/* =====================================================================================
   Launch wave: zero-push states, the logo's aura, the theme menu, the feed slide in three bands,
   sharing, the weapon preview sandbox, legal pages and the OG cards.
   ===================================================================================== */

/* ---------- the crawler copy: visible without JS, hidden from the first paint with it ---------- */
.js #ssr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
#ssr:empty { display: none; }

/* ---------- zero pushes: no invented split ---------- */
.no-pushes { color: var(--text-3); }
.first-push { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); padding: 10px 12px; border-radius: var(--r-sm); border: 1px dashed color-mix(in srgb, var(--accent) 40%, var(--border)); background: var(--accent-soft); }
.first-push .icon { color: var(--accent-text); flex: none; }
.first-push b { color: var(--text); font-weight: 600; }
.mini-split.is-empty { background: var(--surface-3); }
.chart-empty { position: absolute; inset: 0 40px 24px 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; pointer-events: none; padding: 8px; }
.chart-empty b { font-size: 14px; font-weight: 600; color: var(--text); }
.chart-empty span { font-size: 12px; color: var(--text-3); max-width: 32ch; }
.chart.is-empty .chart-xlab { display: none; }
.chart.is-empty .chart-grid { opacity: .6; }
.chart-fill { height: 100%; }

/* ---------- the logo's aura: a slow halo, three sparkles and the lit lens, compositor-only ---------- */
/* The halo is a ring centred on the box, which is centred on the lens, so it sits behind the two
   circles and shows above and below them, where the mark is shallow. */
.brand-aura { position: relative; display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; isolation: isolate; }
.brand-aura .mark { position: relative; z-index: 1; }
.aura-halo { position: absolute; inset: -8px; z-index: 0; border-radius: 50%; pointer-events: none; opacity: .32;
  background: conic-gradient(from 0deg, transparent 0deg, color-mix(in srgb, var(--mark-a) 75%, transparent) 55deg, transparent 120deg, color-mix(in srgb, var(--mark-b) 60%, transparent) 185deg, transparent 245deg, color-mix(in srgb, var(--mark-a) 55%, transparent) 300deg, transparent 360deg);
  -webkit-mask-image: radial-gradient(closest-side, transparent 46%, #000 66%, transparent 100%); mask-image: radial-gradient(closest-side, transparent 46%, #000 66%, transparent 100%);
  will-change: rotate; animation: auraSpin 14s linear infinite; }
@keyframes auraSpin { from { rotate: 0deg; } to { rotate: 360deg; } }
.aura-spark { position: absolute; z-index: 2; width: 6px; height: 6px; background: var(--mark-a); opacity: 0; pointer-events: none;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); will-change: opacity, transform; animation: auraTwinkle 7s ease-in-out infinite; }
:root[data-theme="dark"] .aura-spark { background: #c9bdfb; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .aura-spark { background: #c9bdfb; } }
.aura-spark.s1 { top: 1px; right: -3px; animation-delay: .4s; }
.aura-spark.s2 { bottom: 2px; left: -5px; width: 5px; height: 5px; animation-delay: 2.7s; }
.aura-spark.s3 { top: 11px; right: -9px; width: 4px; height: 4px; background: var(--mark-b) !important; animation-delay: 5s; }
@keyframes auraTwinkle { 0%, 70%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); } 78% { opacity: .9; transform: scale(1) rotate(45deg); } 88% { opacity: 0; transform: scale(.4) rotate(90deg); } }
/* The lens glow: a soft white bloom the shape of the lens, invisible until the aura flares. */
.aura-lens { position: absolute; left: 50%; top: 50%; z-index: 2; width: 9px; height: 15px; margin: -7.5px 0 0 -4.5px; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, #fff 0%, rgba(255, 255, 255, .85) 45%, rgba(255, 255, 255, 0) 100%); will-change: opacity, transform; }
.brand-aura.flare .aura-halo { animation: auraSpin 14s linear infinite, auraFlare 1.6s cubic-bezier(.2, .7, .2, 1); }
@keyframes auraFlare { 0% { opacity: .32; scale: 1; } 18% { opacity: .9; scale: 1.35; } 100% { opacity: .32; scale: 1; } }
.brand-aura.flare .aura-spark { animation: auraBurst 1.4s ease-out; }
@keyframes auraBurst { 0% { opacity: 0; transform: scale(.3); } 25% { opacity: 1; transform: scale(1.3) rotate(45deg); } 100% { opacity: 0; transform: scale(.4) rotate(120deg); } }
.brand-aura.flare .aura-lens { animation: auraLens 1.6s cubic-bezier(.2, .7, .2, 1); }
@keyframes auraLens { 0% { opacity: 0; transform: scale(.8); } 16% { opacity: .95; transform: scale(1.3); } 100% { opacity: 0; transform: scale(1); } }
.tab-hidden .aura-halo, .tab-hidden .aura-spark, .tab-hidden .aura-lens { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .aura-halo, .aura-spark, .aura-lens { display: none; } }

/* ---------- theme menu ---------- */
.theme-wrap { position: relative; }
.theme-menu { width: 180px; }
.menu-item[role="menuitemradio"] .menu-check { margin-left: auto; color: var(--accent-text); visibility: hidden; }
.menu-item[aria-checked="true"] .menu-check { visibility: visible; }
.menu-item[role="menuitemradio"]:hover, .menu-item[role="menuitemradio"]:focus-visible { background: var(--surface-2); }
.menu-legal { display: flex; gap: 8px; padding: 6px 8px 4px; font-size: 12px; color: var(--text-3); }
.menu-legal a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- sharing ---------- */
.share-btn { flex: none; width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--hairline); background: var(--surface); color: var(--text-2); transition: color .15s, background .15s, border-color .15s; -webkit-tap-highlight-color: transparent; }
.share-btn:hover { color: var(--text); border-color: var(--border-strong); }
.share-btn:active { transform: scale(.96); }
.share-note { position: fixed; z-index: 60; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 12px; font-weight: 500; white-space: nowrap; pointer-events: none; box-shadow: var(--shadow-pop); animation: noteIn .18s var(--ease); transition: opacity .2s; }
.share-note.out { opacity: 0; }
@keyframes noteIn { from { opacity: 0; transform: translateY(4px); } }
.share-pop { position: fixed; z-index: 60; width: min(320px, calc(100vw - 16px)); padding: 10px 12px 12px; border-radius: var(--r); border: 1px solid var(--hairline); background: var(--surface); box-shadow: var(--shadow-pop); display: flex; flex-direction: column; gap: 8px; }
.share-pop-head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.share-pop-head .icon-btn { width: 28px; height: 28px; }
.share-pop input { width: 100%; height: 34px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface-2); font-size: 12px; font-family: var(--mono); }

/* ---------- the swipe feed: three bands per battle slide ---------- */
.fs-inner { grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; padding-top: 14px; }
.fs-top { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; }
.fs-top .fs-meta { justify-content: center; gap: 6px; max-width: calc(100% - 72px); color: var(--text-2); font-size: 12px; }
.fs-top .fs-meta > span:last-child { margin-left: 0; }
.fs-meta .cat { font-size: 12px; }
.fs-sep { color: var(--text-3); }
.fs-time { font-variant-numeric: tabular-nums; }
.fs-status .status { font-size: 12px; }
.src-link { display: inline-flex; }
.src-link:hover .src-badge { border-color: var(--text-3); }
.fs-q { margin: 0; max-width: 100%; font-family: var(--font-head); font-size: clamp(24px, 7vw, 28px); font-weight: 600; line-height: 1.16; letter-spacing: -0.022em; text-wrap: balance; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fs-q.mid { font-size: clamp(22px, 6.2vw, 26px); }
.fs-q.long { font-size: clamp(19px, 5.4vw, 24px); }
.fs-q a { color: inherit; text-decoration: none; }
.fs-q-go { color: var(--text-3); margin-left: 2px; vertical-align: -1px; }
.fs-q a:hover .fs-q-go { color: var(--text-2); }
.fs-stats { display: flex; justify-content: center; gap: 6px; font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.fs-stats b { color: var(--text); font-weight: 600; }
.fs-mid { position: relative; min-height: 0; display: block; overflow: hidden; }
.fs-chart { position: absolute; inset: 0; }
.fs-chart .chart { height: 100%; }
.fs-mid .fs-stream, .fs-inner.n-56 .fs-stream { position: absolute; left: 0; right: 0; bottom: 0; max-height: 46%; z-index: 2; padding-top: 22px; justify-content: flex-end;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--bg) 78%, transparent) 22px); -webkit-mask-image: none; mask-image: none; }
.fs-mid .fs-stream:empty { display: none; }
.fs-swipe-hint { position: absolute; left: 50%; top: 6px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--hairline); box-shadow: var(--shadow-sm); font-size: 12px; color: var(--text-2); white-space: nowrap; transform: translateX(-50%); animation: hintBob 2.6s ease-in-out infinite; transition: opacity .5s; pointer-events: none; }
.fs-swipe-hint.gone { opacity: 0; }
@keyframes hintBob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -3px); } }
.icon.flip { transform: rotate(180deg); }
.fs-bottom { display: flex; flex-direction: column; gap: 8px; }
.fs-links { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: center; gap: 4px; }
.fs-links-mid { display: flex; justify-content: center; gap: 2px; min-width: 0; }
.fs-link { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 10px; border: 0; border-radius: var(--r-sm); background: none; color: var(--text-2); font-size: 13px; font-weight: 500; white-space: nowrap; }
.fs-link:hover { color: var(--text); background: var(--surface-2); }
.fs-link .icon { color: var(--text-3); }
.fs-sides.n-2 .pp-side { min-height: 76px; }
@media (max-height: 700px) {
  .fs-inner { gap: 8px; padding-top: 10px; }
  .fs-top { gap: 4px; }
  .fs-q { font-size: clamp(22px, 6.4vw, 26px); }
  .fs-q.mid { font-size: clamp(20px, 5.8vw, 24px); }
  .fs-q.long { font-size: clamp(18px, 5vw, 22px); }
  .fs-sides.n-2 .pp-side { min-height: 64px; padding: 10px 14px; }
  .fs-sides.n-2 .pp-pct { font-size: 24px; }
  .fs-links { grid-template-columns: 36px minmax(0, 1fr) 36px; }
  .fs-links .share-btn { width: 36px; height: 36px; }
  .fs-link { height: 30px; }
}
/* where you are: a slim track on the right edge, and "3/27" in the corner */
.feed-prog { position: absolute; top: 0; bottom: 0; right: max(0px, calc((100% - 600px) / 2)); width: 0; z-index: 4; pointer-events: none; }
.feed-prog-track { position: absolute; right: 3px; top: 32%; height: 36%; width: 2px; border-radius: 2px; background: var(--border); }
.feed-prog-thumb { position: absolute; left: 0; right: 0; top: var(--y, 0%); height: var(--h, 10%); border-radius: 2px; background: var(--text-3); transition: top .3s var(--ease), height .3s var(--ease); }
.feed-count { position: absolute; right: 10px; top: 13px; font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* the end of the list */
.fscreen.fs-end { display: grid; place-items: center; }
.fs-end-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }
/* summary slides */
.sum-title-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sum-title-row .share-btn { margin-left: auto; width: 36px; height: 36px; }
.sum-fresh { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 500; color: var(--accent-text); background: var(--accent-soft); white-space: nowrap; }
.sum-meta .nuke-badge { height: 18px; padding: 0 5px; font-size: 10.5px; flex: none; }
.sum-lead.no-pushes { color: var(--text-3); }

/* ---------- the weapon preview sandbox ---------- */
.pv-modal { width: min(520px, calc(100vw - 32px)); }
.pv-body { gap: 12px; }
.pv-body .modal-title { display: flex; align-items: center; gap: 8px; }
.pv-subtitle { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.pv-sandbox { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: var(--r); background: var(--bg); user-select: none; -webkit-user-select: none; }
.pv-sandbox .fx-n { z-index: 3; }
.pv-sandbox .fx-canvas { z-index: 2; }
.pv-sandbox .fx-cracks { z-index: 4; }
.pv-eyebrow { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.pv-q { font-size: 17px; margin-top: 4px; }
.pv-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.pv-stats span { display: inline-flex; align-items: center; gap: 4px; }
.pv-stats .icon { color: var(--text-3); }
.pv-stats b { color: var(--text); font-weight: 600; }
.pv-chart { height: 120px; }
.pv-sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pv-sides .pp-side { cursor: default; }
.pv-caption { font-size: 13px; color: var(--text-2); }
.pv-caption b { color: var(--text); font-weight: 600; }
@media (max-width: 640px) { .pv-modal.sheet { width: 100vw; } .pv-chart { height: 100px; } }

/* ---------- legal pages ---------- */
.legal .page-head { max-width: 760px; }
.legal-updated { margin-top: 10px; font-size: 13px; color: var(--text-3); }
.legal-layout { display: grid; grid-template-columns: 200px minmax(0, 720px); gap: 48px; align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: 13px; }
.legal-toc b { display: block; font-size: 12px; font-weight: 500; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.legal-toc a { display: block; padding: 4px 8px; margin-left: -8px; border-radius: var(--r-sm); color: var(--text-2); }
.legal-toc a:hover { color: var(--text); background: var(--surface-2); }
.legal-sec { padding: 22px 0; border-top: 1px solid var(--border); scroll-margin-top: calc(var(--header-h) + 16px); }
.legal-sec:first-child { border-top: 0; padding-top: 0; }
.legal-sec h2 { font-size: 17px; margin-bottom: 10px; }
.legal-sec p, .legal-sec li { font-size: 14px; line-height: 1.65; color: var(--text); }
.legal-sec ul.rules { margin-top: 8px; }
.legal-sec code { font-family: var(--mono); font-size: 12.5px; padding: 1px 5px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--border); }
.legal-info + p, p + .legal-info { margin-top: 10px; }
.legal-info .skeleton-line { height: 14px; }
.legal-error { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid color-mix(in srgb, var(--danger) 35%, var(--border)); background: color-mix(in srgb, var(--danger) 6%, var(--surface)); color: var(--text); font-size: 13px; }
.legal-error .icon { color: var(--danger); flex: none; }
.legal-error span { flex: 1; min-width: 200px; }
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .legal-toc { position: static; display: none; }
}

/* ---------- OG cards (/og-card/...): 1200 × 630, light, still ---------- */
body.og-mode { min-height: 0; display: block; background: #ffffff; overflow: hidden; }
body.og-mode > :not(main) { display: none !important; }
body.og-mode main { width: 1200px; height: 630px; }
body.og-mode *, body.og-mode *::before, body.og-mode *::after { animation: none !important; transition: none !important; }
.og-card { position: relative; width: 1200px; height: 630px; overflow: hidden; padding: 52px 72px 48px; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 28px; background: #ffffff; color: var(--text); }
.og-card::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 6px; background: var(--accent); }
.og-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.og-brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 600; font-size: 30px; letter-spacing: -0.02em; }
.og-brand .mark { width: 1.7em; height: 1.7em; translate: 0 .06em; }
.og-tags { display: flex; gap: 10px; }
.og-tag, .og-src { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid var(--border-strong); border-radius: 999px; font-size: 19px; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.og-tag .icon { color: var(--text-3); }
.og-src { color: var(--text); font-weight: 600; background: var(--surface-2); }
.og-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; min-height: 0; }
.og-left { min-width: 0; }
.og-q { margin: 0; font-family: var(--font-head); font-size: 60px; line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; text-wrap: balance; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.og-q.mid { font-size: 50px; }
.og-q.long { font-size: 42px; line-height: 1.12; }
.og-q.xlong { font-size: 36px; line-height: 1.15; }
.og-sides { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.og-sides-head { display: flex; justify-content: flex-end; gap: 16px; padding: 0 21px; font-size: 14px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.og-sides-head span { min-width: 80px; text-align: right; }
.og-sides-head .og-mkt-h { min-width: 72px; }
.og-side-nums b { min-width: 80px; text-align: right; }
.og-mkt { min-width: 72px; text-align: right; }
.og-empty { font-size: 22px; color: var(--text-2); padding: 0 4px; }
.og-empty b { color: var(--text); font-weight: 600; }
.og-side { display: flex; flex-direction: column; gap: 10px; padding: 16px 20px; border: 1px solid var(--border); border-radius: 12px; background: #ffffff; min-width: 0; }
.og-side.lead { border-color: color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 6%, #ffffff); }
.og-side-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; min-width: 0; }
.og-side-label { display: flex; align-items: center; gap: 12px; font-size: 26px; font-weight: 600; min-width: 0; }
.og-side-label span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.og-side-label .dot { width: 14px; height: 14px; }
.og-side-nums { display: flex; align-items: baseline; gap: 16px; flex: none; font-variant-numeric: tabular-nums; }
.og-side-nums b { font-family: var(--font-head); font-size: 34px; font-weight: 600; letter-spacing: -0.01em; }
.og-mkt { font-size: 19px; font-weight: 500; color: var(--text-2); }
.og-bar { display: block; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.og-bar span { display: block; height: 100%; background: var(--c); }
.og-battle.n-34 .og-sides { gap: 10px; }
.og-battle.n-34 .og-side { padding: 11px 18px; gap: 8px; }
.og-battle.n-34 .og-side-label { font-size: 22px; }
.og-battle.n-34 .og-side-nums b { font-size: 28px; }
.og-battle.n-56 .og-sides { gap: 5px; }
.og-battle.n-56 .og-side { padding: 6px 16px; gap: 5px; border-radius: 10px; }
.og-battle.n-56 .og-side-row { line-height: 1.2; }
.og-battle.n-56 .og-sides-head { padding: 0 17px; }
.og-battle.n-56 .og-side-label { font-size: 20px; gap: 10px; }
.og-battle.n-56 .og-side-label .dot { width: 12px; height: 12px; }
.og-battle.n-56 .og-side-nums b { font-size: 23px; }
.og-battle.n-56 .og-mkt { font-size: 18px; }
.og-battle.n-56 .og-bar { height: 4px; }
.og-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 22px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.og-stats b { color: var(--text); font-weight: 600; }
.og-dot { margin: 0 12px; color: var(--text-3); }
.og-host { font-size: 22px; font-weight: 600; color: var(--accent-text); letter-spacing: -0.005em; }
.og-site .og-tagline { font-size: 92px; line-height: 1; letter-spacing: -0.04em; }
.og-site .og-sub { margin-top: 26px; font-size: 24px; line-height: 1.4; color: var(--text-2); max-width: 520px; }
.og-hero { position: relative; display: grid; place-items: center; height: 100%; }
.og-hero::before { content: ''; position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--mark-a) 16%, transparent), color-mix(in srgb, var(--mark-b) 9%, transparent) 55%, transparent); }
.og-hero .mark { position: relative; width: 380px; height: 380px; }
.og-list { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.og-tag .status { font-size: 19px; gap: 8px; }
.og-tag .status-live::before { width: 9px; height: 9px; }
.og-mini { display: flex; flex-direction: column; gap: 8px; padding: 13px 18px; border: 1px solid var(--border); border-radius: 12px; background: #ffffff; min-width: 0; }
.og-mini-q { font-size: 20px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.og-mini-split { display: flex; gap: 3px; height: 6px; border-radius: 3px; overflow: hidden; background: var(--surface-3); }
.og-mini-split span { flex-basis: 0; }
.og-mini-meta { display: flex; align-items: center; gap: 14px; font-size: 17px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.og-mini-meta .dot { width: 10px; height: 10px; }
.og-mini-src { font-weight: 600; color: var(--text); }
.og-mini-total { margin-left: auto; }

/* ---------- daily streak ---------- */
.streak-ind { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 9px 0 8px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.streak-ind .icon { color: var(--accent-text); }
.streak-ind:hover { background: var(--surface-2); }
.streak-ind.is-open { color: var(--text-2); }
.streak-ind.is-open .icon { color: var(--text-3); }
.streak-ind.is-late { border-color: color-mix(in srgb, var(--warn) 40%, var(--border)); }
.streak-ind.is-late .icon { color: var(--warn); }
.streak-ind::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; border: 2px solid var(--accent); opacity: 0; pointer-events: none; }
.streak-ind.pulse::after { animation: streakRing .8s var(--ease); }
@keyframes streakRing { 0% { opacity: .8; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.35); } }
.streak-num.tick { display: inline-block; animation: streakTick .35s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes streakTick { 0% { transform: translateY(6px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@media (max-width: 767px) { .streak-ind { height: 34px; padding: 0 7px; } }
@media (max-width: 380px) { .streak-ind { padding: 0 6px; gap: 2px; } }
.menu-streak { padding: 6px 8px; font-size: 12px; color: var(--text-2); }
.menu-streak-row { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); }
.menu-streak-row .icon { color: var(--accent-text); }
.menu-streak-row .faint { margin-left: auto; font-size: 12px; }
.menu-streak p { margin-top: 3px; }
.menu-streak.is-late p { color: var(--warn); }
.menu-toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 34px; padding: 0 8px; font-size: 13px; }
.streak-panel .panel-title .icon { color: var(--accent-text); }
.streak-slot { margin-top: 32px; }
.streak-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.streak-stats .metric { padding: 0; border: 0; background: none; }
.streak-next { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.streak-next-what { display: inline-flex; flex-wrap: wrap; gap: 8px; font-size: 12px; font-weight: 500; color: var(--text-2); font-family: var(--font); letter-spacing: 0; }
.streak-next-what span { display: inline-flex; align-items: center; gap: 4px; }
.streak-track { position: relative; height: 6px; margin: 8px 10px 34px; border-radius: 3px; background: var(--surface-3); }
.streak-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--accent); }
.streak-mark { position: absolute; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; }
.streak-mark-dot { display: inline-flex; align-items: center; justify-content: center; gap: 1px; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-strong); color: var(--text-3); }
.streak-mark.done .streak-mark-dot { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.streak-mark-day { position: absolute; top: 26px; font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.streak-keep { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.streak-keep.is-late { color: var(--warn); }
.streak-badge { display: inline-flex; align-items: center; gap: 2px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 999px; font-size: 11px; font-weight: 600; color: var(--accent-text); background: var(--accent-soft); font-variant-numeric: tabular-nums; vertical-align: 1px; }
@media (max-width: 640px) { .streak-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .streak-stats .metric:last-child { grid-column: 1 / -1; } }

/* ---------- sound and haptics ---------- */
.fb-row { display: flex; align-items: flex-start; gap: 12px; }
.fb-row .switch { margin-top: 2px; }
.fb-row .help { margin-top: 2px; }
.sound-hint { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--hairline); box-shadow: var(--shadow-pop); font-size: 13px; white-space: nowrap; animation: noteIn .2s var(--ease); }
.sound-hint .icon-btn { width: 26px; height: 26px; }
