/* Spark-Hermes — one stylesheet for every page: the landing page, the live arena and each closed round's page.
   Dark by design: the site lives in the world of the project's artwork, violet and cyan light on ink.
   Colour is information here, never decoration:
     ink    headings, names, the numbers that matter          text   running copy
     muted  labels and secondary lines                        faint  timestamps and axes only
     gold   the crown and only the crown                      cyan   what is live right now
     violet the brand, structure and focus                    green / rose  a gain or a loss against the baseline
   No third-party scripts or fonts: the display face (Chakra Petch, OFL) is self-hosted in assets/fonts. */

@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/chakra-petch-500.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/chakra-petch-600.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/chakra-petch-700.woff2") format("woff2"); }

:root {
  --bg: #06050d; --surface: rgba(16, 13, 32, .44); --surface-2: rgba(24, 20, 46, .42); --surface-solid: #120f22; --raise: #181430; --well: rgba(255, 255, 255, .04);
  --line: rgba(167, 139, 250, .14); --line-strong: rgba(167, 139, 250, .3);
  --ink: #f4f2ff; --text: #cfcbe6; --muted: #a19dbf; --faint: #857fa6;
  --violet: #a78bfa; --violet-soft: #c4b5fd; --cyan: #22d3ee; --gold: #f5c542; --pos: #34d399; --neg: #fb7185;
  --display: "Chakra Petch", ui-sans-serif, system-ui, sans-serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --page: 84rem; --gutter: clamp(16px, 3vw, 28px); --r-xl: 22px; --r-lg: 18px; --r: 12px; --r-sm: 8px;
  color-scheme: dark;
}
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 15px/1.6 var(--sans);
       padding-inline: var(--gutter); padding-block: 0 2rem; overflow-x: hidden; }
main { position: relative; max-width: var(--page); margin: 2rem auto 0; display: flex; flex-direction: column; gap: 1.5rem; }
a { color: var(--violet-soft); text-decoration: none; text-underline-offset: .2em; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(167, 139, 250, .35); color: var(--ink); }
h1, h2, h3 { color: var(--ink); margin: 0; text-wrap: balance; }
h1 { font: 700 clamp(1.8rem, 3.4vw, 2.6rem)/1.1 var(--display); letter-spacing: .005em; }
h2 { font: 700 1.2rem/1.25 var(--display); letter-spacing: .01em; }
h3 { font: 600 1rem/1.3 var(--display); }
p { margin: 0; max-width: 68ch; }
code, .hk { font-family: var(--mono); font-size: .86em; }
code { color: var(--ink); background: var(--well); padding: .1em .42em; border-radius: 6px; border: 1px solid var(--line); overflow-wrap: anywhere; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: .84rem; }
.note { font-size: .84rem; color: var(--muted); }
.pos { color: var(--pos); } .neg { color: var(--neg); } .zero { color: var(--muted); }

/* ─── animated background: a dim grid with signals running along it (site.js), under two slow auroras ─── */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: var(--bg); }
.bg::before, .bg::after { content: ""; position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(90px); opacity: .32; }
.bg::before { background: radial-gradient(circle, #7c3aed, transparent 62%); top: -38vmax; left: -18vmax; animation: drift-a 38s ease-in-out infinite alternate; }
.bg::after { background: radial-gradient(circle, #0891b2, transparent 62%); top: -30vmax; right: -26vmax; opacity: .22; animation: drift-b 46s ease-in-out infinite alternate; }
.bg canvas { position: absolute; inset: 0; width: 100%; height: 100%;
             mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .75) 60%, rgba(0, 0, 0, .55) 100%); -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .75) 60%, rgba(0, 0, 0, .55) 100%); }
@keyframes drift-a { to { transform: translate(14vmax, 10vmax) scale(1.12); } }
@keyframes drift-b { to { transform: translate(-12vmax, 14vmax) scale(.92); } }

/* ─── skip link: first stop for keyboard users ─── */
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 60; padding: .6rem 1rem; border-radius: var(--r-sm); background: var(--violet); color: #0d0a1c;
        font: 600 .9rem/1 var(--display); transition: top .15s; }
.skip:focus { top: .7rem; text-decoration: none; }

/* ─── 404 ─── */
.notfound { min-height: 55vh; justify-content: center; align-items: flex-start; padding-block: 3rem; }
.nf-code { font: 700 clamp(4rem, 14vw, 8rem)/1 var(--display); color: transparent; -webkit-text-stroke: 1.5px var(--line-strong); letter-spacing: .04em; }
.notfound .lead { font-size: 1.1rem; }
.notfound .ctas { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }

/* ─── header ─── */
.top { position: sticky; top: 0; z-index: 40; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
       background: rgba(6, 5, 13, .62); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
       border-bottom: 1px solid var(--line); }
.top-in { max-width: var(--page); margin: 0 auto; height: 4rem; display: flex; align-items: center; gap: 1.6rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); font: 700 1.08rem/1 var(--display); letter-spacing: .02em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand em { font: 600 .68rem/1 var(--display); font-style: normal; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 6px; padding: .22rem .38rem; letter-spacing: .06em; }
.menu { display: flex; align-items: center; gap: .2rem; margin-right: auto; }
.menu a { color: var(--muted); font: 500 .95rem/1 var(--display); letter-spacing: .02em; padding: .55rem .75rem; border-radius: var(--r-sm); transition: color .15s, background .15s; }
.menu a:hover { color: var(--ink); background: var(--well); text-decoration: none; }
.menu a[aria-current] { color: var(--ink); background: rgba(167, 139, 250, .12); }
.round-chip { display: inline-flex; align-items: center; gap: .55rem; padding: .45rem .8rem; border-radius: 999px; border: 1px solid var(--line-strong);
       color: var(--ink); font: 600 .84rem/1 var(--display); letter-spacing: .02em; white-space: nowrap; background: rgba(18, 15, 34, .6); }
.round-chip:hover { text-decoration: none; border-color: var(--violet); }
.round-chip i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--faint); flex: none; }
.round-chip.live { border-color: rgba(34, 211, 238, .45); }
.round-chip.live i { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: blink 1.6s ease-in-out infinite; }
.round-chip.paused { border-color: var(--line-strong); }
.round-chip.paused i { background: var(--violet-soft); }
.round-chip.crowned { border-color: rgba(245, 197, 66, .45); }
.round-chip.crowned i { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.round-chip span b { color: var(--muted); font-weight: 500; }
.icon-btn { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: var(--r-sm); color: var(--muted); border: 1px solid var(--line); background: transparent; cursor: pointer; }
.icon-btn:hover { color: var(--ink); border-color: var(--line-strong); text-decoration: none; }
.icon-btn svg { width: 1.15rem; height: 1.15rem; }
.menu-btn { display: none; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ─── buttons and links ─── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.35rem; border-radius: var(--r);
       font: 600 1rem/1 var(--display); letter-spacing: .02em; white-space: nowrap; border: 1px solid transparent; transition: transform .15s, box-shadow .2s, border-color .2s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.primary { color: #0d0a1c; background: linear-gradient(100deg, #c4b5fd, #a78bfa 45%, #67e8f9); box-shadow: 0 8px 30px -8px rgba(139, 92, 246, .7); }
.btn.primary:hover { box-shadow: 0 10px 36px -6px rgba(103, 232, 249, .6); }
.btn.ghost { color: var(--ink); border-color: var(--line-strong); background: rgba(18, 15, 34, .5); }
.btn.ghost:hover { border-color: var(--violet); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips a { display: inline-flex; padding: .45rem .8rem; border-radius: var(--r-sm); border: 1px solid var(--line); color: var(--text); font-size: .88rem; background: var(--well); }
.chips a:hover { color: var(--ink); border-color: var(--line-strong); text-decoration: none; }

/* ─── surfaces ─── */
.board, .panel { position: relative; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); padding: 1.35rem 1.4rem 1.25rem; min-width: 0; }
.board-head { display: flex; flex-direction: column; gap: .3rem; margin-bottom: 1.1rem; }
.board-head p { color: var(--muted); font-size: .86rem; }
.panel > h2 { display: flex; flex-direction: column; gap: .3rem; margin-bottom: 1.1rem; }
.panel > h2 small { font: 400 .86rem/1.4 var(--sans); color: var(--muted); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }

/* ─── badges ─── */
.badge { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .8rem; border-radius: 999px; font: 600 .82rem/1 var(--display);
                 letter-spacing: .03em; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.badge .dot { width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.badge.window, .badge.evaluate { color: var(--cyan); border-color: rgba(34, 211, 238, .45); background: rgba(34, 211, 238, .08); }
.badge.window .dot, .badge.evaluate .dot { box-shadow: 0 0 10px currentColor; animation: blink 1.6s ease-in-out infinite; }
.badge.paused { color: var(--violet-soft); border-color: var(--line-strong); background: rgba(167, 139, 250, .1); }
.badge.crowned { color: var(--gold); border-color: rgba(245, 197, 66, .5); background: rgba(245, 197, 66, .08); }
.pulse { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--cyan); margin-right: .5rem; box-shadow: 0 0 8px var(--cyan); animation: blink 2s ease-in-out infinite; }
.pulse.paused { background: var(--violet-soft); box-shadow: none; animation: none; }
.stale .pulse, .pulse.warn { background: var(--gold); box-shadow: none; animation: none; }

/* ─── tables ─── */
.wrap { overflow-x: auto; margin-inline: -.4rem; padding-inline: .4rem; scrollbar-width: thin; scrollbar-color: rgba(167, 139, 250, .35) transparent; }
.wrap::-webkit-scrollbar { height: 6px; }
.wrap::-webkit-scrollbar-thumb { background: rgba(167, 139, 250, .35); border-radius: 3px; }
.wrap.more-right { mask-image: linear-gradient(90deg, #000 calc(100% - 3rem), transparent); -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 3rem), transparent); }
.wrap.more-left { mask-image: linear-gradient(90deg, transparent, #000 3rem); -webkit-mask-image: linear-gradient(90deg, transparent, #000 3rem); }
.wrap.more-left.more-right { mask-image: linear-gradient(90deg, transparent, #000 3rem, #000 calc(100% - 3rem), transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 3rem, #000 calc(100% - 3rem), transparent); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .92rem; }
th, td { text-align: right; padding: .7rem .7rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child, td:first-child, th.l, td.l { text-align: left; }
th { font: 500 .8rem/1.2 var(--sans); color: var(--muted); }
th[title] { cursor: help; text-decoration: underline dotted rgba(161, 157, 191, .5); text-underline-offset: .3em; }
td { color: var(--ink); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(167, 139, 250, .04); }
tr.king td { background: rgba(245, 197, 66, .045); }
.ok { color: var(--text); }
.ok::before { content: ""; display: inline-block; width: .45rem; height: .45rem; border-radius: 50%; background: var(--pos); margin-right: .45rem; vertical-align: .08em; }
td.faint { color: var(--faint); }
.count { font: 600 .8rem/1 var(--display); color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: .2rem .5rem; vertical-align: .2em; margin-left: .3rem; }
.count:empty { display: none; }
.more { display: block; margin: 1rem auto 0; font: 600 .9rem/1 var(--display); color: var(--ink); background: var(--well); border: 1px solid var(--line-strong);
        border-radius: var(--r); padding: .7rem 1.2rem; cursor: pointer; }
.more:hover { border-color: var(--violet); }
.empty { color: var(--muted); text-align: left; padding: 1.2rem .7rem; }
.why { display: block; font-size: .78rem; color: var(--muted); white-space: normal; max-width: 30rem; margin-top: .2rem; }

/* a miner: GitHub avatar and name over the hotkey */
.ident { display: inline-flex; align-items: center; gap: .6rem; min-width: 0; }
.gh-av { width: 2rem; height: 2rem; border-radius: 9px; flex: none; border: 1px solid var(--line); background: var(--raise); object-fit: cover; }
.gh-av-wrap { position: relative; display: inline-flex; flex: none; }
.crown-badge { position: absolute; top: -.55rem; left: 50%; transform: translateX(-50%); width: 1.1rem; height: 1.1rem; font-size: 0; pointer-events: none;
               background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f5c542' d='M3 8l4.6 3.8L12 5l4.4 6.8L21 8l-1.9 10.5H4.9z'/%3E%3C/svg%3E"); filter: drop-shadow(0 0 4px rgba(245, 197, 66, .7)); }
.ident-txt { display: inline-flex; flex-direction: column; line-height: 1.25; min-width: 0; white-space: nowrap; }
.gh-name { font-weight: 600; color: var(--ink); }
.gh-name.gh-anon { color: var(--muted); font-weight: 400; }
.ident .hk { color: var(--faint); font-size: .76rem; }
.crown-ico { width: 1em; height: 1em; vertical-align: -.12em; fill: var(--gold); filter: drop-shadow(0 0 6px rgba(245, 197, 66, .6)); }

/* stat tiles (a closed round, the round dialog) */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: .8rem; }
.stat { border-radius: var(--r); border: 1px solid var(--line); background: var(--well); padding: .9rem 1rem; display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.stat b { font: 700 1.5rem/1.1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.stat > span { font-size: .82rem; color: var(--muted); }
.stat .ident { font: 600 .95rem/1.2 var(--sans); }
.strip .stat:has(.ident) { grid-column: span 2; }
.stat .gh-av { width: 2.3rem; height: 2.3rem; }
.stat b .hk, .stat b .ident-txt span { font-weight: 400; }

/* ─── the arena: the round on now (live board, and in miniature on the landing page) ─── */
.arena { position: relative; overflow: hidden; border-radius: var(--r-xl); border: 1px solid var(--line-strong); isolation: isolate;
         background: radial-gradient(900px 340px at 15% -25%, rgba(139, 92, 246, .3), transparent 65%),
                     radial-gradient(700px 300px at 105% -10%, rgba(34, 211, 238, .16), transparent 60%), rgba(12, 9, 26, .5);
         padding: 1.6rem 1.8rem 1.6rem; box-shadow: 0 30px 80px -40px rgba(124, 58, 237, .55); }
.arena::after { content: ""; position: absolute; left: 0; right: 0; height: 140px; top: -140px; z-index: -1;
                background: linear-gradient(180deg, transparent, rgba(34, 211, 238, .09), transparent); animation: scan 7s linear infinite; }
.arena.idle::after { display: none; }
@keyframes scan { to { transform: translateY(1100px); } }
.arena-top { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; }
.round-id { font: 700 clamp(2.1rem, 4vw, 3.1rem)/1 var(--display); letter-spacing: .01em; color: var(--ink); }
.round-id .r { color: var(--muted); font-weight: 600; }
.pause-note { margin-top: 1rem; padding: .75rem 1rem; border-radius: var(--r); border: 1px solid var(--line-strong); background: rgba(167, 139, 250, .08); color: var(--text); max-width: none; }
.live-status { margin-left: auto; color: var(--muted); font-size: .86rem; display: inline-flex; align-items: center; }
.clock { display: flex; align-items: flex-end; gap: 1.2rem 2rem; margin-top: 1.5rem; flex-wrap: wrap; }
.clock-label { color: var(--muted); font-size: .9rem; margin-bottom: .5rem; }
.flaps { display: inline-flex; align-items: center; gap: .26rem; font: 700 clamp(2.3rem, 6vw, 4rem)/1 var(--display); font-variant-numeric: tabular-nums; perspective: 400px; }
.flap { position: relative; display: inline-grid; place-items: center; width: .8em; height: 1.16em; border-radius: .12em; color: var(--ink);
        background: linear-gradient(180deg, #1e1838 0 49.5%, #161029 50.5% 100%); box-shadow: inset 0 0 0 1px rgba(167, 139, 250, .22), 0 10px 22px rgba(0, 0, 0, .45); }
.flap::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .55); }
.flap.flip { animation: flip .32s ease-in; }
@keyframes flip { 50% { transform: rotateX(-90deg); filter: brightness(1.6); } }
.flaps .sep { color: var(--violet); padding: 0 .02em; opacity: .8; }
.clock-side { display: flex; flex-direction: column; gap: .5rem; margin-left: auto; flex: 1 1 18rem; max-width: 30rem; }
.meter { position: relative; height: 10px; border-radius: 999px; background: var(--well); overflow: hidden; border: 1px solid var(--line); }
.meter > i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--violet), var(--cyan));
             box-shadow: 0 0 14px rgba(34, 211, 238, .5); transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.meter-row { display: flex; justify-content: space-between; gap: 1rem; font-size: .85rem; color: var(--muted); }
.meter-row b { color: var(--ink); font: 600 .9rem/1.3 var(--display); }
/* the round's steps: a stepper. Done steps are checked on a solid violet line, the current one is lit cyan and
   pulses, the steps still to come are hollow on a dashed line. */
.stepper-wrap { margin-top: 1.5rem; }
.track-cap { font-size: .88rem; color: var(--muted); margin-bottom: 0; }
.track-cap b { color: var(--ink); font-weight: 600; }
.track { position: relative; display: flex; list-style: none; margin: 0; padding: 1.4rem 0 .4rem; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
@media (max-width: 960px) { .track { mask-image: linear-gradient(90deg, transparent, #000 1.2rem, #000 calc(100% - 1.2rem), transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 1.2rem, #000 calc(100% - 1.2rem), transparent); } }
.track::-webkit-scrollbar { display: none; }
.track .st { position: relative; flex: 1 0 5.6rem; min-width: 5.6rem; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 .2rem; }
.track .st:not(:first-child)::before { content: ""; position: absolute; top: 15px; right: 50%; width: 100%; height: 2px; transform: translateY(-50%); z-index: 0;
                                       background: repeating-linear-gradient(90deg, rgba(161, 157, 191, .35) 0 6px, transparent 6px 11px); }
.track .st.done:not(:first-child)::before { background: linear-gradient(90deg, #8b5cf6, var(--violet)); height: 3px; }
.track .st.now:not(:first-child)::before { background: linear-gradient(90deg, var(--violet), var(--cyan)); height: 3px; box-shadow: 0 0 10px rgba(34, 211, 238, .5); }
.track .node { position: relative; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font: 700 .8rem/1 var(--display);
               color: var(--faint); background: #0c0a1a; border: 1.5px solid rgba(161, 157, 191, .35); }
.track .node svg { width: 15px; height: 15px; }
.track .st.done .node { color: #0d0a1c; background: linear-gradient(180deg, var(--violet-soft), var(--violet)); border-color: transparent; box-shadow: 0 0 0 3px rgba(167, 139, 250, .16); }
.track .st.now .node { color: #052a33; background: var(--cyan); border-color: transparent; box-shadow: 0 0 0 4px rgba(34, 211, 238, .2), 0 0 22px rgba(34, 211, 238, .65); }
.track .st.gold .node { background: linear-gradient(180deg, #fde68a, var(--gold)); box-shadow: 0 0 0 3px rgba(245, 197, 66, .2), 0 0 16px rgba(245, 197, 66, .45); }
.track .st.gold:not(:first-child)::before { background: linear-gradient(90deg, var(--violet), var(--gold)); }
.track .st.done.gold .lbl { color: var(--gold); }
.track .st.now .node::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--cyan); animation: ring 1.8s ease-out infinite; }
@keyframes ring { from { transform: scale(.95); opacity: .9; } to { transform: scale(1.4); opacity: 0; } }
.track .lbl { margin-top: .55rem; font: 600 .86rem/1.2 var(--display); color: var(--faint); white-space: nowrap; }
.track .st.done .lbl { color: var(--text); }
.track .st.now .lbl { color: var(--ink); }
.track .tm { margin-top: .2rem; font-size: .74rem; line-height: 1.2; color: var(--faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
.track .st.now .tm { color: var(--cyan); }

.matchup { display: grid; grid-template-columns: minmax(0, 1.25fr) auto minmax(0, 1fr); gap: 1.2rem; align-items: center; margin-top: 1.6rem; }
.king-card { position: relative; border-radius: var(--r-lg); padding: 1.1rem 1.2rem; background: transparent; isolation: isolate; }
.king-card::before { content: ""; position: absolute; inset: -1.5px; border-radius: inherit; z-index: -2;
                     background: conic-gradient(from var(--spin, 0deg), #f5c542, #a855f7, #22d3ee, #f5c542); animation: spin 6s linear infinite; }
.king-card::after { content: ""; position: absolute; inset: 1.5px; border-radius: calc(var(--r-lg) - 1.5px); background: rgba(14, 11, 30, .82); z-index: -1; }
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --spin: 360deg; } }
.king-head { display: flex; align-items: center; gap: .95rem; }
.king-av { position: relative; width: 60px; height: 60px; flex: none; }
.king-av img, .king-av .ph { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: var(--raise); object-fit: cover; font: 700 1rem/1 var(--display); color: #0b0916; }
.king-av .ph[style] { background: var(--c); }
.king-av .crown-ico { position: absolute; top: -17px; left: 50%; width: 26px; height: 26px; transform: translateX(-50%) rotate(-8deg); }
.king-name { font: 700 1.35rem/1.15 var(--display); color: var(--ink); overflow-wrap: anywhere; }
.king-name a { color: inherit; }
.king-meta { color: var(--muted); font-size: .88rem; margin-top: .25rem; }
.king-meta .hk { color: var(--faint); }
.king-facts { display: flex; gap: 1.5rem; margin-top: 1rem; flex-wrap: wrap; }
.fact b { display: block; font: 700 1.3rem/1.1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.fact b.gold { color: var(--gold); }
.fact span { color: var(--muted); font-size: .8rem; }
.vs { font: 700 1.4rem/1 var(--display); color: var(--violet); text-shadow: 0 0 18px rgba(168, 85, 247, .7); }
.field { display: flex; flex-direction: column; gap: .6rem; }
.field-count { font: 700 1.9rem/1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.field-count small { font: 500 .9rem/1 var(--sans); color: var(--muted); margin-left: .4rem; }
.avs { display: flex; flex-wrap: wrap; padding-left: 4px; }
.avs .av { width: 38px; height: 38px; border-radius: 50%; border: 2px solid #110d22; margin-left: -6px; background: var(--raise); display: block; object-fit: cover; box-shadow: 0 0 0 1.5px var(--c, var(--line)); }
.avs .av.ph { display: inline-grid; place-items: center; font: 700 .72rem/1 var(--display); color: #0b0916; background: var(--c); }
.field-note { color: var(--muted); font-size: .86rem; }
.ref-glyph { font: 700 1rem/1 var(--sans) !important; color: #0b0916 !important; }

/* ─── live: timing tower and feed ─── */
.live-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 1.5rem; align-items: stretch; }
.live-grid > .board { display: flex; flex-direction: column; }
.live-grid .tower { flex: 1 1 auto; }
.tower { position: relative; display: flex; flex-direction: column; gap: .45rem; max-height: 34rem; overflow-y: auto; padding-right: .3rem; margin-right: -.3rem;
         scrollbar-width: thin; scrollbar-color: rgba(167, 139, 250, .35) transparent; }
.tower::-webkit-scrollbar, .feed::-webkit-scrollbar { width: 6px; }
.tower::-webkit-scrollbar-thumb, .feed::-webkit-scrollbar-thumb { background: rgba(167, 139, 250, .35); border-radius: 3px; }
.tower .lane { flex: none; }
.lane { position: relative; display: grid; grid-template-columns: 2.4rem minmax(0, 13rem) minmax(0, 1fr) 5rem 4.4rem; align-items: center; gap: .8rem;
        padding: .62rem .8rem; border-radius: var(--r); border: 1px solid var(--line); cursor: pointer; transition: border-color .2s;
        background: linear-gradient(90deg, color-mix(in oklab, var(--c, #a855f7) 13%, transparent), transparent 42%), var(--surface-2); }
.lane:hover, .lane:focus-visible { border-color: color-mix(in oklab, var(--c, #a855f7) 65%, transparent); }
.lane.king { border-color: rgba(245, 197, 66, .55); box-shadow: 0 0 24px rgba(245, 197, 66, .1); }
.lane.ref { background: rgba(12, 10, 24, .45); cursor: default; }
.lane.dq { opacity: .55; }
.lp { font: 700 1.35rem/1 var(--display); color: var(--ink); text-align: center; font-variant-numeric: tabular-nums; }
.lane.ref .lp { color: var(--muted); font-size: .78rem; letter-spacing: .06em; }
.who { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.who img, .who .ph { width: 34px; height: 34px; border-radius: 10px; flex: none; background: var(--raise); object-fit: cover; }
.who .ph { display: grid; place-items: center; font: 700 .72rem/1 var(--display); color: #0b0916; background: var(--c); }
.who .nm { min-width: 0; }
.who .nm b { display: block; font: 600 .98rem/1.25 var(--display); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who .nm > span { display: flex; align-items: center; gap: .1rem; font: .74rem/1.25 var(--mono); color: var(--faint); white-space: nowrap; margin-top: .1rem; }
.who .nm > span .chip { margin-left: .4rem; }
.chip { display: inline-block; font: 600 .66rem/1 var(--display); letter-spacing: .03em; padding: .16rem .4rem; border-radius: 6px; border: 1px solid var(--line);
        color: var(--muted); margin-left: .4rem; vertical-align: middle; white-space: nowrap; }
.chip.king { color: var(--gold); border-color: rgba(245, 197, 66, .45); }
.chip.dq { color: var(--neg); border-color: rgba(251, 113, 133, .45); }
.lane-bar { position: relative; height: 14px; border-radius: 999px; background: var(--well); }
.lane-bar > i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, color-mix(in oklab, var(--c, #a855f7) 50%, #000), var(--c, #a855f7));
                box-shadow: 0 0 14px color-mix(in oklab, var(--c, #a855f7) 55%, transparent); transition: width 1s cubic-bezier(.2, .8, .2, 1); }
.lane-bar > b { position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--ink); opacity: .8; border-radius: 1px; transition: left 1s; }
.lane-bar > s { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); font: 600 .7rem/1 var(--display); text-decoration: none; color: var(--ink); text-shadow: 0 0 4px rgba(0, 0, 0, .9), 0 0 2px rgba(0, 0, 0, .9); }
.gap { font: 700 1.05rem/1 var(--display); text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.gap.pos-g { color: var(--pos); } .gap.neg-g { color: var(--neg); }
.mv { font: 600 .78rem/1 var(--display); text-align: right; color: var(--faint); font-variant-numeric: tabular-nums; }
.mv .up { color: var(--pos); } .mv .down { color: var(--neg); }
.lane-detail { grid-column: 1 / -1; display: grid; gap: .3rem; padding: .5rem 0 .1rem; cursor: default; }
.td { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr) 3.4rem 3.6rem; gap: .7rem; align-items: center; font-size: .8rem; color: var(--muted); }
.td .tid { font-family: var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td .tb { position: relative; height: 6px; border-radius: 999px; background: var(--well); }
.td .tb i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--c, var(--violet)); }
.td .tb b { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); opacity: .7; }
.td .tv { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.tower-empty { flex: 1 1 auto; min-height: 8rem; display: grid; place-items: center; padding: 2rem 1rem; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--r); }

.feed { list-style: none; margin: 0; padding: 0 .2rem 0 0; display: flex; flex-direction: column; gap: .45rem; overflow-y: auto; flex: 1 1 0; min-height: 20rem;
        mask-image: linear-gradient(180deg, #000 88%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 88%, transparent); scrollbar-width: thin; scrollbar-color: rgba(167, 139, 250, .35) transparent; }
.feed li { display: grid; grid-template-columns: 1.9rem minmax(0, 1fr); gap: .65rem; align-items: start; padding: .6rem .65rem; border-radius: var(--r);
           background: var(--surface-2); border: 1px solid var(--line); font-size: .87rem; line-height: 1.45; color: var(--text); }
.feed li.new { animation: feedin .5s cubic-bezier(.2, .8, .2, 1); border-color: rgba(34, 211, 238, .45); }
@keyframes feedin { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.feed .ic { width: 1.9rem; height: 1.9rem; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--well); color: var(--muted); }
.feed .ic svg { width: 1rem; height: 1rem; }
.feed .tx b { color: var(--ink); font-weight: 600; }
.feed .tm { display: block; color: var(--faint); font-size: .76rem; margin-top: .15rem; }
.feed .k-crown .ic { color: var(--gold); background: rgba(245, 197, 66, .12); }
.feed .k-ep .ic { color: var(--cyan); background: rgba(34, 211, 238, .1); }
.feed .k-sub .ic, .feed .k-seal .ic { color: var(--violet-soft); background: rgba(167, 139, 250, .12); }
.feed .k-dq .ic { color: var(--neg); background: rgba(251, 113, 133, .1); }

/* ─── the season ─── */
.numbers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.num-card { padding: 1.15rem 1.3rem; display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.num-card + .num-card { border-left: 1px solid var(--line); }
.num-card b { font: 700 clamp(1.7rem, 3vw, 2.3rem)/1.05 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.num-card span { color: var(--muted); font-size: .86rem; }

.timeline { display: flex; align-items: flex-end; gap: 4px; height: 190px; padding: 1.8rem .2rem 0; overflow: hidden; }
.timeline.dense { gap: 1px; padding-top: .6rem; }
.timeline.dense .tl { border-radius: 2px 2px 0 0; }
.season-grid > .board:last-child { display: flex; flex-direction: column; }
.season-grid .timeline { flex: 1 1 auto; height: auto; min-height: 190px; }
.tl { position: relative; flex: 1 1 0; min-width: 2px; max-width: 34px; min-height: 6px; border-radius: 5px 5px 2px 2px; cursor: pointer; border: 0; padding: 0; display: block;
      background: linear-gradient(180deg, var(--c), color-mix(in oklab, var(--c) 40%, #000)); opacity: .88; transition: opacity .15s, transform .15s; }
.tl:hover, .tl:focus-visible { opacity: 1; transform: translateY(-3px); text-decoration: none; }
.tl.none { background: repeating-linear-gradient(135deg, #2a2545 0 4px, #1a1630 4px 8px); }
.tl .cap { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%;
           border: 2px solid var(--c); background: var(--raise); object-fit: cover; display: grid; place-items: center; font: 700 .55rem/1 var(--display); color: #0b0916; }
.tl .cap.ph { background: var(--c); }
.timeline-axis { display: flex; justify-content: space-between; color: var(--faint); font-size: .78rem; margin-top: .45rem; }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: .9rem; font-size: .86rem; color: var(--muted); }
.legend span b { color: var(--ink); font-weight: 600; }
.legend i { display: inline-block; width: .7rem; height: .7rem; border-radius: 3px; background: var(--c); margin-right: .4rem; vertical-align: -1px; }

.season { font-size: .92rem; }
.season th { white-space: nowrap; }
.season .rk { font: 700 1rem/1 var(--display); color: var(--muted); width: 2.4rem; }
.season tr:first-child .rk { color: var(--gold); }
.crowns { display: inline-flex; align-items: center; gap: .55rem; justify-content: flex-end; min-width: 8rem; }
.crowns i { display: inline-block; height: 8px; border-radius: 999px; background: linear-gradient(90deg, #a07a12, var(--gold)); }
.crowns b { font: 700 1rem/1 var(--display); color: var(--gold); min-width: 1.6rem; }

.podium { display: flex; flex-direction: column; gap: .7rem; }
.pod { position: relative; display: grid; grid-template-columns: 2rem auto minmax(0, 1fr); align-items: center; gap: .9rem; padding: .9rem 1rem; border-radius: var(--r);
       border: 1px solid var(--line); background: linear-gradient(90deg, color-mix(in oklab, var(--c) 13%, transparent), transparent 60%), var(--surface-2); }
.pod.p1 { border-color: rgba(245, 197, 66, .5); box-shadow: 0 0 30px -6px rgba(245, 197, 66, .2); }
.pod-rk { font: 700 1.5rem/1 var(--display); color: var(--muted); text-align: center; }
.pod.p1 .pod-rk { color: var(--gold); }
.pod-av { position: relative; }
.pod-av img, .pod-av .ph { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 13px; object-fit: cover; background: var(--raise);
                           box-shadow: 0 0 0 2px var(--c); font: 700 .9rem/1 var(--display); color: #0b0916; }
.pod-av .ph { background: var(--c); }
.pod-av .crown-ico { position: absolute; top: -14px; left: 50%; width: 22px; height: 22px; transform: translateX(-50%) rotate(-8deg); }
.pod-name { display: block; font: 700 1.1rem/1.2 var(--display); overflow-wrap: anywhere; }
.pod-name a { color: var(--ink); }
.pod-stats { display: block; color: var(--text); font-size: .9rem; margin-top: .2rem; }
.pod-sub { display: block; color: var(--muted); font-size: .82rem; margin-top: .1rem; }
.pod-stats b { color: var(--gold); font: 700 1rem/1 var(--display); }

/* ─── the round dialog ─── */
.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 1.5rem 1rem; }
body.modal-open { overflow: hidden; }
.modal-back { position: fixed; inset: 0; background: rgba(4, 3, 10, .72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal-card { position: relative; z-index: 1; width: min(58rem, 100%); max-height: calc(100dvh - 3rem); display: flex; flex-direction: column; overflow: auto;
              background: var(--surface-solid); border: 1px solid var(--line-strong); border-radius: var(--r-lg); box-shadow: 0 40px 120px -30px rgba(124, 58, 237, .5); padding: 1.5rem 1.6rem; }
.modal-card .head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.modal-card .head h1 { font-size: 1.8rem; }
#rm-body { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
#rm-body > .wrap { min-height: 8rem; overflow: auto; }
.modal-x { position: absolute; top: .8rem; right: .9rem; background: none; border: none; color: var(--muted); font-size: 1.7rem; line-height: 1; cursor: pointer; padding: .1rem .45rem; border-radius: var(--r-sm); }
.modal-x:hover { color: var(--ink); background: var(--well); }

/* ─── landing ─── */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 2rem 3rem; align-items: center; padding-block: 1.5rem 1rem; }
.hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.05; letter-spacing: -.005em; }
.hero .lead { font-size: 1.1rem; line-height: 1.65; margin-top: 1.2rem; max-width: 56ch; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.7rem; }
.facts { display: flex; flex-wrap: wrap; gap: .6rem 2.2rem; margin: 2rem 0 0; padding: 0; }
.facts div { display: flex; flex-direction: column; }
.facts dt { order: 2; color: var(--muted); font-size: .86rem; }
.facts dd { order: 1; margin: 0; font: 700 1.6rem/1.15 var(--display); color: var(--ink); }
.arena.mini { display: block; color: var(--text); padding: 1.4rem 1.5rem; }
.arena.mini:hover { text-decoration: none; border-color: rgba(34, 211, 238, .5); }
.arena.mini .round-id { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.arena.mini .flaps { font-size: clamp(2rem, 4.6vw, 3.1rem); }
.arena.mini .clock-side { margin: 1rem 0 0; max-width: none; }
.arena.mini .matchup { grid-template-columns: minmax(0, 1fr) auto; margin-top: 1.3rem; }
.arena.mini .king-av, .arena.mini .king-av img, .arena.mini .king-av .ph { width: 50px; height: 50px; border-radius: 14px; }
.arena.mini .king-name { font-size: 1.2rem; }
.mini-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.mini-foot b { color: var(--violet-soft); font: 600 .92rem/1 var(--display); }
.season-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: 1.5rem; }

.lifecycle { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; counter-reset: step; }
.lifecycle li { position: relative; counter-increment: step; padding: 1.1rem 1.1rem 1.15rem; border-radius: var(--r); border: 1px solid var(--line); background: var(--well); }
.lifecycle li::before { content: counter(step); display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; margin-bottom: .8rem;
                        font: 700 .9rem/1 var(--display); color: var(--violet-soft); border: 1px solid var(--line-strong); background: rgba(167, 139, 250, .1); }
.lifecycle li:not(:last-child)::after { content: ""; position: absolute; top: 2.05rem; left: 3.3rem; right: -1rem; height: 1px; background: linear-gradient(90deg, var(--line-strong), transparent); }
.lifecycle h3 { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.lifecycle h3 small { font: 500 .8rem/1 var(--sans); color: var(--muted); }
.lifecycle p { font-size: .88rem; color: var(--text); margin-top: .45rem; }

.stack { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.6rem 2rem; align-items: center; }
.stack img { display: block; width: 100%; height: auto; border-radius: var(--r); border: 1px solid var(--line); }
.pins { margin: 0; display: grid; gap: .75rem; }
.pins div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.pins div:last-child { border-bottom: 0; padding-bottom: 0; }
.pins dt { color: var(--muted); font-size: .88rem; }
.pins dd { margin: 0; color: var(--ink); font-size: .92rem; }

.stepper { list-style: none; margin: 0; padding: 0; counter-reset: step; display: flex; flex-direction: column; gap: 1.15rem; }
.stepper li { position: relative; counter-increment: step; padding-left: 2.8rem; min-width: 0; }
.stepper li::before { content: counter(step); position: absolute; left: 0; top: -.05rem; width: 1.85rem; height: 1.85rem; border-radius: 50%; display: grid; place-items: center;
                      font: 700 .88rem/1 var(--display); color: var(--violet-soft); border: 1px solid var(--line-strong); background: rgba(167, 139, 250, .1); }
.stepper li:not(:last-child)::after { content: ""; position: absolute; left: .92rem; top: 1.95rem; bottom: -1.05rem; width: 1px; background: var(--line); }
.stepper b { color: var(--ink); font-weight: 600; }
.stepper p { margin-top: .2rem; color: var(--text); }
.cmd { position: relative; display: flex; align-items: center; gap: .5rem; margin-top: .55rem; padding: .6rem .6rem .6rem .85rem; border-radius: var(--r-sm);
       background: rgba(0, 0, 0, .35); border: 1px solid var(--line); }
.cmd code { flex: 1; min-width: 0; background: none; border: 0; padding: 0; font-size: .82rem; color: var(--ink); white-space: pre-wrap; }
.copy { flex: none; font: 600 .76rem/1 var(--display); color: var(--muted); background: var(--well); border: 1px solid var(--line); border-radius: var(--r-sm); padding: .4rem .55rem; cursor: pointer; }
.copy:hover { color: var(--ink); border-color: var(--line-strong); }
.copy.done { color: var(--pos); border-color: rgba(52, 211, 153, .45); }
.check { display: flex; flex-direction: column; gap: .85rem; margin-bottom: 1.2rem; }
.checks { list-style: none; margin: 0 0 1.3rem; padding: 0; display: grid; }
.checks li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.checks li:first-child { padding-top: 0; }
.checks li:last-child { border-bottom: 0; }
.checks b { color: var(--ink); font-weight: 600; }
.checks span { color: var(--text); }

/* ─── a closed round's page ─── */
.round { position: relative; overflow: hidden; border-radius: var(--r-xl); border: 1px solid var(--line-strong); padding: 1.6rem 1.7rem; display: flex; flex-direction: column; gap: 1.3rem;
         background: radial-gradient(800px 300px at 10% -30%, rgba(139, 92, 246, .26), transparent 65%), rgba(12, 9, 26, .5); }
.round .head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.1rem; }
.round .head h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.round .head .muted { color: var(--muted); }
.pager { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.pager a { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .9rem; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface);
           color: var(--text); font: 600 .9rem/1 var(--display); }
.pager a:hover { border-color: var(--line-strong); color: var(--ink); text-decoration: none; }
.artefacts { display: flex; flex-direction: column; gap: .8rem; }

/* ─── a document page (the miner guide, the pins) ─── */
main.doc { max-width: 74rem; }
.doc-head { padding-block: 1rem .5rem; }
.doc-head h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
.doc-head .lead { font-size: 1.08rem; color: var(--text); margin-top: .7rem; max-width: 60ch; }
.doc-grid { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 2rem; align-items: start; }
.toc { position: sticky; top: 5.5rem; border-left: 1px solid var(--line); padding-left: 1rem; }
.toc p { font: 600 .85rem/1.2 var(--display); color: var(--ink); margin-bottom: .7rem; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.toc a { display: block; padding: .3rem 0; color: var(--muted); font-size: .9rem; line-height: 1.35; }
.toc a:hover { color: var(--ink); text-decoration: none; }
.toc li { position: relative; }
.toc a { transition: color .15s; }
.toc a.on { color: var(--ink); font-weight: 600; }
.toc a.on::before { content: ""; position: absolute; left: calc(-1rem - 1px); top: .3rem; bottom: .3rem; width: 2px; border-radius: 2px; background: var(--violet); box-shadow: 0 0 8px rgba(167, 139, 250, .7); }
.prose { min-width: 0; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface);
         padding: 1.6rem 2rem 1.8rem; font-size: 1rem; line-height: 1.7; }
.prose > * + * { margin-top: 1rem; }
.prose p, .prose li { max-width: 74ch; color: var(--text); }
.prose h2 { font-size: 1.45rem; margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line); scroll-margin-top: 5.5rem; }
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.1rem; margin-top: 1.8rem; scroll-margin-top: 5.5rem; }
.prose .anchor { color: inherit; }
.prose .anchor:hover { text-decoration: none; color: var(--violet-soft); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { color: var(--ink); font-style: italic; }
.prose ul, .prose ol { padding-left: 1.3rem; display: grid; gap: .55rem; }
.prose li::marker { color: var(--violet); }
.prose ol > li::marker { font: 700 .95rem var(--display); }
.codeblock { position: relative; border-radius: var(--r); border: 1px solid var(--line); background: rgba(0, 0, 0, .38); }
.codeblock pre { margin: 0; padding: 1rem 1.1rem; overflow-x: auto; font: .84rem/1.6 var(--mono); color: var(--ink); scrollbar-width: thin; }
.codeblock code { background: none; border: 0; padding: 0; font-size: inherit; overflow-wrap: normal; }
.codeblock .copy { position: absolute; top: .55rem; right: .55rem; }
.doc-table { font-size: .88rem; }
.doc-table th, .doc-table td { text-align: left; white-space: normal; vertical-align: top; line-height: 1.55; min-width: 9rem; }
.doc-table td:first-child { color: var(--ink); font-weight: 600; min-width: 8rem; }
.doc-table td { color: var(--text); }
.doc-table tbody tr:hover td { background: transparent; }
.doc-src { font-size: .84rem; color: var(--muted); padding-top: 1.2rem; border-top: 1px solid var(--line); }

/* ─── footer ─── */
.foot { max-width: var(--page); margin: 4rem auto 0; padding-top: 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem;
        display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 1.5rem 2rem; }
.foot .brand { font-size: 1rem; }
.foot p { margin-top: .7rem; max-width: 34ch; }
.foot h3 { font: 600 .9rem/1.2 var(--display); color: var(--ink); margin-bottom: .6rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--ink); }
.foot .legal { grid-column: 1 / -1; color: var(--faint); font-size: .8rem; padding-top: 1rem; border-top: 1px solid var(--line); }

/* ─── tooltip (site.js) ─── */
.tip { position: fixed; z-index: 100; left: 0; top: 0; max-width: min(19rem, calc(100vw - 16px)); padding: .55rem .75rem; border-radius: 10px; pointer-events: none;
       background: rgba(22, 18, 42, .97); border: 1px solid var(--line-strong); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .3);
       color: var(--text); font: 400 .82rem/1.45 var(--sans); white-space: normal; overflow-wrap: anywhere;
       opacity: 0; transform: translateY(4px) scale(.97); transform-origin: var(--ax, 50%) 100%; transition: opacity .14s ease, transform .14s ease; }
.tip.below { transform: translateY(-4px) scale(.97); transform-origin: var(--ax, 50%) 0; }
.tip.on { opacity: 1; transform: none; }
.tip b { display: block; color: var(--ink); font: 600 .86rem/1.3 var(--display); margin-bottom: .15rem; }
.tip::after { content: ""; position: absolute; left: var(--ax, 50%); bottom: -5px; width: 9px; height: 9px; transform: translateX(-50%) rotate(45deg);
              background: rgba(22, 18, 42, .97); border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.tip.below::after { bottom: auto; top: -5px; border: 0; border-left: 1px solid var(--line-strong); border-top: 1px solid var(--line-strong); }
[data-tip] { cursor: help; }
a[data-tip], button[data-tip], .tl, .lane [data-tip] { cursor: pointer; }

/* ─── a panel head with a control on the right; the segmented control ─── */
.board-head.row { flex-direction: row; justify-content: space-between; align-items: flex-start; gap: .8rem 1rem; flex-wrap: wrap; }
.board-head.row > div:first-child { display: flex; flex-direction: column; gap: .3rem; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--well); flex: none; }
.seg button { font: 600 .8rem/1 var(--display); letter-spacing: .02em; color: var(--muted); background: none; border: 0; padding: .45rem .75rem; border-radius: 6px; cursor: pointer; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: rgba(167, 139, 250, .2); color: var(--ink); }

/* ─── responsive ─── */
@media (max-width: 1100px) {
  .lifecycle li { padding: 1rem .95rem; }
}
@media (max-width: 960px) {
  .hero, .stack, .season-grid, .live-grid, .two, .doc-grid { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; border-left: 0; padding-left: 0; }
  .toc ol { display: flex; flex-wrap: wrap; gap: .4rem; }
  .toc a { padding: .35rem .7rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); font-size: .85rem; }
  .toc a.on { border-color: var(--violet); background: rgba(167, 139, 250, .14); }
  .toc a.on::before { display: none; }
  .feed { flex: none; max-height: 28rem; min-height: 0; }
  .matchup { grid-template-columns: minmax(0, 1fr); }
  .vs { display: none; }
  .numbers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .num-card:nth-child(4) { border-left: 0; }
  .num-card:nth-child(n+4) { border-top: 1px solid var(--line); }
  .num-card:nth-child(5) { grid-column: span 2; }
  .season th:nth-child(5), .season td:nth-child(5), .season th:nth-child(6), .season td:nth-child(6) { display: none; }
  .crowns { min-width: 6rem; }
  .hist th:nth-child(7), .hist td:nth-child(7), .hist th:nth-child(8), .hist td:nth-child(8), .hist th:nth-child(10), .hist td:nth-child(10) { display: none; }
  .lifecycle { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
  .lifecycle li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); column-gap: .9rem; align-items: start; padding: .9rem 1rem; }
  .lifecycle li::before { grid-row: 1 / 3; margin: 0; }
  .lifecycle li:not(:last-child)::after { display: none; }
  .lifecycle p { margin-top: .2rem; }
  .foot { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 1000px) {
  .menu-btn { display: inline-grid; }
  .top-in { gap: .8rem; }
  .top-in .round-chip { margin-left: auto; }
  .menu { position: absolute; top: 100%; left: 0; right: 0; margin: 0; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1rem;
          background: #0b0918; border-bottom: 1px solid var(--line-strong); box-shadow: 0 24px 40px -12px rgba(0, 0, 0, .7); display: none; }
  .menu.open { display: flex; }
  .menu a { padding: .85rem .5rem; font-size: 1.02rem; border-radius: 8px; }
}
@media (max-width: 640px) {
  main { margin-top: 1.2rem; gap: 1.1rem; }
  :root { --r-xl: 18px; --r-lg: 16px; }
  .board, .panel { padding: 1.1rem 1rem; }
  .arena, .round { padding: 1.2rem 1rem; }
  .arena.mini { padding: 1.2rem 1rem; }
  .brand em { display: none; }
  .round-chip span b { display: none; }
  .clock-side { margin-left: 0; }
  .lane { grid-template-columns: 1.8rem minmax(0, 1fr) 4rem; gap: .6rem; }
  .lane .lane-bar { grid-column: 2 / -1; grid-row: 2; }
  .lane .mv { display: none; }
  .lane .who .nm > span { flex-wrap: wrap; row-gap: .25rem; white-space: normal; }
  .td { grid-template-columns: minmax(0, 1fr) 3rem 3.2rem; }
  .td .tb { display: none; }
  .season .opt { display: none; }
  .hist th:nth-child(5), .hist td:nth-child(5), .hist th:nth-child(6), .hist td:nth-child(6), .hist th:nth-child(9), .hist td:nth-child(9) { display: none; }
  .season th, .season td, .hist th, .hist td { padding: .6rem .35rem; }
  .season .ident .hk, .hist .ident .hk { display: none; }
  .season .gh-name, .hist .gh-name { display: block; max-width: 6.5rem; overflow: hidden; text-overflow: ellipsis; }
  .season .gh-av, .hist .gh-av { width: 1.6rem; height: 1.6rem; }
  .season th:nth-child(7), .season td:nth-child(7) { display: none; }
  .season .who .nm b { max-width: 6.5rem; }
  .season .who .nm > span { display: none; }
  .season .who img, .season .who .ph { width: 28px; height: 28px; border-radius: 8px; }
  .crowns { min-width: 0; }
  .crowns i { display: none; }
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .num-card { padding: .95rem 1rem; }
  .num-card + .num-card { border-left: 0; }
  .num-card:nth-child(even) { border-left: 1px solid var(--line); }
  .num-card:nth-child(n+3) { border-top: 1px solid var(--line); }
  .num-card:nth-child(5) { grid-column: 1 / -1; }
  .prose { padding: 1.2rem 1rem 1.4rem; font-size: .96rem; }
  .pins div, .checks li { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
  .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts dd { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
