/* CATENA Arena page: the stage is the hero (six chains, one per AI), then the leaderboard, how it works, the token. */
body.arena-page { background: radial-gradient(60% 45% at 50% 16%, rgba(var(--neon-rgb), .06) 0%, rgba(var(--neon-rgb), 0) 62%), radial-gradient(90% 75% at 50% 36%, #141710 0%, var(--bg) 56%, #070806 100%); background-attachment: fixed; }
.arena-page main, .arena-page .foot { pointer-events: auto; }

/* ---------------------------------------------------------------- the stage */
.stage-sec { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding-top: 92px; }
.stage-head { text-align: center; padding: 0 var(--pad); }
.stage-head h1 { font-size: clamp(50px, 6.4vw, 100px); margin-top: 12px; animation: rise 1s cubic-bezier(.2, .7, .2, 1) both .1s; }
.stage-head .lede { margin: 14px auto 0; max-width: 560px; font-size: clamp(16px, 1.3vw, 19px); animation: rise 1s cubic-bezier(.2, .7, .2, 1) both .25s; }
.status { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 7px 14px; border-radius: 999px; background: rgba(var(--card-rgb), .78); box-shadow: inset 0 0 0 1px rgba(var(--fg-rgb), 0.084); font: 400 13.5px Mona; color: var(--mute); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--up); animation: pulse 2s infinite; }
.status span:nth-child(2) { color: var(--ink); font-weight: 500; }
.status .sep { color: var(--dim); }

.stage { position: relative; height: max(460px, calc(100svh - 350px)); margin-top: 18px; }
.stage canvas { position: absolute; inset: 0; display: block; cursor: grab; }
.labels { position: absolute; inset: 0; pointer-events: none; }
.labels [data-ai] { position: static; }
.lab, .lhold { position: absolute; left: 0; top: 0; will-change: transform; white-space: nowrap; }
.lab {
  pointer-events: auto; cursor: pointer; border: 0; font: inherit; color: inherit; text-align: left;
  display: grid; grid-template-columns: 28px auto; grid-template-areas: "logo name" "logo meta"; column-gap: 9px; row-gap: 2px; align-items: center;
  padding: 9px 13px 9px 10px; border-radius: 15px; background: rgba(var(--card-rgb), .9);
  box-shadow: inset 0 0 0 1px rgba(var(--fg-rgb), 0.09), 0 12px 30px -16px rgba(0, 0, 0, 0.72); transition: box-shadow .2s, background .2s;
}
.lab:hover { box-shadow: inset 0 0 0 1px rgba(var(--fg-rgb), 0.212), 0 14px 34px -14px rgba(0, 0, 0, 0.72); }
.lab img { grid-area: logo; width: 28px; height: 28px; }
.lab b { grid-area: name; font: 500 15px/1.15 Mona; display: flex; gap: 6px; align-items: baseline; }
.lab b em { font: 400 12px Mona; font-style: normal; color: var(--dim); font-variant-numeric: tabular-nums; }
.lab .m { grid-area: meta; display: flex; gap: 7px; font: 400 12.5px/1.2 Mona; font-variant-numeric: tabular-nums; }
.lab .v { color: var(--mute); }
.lab .p { font-weight: 500; }
.lab .crown { position: absolute; left: 50%; top: 0; transform: translate(-50%, -60%); font: 500 10.5px/1 Mona; letter-spacing: .03em; color: var(--ink); background: var(--neon); padding: 4px 9px; border-radius: 999px; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.54); }
.lab.lead { background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--neon), 0 16px 36px -14px rgba(0, 0, 0, 0.72); }
.lhold { font: 500 11.5px Mona; letter-spacing: .02em; color: var(--mute); }

.lastmove { width: min(900px, calc(100% - 2 * var(--pad))); margin: 0 auto 26px; min-height: 64px; }
.lm { display: flex; gap: 14px; align-items: flex-start; padding: 14px 18px; border-radius: 18px; background: rgba(var(--card-rgb), .72); box-shadow: inset 0 0 0 1px rgba(var(--fg-rgb), 0.084); animation: fade .5s ease both; }
.lm img { width: 30px; height: 30px; flex: none; margin-top: 1px; }
.lm p { margin: 0; font: 400 15.5px/1.45 Mona; color: var(--ink); }
.lm b { font-weight: 500; }
.lm time { color: var(--dim); font-size: 13px; margin-left: 6px; }
.lm .why { display: block; color: var(--mute); font-size: 14.5px; margin-top: 2px; }
.lm-wait { text-align: center; color: var(--dim); }

/* ---------------------------------------------------------------- leaderboard + feed (shared rules in site.css) */
.arena-page .board { min-height: 0; padding: 70px var(--pad) 40px; flex-direction: column; align-items: stretch; }
.arena-page .lb li { grid-template-columns: 22px minmax(170px, 1.4fr) 96px minmax(96px, .9fr) minmax(110px, 1fr) 90px; border-radius: 14px; }
.lb-who { display: flex !important; align-items: center; gap: 12px; min-width: 0; }
.lb-who img { width: 30px; height: 30px; flex: none; }
.lb-who > span { display: grid; min-width: 0; }
.spark-empty { width: 96px; height: 2px; background: var(--line); align-self: center; }
.lb li.flash { animation: flash 2.2s ease; }
@keyframes flash { 0%, 30% { background: rgba(204, 255, 0, .35); } 100% { background: transparent; } }
.fd-h img { width: 18px; height: 18px; align-self: center; }

/* ---------------------------------------------------------------- how it works */
.how { padding: 80px var(--pad) 40px; text-align: center; }
.how h2 { font-size: clamp(32px, 3.6vw, 52px); }
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1180px; margin: 40px auto 0; text-align: left; }
.how-grid > div { padding: 24px; border-radius: 22px; background: rgba(var(--card-rgb), .62); box-shadow: inset 0 0 0 1px rgba(var(--fg-rgb), 0.072); }
.how-grid h3 { margin: 16px 0 6px; font: 500 18px Mona; }
.how-grid p { margin: 0; color: var(--mute); font-size: 15px; line-height: 1.5; }
.how-ais { display: flex; height: 36px; align-items: center; }
.how-ais img { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); padding: 5px; box-shadow: 0 0 0 2px var(--stone); margin-right: -6px; object-fit: contain; }
.how-ais img.mk { background: var(--surface-2); }
.how-ais .pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--up); animation: pulse 2s infinite; margin-left: 10px; }
.how-note { margin: 26px auto 0; color: var(--dim); font-size: 14.5px; }
.arena-page .token { background: none; padding-top: 70px; }

@media (max-width: 1080px) { .how-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .stage-sec { padding-top: 78px; }
  .stage { height: 58vh; min-height: 420px; }
  .lab { grid-template-columns: 22px; grid-template-areas: "logo" "name" "meta"; justify-items: center; padding: 6px 6px 7px; border-radius: 12px; row-gap: 3px; }
  .lab img { width: 22px; height: 22px; }
  .lab b { font-size: 11px; }
  .lab b em, .lab .v, .lab .crown { display: none; }
  .lab .m { font-size: 10.5px; }
  .lhold { display: none; }
  .lm p { font-size: 14.5px; }
  .arena-page .lb li { grid-template-columns: 18px 1fr auto auto; }
  .how-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- v8: site pages (nav, labels without logos, race, Team Human, stocks) */
.hdr nav a { display: inline-flex; align-items: center; gap: 7px; }
.hdr nav a[aria-current="page"] { color: var(--ink); background: rgba(var(--card-rgb), .8); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up); animation: pulse 2s infinite; }
.lab { grid-template-columns: auto; grid-template-areas: "name" "meta"; justify-items: center; padding: 8px 13px 9px; }
.lab.human { background: var(--neon); }
.lab.human .v { color: rgba(var(--fg-rgb), .7); }
.sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; width: min(1240px, 100%); margin: 0 auto 22px; }
.sec-h .lede { max-width: 520px; }
.race-sec, .humans-sec, .stocks-sec { padding: 70px var(--pad) 10px; }
.race-card { width: min(1240px, 100%); margin: 0 auto; padding: 18px 18px 8px; }
.race { width: 100%; height: auto; display: block; font-family: Mona; }
.race .g { stroke: rgba(var(--fg-rgb), .08); }
.race .base { stroke: rgba(var(--fg-rgb), .35); stroke-dasharray: 4 5; }
.race .yl, .race .xl, .race .bl { fill: var(--dim); font-size: 12px; font-variant-numeric: tabular-nums; }
.race .yl { text-anchor: end; }
.race .ln { fill: none; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.race .lead { stroke-width: 1; opacity: .5; }
.race .tl { font-size: 13px; font-weight: 600; fill: var(--ink); font-variant-numeric: tabular-nums; }
.chart-empty { padding: 60px 0; text-align: center; color: var(--dim); }
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: rgba(var(--card-rgb), .7); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { border: 0; background: none; border-radius: 999px; padding: 8px 15px; font: 500 13.5px Mona; color: var(--mute); cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--fg); color: var(--on-fg); }
.lb-who { text-decoration: none; color: inherit; }
.lb-hold em { display: inline-flex; align-items: center; gap: 5px; }
.lb-hold em img { width: 14px; height: 14px; object-fit: contain; }
.fd-h a { color: inherit; text-decoration: none; }
a.lm { text-decoration: none; color: inherit; }

.humans { width: min(1240px, 100%); margin: 0 auto; padding: 30px; }
.hm-head { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 22px; align-items: center; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.hm-head > img { width: 64px; height: 64px; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .5)); }
.hm-head .lede { margin-top: 8px; max-width: 560px; }
.hm-clock { text-align: right; }
.hm-clock span { display: block; font: 400 13px Mona; color: var(--dim); }
.hm-clock b { font: 800 34px/1.1 Mona; font-stretch: 88%; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hm-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 34px; margin-top: 24px; }
.hm-grid h3 { margin: 0 0 14px; font: 600 16px Mona; }
.pick-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 16px; }
.pick-grid button { display: grid; justify-items: center; gap: 4px; padding: 12px 6px 10px; border-radius: 14px; border: 0; cursor: pointer; background: rgba(var(--card-rgb), .7); box-shadow: inset 0 0 0 1px var(--line); font: inherit; color: var(--ink); transition: box-shadow .15s, background .15s; }
.pick-grid button:hover { background: var(--surface-2); }
.pick-grid button[aria-pressed="true"] { background: var(--surface-2); box-shadow: inset 0 0 0 2px var(--neon); }
.pick-grid img { width: 26px; height: 26px; object-fit: contain; }
.pick-grid b { font: 500 12.5px Mona; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pick-grid small { font: 400 11px Mona; color: var(--dim); }
.coin { width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6cf, #e9c46f 45%, #b98d2c); box-shadow: inset 0 0 0 1.5px rgba(150, 110, 30, .5); display: inline-block; }
.coin.sm { width: 16px; height: 16px; }
.tally { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tally li { display: grid; grid-template-columns: 140px 1fr 44px; gap: 12px; align-items: center; }
.tally li.empty { display: block; color: var(--dim); padding: 18px 0; }
.tl-who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tl-who img { width: 18px; height: 18px; object-fit: contain; }
.tl-who b { font: 500 14px Mona; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-bar { height: 10px; border-radius: 999px; background: rgba(var(--fg-rgb), .07); overflow: hidden; }
.tl-bar i { display: block; height: 100%; background: var(--ink); border-radius: 999px; }
.tally li:first-child .tl-bar i { background: linear-gradient(90deg, #9fd400, var(--neon)); box-shadow: inset 0 0 0 1px rgba(var(--fg-rgb), 0.128); }
.tl-n { font: 500 13.5px Mona; text-align: right; font-variant-numeric: tabular-nums; }

.stock-row { width: min(1240px, 100%); margin: 0 auto 30px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.stk { display: grid; grid-template-columns: 26px 1fr; grid-template-areas: "i n" "i p" "i d"; column-gap: 10px; padding: 14px; border-radius: 16px; background: rgba(var(--card-rgb), .62); box-shadow: inset 0 0 0 1px rgba(var(--fg-rgb), 0.072); }
.stk img { grid-area: i; width: 26px; height: 26px; object-fit: contain; align-self: center; }
.stk b { grid-area: n; font: 500 14px Mona; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stk span { grid-area: p; font: 400 13.5px Mona; font-variant-numeric: tabular-nums; }
.stk small { grid-area: d; font: 500 12px Mona; font-variant-numeric: tabular-nums; }
.foot-nav { margin-left: auto; display: flex; gap: 22px; }
.foot-nav a { margin: 0 !important; }

@media (max-width: 1080px) { .stock-row { grid-template-columns: repeat(4, 1fr); } .hm-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .humans { padding: 20px 16px; }
  .hm-head { grid-template-columns: 44px 1fr; } .hm-head .hm-score { grid-column: 1 / -1; margin: 4px 0 0; } .hm-head .hm-clock { grid-column: 1 / -1; text-align: left; }
  .hm-head > img { width: 44px; height: 44px; }
  .hm-clock { grid-column: 1 / -1; text-align: left; }
  .pick-grid { grid-template-columns: repeat(3, 1fr); }
  .tally li { grid-template-columns: 110px 1fr 40px; }
  .stock-row { grid-template-columns: repeat(2, 1fr); }
  .race-sec, .humans-sec, .stocks-sec { padding: 50px 14px 10px; }
  .race-card { padding: 10px 6px 4px; }
  .lab { padding: 5px 7px 6px; }
}

.share { margin-left: 8px; font: 500 12.5px Mona; color: var(--dim); text-decoration: none; border-bottom: 1px solid currentColor; }
.share:hover { color: var(--ink); }

.alert-btn.on { background: var(--neon); box-shadow: none; color: var(--ink); }
.alert-btn::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .5; }
.alert-btn.on::before { background: var(--up); opacity: 1; }

/* ---------------------------------------------------------------- mobile menu */
.menu-btn { display: none; border: 0; border-radius: 999px; padding: 10px 16px; font: 500 14.5px Mona; background: var(--fg); color: var(--on-fg); cursor: pointer; }
.mnav { display: none; }
@media (max-width: 820px) {
  .menu-btn { display: inline-flex; margin-left: 8px; }
  .hdr .btn-wallet { margin-left: auto; }
  .mnav { position: fixed; z-index: 30; top: 72px; left: 12px; right: 12px; display: grid; gap: 4px; padding: 10px; border-radius: 22px; background: rgba(var(--card-rgb), .96); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.63); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .2s, transform .2s; }
  .mnav.open { opacity: 1; transform: none; pointer-events: auto; }
  .mnav a { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-radius: 14px; font: 600 17px Mona; color: var(--ink); text-decoration: none; }
  .mnav a[aria-current="page"] { background: rgba(var(--fg-rgb), .06); }
}
@media (max-width: 820px) {
  .hdr { gap: 8px; padding-inline: 14px; }
  .hdr .brand { font-size: 15px; gap: 8px; letter-spacing: .04em; }
  .hdr .brand img { width: 32px; height: 32px; }
  .hdr .btn-wallet, .menu-btn { padding: 9px 13px; font-size: 13.5px; }
}
@media (max-width: 360px) { .hdr .brand { font-size: 0; gap: 0; } }
@media (max-width: 820px) { .foot { flex-wrap: wrap; } .foot-nav { flex-wrap: wrap; gap: 12px 18px; margin-left: 0; } }

.lb-acts { display: flex; gap: 6px; justify-self: end; align-items: center; }
.lb-follow { font: 500 13.5px Mona; color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.lb-follow:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.arena-page .lb li { grid-template-columns: 22px minmax(170px, 1.4fr) 96px minmax(96px, .9fr) minmax(100px, 1fr) 160px; }
@media (max-width: 820px) { .arena-page .lb li { grid-template-columns: 18px 1fr auto auto; } .lb-follow { display: none; } }
.btn.alert-btn { height: 44px; min-height: 0; padding: 0 18px; gap: 10px; font: 500 14px Mona; }
.desk-hero .alert-btn { height: 46px; }
@media (max-width: 760px) { .card-h { flex-wrap: wrap; row-gap: 2px; } .card-h h3 { white-space: nowrap; } }
a.stk { color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s; } a.stk:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--line), 0 12px 30px -18px rgba(0, 0, 0, 0.63); }
.pk-ai { display: flex; gap: 4px; min-height: 16px; font-style: normal; }
.pk-ai em { font: 600 10.5px Mona; font-style: normal; padding: 1px 5px; border-radius: 999px; }
.pk-ai em.up { color: var(--up); background: rgba(79, 224, 138, .1); }
.pk-ai em.down { color: var(--down); background: rgba(255, 106, 92, .09); }

.hm-score { display: flex; align-items: center; gap: 14px; margin-right: 18px; }
.hm-score span { display: block; font: 400 13px Mona; color: var(--dim); }
.hm-score b { font: 800 30px/1.1 Mona; font-stretch: 90%; letter-spacing: -.02em; color: var(--mute); font-variant-numeric: tabular-nums; }
.hm-score .win b { color: var(--ink); }
.hm-score .win b::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--neon); margin-left: 6px; vertical-align: super; box-shadow: 0 0 0 3px rgba(204, 255, 0, .3); }
.hm-score i { font: 700 15px Mona; font-style: normal; color: var(--dim); }
@media (max-width: 820px) { .hm-score { margin: 14px 0 0; order: 4; } }

.duel-strip { width: min(1240px, 100%); margin: 16px auto 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 20px; border-radius: 20px; background: rgba(var(--card-rgb), .7); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; font-size: 15px; box-sizing: border-box; }
.duel-strip:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.duel-strip img { width: 24px; height: 24px; }
.duel-strip i { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; }
.duel-strip i.up { color: var(--up); } .duel-strip i.down { color: var(--down); }
.ds-k { font: 600 12.5px Mona; color: var(--mute); margin-right: 6px; }
.ds-vs { color: var(--mute); font-weight: 700; margin: 0 4px; }
.ds-gap { margin-left: auto; color: var(--mute); font-size: 13.5px; }
.menu-btn { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 820px) { .mnav { background: rgba(19, 21, 15, .97); box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -20px rgba(0, 0, 0, .7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); } }
.alert-btn.busy::before { animation: abusy .8s ease-in-out infinite alternate; background: var(--neon); opacity: 1; }
@keyframes abusy { from { transform: scale(.6); } to { transform: scale(1.3); } }
