@font-face {
    font-family: "IBM Plex Sans";
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url("/assets/fonts/plex-sans.woff2") format("woff2");
}

@font-face {
    font-family: "IBM Plex Mono";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/assets/fonts/plex-mono-400.woff2") format("woff2");
}

@font-face {
    font-family: "IBM Plex Mono";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/assets/fonts/plex-mono-500.woff2") format("woff2");
}

:root {
    color-scheme: light;

    --paper: #ffffff;
    --wash: #f5f6f8;
    --wash-2: #eceef2;

    --ink: #10121a;
    --ink-2: #3d4553;
    --ink-3: #687184;

    --rule: #e2e5ea;
    --rule-2: #cdd2da;

    --accent: #1f6fd6;
    --accent-ink: #185bb0;
    --accent-wash: #eaf2fd;

    --screen: #10121a;
    --screen-edge: #222634;

    --good: #1f9d55;
    --warn: #c98a0c;

    --series-1: #2f7fe0;
    --series-2: #d06a1a;
    --series-3: #16a39b;
    --series-4: #8b52d6;
    --series-5: #d4548f;

    --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

    --wide: 1080px;
    --measure: none;
    --pad: clamp(18px, 4vw, 40px);
    --radius: 6px;

    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--accent-ink);
}

img,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

button,
input,
select {
    font: inherit;
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

::selection {
    background: var(--accent-wash);
}

h1,
h2,
h3 {
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

p {
    margin: 0 0 1em;
}

p:last-child {
    margin-bottom: 0;
}

code,
kbd {
    font-family: var(--font-mono);
    font-size: 0.88em;
}

code {
    padding: 0.08em 0.3em;
    border-radius: 4px;
    background: var(--wash);
}

kbd {
    display: inline-block;
    min-width: 1.9em;
    padding: 0 0.4em;
    border: 1px solid var(--rule-2);
    border-bottom-width: 2px;
    border-radius: 4px;
    background: var(--paper);
    font-size: 0.78em;
    line-height: 1.6;
    text-align: center;
    color: var(--ink);
}

.skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 8px 12px;
    background: var(--ink);
    color: var(--paper);
    border-radius: var(--radius);
}

.skip:focus {
    top: 12px;
}

.sprites {
    display: none;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--rule);
}

.topbar__inner {
    max-width: var(--wide);
    margin: 0 auto;
    padding: 0 var(--pad);
    height: 56px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}

.topbar__brand:hover {
    color: var(--ink);
}

.topbar__nav {
    order: 2;
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

.topbar__nav a {
    padding: 6px 9px;
    white-space: nowrap;
    border-radius: var(--radius);
    color: var(--ink-2);
    font-size: 0.92rem;
    text-decoration: none;
}

.topbar__nav a:hover {
    background: var(--wash);
    color: var(--ink);
}

.topbar__code {
    order: 3;
    padding: 5px 12px;
    border: 1px solid var(--rule-2);
    border-radius: var(--radius);
    color: var(--ink);
    font-size: 0.92rem;
    text-decoration: none;
}

.topbar__code:hover {
    background: var(--wash);
    color: var(--ink);
}

main {
    max-width: var(--wide);
    margin: 0 auto;
    padding: 0 var(--pad);
}

.hero {
    padding: clamp(48px, 8vw, 88px) 0 0;
    text-align: center;
}

.hero__title {
    display: flex;
    justify-content: center;
}

.wordmark {
    width: min(100%, 568px);
    height: auto;
    fill: var(--ink);
}

.hero__subtitle {
    max-width: 30em;
    margin: 28px auto 0;
    font-size: clamp(1.2rem, 2.4vw, 1.56rem);
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--ink);
    text-wrap: balance;
}

.hero__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 32px;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    border: 1px solid var(--rule-2);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--ink);
    font-size: 0.94rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background 150ms var(--ease), border-color 150ms var(--ease);
}

.button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.button:hover {
    background: var(--wash);
    border-color: var(--ink-3);
    color: var(--ink);
}

.button--primary {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

.button--primary:hover {
    background: #262a36;
    border-color: #262a36;
    color: var(--paper);
}

.button--disabled,
.button:disabled {
    color: var(--ink-3);
    cursor: default;
}

.button--disabled:hover,
.button:disabled:hover {
    background: var(--paper);
    border-color: var(--rule-2);
    color: var(--ink-3);
}

.button small {
    padding: 1px 6px;
    border-radius: 99px;
    background: var(--wash-2);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--ink-2);
}

.button kbd {
    font-size: 0.72rem;
}

.facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 760px;
    margin: 44px auto 0;
    padding: 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}

.facts__item {
    display: flex;
    flex-direction: column-reverse;
    gap: 2px;
    padding: 18px 12px;
}

.facts__item + .facts__item {
    border-left: 1px solid var(--rule);
}

.facts dt {
    font-size: 0.86rem;
    color: var(--ink-3);
}

.facts dd {
    margin: 0;
    font-size: 1.7rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.news {
    max-width: 880px;
    margin: 28px auto 0;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 16px;
    font-size: 0.94rem;
}

.news__title {
    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1.6;
}

.news__list {
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--ink-2);
}

.news__list li + li {
    margin-top: 4px;
}

.news__list time {
    margin-right: 8px;
    font-family: var(--font-mono);
    font-size: 0.86em;
    color: var(--ink-3);
}

.promo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
    align-items: center;
    gap: 32px;
    margin-top: 40px;
    padding: 28px 32px;
    border-radius: 12px;
    background: var(--screen);
    color: #c9d2e3;
    overflow: hidden;
}

.promo__title {
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    color: #ffffff;
}

.promo p {
    margin: 8px 0 20px;
    font-size: 1.02rem;
}

.promo b {
    color: #ffffff;
    font-weight: 600;
}

.promo__button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding: 0 20px;
    border-radius: var(--radius);
    background: #58a6ff;
    color: #0a0e16;
    font-weight: 600;
    text-decoration: none;
    transition: background 150ms var(--ease);
}

.promo__button:hover {
    background: #7cbaff;
    color: #0a0e16;
}

.promo__button svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.promo__shots {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    transform: rotate(-3deg);
}

.promo__shots img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 0 0 1px #2a2f3e;
}

.figure {
    margin: 0;
}

.figure figcaption {
    max-width: var(--measure);
    margin-top: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--ink-2);
}

.figure figcaption b {
    color: var(--ink);
}

.mosaic-figure {
    margin-top: 48px;
}

.mosaic-figure figcaption {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.mosaic {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 3px;
    padding: 3px;
    border-radius: 8px;
    background: #2a2f3e;
}

.mosaic__tile {
    position: relative;
    aspect-ratio: 4 / 3;
    padding: 0;
    border: 0;
    background: var(--screen-edge);
    cursor: pointer;
    overflow: hidden;
}

.mosaic__tile:first-child {
    border-top-left-radius: 5px;
}

.mosaic__tile:nth-child(10) {
    border-top-right-radius: 5px;
}

.mosaic__tile:nth-child(61) {
    border-bottom-left-radius: 5px;
}

.mosaic__tile:last-child {
    border-bottom-right-radius: 5px;
}

.mosaic__tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 150ms var(--ease);
}

.mosaic__tile span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 6px 4px;
    background: linear-gradient(transparent, rgba(16, 18, 26, 0.92));
    color: #eaeef6;
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1.2;
    text-align: left;
    opacity: 0;
    transition: opacity 150ms var(--ease);
}

.mosaic__tile:hover span,
.mosaic__tile:focus-visible span {
    opacity: 1;
}

.mosaic__tile:focus-visible {
    outline-offset: -2px;
    outline-color: #58a6ff;
}

.section {
    padding-top: clamp(56px, 8vw, 88px);
}

.section__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
}

.section__title {
    margin-bottom: 16px;
    font-size: clamp(1.6rem, 2.8vw, 1.95rem);
    letter-spacing: -0.015em;
}

.section__meta {
    margin: 0;
    font-size: 0.9rem;
    color: var(--ink-3);
}

.prose {
    max-width: var(--measure);
    color: var(--ink-2);
}

.prose b {
    color: var(--ink);
    font-weight: 600;
}

.prose h3 {
    margin: 0 0 12px;
    font-size: 1.2rem;
    color: var(--ink);
}

.prose ul {
    margin: 0;
    padding-left: 1.2em;
}

.prose li + li {
    margin-top: 6px;
}

.modes {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.mode {
    padding: 22px 24px;
    border: 1px solid var(--rule);
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink-2);
}

.mode h3 {
    margin: 4px 0 10px;
    font-size: 1.2rem;
    color: var(--ink);
}

.mode p {
    margin-bottom: 0.8em;
}

.mode__flag {
    margin: 0;
}

.mode__flag code {
    font-size: 0.8rem;
    background: var(--accent-wash);
    color: var(--accent-ink);
}

.prose + .split {
    margin-top: 32px;
}

.split + .code {
    margin-top: 28px;
}

.play__touch {
    display: none;
    grid-column: 1 / -1;
    margin: 0;
    font-size: 0.86rem;
    color: var(--ink-3);
}

@media (pointer: coarse) {
    .play__touch {
        display: block;
    }
}

.modes + .table-wrap {
    margin-top: 16px;
}

.configurable,
.scoring {
    margin-top: 40px;
}

.configurable + .split {
    margin-top: 40px;
}

.reasons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 8px;
}

.reason {
    padding: 20px 22px;
    border: 1px solid var(--rule);
    border-radius: 8px;
    color: var(--ink-2);
}

.reason h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    color: var(--ink);
}

.reason p {
    margin: 0;
    font-size: 0.96rem;
}

.info {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border: 1px solid var(--rule-2);
    border-radius: 50%;
    background: var(--paper);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.72rem;
    font-style: italic;
    font-weight: 700;
    line-height: 1;
    color: var(--ink-2);
    vertical-align: 1px;
}

.info {
    width: 24px;
    height: 24px;
    margin-left: 6px;
    padding: 0;
    font-size: 0.8rem;
    cursor: pointer;
}

.info:hover,
.info[aria-expanded="true"] {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--paper);
}

.cats {
    display: grid;
    gap: 28px;
    margin-top: 24px;
}

.cats__group h3 {
    margin: 0 0 10px;
    font-size: 1rem;
}

.cats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 8px;
}

.cat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
    border: 1px solid var(--rule);
    border-radius: 8px;
    background: var(--paper);
    text-align: left;
    cursor: pointer;
    transition: border-color 150ms var(--ease), background 150ms var(--ease);
}

.cat:hover {
    border-color: var(--ink-3);
    background: var(--wash);
}

.cat__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.cat__head b {
    font-weight: 600;
    color: var(--ink);
}

.cat__count {
    font-size: 0.78rem;
    color: var(--ink-3);
    font-variant-numeric: tabular-nums;
}

.cat__def {
    font-size: 0.84rem;
    line-height: 1.4;
    color: var(--ink-2);
}

.challenge {
    margin-top: 32px;
    padding: 22px 24px;
    border-left: 3px solid var(--ink);
    border-radius: 0 8px 8px 0;
    background: var(--wash);
    color: var(--ink-2);
}

.challenge h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    color: var(--ink);
}

.challenge > p {
    max-width: var(--measure);
    margin: 0;
}

.challenge__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 28px;
    margin: 18px 0;
    padding: 0;
    list-style: none;
    font-size: 0.92rem;
}

.challenge__list button {
    display: block;
    margin-bottom: 2px;
    padding: 0;
    border: 0;
    background: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent);
    cursor: pointer;
}

.challenge__list button:hover {
    text-decoration: underline;
}

.challenge .challenge__note {
    font-size: 0.84rem;
    color: var(--ink-3);
}

.paces {
    margin-top: 28px;
    --label: 132px;
    --human: #a3acbb;
    --agent: var(--series-1);
}

.paces__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin: 0 0 16px;
    font-size: 0.88rem;
    color: var(--ink-2);
}

.paces__legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.paces__swatch {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.paces__swatch--human {
    background: var(--human);
}

.paces__swatch--qwen {
    background: var(--agent);
}

.paces__row {
    display: grid;
    grid-template-columns: var(--label) minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding: 10px 0;
    border-top: 1px solid var(--rule);
}

.paces__label b {
    display: block;
    font-weight: 600;
}

.paces__label small {
    font-size: 0.8rem;
    color: var(--ink-3);
}

.paces__bars {
    display: grid;
    gap: 4px;
    padding-right: 40px;
}

.paces__bar {
    position: relative;
    height: 16px;
}

.paces__bar i {
    display: block;
    height: 100%;
    width: calc(var(--v) * 100%);
    border-radius: 0 4px 4px 0;
}

.paces__bar--human i {
    background: var(--human);
}

.paces__bar--qwen i {
    background: var(--agent);
}

.paces__value {
    position: absolute;
    top: 50%;
    left: calc(var(--v) * 100% + 8px);
    transform: translateY(-50%);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.paces__axis {
    position: relative;
    height: 22px;
    margin: 0 40px 0 calc(var(--label) + 16px);
    border-top: 1px solid var(--rule-2);
}

.paces__axis span {
    position: absolute;
    top: 4px;
    left: calc(var(--x) * 100%);
    transform: translateX(-50%);
    font-size: 0.74rem;
    color: var(--ink-3);
    font-variant-numeric: tabular-nums;
}

.systems {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 40px;
    align-items: start;
}

.system {
    padding: 20px 22px;
    border: 1px solid var(--rule);
    border-radius: 8px;
}

.system__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.system__head .info {
    flex: none;
    margin: 2px 0 0;
}

.system__head h3 {
    font-size: 1.15rem;
}

.system__head p {
    margin: 2px 0 0;
    font-size: 0.9rem;
    color: var(--ink-3);
}

.system__scores {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 16px 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}

.system__scores div {
    padding: 10px 0;
}

.system__scores dt {
    font-size: 0.78rem;
    color: var(--ink-3);
}

.system__scores dd {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.system__scores small {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--ink-3);
}

.system__setup {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 6px;
    background: var(--wash);
    font-size: 0.88rem;
    color: var(--ink-2);
}

.system__setup p {
    margin: 0;
}

.system__setup dl {
    display: grid;
    gap: 8px;
    margin: 0;
}

.system__setup dt {
    font-weight: 600;
    color: var(--ink);
}

.system__setup dd {
    margin: 0;
}

.system__setup h4 {
    margin: 16px 0 6px;
    font-size: 0.9rem;
    color: var(--ink);
}

.system__setup ul {
    margin: 0;
    padding-left: 1.1em;
}

.system__setup li + li {
    margin-top: 4px;
}

.findings-block {
    margin-top: 48px;
}

.findings {
    margin: 0;
    padding-left: 1.2em;
    color: var(--ink-2);
}

.findings li + li {
    margin-top: 12px;
}

.note {
    margin: 12px 0 0;
    font-size: 0.88rem;
    color: var(--ink-3);
}

.table-wrap {
    margin-top: 24px;
    overflow-x: auto;
    border: 1px solid var(--rule);
    border-radius: 8px;
}

.spec {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.94rem;
}

.spec {
    min-width: 620px;
}

.spec th,
.spec td {
    padding: 12px 16px;
    text-align: left;
    vertical-align: middle;
}

.spec thead th {
    background: var(--wash);
    border-bottom: 1px solid var(--rule);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--ink-2);
    white-space: nowrap;
}

.spec tbody tr + tr td,
.spec tbody tr + tr th {
    border-top: 1px solid var(--rule);
}

.spec tbody th {
    font-weight: 600;
    white-space: nowrap;
}

.spec td {
    color: var(--ink-2);
}

.spec code {
    white-space: nowrap;
}

.spec td:last-child {
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.games__inspired-inline {
    display: none;
}

@keyframes blink {
    50% {
        opacity: 0.25;
    }
}

.play {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    margin-top: 24px;
    padding: 16px;
    border: 1px solid var(--rule);
    border-radius: 10px;
    background: var(--wash);
}

.play__stage {
    position: relative;
    align-self: start;
    border-radius: 6px;
    background: var(--screen);
    overflow: hidden;
}

.play__screen {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    background: var(--screen) center / cover no-repeat;
    image-rendering: pixelated;
    cursor: crosshair;
}

.play__screen:focus-visible {
    outline-offset: -3px;
    outline-color: #58a6ff;
}

.play__start {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    border: 0;
    background: rgba(16, 18, 26, 0.55);
    color: #eaeef6;
    font-size: 1rem;
    cursor: pointer;
    transition: background 150ms var(--ease);
}

.play__start span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 99px;
    background: var(--paper);
    color: var(--ink);
    font-weight: 500;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.play__start svg {
    display: none;
}

.play__start:hover {
    background: rgba(16, 18, 26, 0.4);
}

.play[data-state="running"] .play__start,
.play[data-state="loading"] .play__start {
    display: none;
}

.play__status {
    position: absolute;
    left: 10px;
    top: 10px;
    margin: 0;
    padding: 3px 9px;
    border-radius: 99px;
    background: rgba(16, 18, 26, 0.72);
    color: #eaeef6;
    font-size: 0.76rem;
    pointer-events: none;
}

.play__status:empty {
    display: none;
}

.play__panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.field__label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--ink-2);
}

.field__hint {
    margin: 8px 0 0;
    min-height: 2.9em;
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--ink-3);
}

.picker {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    height: 38px;
    border: 1px solid var(--rule-2);
    border-radius: var(--radius);
    background: var(--paper);
    overflow: hidden;
}

.picker select {
    min-width: 0;
    border: 0;
    border-left: 1px solid var(--rule);
    border-right: 1px solid var(--rule);
    padding: 0 10px;
    background: var(--paper);
    font-weight: 500;
    cursor: pointer;
}

.picker__step {
    display: grid;
    place-items: center;
    border: 0;
    background: var(--paper);
    color: var(--ink-2);
    cursor: pointer;
}

.picker__step:hover {
    background: var(--wash);
    color: var(--ink);
}

.picker__step svg,
.icon-button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.segmented {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 3px;
    gap: 3px;
    border: 1px solid var(--rule-2);
    border-radius: var(--radius);
    background: var(--paper);
}

.segmented button {
    height: 32px;
    padding: 0 4px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--ink-2);
    white-space: nowrap;
    cursor: pointer;
}

.segmented button:hover {
    background: var(--wash);
}

.segmented button[aria-checked="true"] {
    background: var(--ink);
    color: var(--paper);
}

.play__actions {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 8px;
}

.play__actions .button {
    justify-content: center;
    padding: 0 10px;
}

.meters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    margin: 0;
    padding: 14px 0;
    border-top: 1px solid var(--rule-2);
    border-bottom: 1px solid var(--rule-2);
}

.meters dt {
    font-size: 0.78rem;
    color: var(--ink-3);
}

.meters dd {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.98rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.log {
    height: calc(5 * 1.7em);
    margin: 0;
    padding: 6px 10px;
    list-style: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: var(--paper);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1.7;
    color: var(--ink-3);
}

.log li {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.log li::before {
    content: attr(data-tick);
    display: inline-block;
    width: 7ch;
    color: var(--rule-2);
}

.log li:last-child {
    color: var(--ink);
}

.log__quiet {
    font-style: italic;
}

.filters {
    display: grid;
    gap: 10px;
    margin-top: 24px;
    padding: 16px;
    border: 1px solid var(--rule);
    border-radius: 8px;
    background: var(--wash);
}

.filters__row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.filters__label {
    padding-top: 5px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--ink-2);
}

.filters__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chip {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    height: 30px;
    padding: 0 11px;
    align-items: center;
    border: 1px solid var(--rule-2);
    border-radius: 99px;
    background: var(--paper);
    font-size: 0.84rem;
    color: var(--ink-2);
    cursor: pointer;
    transition: border-color 120ms var(--ease), background 120ms var(--ease);
}

.chip small {
    font-size: 0.74rem;
    color: var(--ink-3);
    font-variant-numeric: tabular-nums;
}

.chip:hover {
    border-color: var(--ink-3);
    color: var(--ink);
}

.chip[aria-pressed="true"] {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--paper);
}

.chip[aria-pressed="true"] small {
    color: #aeb6c6;
}

.filters__foot {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 104px;
}

.filters__search {
    width: min(100%, 280px);
    height: 34px;
    padding: 0 12px;
    border: 1px solid var(--rule-2);
    border-radius: var(--radius);
    background: var(--paper);
    font-size: 0.9rem;
}

.filters__clear {
    padding: 0;
    border: 0;
    background: none;
    font-size: 0.88rem;
    color: var(--accent);
    cursor: pointer;
}

.filters__clear:hover {
    text-decoration: underline;
}

.games {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.games th,
.games td {
    padding: 10px 14px;
    text-align: left;
    vertical-align: middle;
}

.games thead th {
    background: var(--wash);
    border-bottom: 1px solid var(--rule);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--ink-2);
    white-space: nowrap;
}

.games tbody tr + tr td {
    border-top: 1px solid var(--rule);
}

.games tbody tr[hidden] {
    display: none;
}

.games tbody tr:hover {
    background: #fafbfc;
}

.games td {
    color: var(--ink-2);
}

.games__game {
    display: grid;
    grid-template-columns: 72px auto;
    align-items: center;
    gap: 12px;
    min-width: 220px;
}

.games__game img {
    width: 72px;
    height: 54px;
    border-radius: 4px;
    background: var(--screen);
    object-fit: cover;
    cursor: pointer;
}

.games__name code {
    display: block;
    margin-top: 2px;
    padding: 0;
    background: none;
    font-size: 0.78rem;
    color: var(--ink-3);
}

.games__open {
    padding: 0;
    border: 0;
    background: none;
    font-weight: 600;
    text-align: left;
    color: var(--ink);
    cursor: pointer;
}

.games__open:hover {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.games__skill {
    min-width: 220px;
}

.games__controls {
    white-space: nowrap;
}

.games__empty {
    margin: 0;
    padding: 20px 16px;
    color: var(--ink-3);
}

.pager {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding: 10px 12px 10px 16px;
    border: 1px solid var(--rule);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    background: var(--paper);
    font-size: 0.88rem;
    color: var(--ink-2);
}

.pager__size {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pager__size select {
    height: 32px;
    padding: 0 8px;
    border: 1px solid var(--rule-2);
    border-radius: var(--radius);
    background: var(--paper);
    font-weight: 500;
    cursor: pointer;
}

.pager__range {
    margin-left: auto;
    font-variant-numeric: tabular-nums;
}

.pager__steps {
    display: flex;
    gap: 4px;
}

.icon-button:disabled {
    opacity: 0.4;
    cursor: default;
}

.icon-button:disabled:hover {
    background: var(--paper);
    color: var(--ink-2);
}

.table-wrap--pager {
    margin-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.game__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tag {
    padding: 0 7px;
    border-radius: 4px;
    background: var(--wash-2);
    font-size: 0.72rem;
    line-height: 1.7;
    color: var(--ink-2);
    white-space: nowrap;
}

.tag--time {
    background: var(--accent-wash);
    color: var(--accent-ink);
}

.tag--fail {
    background: #fdf1e7;
    color: #9a4d10;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 470px);
    gap: clamp(28px, 5vw, 56px);
    align-items: start;
}

.split + .split {
    margin-top: 48px;
}

.split--even {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps li {
    position: relative;
    counter-increment: step;
    padding-left: 36px;
}

.steps li + li {
    margin-top: 14px;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 2px;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--wash-2);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink);
}

.steps b {
    display: block;
    color: var(--ink);
}

.diagram svg {
    width: 100%;
    height: auto;
    padding: 18px;
    border: 1px solid var(--rule);
    border-radius: 8px;
    background: var(--wash);
    overflow: visible;
}

.diagram text {
    font-family: var(--font-sans);
}

.diagram__box {
    fill: var(--paper);
    stroke: var(--rule-2);
}

.diagram__part {
    fill: var(--wash);
    stroke: var(--rule);
}

.diagram__part--ok {
    fill: #e8f6ee;
    stroke: #b7e1c6;
}

.diagram__head {
    font-size: 14px;
    font-weight: 600;
    fill: var(--ink);
}

.diagram__sub {
    font-size: 12px;
    fill: var(--ink-3);
}

.diagram__label {
    font-size: 13px;
    fill: var(--ink-2);
}

.diagram__screen {
    fill: var(--screen);
}

.diagram__px--a {
    fill: #58a6ff;
}

.diagram__px--b {
    fill: #f2b63e;
}

.diagram__px--c {
    fill: #ea5656;
}

.diagram__flow {
    fill: none;
    stroke: var(--ink-2);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.diagram__flow--in {
    stroke: var(--accent);
}

.diagram__link {
    fill: none;
    stroke: var(--ink-3);
    stroke-width: 1.25;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.diagram__dash {
    fill: none;
    stroke: var(--ink-3);
    stroke-dasharray: 3 3;
}

.code {
    margin-top: 16px;
    border: 1px solid var(--rule);
    border-radius: 8px;
    background: var(--wash);
    overflow: hidden;
}

.code__bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px 6px 16px;
    border-bottom: 1px solid var(--rule);
    font-size: 0.82rem;
    color: var(--ink-3);
}

.code__copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: none;
    font-size: 0.82rem;
    color: var(--ink-2);
    cursor: pointer;
}

.code__copy svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linejoin: round;
}

.code__copy:hover {
    border-color: var(--rule-2);
    background: var(--paper);
}

.code pre {
    margin: 0;
    padding: 16px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.7;
    tab-size: 4;
}

.code pre code {
    padding: 0;
    background: none;
    font-size: 1em;
}

.code__c {
    color: var(--ink-3);
}

.findings b {
    color: var(--ink);
}

.footer {
    margin-top: clamp(64px, 10vw, 112px);
    border-top: 1px solid var(--rule);
    background: var(--wash);
}

.footer__inner {
    max-width: var(--wide);
    margin: 0 auto;
    padding: 24px var(--pad) 40px;
    display: flex;
    justify-content: space-between;
    gap: 8px 24px;
    flex-wrap: wrap;
    font-size: 0.86rem;
    color: var(--ink-3);
}

.footer p {
    margin: 0;
}

.footer a {
    color: var(--ink-2);
}

.detail {
    width: min(920px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 24px 64px rgba(16, 18, 26, 0.28);
    overflow: auto;
}

.detail[open] {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

.detail::backdrop {
    background: rgba(16, 18, 26, 0.5);
}

.detail__media {
    display: grid;
    align-items: center;
    background: var(--screen);
}

.detail__media video {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--screen) center / cover no-repeat;
}

.detail__body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px 24px 24px;
}

.detail__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.detail__title {
    font-size: 1.4rem;
}

.detail__cmd {
    margin: 4px 0 0;
}

.detail__nav {
    display: flex;
    gap: 4px;
    flex: none;
}

.icon-button {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--ink-2);
    cursor: pointer;
}

.icon-button:hover {
    background: var(--wash);
    color: var(--ink);
}

.detail__desc {
    margin: 0;
    color: var(--ink-2);
}

.detail__facts {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 14px 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    font-size: 0.9rem;
}

.detail__facts div {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 12px;
}

.detail__facts dt {
    color: var(--ink-3);
}

.detail__facts dd {
    margin: 0;
}

.detail__facts .game__tags {
    margin: 0;
}

.detail .button {
    align-self: flex-start;
    margin-top: auto;
}

@media (max-width: 900px) {
    .play {
        grid-template-columns: minmax(0, 1fr);
    }

    .play__panel {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 18px 20px;
    }


    .promo {
        grid-template-columns: minmax(0, 1fr);
        padding: 24px;
    }

    .promo__shots {
        display: none;
    }

    .split,
    .split--even,
    .systems,
    .modes,
    .reasons,
    .challenge__list {
        grid-template-columns: minmax(0, 1fr);
    }

    .diagram {
        max-width: 520px;
    }

    .detail[open] {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 720px) {
    body {
        font-size: 16px;
    }

    .field--log {
        display: none;
    }

    .paces {
        --label: 76px;
    }

    .paces__label small {
        display: none;
    }

    .system__scores dd {
        font-size: 1.25rem;
    }







    .games__inspired,
    #catalog thead th:nth-child(2) {
        display: none;
    }

    .games__inspired-inline {
        display: block;
        margin-top: 2px;
        font-size: 0.78rem;
        line-height: 1.35;
        color: var(--ink-2);
    }



    .topbar__nav {
        -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
        mask-image: linear-gradient(90deg, #000 85%, transparent);
    }

    .topbar__inner {
        flex-wrap: wrap;
        height: auto;
        padding-top: 10px;
        gap: 6px 16px;
    }

    .topbar__brand {
        margin-right: auto;
    }

    .topbar__nav {
        order: 4;
        flex: 1 0 100%;
        margin: 0 calc(var(--pad) * -1);
        padding: 0 calc(var(--pad) - 9px) 6px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .topbar__nav::-webkit-scrollbar {
        display: none;
    }

    .facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .facts__item + .facts__item {
        border-left: 0;
    }

    .facts__item:nth-child(even) {
        border-left: 1px solid var(--rule);
    }

    .facts__item:nth-child(n + 3) {
        border-top: 1px solid var(--rule);
    }

    .facts dd {
        font-size: 1.5rem;
    }

    .news {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }

    .mosaic {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 2px;
        padding: 2px;
    }

    .mosaic__tile {
        border-radius: 0 !important;
    }

    .play {
        padding: 10px;
    }

    .play__panel {
        grid-template-columns: minmax(0, 1fr);
    }

    .filters__row {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
    }

    .filters__foot {
        padding-left: 0;
    }

    .games {
        min-width: 0;
    }

    .games__skill,
    .games__controls {
        display: none;
    }

    .games__game {
        grid-template-columns: 56px auto;
        min-width: 180px;
    }

    .games__game img {
        width: 56px;
        height: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
    }
}
