:root {
  --ink: #181818;
  --paper: #fff;
  --muted: #565656;
  --red: #c91838;
  --strawberry: #ed2648;
  --wash: #fff1f3;
  --rule: 2px solid var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  font-size: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: 4px; }
button, input { font: inherit; }
button, .button { min-height: 44px; border: var(--rule); border-radius: 0; background: var(--paper); color: var(--ink); padding: 8px 16px; font-weight: 700; cursor: pointer; }
button:hover, .button:hover { background: var(--wash); }
button:disabled { color: #666; cursor: default; background: #f0f0f0; }
.primary, button.primary { background: var(--red); color: #fff; }
.primary:hover, button.primary:hover { background: #a90e2b; }
.button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
:focus-visible { outline: 3px solid #174ea6; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
h1 { font-size: clamp(28px, 3.2vw, 46px); line-height: 1.08; letter-spacing: -.045em; margin-bottom: 12px; }
h2 { font-size: 26px; line-height: 1.15; letter-spacing: -.025em; margin-bottom: 14px; }
h3 { font-size: 20px; line-height: 1.2; }
p { margin-bottom: 16px; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip { position: fixed; z-index: 20; left: 12px; top: -100px; padding: 12px; background: white; border: var(--rule); }
.skip:focus { top: 10px; }
.site-header { max-width: 1380px; margin: 0 auto; padding: 22px 42px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: var(--rule); }
.brand { display: flex; align-items: center; flex-shrink: 0; gap: 8px; font-size: 26px; line-height: 1; font-weight: 900; letter-spacing: -1.2px; text-decoration: none; min-height: 44px; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; background: var(--strawberry); border: var(--rule); color: #fff; font-size: 28px; }
.brand-dot { color: var(--red); margin-left: -8px; }
.site-header nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; }
.site-header nav a { font-weight: 700; min-height: 44px; display: flex; align-items: center; text-decoration: none; }
.site-header nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 3px; }
main { max-width: 1280px; margin: 0 auto; padding: 30px 42px 48px; min-width: 0; }
.page-heading { padding: 0 0 22px; }
.page-heading p { color: var(--muted); margin: 0; }
.two-streams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.content-block { margin: 0 0 24px; min-width: 0; }
.stream-block { border: var(--rule); margin-bottom: 0; }
.stream-label { display: flex; justify-content: space-between; align-items: center; padding: 9px 18px; background: var(--ink); color: #fff; font-weight: 700; }
.stream-1 .stream-label { background: var(--strawberry); color: var(--ink); }
.home-art { display: block; border-bottom: var(--rule); }
.art { display: block; position: relative; background: #f1f1ee; }
.art img { width: 100%; height: 100%; object-fit: cover; }
.home-art .art { aspect-ratio: 2.1; }
.image-fallback { display: flex; align-items: center; justify-content: center; min-height: 80px; padding: 12px; background: #eee; color: #444; text-align: center; overflow-wrap: anywhere; }
.home-copy { padding: 18px 20px; }
.cue { font-weight: 700; color: var(--red); margin-bottom: 6px; }
.home-copy h2 { margin-bottom: 10px; }
.home-copy h2 a { text-decoration: none; }
.home-copy h2 a:hover { text-decoration: underline; }
.home-copy > p:not(.cue) { max-width: 49ch; }
.home-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid #bfbfbf; padding-top: 8px; }
.home-bottom a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; }
.directory-bridge { padding: 22px 0; border-top: var(--rule); border-bottom: var(--rule); margin-top: 28px; }
.link-pair { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.link-pair > a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.catalogue-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 20px; }
.catalogue-heading h1 { margin: 0; }
.catalogue-heading > a { min-height: 44px; display: inline-flex; align-items: center; }
.search-region { border: var(--rule); padding: 4px 12px 0; margin-bottom: 4px; }
.search-line { display: flex; gap: 8px; }
#game-search { display: flex; flex: 1; min-width: 0; gap: 8px; }
input[type="search"] { width: 100%; min-width: 0; min-height: 44px; padding: 9px 12px; border: 1px solid #777; border-radius: 0; background: #fff; }
.search-summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; font-size: 16px; }
.search-summary p { margin: 0; overflow-wrap: anywhere; }
.search-summary button { min-height: 44px; min-width: 44px; border: 0; background: none; text-decoration: underline; padding: 0 4px; }
.catalogue-batch { border-top: var(--rule); border-bottom: var(--rule); padding: 14px 0 12px; }
.batch-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.batch-heading h2 { margin: 0; font-size: 18px; }
.batch-heading > span { color: var(--muted); }
.catalogue-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.catalogue-card { display: grid; grid-template-columns: 118px minmax(0, 1fr) 16px; align-items: center; gap: 14px; border: 1px solid var(--ink); padding: 10px; text-decoration: none; min-width: 0; }
.catalogue-card:hover { background: var(--wash); border-color: var(--red); }
.catalogue-card .art { aspect-ratio: 4/3; }
.catalogue-card h3 { margin: 0 0 6px; overflow-wrap: anywhere; }
.meta { color: var(--muted); font-size: 16px; margin: 0; }
.card-arrow { align-self: start; color: var(--red); font-size: 20px; }
.batch-footer { min-height: 44px; margin-top: 14px; display: flex; align-items: center; justify-content: flex-end; }
.batch-complete { min-height: 44px; display: flex; align-items: center; color: var(--muted); }
.empty-state { padding: 24px; border: var(--rule); }
.plain-game-links { padding-left: 22px; margin-bottom: 0; }
.plain-game-links a { display: inline-flex; align-items: center; min-height: 44px; }
dialog { padding: 0; border: var(--rule); width: min(540px, calc(100% - 24px)); max-height: calc(100dvh - 24px); color: var(--ink); background: #fff; overflow-y: auto; overscroll-behavior: contain; }
dialog::backdrop { background: rgb(0 0 0 / .5); }
.dialog-shell { display: flex; flex-direction: column; max-height: calc(100dvh - 28px); }
.dialog-header, .dialog-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 18px; flex-shrink: 0; background: #fff; }
.dialog-header { border-bottom: var(--rule); }
.dialog-header h2 { margin: 0; font-size: 24px; flex: 1; min-width: 150px; }
.dialog-footer { border-top: var(--rule); padding-bottom: max(14px, env(safe-area-inset-bottom)); }
.dialog-body { padding: 18px; overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
.dialog-body > p { color: var(--muted); }
details { border-top: 1px solid #aaa; margin-bottom: 12px; }
summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; min-height: 52px; gap: 2px 12px; padding: 10px 0; cursor: pointer; font-weight: 700; }
summary::after { content: '+'; grid-column: 2; grid-row: 1 / span 2; color: var(--red); font-size: 22px; }
details[open] summary::after { content: '−'; }
summary span { grid-column: 1; grid-row: 2; min-width: 0; font-weight: 400; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.radio-row { display: flex; align-items: center; min-height: 48px; gap: 12px; padding: 8px 10px; font-size: 16px; cursor: pointer; border: 1px solid #ddd; margin-bottom: 6px; }
.radio-row:has(input:checked) { border-color: var(--ink); background: var(--wash); }
.radio-row input { width: 20px; height: 20px; margin: 0; accent-color: var(--red); flex-shrink: 0; }
.radio-row span:last-child:not(:nth-child(2)) { margin-left: auto; }
.prose-block { border-top: var(--rule); padding: 20px 0; display: grid; grid-template-columns: minmax(150px, .75fr) minmax(0, 2fr); column-gap: 42px; max-width: 1060px; }
.prose-block > h2 { grid-column: 1; grid-row: 1 / span 8; font-size: 24px; }
.prose-block > :not(h2) { grid-column: 2; max-width: 69ch; }
.prose-block > :last-child { margin-bottom: 0; }
.prose-block > .button { justify-self: start; }
.game-layout { display: grid; grid-template-columns: minmax(180px, .7fr) minmax(0, 2.5fr); gap: 28px; }
.game-title-rail { border-top: 6px solid var(--strawberry); padding-top: 18px; min-width: 0; }
.game-title-rail h1 { font-size: clamp(27px, 2.8vw, 38px); overflow-wrap: anywhere; }
.game-title-rail .meta { margin-bottom: 14px; }
.game-title-rail a { min-height: 44px; display: flex; align-items: center; }
.game-stage-column { min-width: 0; }
.player-shell { display: flex; flex-direction: column; border: var(--rule); background: #fff; margin-bottom: 22px; }
.player-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 8px; border-bottom: var(--rule); }
.player-toolbar button { padding: 7px 12px; }
.stage { position: relative; width: 100%; aspect-ratio: 16/10; background: #171717; }
.stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage iframe { display: block; width: 100%; height: 100%; border: 0; position: absolute; inset: 0; }
.stage .image-fallback { position: absolute; inset: 0; color: #fff; background: #222; height: 100%; min-height: 0; }
.player-status { padding: 8px 12px; margin: 0; min-height: 40px; font-size: 16px; background: #fff; }
.player-shell:fullscreen, .player-shell:-webkit-full-screen { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0; padding: 0; }
.player-shell:fullscreen .stage, .player-shell:-webkit-full-screen .stage { flex: 1; min-height: 0; max-height: none; aspect-ratio: auto; }
.player-shell:fullscreen .player-toolbar, .player-shell:-webkit-full-screen .player-toolbar { flex-shrink: 0; padding: 4px max(6px, env(safe-area-inset-right)) 4px max(6px, env(safe-area-inset-left)); gap: 4px; }
.player-shell:fullscreen .player-status, .player-shell:-webkit-full-screen .player-status { flex-shrink: 0; min-height: 0; padding: 4px 10px max(4px, env(safe-area-inset-bottom)); font-size: 16px; }
.game-notes { border-top: var(--rule); padding: 20px 0; }
.game-notes h2 { font-size: 24px; }
.game-notes p { max-width: 72ch; overflow-wrap: anywhere; }
.source-note { color: var(--muted); }
.related-block { border-top: var(--rule); padding-top: 18px; }
.related-block h2 { font-size: 22px; }
.related-block .catalogue-grid { grid-template-columns: 1fr; }
.site-footer { border-top: var(--rule); max-width: 1380px; margin: 0 auto; padding: 24px 42px; }
.site-footer p { margin: 0 0 12px; }
.site-footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 24px; }
.site-footer nav a { min-height: 44px; display: flex; align-items: center; }
@media (max-width: 1000px) {
  .site-header { align-items: flex-start; padding: 18px 24px; gap: 14px; }
  .site-header nav { gap: 4px 16px; }
  main { padding: 26px 24px 36px; }
  .site-footer { padding: 22px 24px; }
  .catalogue-card { grid-template-columns: 90px minmax(0, 1fr); gap: 12px; }
  .card-arrow { display: none; }
  .game-layout { grid-template-columns: minmax(160px, .65fr) minmax(0, 2fr); gap: 22px; }
}
@media (max-width: 700px) {
  .site-header { display: block; padding: 14px 16px 8px; }
  .brand { font-size: 25px; }
  .site-header nav { gap: 2px 20px; margin-top: 6px; }
  .site-header nav a { font-size: 16px; }
  main { padding: 24px 16px 30px; }
  .page-heading { padding-bottom: 20px; }
  .two-streams { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .stream-label { padding: 8px 14px; }
  .home-copy { padding: 14px 16px; }
  .home-copy h2 { font-size: 25px; }
  .home-art .art { aspect-ratio: 2.35; }
  .home-bottom { gap: 4px 12px; }
  .catalogue-heading { display: block; }
  .catalogue-heading > a { margin-top: 5px; }
  .search-region { padding: 4px 8px; margin-bottom: 12px; }
  .search-line, #game-search { gap: 6px; }
  .search-line button { padding: 8px 10px; }
  input[type="search"] { padding: 8px; }
  .search-summary { padding-top: 2px; }
  .catalogue-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .catalogue-card { grid-template-columns: 82px minmax(0, 1fr); gap: 12px; padding: 8px; min-height: 86px; }
  .catalogue-card h3 { font-size: 18px; margin-bottom: 4px; }
  .catalogue-card .meta { line-height: 1.35; }
  .catalogue-batch { padding-top: 12px; margin-bottom: 20px; }
  .batch-heading { margin-bottom: 10px; }
  .batch-footer { margin-top: 10px; }
  .dialog-header, .dialog-footer { padding: 12px; }
  .dialog-body { padding: 12px; }
  .dialog-header h2 { font-size: 22px; }
  .prose-block { display: block; padding: 18px 0; margin-bottom: 18px; }
  .prose-block > h2 { margin-bottom: 14px; }
  .game-layout { display: block; }
  .game-title-rail { padding-top: 14px; padding-bottom: 16px; }
  .game-title-rail h1 { font-size: 30px; }
  .game-title-rail .meta { margin-bottom: 4px; }
  .game-title-rail p:not(.meta) { margin-bottom: 0; }
  .game-title-rail a { display: inline-flex; }
  .player-toolbar button { padding: 6px 9px; }
  .stage { aspect-ratio: 4/3; }
  .site-footer { padding: 20px 16px; }
}
@media (max-width: 359px) {
  .site-header nav { gap: 2px 14px; }
  .catalogue-card { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
  .home-copy { padding: 12px; }
  .home-bottom { display: block; }
  .home-bottom > span { display: block; }
  .search-line button { padding-left: 8px; padding-right: 8px; }
}
@media (max-height: 480px) {
  .dialog-shell { max-height: none; }
  .dialog-body { overflow-y: visible; }
}
@media (prefers-reduced-motion: no-preference) {
  a, button { transition: background-color .12s ease, color .12s ease; }
}

/* Filled preview cells and native links for complete game cards. */
.stream-block { display: block; color: inherit; text-decoration: none; }
.stream-block:hover h2 { text-decoration: underline; }
