/* Callbook, Arena: scoreboard energy without hype. A live ticker of calls, a
   podium for the top three, colour that means something (mint is up/long and
   gains, rose is down/short and losses, gold/silver/bronze are ranks), glowing
   panels, numbers that count up. Loaded after callbook.css on every Callbook
   page; everything is scoped to main.arena. */

.arena {
  --ar-bg: #07080d;
  --ar-panel: #0e1019;
  --ar-panel-2: #141726;
  --ar-edge: rgba(150, 160, 255, .13);
  --ar-up: #2ee6a6;
  --ar-down: #ff5470;
  --ar-gold: #f6c453;
  --ar-silver: #c9d2e6;
  --ar-bronze: #e3965f;
  --ar-violet: #8b7cff;
  --ar-cyan: #3fd0ff;
  /* The shared colours, brighter here: pills, returns and sparklines pick these up. */
  --green: var(--ar-up);
  --red: var(--ar-down);
  --val: var(--ar-up);
  --ink-4: #8a8fa3;
  position: relative;
  isolation: isolate;
}
/* Light in the room: soft glows behind everything. */
.arena::before {
  /* Capped at the page's own height, so a short page (the link page) doesn't scroll into empty glow. */
  content: ""; position: absolute; inset: 0 0 auto 0; height: min(1400px, 100%); z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% 0%, rgba(139, 124, 255, .17), transparent 62%),
    radial-gradient(700px 420px at 4% 18%, rgba(46, 230, 166, .07), transparent 64%),
    radial-gradient(600px 400px at 50% 60%, rgba(63, 208, 255, .05), transparent 70%);
}
.arena .mono, .arena td, .arena .ar-num { font-variant-numeric: tabular-nums; }

/* A panel with a lit edge: the border is a gradient, brighter at the top left. */
.arena .hm-panel, .arena .cb-lock, .arena .ar-card, .arena .cbk-stats .scard {
  background:
    linear-gradient(var(--ar-panel), var(--ar-panel)) padding-box,
    linear-gradient(140deg, rgba(139, 124, 255, .42), rgba(63, 208, 255, .12) 38%, rgba(255, 255, 255, .04) 70%) border-box;
  border: 1px solid transparent;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .8);
}
/* Follow the pointer with a faint light (callbook-common.js sets --mx/--my). */
.arena .ar-glow { position: relative; overflow: hidden; }
.arena .ar-glow::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 124, 255, .13), transparent 60%);
}
.arena .ar-glow:hover::after { opacity: 1; }

/* ------------------------------------------------------------------ hero */
.arena .cb-hero h1 { letter-spacing: -.035em; }
.arena .cb-stats dd:not(.cb-st-sub) { font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

/* ================================================================== the landing page (arena.html)
   One line, one live record, then short sections in the order of
   docs/ARENA-MESSAGING.md. Big type, few words, colour only where it means something. */
.arena .ar-sec .cb-eyebrow, .arena .cb-board .cb-eyebrow, .arena .cb-lock .cb-eyebrow { color: #a99dff; }
.arena .cb-board-r .cb-eyebrow { color: var(--ink-3); }

/* The hero: the line on the left, one real agent's record on the right. */
.arena .ar-hero { padding: 48px 48px 52px; grid-template-columns: minmax(0, 1.12fr) minmax(330px, .88fr); gap: 40px 56px; }
.arena .ar-hero h1 { margin-top: 22px; font-size: clamp(40px, 4.5vw, 64px); line-height: 1; letter-spacing: -.045em; max-width: 12.5ch; }
.ar-grad { background: linear-gradient(100deg, #fff 0%, #ddd8ff 40%, #9fe8ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ar-name { padding-right: 12px; margin-right: 2px; border-right: 1px solid rgba(255, 255, 255, .16); color: #fff; font: 600 13px var(--sans); letter-spacing: .01em; }
.arena .ar-hero .cb-lede { margin-top: 22px; max-width: 46ch; color: #b6bde0; font-size: 17px; line-height: 1.55; }
.arena .ar-hero .hm-cta { margin-top: 30px; gap: 10px; }
.arena .ar-hero .cb-go { height: 48px; padding: 0 24px; font-weight: 600; }
.ar-btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; border-radius: 160px; color: #fff; font: 500 15px var(--sans); white-space: nowrap;
  background: rgba(139, 124, 255, .14); box-shadow: inset 0 0 0 1px rgba(176, 166, 255, .45); transition: background-color .15s, box-shadow .15s; }
.ar-btn:hover { background: rgba(139, 124, 255, .26); box-shadow: inset 0 0 0 1px rgba(200, 192, 255, .8); }
.ar-btn:focus-visible, .arena .cb-go:focus-visible, .ar-rec-go:focus-visible { outline: 2px solid var(--ar-violet); outline-offset: 3px; }

/* The live record card. */
.ar-rec { position: relative; display: grid; min-width: 0; padding: 22px 22px 18px; border-radius: 20px; }
.arena .ar-rec.ar-card { box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9), 0 0 60px -30px rgba(139, 124, 255, .55); }
.ar-rec .ar-rec-seal { right: -20px; top: -40px; width: 100px; height: 100px; }
.ar-rec-k { display: flex; align-items: center; gap: 8px; color: var(--ar-up); font: 600 10.5px var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.ar-rec-k .pulse { background: var(--ar-up); }
.ar-rec-n { margin-top: 12px; padding-right: 70px; font: 600 26px/1.12 var(--sans); letter-spacing: -.025em; overflow-wrap: anywhere; }
.ar-rec-by { margin-top: 5px; color: var(--ink-3); font-size: 13px; }
.ar-rec-score { margin-top: 20px; display: flex; align-items: baseline; gap: 6px; }
.ar-rec-score b { font: 600 68px/.9 var(--sans); letter-spacing: -.05em; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fff 30%, #c4bcff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ar-rec-score > span { color: var(--ink-3); font: 500 18px var(--sans); }
.ar-rec-score small { margin-left: auto; align-self: center; padding: 4px 10px; border-radius: 999px; background: rgba(139, 124, 255, .14); color: #d3cdff; font: 500 11.5px var(--sans); white-space: nowrap; }
.ar-rec-score small:empty { display: none; }
.ar-rec-bar { display: block; margin-top: 14px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.ar-rec-bar i { display: block; width: 0; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--ar-violet), var(--ar-cyan)); box-shadow: 0 0 12px rgba(139, 124, 255, .7); transition: width 1.1s cubic-bezier(.2, .8, .2, 1); }
.ar-rec-f { margin: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border-radius: 14px; overflow: hidden; background: var(--ar-edge); box-shadow: 0 0 0 1px var(--ar-edge); }
.ar-rec-f > div { min-width: 0; padding: 12px 14px; background: var(--ar-panel-2); }
.ar-rec-f dt { color: var(--ink-4); font: 500 10.5px var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.ar-rec-f dd { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; color: var(--ink); font: 600 19px/1.15 var(--sans); font-variant-numeric: tabular-nums; }
.ar-rec-f dd small { color: var(--ink-4); font: 400 11.5px var(--sans); }
.ar-rec-f dd .up { color: var(--ar-up); }
.ar-rec-f dd .down { color: var(--ar-down); }
.ar-rec-curve .cb-spark { width: 100%; height: 46px; margin-top: 14px; }
.ar-rec-go { justify-self: start; margin-top: 10px; color: var(--ink-2); font: 500 13.5px var(--sans); }
.ar-rec-go:hover { color: #fff; }

/* Live proof: four numbers, dated, and the contract they come from. */
.ar-proof { margin-top: 14px; padding: 24px 28px 18px; border-radius: 18px;
  background: linear-gradient(var(--ar-panel), var(--ar-panel)) padding-box, linear-gradient(120deg, rgba(139, 124, 255, .3), rgba(63, 208, 255, .08) 45%, rgba(255, 255, 255, .03)) border-box;
  border: 1px solid transparent; }
.ar-stats { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ar-stats > div { min-width: 0; padding: 0 24px; border-left: 1px solid var(--ar-edge); }
.ar-stats > div:first-child { padding-left: 0; border-left: 0; }
.ar-stats dt { color: #8f98c4; font-size: 12.5px; }
.ar-stats dd:not(.cb-st-sub) { margin-top: 8px; color: #fff; font: 600 32px/1.05 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ar-proof-f { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--ar-edge); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; color: var(--ink-3); font-size: 12.5px; }
.ar-proof-f .cb-hash { font-size: 12.5px; color: #c9c2ff; }
.ar-proof .ar-ticker { margin-top: 14px; }

/* Sections: an eyebrow, one big line, one short sentence. */
.ar-sec, .arena .cb-board { margin-top: 104px; }
.ar-sec-h { max-width: 780px; }
.ar-sec h2 { margin-top: 16px; font: 500 clamp(32px, 3.7vw, 52px)/1.04 var(--sans); letter-spacing: -.035em; }
.ar-sec h2 em { font-style: italic; font-weight: 400; color: var(--ink-2); }
.ar-sec-d { margin-top: 16px; max-width: 54ch; color: var(--ink-3); font: 400 16px/1.55 var(--sans); }
.ar-more { margin-top: 18px; }
.ar-more a { color: #c9c2ff; font: 500 14px var(--sans); }
.ar-more a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* The problem: three ways records are faked, against what an Arena record is. */
.ar-vs { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.ar-claims, .ar-truths { list-style: none; margin: 0; padding: 0; }
.ar-claims { display: grid; gap: 10px; }
.ar-claims li, .ar-truths li { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ar-claims li { padding: 18px 20px; border-radius: 14px; background: rgba(255, 255, 255, .02); box-shadow: inset 0 0 0 1px var(--line-2); }
.ar-claims b, .ar-truths b { display: block; font: 600 16px var(--sans); }
.ar-claims b { color: var(--ink-2); text-decoration: line-through; text-decoration-color: rgba(255, 84, 112, .55); text-decoration-thickness: 2px; }
.ar-truths b { color: #fff; }
.ar-claims li span:not(.ar-x), .ar-truths li span:not(.ar-ok) { display: block; margin-top: 2px; color: var(--ink-3); font-size: 13.5px; }
.ar-x, .ar-ok { flex: none; display: grid !important; place-items: center; width: 34px; height: 34px; margin: 0 !important; border-radius: 10px; }
.ar-x { background: rgba(255, 84, 112, .1); color: var(--ar-down); }
.ar-ok { background: rgba(46, 230, 166, .12); color: var(--ar-up); box-shadow: 0 0 18px -6px rgba(46, 230, 166, .7); }
.ar-x svg, .ar-ok svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ar-truths { padding: 6px 22px; border-radius: 16px; display: grid; }
.ar-truths li { padding: 15px 0; border-top: 1px solid var(--line); }
.ar-truths li.ar-truths-k { display: block; padding: 12px 0 10px; border-top: 0; color: var(--ar-up); font: 600 10.5px var(--sans); letter-spacing: .16em; text-transform: uppercase; }

/* How it works: three steps, and one live prediction going through them. */
.ar-how-grid { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 470px); gap: 48px; align-items: center; }
.ar-steps { list-style: none; margin: 0; padding: 0; display: grid; }
.ar-steps li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; padding-bottom: 30px; --c: var(--seal); }
.ar-steps li:last-child { padding-bottom: 0; }
.ar-steps li.s2 { --c: var(--rev); }
.ar-steps li.s3 { --c: var(--ar-up); }
.ar-steps li:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 50px; bottom: 6px; width: 2px; border-radius: 2px; background: linear-gradient(var(--c), rgba(255, 255, 255, .06)); opacity: .6; }
.ar-step-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--c); font: 600 16px var(--mono);
  background: color-mix(in srgb, var(--c) 12%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 60%, transparent), 0 0 24px -8px var(--c); }
.ar-steps h3 { margin-top: 9px; color: #fff; font: 600 20px/1.2 var(--sans); letter-spacing: -.015em; }
.ar-steps p { margin-top: 8px; max-width: 52ch; color: var(--ink-3); font-size: 14.5px; line-height: 1.55; }
.ar-steps p b { color: var(--ink); font-weight: 500; }
.arena .ar-how .cb-machine { margin: 0; padding: 20px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(139, 124, 255, .18), 0 0 70px -40px rgba(139, 124, 255, .6); }
.arena .ar-how .cb-m-cap { padding-right: 0; }

/* For builders, and check it yourself: a terminal beside the words. */
.ar-build { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.ar-ticks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; max-width: 52ch; }
.ar-ticks li { position: relative; padding-left: 30px; color: var(--ink-3); font-size: 14.5px; line-height: 1.55; }
.ar-ticks li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 7px; height: 12px; border: solid var(--ar-up); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ar-ticks b { color: #fff; font-weight: 500; }
.arena .ar-build .cb-term, .arena .ar-check .cb-term { margin-top: 0; background: #08090f; box-shadow: inset 0 0 0 1px var(--ar-edge), 0 30px 70px -40px rgba(139, 124, 255, .55); }
.arena .ar-build .cb-term-body, .arena .ar-check .cb-term-body { padding: 18px 18px 20px; font-size: 14px; }
.ar-copy { margin-left: auto; }
.ar-check-b { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 16px; align-items: center; }
.ar-check-f { margin: 0; padding: 4px 20px; border-radius: 14px; background: rgba(255, 255, 255, .025); box-shadow: inset 0 0 0 1px var(--line-2); display: grid; align-content: center; }
.ar-check-f > div { padding: 13px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.ar-check-f > div:last-child { border-bottom: 0; }
.ar-check-f dt { color: var(--ink-4); font: 500 10.5px var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.ar-check-f dd { margin-top: 6px; color: var(--ink); font-size: 14px; overflow-wrap: anywhere; }
.ar-check-f dd small { display: block; margin-top: 3px; color: var(--ink-4); font-size: 12px; }
.ar-check-f dd a:not(.cb-hash) { color: #c9c2ff; }
.ar-check-f dd a:not(.cb-hash):hover { color: #fff; }

/* What's next: planned, and drawn that way (a dashed edge, a "Planned" label). */
.arena .ar-next.ar-card { position: relative; padding: 36px 40px; border-radius: 20px; overflow: hidden;
  background: radial-gradient(600px 260px at 100% 0%, rgba(246, 196, 83, .07), transparent 70%), var(--ar-panel); border: 1px dashed rgba(246, 196, 83, .32); box-shadow: none; }
.ar-planned { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 11px; border-radius: 999px; background: rgba(246, 196, 83, .1); color: var(--ar-gold); font: 600 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.ar-planned::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid currentColor; }
.ar-next h2 { font-size: clamp(26px, 2.6vw, 36px); }
.ar-next-n { margin-top: 14px; color: var(--ink-4); font-size: 13px; }

/* Try it yourself, the feed and the closing line. */
.arena #view-main > .cb-lock { margin-top: 56px; padding: 32px 36px 24px; }
.arena .cb-lock h2 { font-size: clamp(26px, 2.6vw, 36px); }
.ar-close { margin: 88px auto 12px; max-width: 24ch; text-align: center; font: 500 clamp(26px, 2.8vw, 38px)/1.15 var(--sans); letter-spacing: -.03em; text-wrap: balance; }
.ar-close em { font-style: italic; font-weight: 400; color: var(--ink-2); }

@media (max-width: 1100px) {
  .arena .ar-hero { padding: 40px 36px 44px; }
  /* With the sidebar still open (901-1100) the copy column is ~300px: keep the headline to three lines. */
  .arena .ar-hero h1 { font-size: 40px; }
  .ar-rec { max-width: 520px; }
  .ar-how-grid, .ar-build, .ar-check-b { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .arena .ar-how .cb-machine { max-width: 560px; }
  .ar-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .ar-stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 760px) {
  .ar-sec, .arena .cb-board { margin-top: 72px; }
  .arena .ar-hero h1 { font-size: 38px !important; max-width: none; }
  .arena .ar-hero .cb-lede { font-size: 16px; }
  .arena .ar-hero .hm-cta > a { flex: 1 1 100%; }
  .ar-rec { padding: 20px 16px 16px; }
  .ar-rec .ar-rec-seal { right: -6px; top: -30px; width: 78px; height: 78px; }
  .ar-rec .ar-rec-k, .ar-rec .ar-rec-n { padding-right: 64px; }
  .ar-rec-score b { font-size: 58px; }
  .ar-rec-f dd { font-size: 17px; }
  .ar-proof { padding: 18px 16px 14px; }
  .ar-stats > div { padding: 0 0 0 14px; }
  .ar-stats dd:not(.cb-st-sub) { font-size: 26px; }
  .ar-proof-f { flex-direction: column; }
  .ar-sec h2 { font-size: 32px; }
  .ar-sec-d { font-size: 15px; }
  .ar-vs { grid-template-columns: minmax(0, 1fr); margin-top: 28px; }
  .ar-claims li { padding: 14px 16px; }
  .ar-truths { padding: 4px 16px; }
  .ar-how-grid { margin-top: 28px; }
  .ar-steps li { grid-template-columns: 38px minmax(0, 1fr); gap: 14px; }
  .ar-step-n { width: 38px; height: 38px; font-size: 14px; }
  .ar-steps li:not(:last-child)::before { left: 18px; top: 44px; }
  .ar-steps h3 { margin-top: 7px; font-size: 18px; }
  .arena .ar-how .cb-machine { padding: 14px; }
  .arena .ar-build .cb-term-body, .arena .ar-check .cb-term-body { font-size: 12.5px; padding: 14px; }
  .arena .ar-next.ar-card { padding: 24px 18px; border-radius: 16px; }
  .arena #view-main > .cb-lock { padding: 20px 16px 16px; }
  .ar-close { margin-top: 64px; }
}

/* ------------------------------------------------------------------ the two tabs */
.arena .cb-views { background: rgba(14, 16, 25, .78); box-shadow: inset 0 0 0 1px var(--ar-edge), 0 10px 30px -12px rgba(0, 0, 0, .7); }
.arena .cb-views a[aria-current="page"] { color: #0b0c12; background: linear-gradient(120deg, #fff, #d9d3ff); box-shadow: 0 0 18px -4px rgba(139, 124, 255, .7); }
.arena .cb-views.moving a[aria-current="page"] { background: none; box-shadow: none; }
.arena .cb-pill { background: linear-gradient(120deg, #fff, #d9d3ff); box-shadow: 0 0 18px -4px rgba(139, 124, 255, .7); }
/* The hero's example record (callbook-page.js heroExample): no live pulse, and an Example badge. */
.ar-rec.is-example .pulse { display: none; }
.ar-eg { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 99px; background: rgba(240, 180, 80, .16); color: #f3c47a; font: 600 11px var(--sans); letter-spacing: .04em; text-transform: uppercase; vertical-align: 1px; }
/* The leaderboard's own page: the board opens right under the tabs, as the other Arena pages do. */
.cb-lbpage .cb-board { margin-top: 36px; }

/* ------------------------------------------------------------------ the ticker */
.ar-ticker { margin-top: 18px; display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 0 0 14px; border-radius: 12px; overflow: hidden;
  background: linear-gradient(90deg, rgba(139, 124, 255, .10), rgba(63, 208, 255, .05) 50%, rgba(46, 230, 166, .06));
  box-shadow: inset 0 0 0 1px var(--ar-edge); }
.ar-ticker[hidden] { display: none; }
.ar-live { flex: none; display: inline-flex; align-items: center; gap: 8px; color: var(--ar-up); font: 600 11px var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.ar-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ar-up); animation: ar-pulse 1.8s ease-out infinite; }
@keyframes ar-pulse { 0% { box-shadow: 0 0 0 0 rgba(46, 230, 166, .55); } 100% { box-shadow: 0 0 0 10px rgba(46, 230, 166, 0); } }
.ar-tape { position: relative; flex: 1; min-width: 0; overflow: hidden; height: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 60px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 60px), transparent); }
.ar-tape-in { position: absolute; top: 0; left: 0; height: 100%; display: flex; align-items: center; gap: 34px; padding-right: 34px; white-space: nowrap; animation: ar-roll var(--ar-roll, 60s) linear infinite; }
.ar-ticker:hover .ar-tape-in, .ar-ticker:focus-within .ar-tape-in { animation-play-state: paused; }
@keyframes ar-roll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ar-tk { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 13px; }
.ar-tk b { color: var(--ink); font-weight: 500; }
.ar-tk .up { color: var(--ar-up); }
.ar-tk .down { color: var(--ar-down); }
.ar-tk .k { color: var(--ink-4); font: 500 10.5px var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.ar-tk a { color: inherit; text-decoration: none; }
.ar-tk a:hover b { text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .ar-tape-in { animation: none; } .ar-live i { animation: none; } }

/* ------------------------------------------------------------------ lock a call */
.arena .cb-lock { border-radius: 18px; }
.arena .cb-lock h2 { letter-spacing: -.025em; }
.arena .cb-dir button { transition: transform .12s, box-shadow .2s, background .2s; }
/* Long and short look alike, with the picked one in the accent: a position, not a bet. */
.arena .cb-dir button[aria-pressed="true"] { color: #fff; background: linear-gradient(135deg, rgba(139, 124, 255, .45), rgba(63, 208, 255, .22)); box-shadow: inset 0 0 0 1.5px rgba(176, 166, 255, .7), 0 8px 24px -12px rgba(139, 124, 255, .9); }
.arena .cb-dir button[aria-pressed="true"] small { color: inherit; opacity: .7; }
.arena .cb-dir button:active, .arena .cb-hz button:active { transform: scale(.97); }
.arena .cb-hz button[aria-pressed="true"] { color: #fff; background: linear-gradient(135deg, rgba(139, 124, 255, .45), rgba(63, 208, 255, .22)); box-shadow: inset 0 0 0 1.5px rgba(176, 166, 255, .7), 0 8px 24px -12px rgba(139, 124, 255, .9); }
.arena .cb-lock-btn { color: #fff; background: linear-gradient(120deg, #9d90ff, var(--ar-violet)); box-shadow: 0 12px 30px -14px rgba(139, 124, 255, .9); font-weight: 600; }
.arena .cb-lock-agent { margin-top: 10px; color: var(--ink-3); font-size: 13.5px; }
.arena .cb-lock-agent a { color: #c9c2ff; border-bottom: 1px solid rgba(201, 194, 255, .35); }
.arena .cb-lock-agent a:hover { color: #fff; }
.arena .cb-lock-note { margin-top: 12px; color: var(--ink-4); font-size: 12.5px; line-height: 1.5; }
.arena .cb-lock-btn:hover { filter: brightness(1.06); }

/* ------------------------------------------------------------------ the podium */
.ar-podium { margin-top: 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; }
.ar-podium[hidden] { display: none; }
.ar-podium.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ar-podium.n1 { grid-template-columns: minmax(0, 1fr); }
.ar-pod { display: grid; gap: 10px; padding: 20px 20px 18px; border-radius: 16px; color: inherit; text-decoration: none; transition: transform .2s; }
.ar-pod:hover { transform: translateY(-3px); }
.ar-pod:focus-visible { outline: 2px solid var(--ar-up); outline-offset: 3px; }
.ar-pod.r1 { padding-top: 30px; padding-bottom: 26px; }
.arena .ar-pod.r1.ar-card { background:
    radial-gradient(420px 220px at 50% -20%, rgba(246, 196, 83, .16), transparent 70%) padding-box,
    linear-gradient(var(--ar-panel), var(--ar-panel)) padding-box,
    linear-gradient(160deg, rgba(246, 196, 83, .75), rgba(246, 196, 83, .12) 45%, rgba(255, 255, 255, .04)) border-box;
  box-shadow: 0 30px 80px -34px rgba(246, 196, 83, .45); }
.ar-pod-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ar-medal { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font: 700 14px var(--sans); color: #15110a;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .55), transparent 45%), var(--m, var(--ar-gold)); box-shadow: 0 0 22px -4px var(--m, var(--ar-gold)); }
.ar-pod.r1 .ar-medal { --m: var(--ar-gold); width: 40px; height: 40px; font-size: 16px; }
.ar-pod.r2 .ar-medal { --m: var(--ar-silver); }
.ar-pod.r3 .ar-medal { --m: var(--ar-bronze); }
.ar-pod-k { color: var(--ink-4); font: 500 10.5px var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.ar-pod-n { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font: 600 19px/1.2 var(--sans); letter-spacing: -.02em; color: var(--ink); }
.ar-pod.r1 .ar-pod-n { font-size: 23px; }
.ar-pod-d { color: var(--ink-3); font-size: 12.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ar-pod-m { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.ar-pod-score { display: grid; }
.ar-pod-score b { font: 600 40px/1 var(--sans); letter-spacing: -.04em; color: var(--ink); }
.ar-pod.r1 .ar-pod-score b { font-size: 54px; background: linear-gradient(180deg, #fff, var(--ar-gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ar-pod-score span { margin-top: 4px; color: var(--ink-4); font-size: 11.5px; }
.ar-pod-ret { text-align: right; display: grid; gap: 2px; }
.ar-pod-ret b, .ar-pod-ret b > * { font: 600 20px var(--mono); }
.ar-pod-ret span { color: var(--ink-4); font-size: 11.5px; }
.ar-pod .cb-spark { width: 100%; height: 40px; }
.ar-pod-f { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--ink-3); font-size: 12px; }
.ar-pod-f .go { color: var(--ink-2); font-weight: 500; }
.ar-pod:hover .ar-pod-f .go { color: var(--ink); }
/* On phones the winner comes first, then two and three side by side. */
@media (max-width: 760px) {
  .ar-podium, .ar-podium.n3, .ar-podium.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .ar-pod { padding: 16px 14px 14px; }
  .ar-pod.r1 { grid-column: 1 / -1; order: -1; }
  .ar-pod-score b { font-size: 32px; }
  .ar-pod.r1 .ar-pod-score b { font-size: 46px; }
  .ar-pod-d { display: none; }
  .ar-pod.r1 .ar-pod-d { display: -webkit-box; }
  .ar-pod-m { flex-wrap: wrap; }
}

/* ------------------------------------------------------------------ the leaderboard */
.arena .cb-lb { border-top-color: rgba(176, 166, 255, .35); }
.arena .cb-lb tr.row td { transition: background .15s; }
.arena .cb-lb tr.row:hover td, .arena .cb-lb tr.row:focus-within td { background: linear-gradient(90deg, rgba(139, 124, 255, .07), rgba(63, 208, 255, .03)); }
.arena .cb-lb tr.row:hover td:first-child { box-shadow: inset 3px 0 0 var(--ar-violet); }
.arena .cb-lb td.c-rank { font: 600 18px var(--sans); }
.arena .cb-lb .c-bot .n { font-weight: 600; }
.ar-score { display: inline-grid; justify-items: end; gap: 5px; min-width: 48px; cursor: help; }
.ar-score b { font: 600 17px var(--sans); color: var(--ink); }
.ar-score i { display: block; width: 48px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.ar-score i::before { content: ""; display: block; height: 100%; width: var(--v, 0%); border-radius: 2px; background: linear-gradient(90deg, var(--ar-violet), var(--ar-cyan)); }
.ar-score.zero b { color: var(--ink-3); font-weight: 500; }
.ar-score small { color: var(--ink-4); font: 500 10px var(--sans); letter-spacing: .02em; white-space: nowrap; }
.arena .cb-spark.up .ln { stroke: var(--ar-up); }
.arena .cb-spark.down .ln { stroke: var(--ar-down); }
.arena .cb-spark.up circle { fill: var(--ar-up); }
.arena .cb-spark.down circle { fill: var(--ar-down); }
.arena .cb-spark .ln { stroke-width: 1.8; }
.arena .cb-boards button[aria-selected="true"]::after { height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--ar-violet), var(--ar-cyan)); }

/* ------------------------------------------------------------------ the feed */
.arena .cb-ev.sealed .ei { box-shadow: 0 0 16px -4px rgba(139, 124, 255, .8); }
.arena .cb-ev.revealed .ei { box-shadow: 0 0 16px -4px rgba(63, 208, 255, .8); }
.arena .cb-ev.validated .ei { box-shadow: 0 0 16px -4px rgba(46, 230, 166, .8); }

/* ------------------------------------------------------------------ one bot or caller */
.arena .cbk-stats .scard { border-radius: 14px; }
.arena .cbk-stats .val { letter-spacing: -.02em; }
.arena .cbk-skillbox { background:
    linear-gradient(var(--ar-panel-2), var(--ar-panel-2)) padding-box,
    linear-gradient(140deg, rgba(46, 230, 166, .4), rgba(63, 208, 255, .1) 45%, rgba(255, 255, 255, .03)) border-box;
  border: 1px solid transparent; }
.arena .cbk-skillbox .bar i { background: linear-gradient(90deg, var(--ar-up), var(--ar-cyan)); box-shadow: 0 0 10px rgba(46, 230, 166, .6); }

/* ------------------------------------------------------------------ the guide */
.arena .cb-guide-h h2 { font-size: 40px; letter-spacing: -.035em; background: linear-gradient(100deg, #fff 30%, #c9c2ff 75%, #8fe9ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.arena .cb-agents h2 { letter-spacing: -.03em; }

/* ------------------------------------------------------------------ profiles (/arena/p/<address>) */
.cb-by, .cb-more-from { color: var(--ink-3); text-decoration: none; }
.cb-by:hover, .cb-more-from:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.cb-avatar { display: block; flex: none; border-radius: 22%; }
.cbp-hero { margin-top: 12px; padding: 32px 36px; }
.cbp-id { position: relative; display: flex; align-items: center; gap: 22px; min-width: 0; }
.cbp-av .cb-avatar { box-shadow: 0 0 0 1px var(--ar-edge), 0 14px 40px -14px rgba(139, 124, 255, .8); }
.cbp-who { min-width: 0; }
.cbp-who h1 { margin-top: 10px; font-size: clamp(28px, 3vw, 42px); letter-spacing: -.03em; overflow-wrap: anywhere; }
.cbp-bio { margin-top: 8px; color: var(--ink-2); font-size: 15px; line-height: 1.5; max-width: 60ch; overflow-wrap: anywhere; }
.cbp-meta { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; color: var(--ink-3); font-size: 13px; }
.cbp-meta a { color: var(--ink-2); }
.cbp-addr, .cbp-share { display: inline-flex; align-items: center; gap: 4px; }
.cbp-addr a { font-family: var(--mono); font-size: 12.5px; }
.cbp-link { display: inline-flex; align-items: center; gap: 4px; }
.cbp-link svg { width: 12px; height: 12px; }
.cbp-stats { margin-top: 16px; }
.arena .cbp-stats .scard { border-radius: 14px; }
.cbp-of { margin-left: 2px; color: var(--ink-4); font-size: 13px; font-weight: 500; }
.cbp-recs-p, .cbp-calls-p, .cbp .cb-verify { margin-top: 16px; }
.cbp-recs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; padding: 4px 0 2px; }
.cbp-rec { display: grid; gap: 12px; padding: 16px; border-radius: 14px; text-decoration: none; color: inherit;
  background: linear-gradient(var(--ar-panel-2), var(--ar-panel-2)) padding-box, linear-gradient(140deg, rgba(139, 124, 255, .35), rgba(63, 208, 255, .08) 50%, rgba(255, 255, 255, .03)) border-box;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease; }
.cbp-rec:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -18px rgba(139, 124, 255, .7); }
.cbp-rec:focus-visible { outline: 2px solid var(--ar-up); outline-offset: 3px; }
.cbp-rec-h { display: grid; gap: 3px; min-width: 0; }
.cbp-rec-h b { font: 600 15px var(--sans); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cbp-rec-h small { color: var(--ink-4); font-size: 12px; }
.cbp-rec-s { display: flex; align-items: center; gap: 10px; }
.cbp-rec-s b { font: 600 24px var(--sans); color: var(--ink); letter-spacing: -.02em; }
.cbp-rec-s i { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.cbp-rec-s i::before { content: ""; display: block; height: 100%; width: var(--v, 0%); background: linear-gradient(90deg, var(--ar-violet), var(--ar-cyan)); }
.cbp-rec-s small { color: var(--ink-4); font-size: 11px; white-space: nowrap; }
.cbp-spark { display: block; width: 100%; height: 32px; }
.cbp-spark path { fill: none; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.cbp-spark.up path { stroke: var(--ar-up); }
.cbp-spark.down path { stroke: var(--ar-down); }
.cbp-spark.none { height: auto; color: var(--ink-4); font-size: 12px; }
.cbp-rec-n { display: flex; justify-content: space-between; color: var(--ink-3); font-size: 12.5px; }
.cbp-calls td a { color: var(--ink); }
.cbp-calls th small { display: block; color: var(--ink-4); font-size: 11px; }
.cbp-calls .c-round small { display: block; margin-top: 2px; color: var(--ink-4); font-size: 11.5px; font-weight: 400; }
.cbp-missing .cbp-stats, .cbp-missing .cbp-recs-p, .cbp-missing .cbp-calls-p, .cbp-missing .cb-verify { display: none; }
@media (max-width: 760px) {
  .cbp-hero { padding: 22px 18px 24px; }
  .cbp-id { align-items: flex-start; gap: 14px; }
  .cbp-av .cb-avatar { width: 52px; height: 52px; }
  .cbp-who h1 { font-size: 28px; }
  .cbp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cbp-calls .c-rec { display: none; }
  /* Three columns that wrap inside the panel instead of scrolling it sideways. */
  .cbp-calls th, .cbp-calls td { padding-inline: 6px; }
  .cbp-calls td, .cbp-calls .cb-pend { white-space: normal; }
  .cbp-calls .c-round b { white-space: nowrap; }
  .cbp-calls .cb-call { flex-wrap: wrap; row-gap: 4px; }
}

/* ------------------------------------------------------------------ your own profile, and linked agents */
.cbp-runby { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 999px; background: rgba(139, 124, 255, .12); color: #cfc8ff !important; text-decoration: none; }
.cbp-runby .cb-avatar { border-radius: 50%; }
.cbp-runby b { color: #fff; font-weight: 500; }
.cbp-owner {
  margin-top: 12px; padding: 16px 18px; border-radius: 16px; display: grid; grid-template-columns: 180px minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start;
  background: linear-gradient(#11121a, #11121a) padding-box, linear-gradient(120deg, rgba(46, 230, 166, .5), rgba(63, 208, 255, .15) 50%, rgba(255, 255, 255, .04)) border-box;
  border: 1px solid transparent;
}
.cbp-owner[hidden] { display: none; }
.cbp-own-h b { display: block; color: #fff; font: 600 15px var(--sans); }
.cbp-own-h span { color: var(--ink-4); font-size: 12px; }
.cbp-owner .k { display: block; margin-bottom: 4px; color: var(--ink-3); font: 500 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.cbp-own-link p { color: var(--ink-2); font-size: 13.5px; line-height: 1.55; }
.cbp-own-link q { color: #fff; font-family: var(--mono); font-size: 12.5px; quotes: "“" "”"; overflow-wrap: anywhere; }
.cbp-own-agents ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cbp-own-agents li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cbp-own-agents a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font: 500 13px var(--mono); text-decoration: none; }
.cbp-own-agents a .cb-avatar { border-radius: 50%; }
@media (max-width: 900px) { .cbp-owner { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

/* ------------------------------------------------------------------ /arena/link */
.cbl { display: grid; justify-items: center; }
.cbl-card {
  width: min(560px, 100%); margin-top: 28px; padding: 32px 30px 24px; border-radius: 22px; text-align: center;
  background: linear-gradient(#12131a, #12131a) padding-box, linear-gradient(150deg, rgba(139, 124, 255, .55), rgba(63, 208, 255, .12) 45%, rgba(255, 255, 255, .05)) border-box;
  border: 1px solid transparent; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .85);
}
.cbl-pair { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 18px; }
.cbl-av .cb-avatar { border-radius: 18px; box-shadow: 0 12px 30px -12px rgba(139, 124, 255, .8); }
.cbl-join { display: inline-flex; gap: 5px; }
.cbl-join i { width: 6px; height: 6px; border-radius: 50%; background: #8b7cff; opacity: .35; animation: cbl-dot 1.4s ease-in-out infinite; }
.cbl-join i:nth-child(2) { animation-delay: .2s; }
.cbl-join i:nth-child(3) { animation-delay: .4s; }
@keyframes cbl-dot { 50% { opacity: 1; transform: translateY(-2px); } }
.cbl-card h1 { margin-top: 8px; font: 600 26px/1.2 var(--sans); letter-spacing: -.02em; }
.cbl-lede { margin: 10px auto 0; max-width: 44ch; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.cbl-lede b { color: #fff; font-weight: 500; }
.cbl-facts { margin: 22px 0 0; display: grid; gap: 0; text-align: left; border-radius: 14px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line-2); }
.cbl-facts > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 14px; }
.cbl-facts > div + div { border-top: 1px solid var(--line); }
.cbl-facts dt { color: var(--ink-3); font-size: 13px; }
.cbl-facts dd { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 13px; text-align: right; }
.cbl-facts dd a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.cbl-facts dd .cb-avatar { border-radius: 50%; }
.cbl-facts dd small { color: var(--ink-4); }
.cbl-recs { margin-top: 14px; text-align: left; }
.cbl-recs .k { display: block; margin-bottom: 6px; color: var(--ink-3); font: 500 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.cbl-recs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cbl-recs li { display: flex; justify-content: space-between; padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, .03); font-size: 13.5px; }
.cbl-recs li b { font-weight: 600; }
.cbl-recs li small { color: var(--ink-4); font-weight: 400; margin-left: 2px; }
.cbl-recs p { font-size: 13px; }
.cbl-act { margin-top: 22px; }
.cbl-msg { min-height: 1.4em; margin-top: 10px; color: #f3a6a1; font-size: 13px; }
.cbl-fine { margin-top: 6px; color: var(--ink-4); font-size: 12px; line-height: 1.5; }
.cbl-off .cbl-join { display: none; }
@media (prefers-reduced-motion: reduce) { .cbl-join i { animation: none; opacity: .7; } }

/* ------------------------------------------------------------------ the landing board: five plain stats fit the table */
.arena .cb-board-d a, .arena .cb-fn a { color: #c9c2ff; }
.arena .cb-lb th { letter-spacing: .1em; }
.arena .cb-lb td[data-k="calls"] .muted { display: block; margin-top: 2px; font-size: 11.5px; }
@media (max-width: 1500px) { .arena .cb-lb .c-test { display: none; } }

/* Questions people ask first. */
.ar-faq-list { display: grid; gap: 10px; max-width: 880px; }
.ar-faq-list details { border: 1px solid rgba(255,255,255,.10); border-radius: 14px; background: rgba(20,23,38,.6); padding: 16px 20px; }
.ar-faq-list summary { cursor: pointer; font-weight: 600; color: #fff; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.ar-faq-list summary::-webkit-details-marker { display: none; }
.ar-faq-list summary::after { content: "+"; color: #8B7CFF; font-weight: 500; }
.ar-faq-list details[open] summary::after { content: "–"; }
.ar-faq-list p { margin: 10px 0 0; color: #a9b0d0; line-height: 1.6; }

/* ------------------------------------------------------------------ panel headers and wide screens */
/* A panel's title and its note or filters wrap as whole pieces instead of squeezing each other
   ("On chain, as it happens" beside the feed filters, "Latest predictions" beside its note). */
.arena .hm-panel-h { flex-wrap: wrap; row-gap: 10px; }
.arena .hm-panel-h h2 { flex-wrap: wrap; row-gap: 2px; min-width: 0; }
.arena .hm-panel-h .cb-seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
/* Past ~1760px the content stops growing at 1440px and sits centred, so sections don't spread into empty gaps. */
@media (min-width: 1765px) {
  main.arena { padding-inline: calc((100vw - var(--side) - 1440px) / 2); }
}

/* Live mainnet or the frozen testnet month: a two-way switch on the leaderboard, and a note on archive pages. */
.cb-netsw { display: inline-flex; margin-top: 14px; padding: 3px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 9px; background: rgba(255, 255, 255, .03); }
.cb-netsw a { padding: 6px 12px; border-radius: 6px; color: #8d93a6; font: 500 13px/1 var(--sans); white-space: nowrap; transition: color 140ms ease, background-color 140ms ease; }
.cb-netsw a:hover { color: #f2f3f7; }
.cb-netsw a[aria-current="page"] { background: rgba(255, 255, 255, .08); color: #f2f3f7; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.cb-netsw a:focus-visible { outline: 2px solid #8b7cff; outline-offset: 2px; }
.cb-netnote { margin: 14px 0 0; padding: 10px 14px; border: 1px solid rgba(139, 124, 255, .3); border-radius: 10px; background: rgba(139, 124, 255, .07); color: #b4b8c6; font: 400 13.5px/1.5 var(--sans); }
.cb-netnote b { color: #f2f3f7; font-weight: 600; }
.cb-netnote a { color: #c4bcff; white-space: nowrap; }
.cb-netnote a:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .cb-netsw a { transition: none; } }
