:root {
    color-scheme: dark;
    --base: #071016;
    --panel: #0c1a22;
    --line: #233d47;
    --text: #e9f4f4;
    --muted: #a0b8c0;
    --accent: #79eee2;
    font: 16px/1.55 system-ui, "Segoe UI", sans-serif;
    background: var(--base);
    color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, p, figure { margin: 0; }
.frame { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; top: -5rem; left: 1rem; padding: .5rem .75rem; background: var(--base); z-index: 2; }
.skip:focus { top: 1rem; }
.masthead { border-bottom: 1px solid var(--line); background: #09131a; }
.masthead-inner { min-height: 67px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); font-size: .85rem; font-weight: 750; letter-spacing: .13em; text-decoration: none; }
.brand strong { color: var(--accent); }
.brand-mark { display: inline-block; width: 21px; height: 21px; border: 1px solid var(--accent); transform: rotate(45deg); position: relative; }
.brand-mark::before { content: ""; position: absolute; inset: 5px; background: var(--accent); box-shadow: 0 0 14px #5be2d2bb; }
.masthead nav { display: flex; gap: clamp(14px, 3vw, 32px); }
.masthead nav a { color: var(--muted); font-size: .9rem; text-decoration: none; padding-block: 8px; }
.masthead nav a:hover, .masthead nav a[aria-current] { color: var(--accent); }
.hero {
    margin: 36px 0 58px;
    overflow: hidden;
    isolation: isolate;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    min-height: 490px;
    align-items: center;
    border: 1px solid var(--line);
    background:
        radial-gradient(ellipse at 83% 53%, #14424a 0%, transparent 61%),
        linear-gradient(105deg, #0e1d26, #07151d 66%, #0d2429);
}
.hero-copy { padding: clamp(28px, 5.5vw, 76px); }
.eyebrow { color: var(--accent); font: 700 .75rem/1.4 "Cascadia Mono", Consolas, monospace; letter-spacing: .15em; }
.hero h1 { font-size: clamp(3.4rem, 7.4vw, 7.1rem); line-height: .92; letter-spacing: -.065em; margin: 22px 0; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-description { max-width: 37ch; color: var(--muted); font-size: 1.04rem; }
.hero-actions { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.theme-player { margin-top: 18px; display: grid; gap: 6px; max-width: 320px; }
.theme-player span { color: var(--muted); font-size: .9rem; }
.theme-player audio { display: block; width: 100%; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none; font-weight: 700; padding: .65rem .9rem; border: 1px solid var(--line); }
.primary { background: var(--accent); color: var(--base); }
.primary:hover { background: #a5fff3; }
.secondary:hover { border-color: var(--accent); }
.hero-visual {
    min-width: 0;
    align-self: stretch;
    display: grid;
    place-items: center;
    padding: 25px 28px;
    border-left: 1px solid #38656b66;
    background-image: linear-gradient(#6fe2d211 1px, transparent 1px), linear-gradient(90deg, #6fe2d211 1px, transparent 1px);
    background-size: 32px 32px;
}
.reactor { width: min(100%, 294px); padding: 8px; border: 1px solid #57949a; box-shadow: 0 0 55px #0daba338; background: #07151c; }
.reactor img, .reactor video { display: block; width: 100%; height: auto; }
#standings, .doc-panel { scroll-margin-top: 16px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 18px; }
.section-heading h2 { font-size: clamp(1.85rem, 4vw, 2.65rem); line-height: 1.12; letter-spacing: -.035em; margin-top: 5px; }
.section-heading p, .muted { color: var(--muted); }
.filter, .subfilters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter a { color: var(--muted); border: 1px solid var(--line); padding: .4rem .78rem; text-decoration: none; font-size: .9rem; }
.filter a[aria-current], .filter a:hover { color: var(--accent); background: #10272d; border-color: #40877f; }
.benchmarks { margin-bottom: 9px; }
.benchmarks a { padding: .55rem .86rem; font-weight: 650; }
.subfilters { justify-content: space-between; margin-bottom: 16px; gap: 10px 22px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 480px; background: #0b171f; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead { background: #122630; color: #c0d7dc; }
thead th { font-size: .8rem; letter-spacing: .04em; }
thead small { color: var(--muted); font-weight: 450; margin-left: 4px; }
tbody tr:nth-child(even) { background: #0e1c24; }
tbody tr:last-child > * { border-bottom: 0; }
#standings td:last-child, #standings th:last-child { text-align: right; }
#standings td.empty { text-align: left; padding: 25px 16px; color: var(--muted); }
.rank, .score, .telemetry dd { font-variant-numeric: tabular-nums; }
.rank, .score { color: var(--accent); }
.score { font-weight: 750; }
.hardware { width: 48%; overflow-wrap: anywhere; }
.run-details { margin-top: .2rem; color: var(--muted); font-size: .85rem; }
.run-details summary { cursor: pointer; color: var(--accent); width: fit-content; }
.telemetry { margin-top: 7px; padding: 9px 11px; border-left: 2px solid var(--line); }
.telemetry dl { margin: .45rem 0 0; }
.telemetry dl div { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; }
.telemetry dd { margin: 0; color: var(--text); }
.doc-intro { margin-top: 46px; padding: clamp(20px, 4vw, 44px); background: linear-gradient(110deg, #10262e, #0b171f); border: 1px solid var(--line); }
.doc-intro h1 { font-size: clamp(2.25rem, 5vw, 4rem); letter-spacing: -.045em; line-height: 1.05; margin: .5rem 0 .9rem; }
.doc-intro p:not(.eyebrow) { color: var(--muted); max-width: 65ch; }
.doc-nav { margin: 20px 0; }
.doc-panel { padding: clamp(16px, 3vw, 28px); border: 1px solid var(--line); background: var(--panel); margin-bottom: 16px; }
.doc-panel h2 { font-size: 1.45rem; margin-bottom: .75rem; }
.doc-panel p, .doc-panel ol { max-width: 83ch; }
.doc-panel p, .doc-panel dd, .doc-panel ol { color: var(--muted); }
.doc-panel p + p, .doc-panel .table-wrap + p { margin-top: .8rem; }
.doc-panel ol { padding-left: 1.2rem; }
.doc-table th:nth-child(2), .doc-table td:nth-child(2) { white-space: nowrap; }
.metric-guide { display: grid; gap: .65rem; }
.metric-guide div { border-top: 1px solid var(--line); padding-top: .65rem; }
.metric-guide dt { font-weight: 700; }
.metric-guide dd { margin: 0; }
.footer { margin-top: 54px; padding: 19px 0 30px; border-top: 1px solid var(--line); display: flex; gap: 12px 22px; justify-content: space-between; color: var(--muted); font-size: .84rem; }
@media (max-width: 740px) {
    .frame { width: calc(100% - 36px); }
    .hero { min-height: auto; grid-template-columns: 1fr; margin-top: 20px; margin-bottom: 36px; }
    .hero-copy { padding: 28px; }
    .hero-visual { border-left: 0; border-top: 1px solid #38656b66; padding: 18px; }
    .reactor { max-width: 220px; }
    .masthead-inner { padding-block: 10px; }
    .footer { margin-top: 36px; }
}
@media (max-width: 540px) {
    .frame { width: calc(100% - 24px); }
    .hero-copy { padding: 20px; }
    .hero h1 { font-size: clamp(2.9rem, 13vw, 4.45rem); }
    #standings table { min-width: 0; }
    #standings th, #standings td { padding-inline: 7px; overflow-wrap: anywhere; }
    #standings thead small { display: block; margin: 0; }
    .hardware { width: 40%; }
    .telemetry { padding-inline: 5px; }
    .telemetry dl div { display: block; margin-bottom: 4px; }
}
.score a { color: inherit; text-underline-offset: .18em; }
.result-score { color: var(--accent); font-size: clamp(1.45rem, 5vw, 2.5rem); line-height: 1; }
.result-hardware { margin-top: 16px; max-width: 34rem; }
.result-shot { margin-top: 18px; padding: clamp(8px, 2vw, 20px); border: 1px solid var(--line); background: var(--panel); }
.result-shot img { width: auto; max-width: 100%; height: auto; display: block; margin-inline: auto; }
.result-shot figcaption { padding-top: 10px; font-size: .9rem; }
.release-guide { max-width: 960px; margin: 2.5rem auto; padding: clamp(1rem, 4vw, 2.75rem); border: 1px solid var(--line); background: var(--panel); }
.release-guide h1 { font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.1; }
.release-guide h2 { margin-top: 2.2rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.release-guide h3 { margin-bottom: .4rem; }
.release-guide p { margin: .65rem 0; }
.release-guide ul, .release-guide ol { padding-left: 1.35rem; }
.release-guide li + li { margin-top: .25rem; }
.release-guide pre { background: var(--base); border: 1px solid var(--line); padding: .8rem; overflow-x: auto; }
.release-guide table { display: block; min-width: 0; overflow-x: auto; }
.release-guide code, .release-checksums code { overflow-wrap: anywhere; }
.release-checksums { margin-top: 18px; }
.release-checksums dd { margin: .25rem 0 1rem; }
.masthead nav { flex-wrap: wrap; }
.rank-search { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.rank-search input { font: inherit; color: var(--text); background: var(--base); border: 1px solid var(--line); padding: .65rem .75rem; max-width: 100%; }
.rank-search button { font: inherit; cursor: pointer; color: var(--accent); background: var(--panel); }
.rank-search input:focus-visible, .rank-search button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.rank-search p { width: 100%; }
.ranks-pages { margin-top: 12px; align-items: center; }
