/* Static pages that seo.py writes (games/, each game, the 404). Tokens, fonts and the registration mark come
   from the app's stylesheet, loaded first; this file only lays the pages out in the same system. */
.gp { line-height: 1.5; }
.gp-top, .gp-main, .gp-foot { max-width: 1120px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.gp-top {
  position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  height: var(--bar-h); background: var(--bg); border-bottom: 1px solid var(--line); max-width: none;
}
.gp-brand { display: inline-flex; align-items: center; gap: 10px; padding: 6px 0; font-weight: 700; font-stretch: 112%; text-decoration: none; }
.gp-nav { position: relative; padding: 6px 0; font-weight: 600; font-size: var(--t-body); text-decoration: none; }
.gp-nav::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--fg); scale: 0 1; transform-origin: left; transition: scale 0.2s var(--ease); }
@media (hover: hover) and (pointer: fine) { .gp-nav:hover::after { scale: 1 1; } }
.gp-nav:focus-visible::after { scale: 1 1; }
.gp-main { display: block; padding-top: clamp(20px, 3vw, 36px); padding-bottom: clamp(40px, 5vw, 72px); }
.gp-crumbs { font-size: var(--t-body); color: var(--muted); margin-bottom: 24px; overflow-wrap: anywhere; letter-spacing: 0.02em; }
.gp-crumbs a { color: var(--muted); }
.gp h1 {
  font-size: var(--t-bold); font-weight: 780; font-stretch: 112%; line-height: 1.1;
  letter-spacing: -0.01em; margin: 8px 0 16px; overflow-wrap: anywhere; text-wrap: balance;
}
.gp h2 { font-size: var(--t-bold); font-weight: 700; font-stretch: 110%; letter-spacing: -0.015em; line-height: 1.15; margin: 0 0 8px; }

.gp-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center; margin-bottom: 32px; }
.gp-cover { width: clamp(160px, 18vw, 220px); height: auto; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); border-top: 4px solid var(--plate, var(--line)); background: var(--track); }
.gp-lead { font-size: var(--t-body); line-height: 1.4; margin: 0 0 12px; max-width: 46ch; text-wrap: pretty; }
.gp-about { color: var(--muted); margin: 0; font-size: var(--t-body); }

.gp-emus { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); margin-bottom: 40px; }
.gp-emu { background: var(--panel); border: 1px solid var(--line); padding: 18px; min-width: 0; border-top: 4px solid var(--plate, var(--line)); }
.gp-emu.gp-none { border-top-color: var(--line); color: var(--muted); }
.gp-emu.gp-none h2 { color: var(--fg); }
.gp-status { font-weight: 700; font-stretch: 110%; font-size: var(--t-body); margin: 0 0 12px; }
.gp-ok .gp-status { color: var(--ok); }
.gp-emu dl { margin: 0 0 12px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.gp-emu dl div { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.gp-emu dt { color: var(--muted); font-size: var(--t-body); }
.gp-emu dd { margin: 0; font-size: var(--t-body); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.gp-emu blockquote { margin: 0 0 12px; padding: 2px 0 2px 12px; border-left: 3px solid var(--plate, var(--line)); color: var(--muted); font-size: var(--t-body); overflow-wrap: anywhere; }
.gp-emu p:last-child { margin-bottom: 0; }
.gp-emu a { display: inline-block; padding: 3px 0; }

.gp-text { max-width: 68ch; margin-bottom: 36px; }
.gp-text h2 { font-size: var(--t-bold); font-weight: 760; font-stretch: 112%; letter-spacing: -0.01em; line-height: 1; margin-bottom: 14px; }
.gp-related { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 0 var(--gutter); border-top: 1px solid var(--line); }
.gp-related li { border-bottom: 1px solid var(--line); }
.gp-related a { display: block; padding: 10px 0; font-weight: 600; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .gp-related a:hover { text-decoration: underline; } }

/* A to Z index: tiles topped with their emulator's colour; pointing at one inks its border. */
.gp-index { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.gp-index li {
  position: relative; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--plate, var(--line)); padding: 12px 14px;
  display: grid; grid-template-columns: 72px minmax(0, 1fr); align-content: start; gap: 8px 14px; min-width: 0; transition: border-color 0.2s;
}
.gp-thumb {
  grid-row: span 4; width: 72px; height: 72px; object-fit: cover; display: grid; place-items: center;
  background: color-mix(in srgb, var(--plate, var(--line)) 22%, var(--track)); font-weight: 760; font-stretch: 112%;
}
.gp-index a { font-weight: 650; overflow-wrap: anywhere; text-decoration: none; }
.gp-index a::after { content: ''; position: absolute; inset: 0; }
@media (hover: hover) and (pointer: fine) {
  .gp-index li:hover { border-color: var(--fg); border-top-color: var(--plate); }
  .gp-index li:hover a { text-decoration: underline; text-decoration-color: var(--plate); text-decoration-thickness: 2px; }
}
.gp-index li:has(a:focus-visible) { outline: 2px solid var(--accent-ui); outline-offset: 3px; }
.gp-index a:focus-visible { outline: none; }
.gp-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.gp-history .tablebox { margin-top: 14px; max-height: none; }
/* gta-6/: the readiness bar and its milestones. */
.gp-ready { margin-top: 36px; }
.gp-meter { display: block; width: 100%; height: 12px; margin: 4px 0 14px; appearance: none; border: 0; background: var(--track); }
.gp-meter::-webkit-meter-bar { background: var(--track); border: 0; border-radius: 0; height: 12px; }
.gp-meter::-webkit-meter-optimum-value, .gp-meter::-webkit-meter-suboptimum-value, .gp-meter::-webkit-meter-even-less-good-value { background: var(--fg); }
.gp-meter::-moz-meter-bar { background: var(--fg); }
.gp-ready h3 { margin: 22px 0 6px; font-size: var(--t-body); color: var(--muted); }
.gp-steps { list-style: none; margin: 0; padding: 0; }
.gp-chart { display: block; width: 100%; max-width: 520px; height: auto; margin: 8px 0 16px; overflow: visible; }
.gp-chart .gp-grid { stroke: var(--line); stroke-width: 1; }
.gp-chart .gp-tick { fill: var(--muted); font-size: 16px; font-variant-numeric: tabular-nums; }
.gp-chart .gp-line { fill: none; stroke: var(--fg); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.gp-chart .gp-dots circle { fill: var(--fg); }
.gp-chart .gp-end { fill: var(--fg); font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; }
.gp-changes { padding-left: 1.2em; }
.gp-changes li { margin: 6px 0; }
.gp-steps li { display: grid; grid-template-columns: 1.2em minmax(0, 1fr) auto; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.gp-steps .done .gp-step-mark { color: var(--ok); font-weight: 700; }
.gp-steps .todo .gp-step-mark { color: var(--muted); }
.gp-why { display: block; color: var(--muted); margin-top: 2px; }
.gp-sources { padding-left: 1.2em; }
.gp-sources li { margin: 4px 0; }
.tablebox td .gp-meta { display: block; margin-top: 2px; }
.gp-history td { vertical-align: top; }
.gp-history td:last-child, .gp-history th:last-child { text-align: right; white-space: nowrap; }
.gp-history td:first-child { white-space: nowrap; }
/* Phones: each report becomes two lines (date, emulator, result / system, FPS) instead of a squeezed table. */
@media (max-width: 560px) {
  .gp-history thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  /* The system line spans the flexible column, so long hardware names wrap instead of widening the row. */
  .gp-history tr { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .gp-history td { display: block; padding: 0; border: 0; }
  .gp-history td:nth-child(3) { grid-area: 1 / 4; font-weight: 650; text-align: right; }
  .gp-history td:nth-child(4) { grid-area: 2 / 1 / 3 / 4; color: var(--muted); overflow-wrap: anywhere; }
  .gp-history td:last-child { grid-area: 2 / 4; color: var(--muted); }
}
.gp-meta { color: var(--muted); margin-top: -4px; }
.gp-chips + .gp-meta { margin-top: 0; }
.gp-tools { margin-top: 24px; }
html:not(.js) .gp-tools { display: none; }  /* theme.js sets .js before first paint, so the menu never pops in */
.gp-index li[hidden] { display: none; }
.gp-nomatch { margin-top: 18px; color: var(--muted); }
.gp-send { margin-top: 10px; color: var(--muted); }
.gp-chip { font-size: var(--t-body); font-weight: 600; font-stretch: 90%; padding: 1px 8px; border: 1px solid var(--line); color: var(--muted); font-variant-numeric: tabular-nums; }

.gp-foot { border-top: 2px solid var(--fg); padding-top: 18px; padding-bottom: 36px; color: var(--muted); font-size: var(--t-body); }
.gp-foot p { max-width: 70ch; }
.gp-foot-links { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.gp-foot-links a { display: inline-block; padding: 3px 0; color: var(--fg); }

/* 404 */
.gp-404 { padding: clamp(10px, 3vw, 40px) 0 20px; }
.press-404 {
  margin-left: -0.04em; color: var(--fg);
  font-size: var(--t-bold); font-weight: 760; font-stretch: 112%; line-height: 1.1; letter-spacing: -0.01em;
}
.gp-404 h1 { margin-top: 40px; }
.gp-404-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 24px; }
.gp-cta {
  display: inline-flex; padding: 12px 18px; background: var(--fg); color: var(--bg); font-weight: 650; text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, scale 0.16s var(--ease);
}
.gp-cta:active { scale: 0.97; }
@media (hover: hover) and (pointer: fine) { .gp-cta:hover { background: var(--accent-ui); color: #fff; } }

@media (max-width: 760px) {
  .gp-emus { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .gp-hero { grid-template-columns: 1fr; }
  .gp-cover { width: 150px; }
}
