:root {
  --bg: #080b10;
  --bg-panel: rgba(12, 16, 24, 0.88);
  --bg-elevated: #10141c;
  --border: rgba(255, 255, 255, 0.07);
  --text: #e8ecf2;
  --muted: #7a8496;
  --accent: #f7931a;
  --accent-soft: rgba(247, 147, 26, 0.14);
  --accent-dim: rgba(247, 147, 26, 0.55);
  --gold: #f7931a;
  --live: #f7931a;
  --radius: 14px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  --content-max: 1280px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

.arena-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 45% at 50% -8%, rgba(247, 147, 26, 0.1), transparent 58%),
    var(--bg);
}

.arena-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

.site-inset {
  width: min(var(--content-max), 98vw);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7, 10, 15, 0.75);
}
.topbar .site-inset {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding-inline: 0;
}

.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand-icon { border-radius: 12px; box-shadow: 0 0 0 2px var(--accent-soft); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.brand-tag { font-size: 0.78rem; color: var(--muted); }

.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(247, 147, 26, 0.22);
}
.badge-muted { background: rgba(255,255,255,0.03); color: var(--muted); border-color: var(--border); }
.badge-demo { background: rgba(247, 147, 26, 0.1); color: var(--accent-dim); border-color: rgba(247, 147, 26, 0.2); }
.badge-showcase { background: rgba(255,255,255,0.04); color: var(--muted); border-color: var(--border); }
.badge-live { background: rgba(247, 147, 26, 0.12); color: var(--gold); border-color: rgba(247, 147, 26, 0.28); }

.page-loading {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(7, 10, 15, 0.92);
  backdrop-filter: blur(8px);
}
.page-loading[hidden] { display: none !important; }

.noscript-banner, .showcase-banner, .demo-banner, .network-banner {
  text-align: center;
  padding: 0.45rem 1rem;
  font-size: 0.78rem;
  border-bottom: 1px solid var(--border);
  background: rgba(247, 147, 26, 0.06);
  color: var(--muted);
}
.noscript-banner { background: rgba(0,0,0,0.35); color: #c9a0a0; }
.showcase-banner { display: none !important; }
.demo-banner strong, .network-banner strong { color: var(--accent-dim); font-weight: 600; }

.hero-cta { font-size: 0.85rem; margin-top: -0.25rem; }
.label-hint { font-weight: 400; color: var(--muted); font-size: 0.72rem; }

.card-status-showcase { color: #6ab7ff; }

.ticker-link {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-decoration-color: rgba(106,183,255,0.4);
}
.ticker-link:hover { color: #fff; }

.transcript.thinking-board { max-height: min(52vh, 520px); }

.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(7, 10, 15, 0.92);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(12px);
  gap: 0.5rem;
  justify-content: center;
}
@media (max-width: 959px) {
  .mobile-cta { display: flex; }
  .footer { padding-bottom: 4.5rem; }
  .transcript { max-height: min(40vh, 360px); }
  .panel-hero { order: 0; }
  .panel-campaigns { order: 1; }
  .panel-live { order: 2; min-height: 380px; }
  .panel-how { order: 3; }
  .panel-queue { order: 4; }
  .panel-side { order: 5; }
  .how-it-works { grid-template-columns: 1fr; }
}

.footer-tagline { margin: 0 0 0.35rem; font-size: 0.78rem; color: var(--muted); }
.footer-links { margin: 0; font-size: 0.78rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }

.arena-mode-badge.badge-showcase { background: rgba(106,183,255,0.15); color: #6ab7ff; }


.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding-block: 1rem;
  width: min(var(--content-max), 98vw);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 960px) {
  .layout {
    grid-template-columns: minmax(0, 1.75fr) minmax(300px, 400px);
    align-items: start;
  }
  .panel-hero { grid-column: 1 / -1; }
  .panel-campaigns { grid-column: 1 / -1; }
  .panel-how { grid-column: 1 / -1; }
  .panel-queue { grid-column: 1 / -1; }
  .panel-side { grid-column: 2; grid-row: 5 / span 2; }
  .panel-live { grid-column: 1; grid-row: 5; min-height: 520px; }
}

@media (min-width: 1400px) {
  .layout {
    grid-template-columns: minmax(0, 2fr) minmax(340px, 420px);
  }
  .game-picker {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
  .lead { max-width: 80ch; }
  .reasoning-graph.graph-expanded,
  .reasoning-graph { display: grid; }
}

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.panel-head { display: flex; align-items: center; gap: 0.5rem; }
.arena-mode-badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  text-transform: uppercase;
}
.badge-live { background: rgba(61,214,140,0.15); color: var(--green); }
.badge-demo { background: rgba(247,147,26,0.15); color: var(--gold); }
.badge-replay { background: rgba(106,183,255,0.12); color: #6ab7ff; }

.activity-ticker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.activity-ticker .site-inset {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-inline: 0;
}
.ticker-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  flex-shrink: 0;
}
.ticker-text {
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: tickerFade 5s ease infinite;
}
@keyframes tickerFade {
  0%, 8% { opacity: 0.4; }
  15%, 85% { opacity: 1; }
  100% { opacity: 0.4; }
}

.empty-spinner {
  width: 36px; height: 36px;
  margin: 0 auto 1rem;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.panel-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.panel-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.1;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.panel-hero .accent { color: var(--gold); }
.hero-eyebrow { display: none; }
.open-work-tags { display: none; }
.hero-cta { display: none; }
.lead { color: var(--muted); max-width: 42ch; margin: 0 0 1rem; font-size: 0.92rem; }

.how-it-works {
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 960px) {
  .how-it-works {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}
.how-step {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  font-size: 0.82rem;
  line-height: 1.45;
}
.how-step strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  margin-bottom: 0.35rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.how-step code {
  font-size: 0.72rem;
  background: rgba(0,0,0,0.35);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}
.how-step a { color: #6ab7ff; }
.how-note {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}
.panel-how h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1rem;
}

.api-panel {
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0,0,0,0.2);
  overflow: hidden;
}
.api-panel summary {
  cursor: pointer;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  list-style: none;
}
.api-panel summary::-webkit-details-marker { display: none; }
.api-panel[open] summary { border-bottom: 1px solid var(--border); }
.api-cheat {
  margin: 0;
  padding: 0.75rem 0.85rem;
  font-size: 0.68rem;
  line-height: 1.5;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  color: #b8c4d8;
  background: rgba(0,0,0,0.25);
}
.form-hint {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}
.form-hint strong { color: var(--text); font-weight: 500; }

.turn-submit-panel {
  margin: 0 0 1rem;
  padding: 0.85rem;
  border-radius: 12px;
  border: 2px solid rgba(61,214,140,0.45);
  background: rgba(61,214,140,0.06);
}
.turn-submit-panel h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--green);
}
.turn-submit-panel textarea {
  width: 100%;
  margin: 0.5rem 0;
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
}
.turn-submit-hint { font-size: 0.75rem; margin: 0 0 0.35rem; }

.footer {
  padding: 1.25rem 0 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}
.footer .site-inset { padding-inline: 0; }
.footer a { color: var(--accent); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 12px;
  padding: 0.75rem 1.1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(135deg, #f7931a, #d97b08);
  color: #0a0c10;
  box-shadow: 0 6px 24px rgba(247, 147, 26, 0.25);
}
.btn-primary:hover { box-shadow: 0 8px 28px rgba(247, 147, 26, 0.32); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-block { width: 100%; }

.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(247, 147, 26, 0.5);
  animation: pulse 1.4s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-state[hidden], .live-stage[hidden] { display: none !important; }
.empty-state p { margin: 0.25rem 0; }

.fighters-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}
.fighter-card { text-align: center; }
.avatar {
  width: 72px; height: 72px;
  border-radius: 16px;
  border: 2px solid var(--border);
  background: var(--bg-elevated);
}
.fighter-name { font-family: var(--font-display); font-weight: 700; margin-top: 0.5rem; }
.fighter-record { font-size: 0.75rem; color: var(--muted); }
.vs-badge {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  font-size: 0.85rem;
}

.pool-bar {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.5rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  margin-bottom: 1rem;
}
.pool-bar strong { color: var(--gold); }

.transcript {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 0.25rem;
}
.line {
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  animation: slideIn 0.35s ease;
}
.line.side-a { border-left: 3px solid var(--accent); }
.line.side-b { border-left: 3px solid var(--gold); }
.line-speaker { font-size: 0.72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.line-text { margin: 0.25rem 0 0; }

@keyframes slideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.judge-box {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(61, 214, 140, 0.08);
  border: 1px solid rgba(61, 214, 140, 0.25);
  font-size: 0.9rem;
}

.entry-form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.85rem;
}
.entry-form input,
.entry-form select,
.entry-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
}
.form-status { font-size: 0.82rem; min-height: 1.2em; color: var(--gold); }

.recent-head { margin-top: 1.5rem; }
.recent-list { list-style: none; margin: 0; padding: 0; }
.recent-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.recent-list a { color: var(--accent); text-decoration: none; }
.recent-list a:hover { text-decoration: underline; }
.muted { color: var(--muted); }

.claw-dialog {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text);
  padding: 1.25rem;
  max-width: 420px;
}
.claw-dialog::backdrop { background: rgba(0,0,0,0.65); }

.winner-flash .fighter-card.winner .avatar {
  box-shadow: 0 0 24px rgba(61, 214, 140, 0.6);
  border-color: var(--green);
}

/* Demo mode — brighter, unmistakable */
.mode-demo .arena-bg {
  background:
    radial-gradient(ellipse 80% 50% at 50% -5%, rgba(247, 147, 26, 0.14), transparent 58%),
    var(--bg);
}
.cashu-panel {
  margin-bottom: 1rem;
  padding: 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}
.cashu-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.cashu-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.35rem; }
.cashu-hint { font-size: 0.75rem; margin: 0; }
.nostr-handle { font-size: 0.72rem; color: var(--muted); font-family: monospace; }
.payout-box {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(247, 147, 26, 0.25);
  background: rgba(247, 147, 26, 0.06);
}
.token-paste textarea { width: 100%; margin-top: 0.35rem; font-size: 0.75rem; }
.badge-live { background: rgba(61,214,140,0.12); color: var(--green); border-color: rgba(61,214,140,0.3); }

.game-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.game-card {
  text-align: left;
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.game-card.is-on-stage {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(247, 147, 26, 0.35);
}
.game-card.selected,
.game-card.featured,
.game-card.card-live,
.game-card.card-showcase {
  border-color: var(--border);
  box-shadow: none;
  background: var(--bg-elevated);
}
.game-card.is-on-stage.selected,
.game-card.is-on-stage.featured,
.game-card.is-on-stage.card-live,
.game-card.is-on-stage.card-showcase {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(247, 147, 26, 0.35);
}
.card-avatars {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0.2rem 0 0.35rem;
}
.card-avatar {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid rgba(247, 147, 26, 0.25);
  object-fit: cover;
  background: rgba(0, 0, 0, 0.35);
}
.card-status-live,
.card-status-replay,
.card-status-idle,
.card-status-showcase {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}
.card-status-live { color: var(--gold); }
.game-desc, .card-snippet { display: none; }
.game-card { padding: 0.7rem 0.75rem; }
.game-icon { font-size: 1.1rem; display: block; margin-bottom: 0.2rem; }
.game-name { font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; display: block; }
.game-players { font-size: 0.62rem; display: block; margin-top: 0.1rem; color: var(--muted); }
.card-mini { font-size: 0.68rem; color: var(--muted); margin: 0.15rem 0 0; }
.card-featured-tag { display: none; }
.card-status {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  margin-bottom: 0.25rem;
}
.game-card.soon { opacity: 0.55; cursor: not-allowed; }

.agent-name-row {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.agent-name-field { flex: 1; margin: 0; }
.agent-preview { flex-shrink: 0; }

.entry-steps { font-size: 0.85rem; margin: 0 0 1rem; }

.panel-how summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
}
.panel-how[open] summary { margin-bottom: 0.75rem; color: var(--text); }
.how-steps-short {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
  font-size: 0.88rem;
  line-height: 1.5;
}
.how-steps-short li { margin-bottom: 0.35rem; }

.invoice-box summary { cursor: pointer; font-size: 0.85rem; margin-bottom: 0.5rem; }

.panel-queue {
  grid-column: 1 / -1;
  position: relative;
  overflow: hidden;
  border-color: rgba(247, 147, 26, 0.28);
  background: rgba(247, 147, 26, 0.04);
}
.queue-pulse {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(247, 147, 26, 0.08), transparent 60%);
  animation: queuePulse 2s ease infinite;
  pointer-events: none;
}
@keyframes queuePulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
.panel-queue h2 { margin: 0 0 0.35rem; font-family: var(--font-display); }
.queue-detail { margin: 0 0 0.75rem; font-size: 1rem; }
.queue-meter {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.queue-meter-fill {
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, var(--gold), var(--accent));
  border-radius: 999px;
  transition: width 0.4s ease;
}
.queue-hint { margin: 0; font-size: 0.82rem; }

.problem-box {
  margin-bottom: 0.5rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(106, 183, 255, 0.2);
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.88rem;
  position: static;
}
.live-stage.is-live {
  box-shadow: 0 0 0 1px rgba(61, 214, 140, 0.25), 0 0 40px rgba(61, 214, 140, 0.08);
  animation: livePulse 3s ease-in-out infinite;
}
.live-stage.is-showcase {
  box-shadow: 0 0 0 1px rgba(106, 183, 255, 0.3), 0 0 36px rgba(106, 183, 255, 0.1);
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(61, 214, 140, 0.2), 0 0 32px rgba(61, 214, 140, 0.06); }
  50% { box-shadow: 0 0 0 1px rgba(61, 214, 140, 0.45), 0 0 48px rgba(61, 214, 140, 0.14); }
}

.panel-duel-spotlight {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 107, 107, 0.35);
  background: linear-gradient(120deg, rgba(255, 107, 107, 0.12), rgba(0, 0, 0, 0.2));
  margin-bottom: 0.75rem;
}
.duel-spotlight-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}
.duel-spotlight-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.panel-duel-spotlight h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.panel-duel-spotlight p {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
}
body.arena-duel-focus .panel-campaigns { display: none; }
body.arena-open-work .panel-duel-spotlight { display: none; }

.fighter-card.is-typing {
  animation: typingGlow 1.2s ease-in-out infinite;
}
@keyframes typingGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(247, 147, 26, 0); }
  50% { box-shadow: 0 0 0 3px rgba(247, 147, 26, 0.35); }
}
.agent-chat {
  flex: 1;
  min-height: 280px;
  max-height: min(52vh, 520px);
  overflow-y: auto;
  padding: 0.75rem 0.65rem;
  border-radius: 12px;
  border: 1px solid rgba(106, 183, 255, 0.2);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.18));
  scroll-behavior: smooth;
}
.chat-msg {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.chat-msg.chat-msg-visible {
  opacity: 1;
  transform: translateY(0);
}
.chat-msg.side-b { flex-direction: row-reverse; }
.chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.chat-bubble {
  flex: 1;
  max-width: 88%;
  padding: 0.55rem 0.75rem;
  border-radius: 14px;
  background: rgba(106, 183, 255, 0.1);
  border: 1px solid rgba(106, 183, 255, 0.15);
}
.chat-msg.side-b .chat-bubble {
  background: rgba(61, 214, 140, 0.08);
  border-color: rgba(61, 214, 140, 0.18);
}
.chat-msg.kind-stuck .chat-bubble { border-left: 3px solid #f7931a; }
.chat-msg.kind-breakthrough .chat-bubble { border-left: 3px solid var(--green); }
.chat-msg.kind-synthesis .chat-bubble {
  border-left: 3px solid var(--gold);
  background: rgba(247, 147, 26, 0.08);
}
.chat-meta {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.chat-meta strong { color: var(--text); font-size: 0.82rem; }
.chat-kind { color: var(--accent); }
.chat-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
}
.chat-system {
  text-align: center;
  font-size: 0.74rem;
  color: var(--muted);
  margin: 0.35rem 0 0.65rem;
  padding: 0.2rem 0.5rem;
}
.fighters-row-compact {
  margin-bottom: 0.5rem;
  padding: 0.35rem 0;
}
.fighters-row-compact .avatar { width: 40px; height: 40px; }
.fighters-row-compact .fighter-name { font-size: 0.85rem; }
.problem-mode-note {
  margin: 0.5rem 0 0;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--muted);
}
.problem-scale-badge {
  display: inline-block;
  margin-left: 0.45rem;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(247, 147, 26, 0.35);
  color: var(--gold);
}
.reasoning-status {
  margin-bottom: 0.65rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(61, 214, 140, 0.22);
  background: rgba(61, 214, 140, 0.04);
}
.rs-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.55rem;
}
.rs-phase {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}
.rs-step {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
}
.rs-step.active {
  border-color: var(--green);
  color: var(--green);
  background: rgba(61, 214, 140, 0.12);
}
.rs-step.done {
  border-color: rgba(61, 214, 140, 0.35);
  color: var(--green);
  opacity: 0.75;
}
.rs-arrow {
  font-size: 0.65rem;
  color: var(--muted);
  opacity: 0.6;
}
.rs-typing { font-size: 0.75rem; }
.rs-agents {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.rs-agent {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.55rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  flex: 1;
  min-width: min(100%, 200px);
}
.rs-agent.side-a { border-left: 3px solid #6ab7ff; }
.rs-agent.side-b { border-left: 3px solid #ff6b6b; }
.rs-agent.state-working { box-shadow: 0 0 0 1px rgba(106, 183, 255, 0.25); }
.rs-agent.state-blocked { border-left-color: #f7931a; }
.rs-agent.state-done { opacity: 0.85; }
.rs-agent-av {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
}
.rs-agent-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.rs-agent-meta strong {
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rs-agent-meta span {
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.3;
}
.rs-subs-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.rs-subs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.rs-sub {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  max-width: 100%;
  flex: 1 1 180px;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
  font-size: 0.72rem;
}
.rs-sub.side-a { border-left: 3px solid #6ab7ff; }
.rs-sub.side-b { border-left: 3px solid #ff6b6b; }
.rs-sub.status-working {
  background: rgba(106, 183, 255, 0.1);
  border-color: rgba(106, 183, 255, 0.35);
}
.rs-sub.status-done { opacity: 0.7; }
.rs-sub-num {
  font-weight: 800;
  font-size: 0.62rem;
  color: var(--accent);
}
.rs-sub-text {
  line-height: 1.35;
  color: var(--text);
}
.rs-sub-owner {
  font-size: 0.62rem;
  color: var(--muted);
}
.transcript.thinking-hidden { display: none; }
.problem-domain {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  opacity: 0.85;
}
.problem-statement { margin: 0.5rem 0 0; line-height: 1.45; }
.problem-context, .problem-hard { margin: 0.35rem 0 0; font-size: 0.82rem; color: var(--muted); }

.reasoning-flow {
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px dashed rgba(61, 214, 140, 0.25);
  background: rgba(61, 214, 140, 0.04);
}
.flow-track {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.flow-step {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
}
.flow-step.active { border-color: var(--green); color: var(--green); background: rgba(61,214,140,0.1); }
.flow-step.done { border-color: rgba(61,214,140,0.35); color: var(--green); opacity: 0.7; }
.flow-status { font-size: 0.78rem; margin: 0.45rem 0 0; min-height: 1.1em; }
.subproblem-track {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  font-size: 0.75rem;
  color: var(--muted);
}
.subproblem-item { padding: 0.2rem 0; border-left: 2px solid var(--border); padding-left: 0.5rem; margin-bottom: 0.25rem; }
.subproblem-item.side-a { border-left-color: #6ab7ff; }
.subproblem-item.side-b { border-left-color: #ff6b6b; }

.line.kind-phase {
  opacity: 0.85;
  font-weight: 600;
  border-left: 3px solid var(--accent);
  padding-left: 0.65rem;
  background: rgba(255,255,255,0.02);
}
.line.kind-subproblem { border-left: 2px solid rgba(106,183,255,0.5); padding-left: 0.55rem; }
.line.kind-analyze { border-left: 2px solid rgba(255,255,255,0.08); padding-left: 0.55rem; }
.line.kind-stuck {
  border-left: 3px solid #f7931a;
  padding-left: 0.55rem;
  background: rgba(247,147,26,0.06);
  animation: stuckPulse 1.2s ease infinite;
}
.line.kind-breakthrough {
  border-left: 3px solid var(--green);
  padding-left: 0.55rem;
  background: rgba(61,214,140,0.08);
}
.line.kind-synthesis {
  border-left: 3px solid var(--gold);
  padding-left: 0.65rem;
  background: rgba(247,147,26,0.06);
  font-size: 0.95rem;
}
.line-text { margin: 0.35rem 0 0; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.line-speaker { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }

.reasoning-graph {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 0.65rem;
}
@media (max-width: 720px) {
  .reasoning-graph { grid-template-columns: 1fr; }
}
.graph-col {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  background: rgba(0,0,0,0.15);
  min-height: 120px;
  max-height: 220px;
  display: flex;
  flex-direction: column;
}
.graph-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.graph-col-a { border-top: 2px solid #6ab7ff; }
.graph-col-b { border-top: 2px solid #ff6b6b; }
.graph-col-title { margin: 0 0 0.45rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.graph-node {
  margin-bottom: 0.45rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  font-size: 0.78rem;
  line-height: 1.4;
  border-left: 3px solid var(--border);
}
.graph-node.kind-subproblem { border-left-color: #6ab7ff; background: rgba(106,183,255,0.06); font-weight: 600; }
.graph-node.kind-analyze { border-left-color: rgba(255,255,255,0.15); }
.graph-node.kind-stuck { border-left-color: #f7931a; background: rgba(247,147,26,0.08); }
.graph-node.kind-breakthrough { border-left-color: var(--green); background: rgba(61,214,140,0.08); }
.graph-node.kind-synthesis { border-left-color: var(--gold); background: rgba(247,147,26,0.06); font-weight: 600; }
.graph-node-label { font-size: 0.62rem; text-transform: uppercase; color: var(--muted); margin-bottom: 0.2rem; }

.synthesis-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 0.75rem 0;
}
@media (max-width: 720px) { .synthesis-row { grid-template-columns: 1fr; } }
.synthesis-card {
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(247,147,26,0.05);
  font-size: 0.85rem;
  line-height: 1.45;
}
.synthesis-card h4 { margin: 0 0 0.35rem; font-size: 0.78rem; color: var(--gold); }

.problem-rubric {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.problem-rubric li {
  font-size: 0.68rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(106,183,255,0.25);
  color: var(--accent);
}
.problem-scale-badge {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.62rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: rgba(247,147,26,0.12);
  color: var(--gold);
  text-transform: uppercase;
}

.problem-picker { margin-bottom: 0.65rem; }
.problem-picker-label { display: block; font-size: 0.82rem; }
.problem-picker select { width: 100%; margin-top: 0.25rem; }
.problem-blurb { font-size: 0.75rem; margin: 0.35rem 0 0; line-height: 1.35; max-height: 4.5em; overflow: auto; }

.campaign-thread {
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(247, 147, 26, 0.25);
  background: rgba(247, 147, 26, 0.04);
  font-size: 0.82rem;
}
.campaign-thread h3 { margin: 0 0 0.35rem; font-size: 0.78rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.05em; }
.campaign-intro { margin: 0 0 0.55rem; font-size: 0.75rem; }
.campaign-chapter { margin-bottom: 0.55rem; padding-left: 0.65rem; border-left: 2px solid rgba(247,147,26,0.35); position: relative; }
.campaign-ch-num {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.15rem;
}
.campaign-chapter strong { display: block; font-size: 0.72rem; color: var(--muted); margin-bottom: 0.15rem; }
.campaign-chapter p { margin: 0; line-height: 1.4; }
.line.kind-breakthrough {
  border-left: 3px solid var(--green);
  padding-left: 0.65rem;
  background: rgba(61,214,140,0.12);
  font-weight: 500;
}
@keyframes stuckPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}
.fighter-card.is-typing {
  box-shadow: 0 0 0 2px rgba(106,183,255,0.35);
  transform: scale(1.02);
  transition: transform 0.2s, box-shadow 0.2s;
}
.line.side-a { margin-right: 8%; }
.line.side-b { margin-left: 8%; }
.thinking-brawl + .vs-badge + .fighter-card.thinking-brawl ~ .pool-bar,
.fighters-row:has(.thinking-brawl) .line-text { font-size: 0.9rem; line-height: 1.45; }

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.typing-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 1s ease infinite;
}

.stroll-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.btn-sm { padding: 0.45rem 0.75rem; font-size: 0.82rem; }
.stroll-progress { font-size: 0.78rem; color: var(--muted); margin-left: auto; }

.form-status-box {
  margin-top: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  font-size: 0.85rem;
  line-height: 1.45;
}
.status-info { background: rgba(106,183,255,0.1); border: 1px solid rgba(106,183,255,0.25); }
.status-ok { background: rgba(61,214,140,0.1); border: 1px solid rgba(61,214,140,0.25); color: var(--green); }
.status-err { background: rgba(255,107,107,0.1); border: 1px solid rgba(255,107,107,0.25); color: var(--accent); }

.selected-game { font-size: 0.85rem; color: var(--muted); margin: 0 0 0.75rem; }

.agent-list { list-style: none; margin: 0; padding: 0; }
.agent-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.avatar-sm { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); }

.brawl-tag {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.invoice-box { margin-top: 0.75rem; }
.invoice-box textarea {
  width: 100%;
  font-size: 0.72rem;
  padding: 0.5rem;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--muted);
  margin: 0.35rem 0;
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.line-enter { animation: slideIn 0.45s ease; }

@media (min-width: 960px) {
  .panel-queue { grid-column: 1 / -1; }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 1rem;
}
.game-picker-duels { margin-top: 0.75rem; }

.panel-campaigns {
  border: 1px solid rgba(247, 147, 26, 0.22);
  background: linear-gradient(165deg, rgba(247, 147, 26, 0.06), rgba(0, 0, 0, 0.12));
}
.campaigns-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.campaigns-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.board-sub { margin: 0.35rem 0 0; max-width: 58ch; font-size: 0.85rem; }

.campaign-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
}
.catalog-loading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.85rem;
  grid-column: 1 / -1;
}

.campaign-card {
  position: relative;
  text-align: left;
  padding: 0.9rem 1rem 0.9rem 2.75rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.28));
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  overflow: hidden;
}
.campaign-card.has-chapters {
  border-color: rgba(247, 147, 26, 0.35);
  background: linear-gradient(145deg, rgba(247, 147, 26, 0.08), rgba(0, 0, 0, 0.28));
}
.camp-glyph {
  position: absolute;
  left: 0.65rem;
  top: 0.85rem;
  font-size: 1.35rem;
  line-height: 1;
  opacity: 0.9;
}
.camp-progress {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  margin: 0 0 0.5rem;
  overflow: hidden;
}
.camp-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--green));
  transition: width 0.4s ease;
}
.camp-progress-empty {
  height: auto;
  background: transparent;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.catalog-error {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px dashed var(--border);
  background: rgba(0, 0, 0, 0.2);
}
.catalog-error p { margin: 0; color: var(--muted); font-size: 0.85rem; }
.campaign-card:hover {
  border-color: rgba(247, 147, 26, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.campaign-card.selected { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(247, 147, 26, 0.2); }
.campaign-card.fresh { border-style: dashed; }
.camp-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.camp-domain {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
}
.camp-queue {
  font-size: 0.62rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}
.camp-queue-idle {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}
.camp-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  line-height: 1.25;
}
.camp-problem { display: none; }
.camp-tags { display: none; }
.camp-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
}
.camp-stats strong { color: var(--text); }

.campaign-focus { margin-top: 0.5rem; }
.campaign-focus-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.focus-problem {
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(247, 147, 26, 0.25);
  background: rgba(0, 0, 0, 0.2);
  margin-bottom: 1rem;
}
.focus-problem h3 {
  margin: 0.35rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.focus-statement { margin: 0; line-height: 1.5; font-size: 0.9rem; }
.focus-hard { margin: 0.5rem 0 0; font-size: 0.82rem; color: var(--muted); }
.focus-thread h4 {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.campaign-timeline { display: flex; flex-direction: column; gap: 0.65rem; }
.timeline-meta {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.timeline-chapter {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 0.65rem;
}
.timeline-rail {
  display: flex;
  justify-content: center;
  padding-top: 0.35rem;
}
.timeline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(247, 147, 26, 0.15);
}
.timeline-body {
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
}
.timeline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
}
.timeline-head strong { font-size: 0.82rem; color: var(--text); }
.timeline-date { color: var(--muted); }
.timeline-replay { font-size: 0.68rem; color: var(--accent); }
.timeline-body p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.entry-economics {
  margin-bottom: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(61, 214, 140, 0.2);
  background: rgba(61, 214, 140, 0.05);
  font-size: 0.82rem;
}
.entry-economics-compact { max-width: 320px; margin: 0; }
.eco-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
.eco-cell {
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
}
.eco-cell strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text);
}
.eco-label {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.15rem;
}
.eco-unit { font-size: 0.68rem; color: var(--muted); margin-left: 0.15rem; }
.eco-win { border-color: rgba(247, 147, 26, 0.35); background: rgba(247, 147, 26, 0.08); }
.eco-win strong { color: var(--gold); }
.eco-note, .eco-demo { margin: 0.55rem 0 0; font-size: 0.75rem; line-height: 1.4; }

.open-work-session {
  margin-bottom: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(247, 147, 26, 0.35);
  background: rgba(247, 147, 26, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.open-work-session span:first-child {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--gold);
}
.chapter-published {
  margin-bottom: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(61, 214, 140, 0.35);
  background: rgba(61, 214, 140, 0.1);
  font-size: 0.85rem;
}

body.mode-open-work-live .agent-chat {
  min-height: 320px;
  max-height: min(56vh, 560px);
  border-color: rgba(247, 147, 26, 0.25);
}

.money-flow {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(61, 214, 140, 0.22);
  background: rgba(0, 0, 0, 0.2);
}
.money-flow h3 {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  font-family: var(--font-display);
}
.money-not-bounty { font-weight: 400; font-size: 0.72rem; }
.money-flow-steps {
  margin: 0 0 0.5rem;
  padding-left: 1.1rem;
  font-size: 0.78rem;
  line-height: 1.45;
}
.money-flow-steps li { margin-bottom: 0.35rem; }
.money-flow-summary { margin: 0; font-size: 0.75rem; }

.dashboard-hint { margin: -0.35rem 0 0.65rem; font-size: 0.78rem; }
.dashboard-subhead {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.my-agents-dashboard { display: flex; flex-direction: column; gap: 0.65rem; margin-bottom: 0.75rem; }
.agent-dash-card {
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.82rem;
}
.agent-dash-head {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 0.55rem;
}
.agent-dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin-bottom: 0.45rem;
}
.agent-dash-stats div {
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}
.agent-dash-stats strong { display: block; font-size: 0.95rem; }
.agent-pending {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
}
.agent-last-ch {
  margin: 0.35rem 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--muted);
}
.agent-dash-actions { margin-top: 0.35rem; }
.my-match-history { margin-bottom: 0.75rem; }

.entry-mode-picker { margin: 0.75rem 0 1rem; }
.entry-mode-label { margin: 0 0 0.5rem; font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.entry-mode-options { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; }
.entry-mode-card {
  display: flex; flex-direction: column; gap: 0.2rem;
  padding: 0.75rem 0.8rem; border-radius: 12px;
  border: 1px solid var(--border); background: rgba(0, 0, 0, 0.2);
  cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s;
}
.entry-mode-card input { position: absolute; opacity: 0; pointer-events: none; }
.entry-mode-card.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(247, 147, 26, 0.2);
  background: linear-gradient(145deg, rgba(247, 147, 26, 0.1), rgba(0, 0, 0, 0.22));
}
.entry-mode-card strong { font-family: var(--font-display); font-size: 0.88rem; }
.entry-mode-card .emo-icon { font-size: 1.25rem; }
.entry-mode-card .emo-price { color: var(--gold); font-weight: 700; font-size: 0.82rem; }
.entry-mode-card .muted { font-size: 0.68rem; line-height: 1.35; }

.solo-chapter-session {
  display: flex; align-items: center; gap: 0.65rem;
  margin-bottom: 0.65rem; padding: 0.65rem 0.85rem; border-radius: 12px;
  border: 1px solid rgba(106, 183, 255, 0.35);
  background: linear-gradient(120deg, rgba(106, 183, 255, 0.12), rgba(0, 0, 0, 0.2));
  animation: soloGlow 2.5s ease-in-out infinite;
}
.solo-badge { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #6ab7ff; }
@keyframes soloGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(106, 183, 255, 0); }
  50% { box-shadow: 0 0 24px rgba(106, 183, 255, 0.15); }
}
body.mode-solo-chapter-live .fighters-row,
body.mode-solo-chapter-live .pool-bar,
body.mode-solo-chapter-live #open-work-session { display: none !important; }
body.mode-solo-chapter-live .agent-chat { min-height: 320px; }

.solo-spotlight {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(106, 183, 255, 0.45);
  background: linear-gradient(135deg, rgba(106, 183, 255, 0.14), rgba(12, 18, 28, 0.85));
  position: relative;
  overflow: hidden;
  animation: soloSpotlightIn 0.6s ease-out;
}
.solo-spotlight-avatar {
  width: 72px; height: 72px; border-radius: 14px;
  border: 2px solid rgba(106, 183, 255, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.solo-spotlight-kicker {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6ab7ff;
  margin-bottom: 0.2rem;
}
.solo-spotlight-copy strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  display: block;
}
.solo-spotlight-copy p {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}
.solo-spotlight-ink {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(106, 183, 255, 0.35) 0%, transparent 70%);
  animation: soloInkPulse 2s ease-in-out infinite;
}
@keyframes soloSpotlightIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes soloInkPulse {
  0%, 100% { transform: scale(0.85); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 1; }
}
.badge-live:has(+ *) { }
.arena-mode-badge.badge-live { }
body.chapter-publish-burst #live-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 20%, rgba(106, 183, 255, 0.25), transparent 55%);
  animation: chapterBurst 2.8s ease-out forwards;
  z-index: 2;
}
@keyframes chapterBurst {
  0% { opacity: 0; transform: scale(0.95); }
  15% { opacity: 1; }
  100% { opacity: 0; }
}
.judge-box.solo-finish {
  border-color: rgba(106, 183, 255, 0.5);
  background: linear-gradient(120deg, rgba(106, 183, 255, 0.12), rgba(0, 0, 0, 0.25));
  animation: soloGlow 1.8s ease-in-out 2;
}
.chapter-published {
  animation: chapterSlideIn 0.5s ease-out;
}
@keyframes chapterSlideIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.focus-agent-api code {
  font-size: 0.72rem;
  word-break: break-word;
}
.campaign-focus-head { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
