* {
  box-sizing: border-box;
}
html {
  color-scheme: light;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.45 var(--font, Arial, sans-serif);
}
h1,
h2,
h3,
p,
dl,
figure {
  margin: 0;
}
h1 {
  font-size: clamp(1.6rem, 3vw, 2.7rem);
  line-height: 1.12;
}
h2 {
  font-size: 1.16rem;
  line-height: 1.25;
}
h3 {
  font-size: 1.04rem;
  line-height: 1.3;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input,
textarea,
summary {
  font: inherit;
}
button,
.button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--on, #fff);
  cursor: pointer;
  white-space: normal;
  line-height: 1.3;
}
button:disabled {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}
button.secondary {
  background: transparent;
  color: var(--ink);
}
input[type="search"] {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}
:focus-visible {
  outline: 3px solid var(--focus, #b04715);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.skip {
  position: absolute;
  top: -90px;
  left: 12px;
  padding: 12px;
  background: white;
  z-index: 20;
}
.skip:focus {
  top: 0;
}
img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  padding: 0;
}
header.site-head {
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 1.35rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.035em;
}
nav {
  display: flex;
  gap: 4px 20px;
  flex-wrap: wrap;
}
nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
main {
  max-width: 1160px;
  margin: auto;
  padding: 24px 28px 40px;
  min-width: 0;
}
.intro {
  margin-bottom: 20px;
}
.intro p {
  margin-top: 8px;
  color: var(--muted);
  max-width: 64ch;
}
.site-foot {
  max-width: 1160px;
  margin: auto;
  border-top: 1px solid var(--line);
  padding: 20px 28px;
}
.site-foot p {
  max-width: 75ch;
  color: var(--muted);
  margin-top: 12px;
}
.game-item {
  min-width: 0;
}
.game-link {
  height: 100%;
  display: block;
  text-decoration: none;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.game-link:hover {
  background: var(--wash);
  color: var(--ink);
}
.art {
  overflow: hidden;
  background: var(--wash);
}
.game-copy {
  min-width: 0;
}
.game-copy p {
  font-size: 16px;
  color: var(--muted);
}
.tag {
  text-transform: capitalize;
  font-size: 16px;
  color: var(--muted);
}
.game-copy h3 {
  margin: 3px 0;
}
.game-action {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 5px;
}
.batch {
  margin: 0 0 20px;
  padding: 12px 0 16px;
  border-bottom: 1px solid var(--line);
}
.batch-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.batch-head span {
  color: var(--muted);
}
.batch-foot {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}
.batch-foot p {
  color: var(--muted);
}
.game-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
}
.search-region {
  margin: 0 0 4px;
  padding: 0 0 3px;
  border-bottom: 1px solid var(--line);
}
.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 6px;
}
.search-state {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 4px;
}
.search-state p {
  font-size: 16px;
  color: var(--muted);
}
.search-state button {
  background: transparent;
  color: var(--ink);
  border: 0;
  padding: 4px;
  min-height: 44px;
}
.text-block {
  max-width: 760px;
  padding: 18px 0;
  margin: 0 0 14px;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.text-block h2 {
  margin-bottom: 10px;
}
.text-block p + p {
  margin-top: 10px;
}
.crumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  margin-bottom: 14px;
}
.game-title {
  margin-bottom: 16px;
  max-width: 900px;
}
.game-title p {
  margin-top: 8px;
}
.player {
  background: var(--stage, #1b2828);
  color: #fff;
  margin-bottom: 24px;
}
.play-surface {
  aspect-ratio: 16/9;
  width: 100%;
  position: relative;
  background: #101619;
}
.local-preview {
  width: 100%;
  height: 100%;
}
.play-surface iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.player-tools {
  padding: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.player-tools button {
  background: #f5f5ee;
  color: #18272a;
  border-color: #f5f5ee;
}
.player-tools button:disabled {
  color: #c1cbc5;
  background: transparent;
  border-color: #77857e;
}
.player-status {
  padding: 0 12px 12px;
  font-size: 16px;
}
.player:fullscreen {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom)
    env(safe-area-inset-left);
}
.player:fullscreen .play-surface {
  flex: 1;
  min-height: 0;
  aspect-ratio: auto;
}
.player:fullscreen .player-tools {
  flex: none;
  padding: 6px;
}
.player:fullscreen .player-status {
  flex: none;
  padding-bottom: 4px;
}
.related {
  margin-top: 24px;
}
.related h2 {
  margin-bottom: 12px;
}
dialog {
  padding: 0;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: var(--paper);
  margin: 10px 10px 10px auto;
  width: min(480px, calc(100vw - 20px));
  max-width: calc(100vw - 20px);
  max-height: calc(100dvh - 20px);
}
dialog::backdrop {
  background: #17252bb3;
}
.dialog-layout {
  max-height: calc(100dvh - 22px);
  display: flex;
  flex-direction: column;
}
.dialog-heading {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.dialog-body {
  padding: 12px 16px;
  overflow-y: auto;
  min-height: 0;
}
.dialog-body > p {
  margin-bottom: 12px;
  color: var(--muted);
}
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
}
details {
  border-top: 1px solid var(--line);
}
summary {
  cursor: pointer;
  min-height: 44px;
  padding: 10px 0;
  font-weight: 700;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
legend {
  margin-bottom: 8px;
}
.radio-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 4px;
  font-size: 16px;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.radio-choice input {
  flex: none;
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}
.storage-status {
  min-height: 24px;
  color: var(--muted);
}
textarea {
  display: block;
  width: 100%;
  min-height: 90px;
  max-width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: white;
}
.field {
  display: block;
  margin-bottom: 12px;
}
.field span {
  display: block;
  margin-bottom: 5px;
}
.minor-nav {
  margin: 12px 0;
}
.minor-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.unavailable {
  background: var(--wash);
}
@media (max-width: 650px) {
  header.site-head {
    padding: 12px 16px;
    display: block;
  }
  .site-head nav {
    margin-top: 5px;
    gap: 4px 16px;
  }
  main {
    padding: 18px 16px 28px;
  }
  .site-foot {
    padding: 18px 16px;
  }
  .intro {
    margin-bottom: 16px;
  }
  .game-list {
    gap: 10px 12px;
  }
  .search-form button {
    padding-inline: 8px;
  }
  .batch {
    margin-bottom: 18px;
    padding-bottom: 14px;
  }
  .player-tools {
    gap: 6px;
    padding: 8px;
  }
  .player-tools button {
    padding-inline: 9px;
  }
  dialog {
    margin: 8px;
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
  }
  .dialog-layout {
    max-height: calc(100dvh - 18px);
  }
  .dialog-body,
  .dialog-heading {
    padding: 10px 12px;
  }
}
@media (max-width: 359px) {
  main {
    padding-inline: 12px;
  }
  .search-form {
    gap: 4px;
  }
  .search-form button {
    padding-inline: 6px;
  }
}
.local-preview .preview-art {
  width: 100%;
  height: 100%;
}
:root {
  --paper: #eff3f0;
  --ink: #203c35;
  --muted: #526e62;
  --accent: #2c6353;
  --line: #b4c8bd;
  --wash: #e0ebe3;
  --stage: #18362e;
}
.site-head {
  max-width: 1400px;
  margin: auto;
}
.brand {
  font-variant: small-caps;
  letter-spacing: 0.015em;
}
main {
  max-width: 1280px;
}
.first-inspection {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 1.1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.candidate-pair {
  display: grid;
  gap: 14px;
}
.game-link {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 10px;
  padding: 10px;
  background: white;
  border-top: 2px solid var(--accent);
}
.art {
  height: 92px;
}
.excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.candidate-pair .game-link {
  display: block;
}
.candidate-pair .art {
  height: 115px;
  margin-bottom: 8px;
}
.candidate-pair .excerpt {
  display: none;
}
.candidate-pair .game-copy h3 {
  min-height: 44px;
}
.game-action {
  padding: 4px 0;
}
.inspector {
  background: #dce9df;
  padding: 18px;
  border-top: 5px solid var(--accent);
  overflow-wrap: anywhere;
}
.inspector p {
  margin-top: 12px;
}
.inspector a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.inspect-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(230px, 1fr);
  gap: 24px;
  align-items: start;
}
.inspect-layout .game-list {
  gap: 12px;
}
.inspect-layout .game-link {
  display: block;
}
.inspect-layout .art {
  height: 92px;
  margin-bottom: 6px;
}
.inspect-layout .excerpt {
  display: none;
}
.inspect-layout .game-copy h3 {
  min-height: 44px;
}
.player {
  border-top: 8px solid var(--accent);
}
@media (max-width: 850px) {
  .first-inspection {
    gap: 14px;
    grid-template-columns: 1fr 1fr;
  }
  .first-inspection .inspector {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .inspect-layout {
    display: block;
  }
  .candidate-pair .art {
    height: 92px;
  }
}
@media (max-width: 650px) {
  .first-inspection {
    gap: 12px;
  }
  .candidate-pair {
    gap: 12px;
  }
  .candidate-pair .game-link {
    padding: 6px;
  }
  .candidate-pair .art {
    height: 86px;
  }
  .candidate-pair .tag {
    display: none;
  }
  .candidate-pair h3 {
    font-size: 16px;
  }
  .game-action button {
    width: 100%;
  }
  .game-link {
    display: block;
    padding: 6px;
  }
  .art {
    height: 86px;
  }
  .excerpt {
    display: none;
  }
  .game-copy h3 {
    font-size: 16px;
  }
  .game-copy .tag {
    font-size: 16px;
  }
  .inspector {
    margin-top: 12px;
  }
}

.art {
  position: relative;
}
.art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  padding: 0;
}
.preview-art {
  width: 100%;
  height: 100%;
}
.preview-art img {
  width: 100%;
  height: 100%;
}
@media (min-width: 651px) {
  .related .art {
    height: auto;
    min-height: 92px;
    align-self: stretch;
  }
}

@media (max-width: 650px) {
  .inspect-layout .art {
    height: 64px;
  }
  .inspect-layout .tag {
    display: none;
  }
  .inspect-layout .game-link {
    padding: 6px;
  }
  .inspect-layout .game-action {
    padding: 2px 0;
  }
}

.game-list > .game-item:last-child:nth-child(odd) {
  grid-column: 1/-1;
}

.game-item > .game-link {
  height: auto;
}
.candidate-pair .game-item {
  display: flex;
  flex-direction: column;
}
.candidate-pair .game-link {
  flex: 1;
}

/* Content-first layout: identity/actions, one-row nav and real image/title entries. */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
header.site-head {
  display: block;
  padding: 0 16px;
}
.identity-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
}
.identity-row .brand {
  flex: 1;
  min-width: 0;
  font-size: 1.15rem;
}
.search-toggle,
.hierarchy-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  flex: none;
  border: 0;
  background: transparent;
  color: inherit;
}
header nav[aria-label="Main navigation"] {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  margin: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  white-space: nowrap;
  max-width: 100%;
}
header nav[aria-label="Main navigation"] a {
  flex: 0 0 auto;
  min-height: 44px;
  font-size: 16px;
}
main {
  padding-top: 12px;
}
.search-state {
  margin: 0 0 8px;
  min-height: 44px;
}
.list-tail {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin: 10px 0 16px;
}
.list-tail:has(> button[hidden]):not(:has(.group-selection)) {
  display: none;
}
.catalogue-list {
  margin: 0;
}
.catalogue-list .game-item {
  min-width: 0;
}
.game-link {
  border-radius: 0;
}
.game-link h2,
.game-link h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.3;
  margin: 0;
  min-height: 0;
}
.game-copy {
  min-width: 0;
}
.art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  padding: 0;
}
.search-label {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
}
#game-query {
  width: 100%;
  min-height: 44px;
  font-size: 16px;
  margin-bottom: 12px;
}
#filters .dialog-layout {
  max-height: calc(100dvh - 24px);
}
#filters .dialog-body {
  overflow: auto;
  min-height: 0;
}
.compact-intro h1 {
  font-size: 1.1rem;
}
[hidden] {
  display: none !important;
}
@media (max-height: 480px) {
  header nav[aria-label="Main navigation"] {
    max-height: 44px;
  }
  .identity-row {
    min-height: 48px;
  }
}

header.site-head {
  border-top: 3px solid var(--accent);
}
.identity-row .brand {
  font-variant: small-caps;
}
.catalogue-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.game-link {
  display: block;
}
.game-link .art {
  height: auto;
  min-height: 0;
  aspect-ratio: 3/2;
  margin-bottom: 6px;
}
.first-inspection {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.first-inspection:has(.inspector:not([hidden])) {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 1fr) minmax(0, 1fr);
}
.first-inspection .inspector {
  grid-column: 2;
  grid-row: 1;
}
.first-inspection:has(.inspector:not([hidden])) .candidate-pair:last-child {
  grid-column: 3;
}
@media (max-width: 850px) {
  .first-inspection,
  .first-inspection:has(.inspector:not([hidden])) {
    grid-template-columns: 1fr;
  }
  .first-inspection .inspector,
  .first-inspection:has(.inspector:not([hidden])) .candidate-pair:last-child {
    grid-column: 1;
    grid-row: auto;
  }
  .candidate-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.inspect-layout:not(:has(.inspector:not([hidden]))) {
  grid-template-columns: minmax(0, 1fr);
}
.candidate-pair .game-item,
.catalogue-list .game-item {
  display: flex;
  flex-direction: column;
}
.candidate-pair .game-link,
.catalogue-list .game-link {
  height: auto;
  flex: 1;
}
.game-action {
  flex: none;
}

/* Keep both comparison pairs and each real four-card result range compact. */
.candidate-pair .game-link .art,
#results .game-link .art {
  height: clamp(88px, 16vw, 170px);
  min-height: 0;
  aspect-ratio: auto;
}

/* Finite initial content uses real geometry and a page-wide four-row budget. */
main {
  --content-safe-bottom: env(safe-area-inset-bottom, 0px);
}
.catalogue-list {
  --content-columns: 2;
}
[data-game-items] {
  --content-columns: 2;
}
#filters {
  padding: 0;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
}
#filters .dialog-layout {
  max-height: calc(100dvh - 26px);
}
#filters .dialog-heading,
#filters .dialog-actions {
  flex: none;
}
#filters .dialog-body {
  min-height: 0;
  overflow: auto;
}
#filters .dialog-actions {
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}
#filters.filter-drawer {
  inset: 0 0 0 auto;
  margin: 0;
  width: min(420px, 100vw);
  max-width: 100vw;
  max-height: 100dvh;
  height: 100dvh;
  border-block: 0;
  border-right: 0;
}
#filters.filter-drawer .dialog-layout {
  height: 100%;
  max-height: 100dvh;
}
#filters.filter-drawer .dialog-body {
  flex: 1;
}

/* Current rules8-12: source-fixed columns, finite height-aware rows, local cover preview. */
.game-link {
  border-radius: 6px;
}
.art,
.notice-image,
.result-image {
  border-radius: 5px;
}
.game-link h2,
.game-link h3 {
  min-height: 2.6em;
  height: 2.6em;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
button {
  border-radius: 6px;
}
#filters.filter-center {
  border-radius: 12px;
}
#filters.filter-drawer {
  border-radius: 12px 0 0 12px;
}
header nav[aria-label="Main navigation"] {
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
header nav[aria-label="Main navigation"]::-webkit-scrollbar {
  height: 3px;
}
.text-block,
.short-note,
.reading-section {
  padding-block: 16px;
  margin-bottom: 16px;
}
.local-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.local-preview .preview-art,
.local-preview > .art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  margin: 0;
  padding: 0;
}
.local-preview img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  padding: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .game-link,
  button {
    transition:
      background-color 0.15s,
      color 0.15s,
      border-color 0.15s;
  }
}
.first-inspection.first-inspection {
  display: block;
}
.candidate-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.catalogue-list,
.discovery-section .game-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  --content-columns: 2;
  gap: 12px;
}
.candidate-pair .game-link,
.catalogue-list .game-link,
.discovery-section .game-link {
  display: block;
  padding: 6px;
}
.candidate-pair .game-link .art,
#results .game-link .art,
.discovery-section .game-link .art {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 3/2;
  margin: 0 0 8px;
}
@media (orientation: landscape) and (max-height: 480px) {
  header.site-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
  }
  header.site-head .identity-row {
    flex: none;
    min-height: 44px;
  }
  header.site-head .brand {
    font-size: 1.05rem;
  }
  header.site-head nav[aria-label="Main navigation"] {
    flex: 1;
    min-width: 0;
    max-width: none;
    margin: 0;
    gap: 12px;
  }
  main {
    padding-top: 4px;
  }
  .candidate-pair .game-link,
  .catalogue-list .game-link,
  .discovery-section .game-link {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    padding: 4px;
  }
  .candidate-pair .game-link .art,
  #results .game-link .art,
  .discovery-section .game-link .art {
    width: 88px;
    height: clamp(44px, 16dvh, 64px);
    min-height: 0;
    aspect-ratio: auto;
    margin: 0;
  }
}

/* 2026-10 refinement: quiet chrome, reliable title disclosure and finite groups. */
header.site-head,
.header {
  border-bottom-width: 1px;
}
.identity-row {
  min-height: 46px;
}
header nav[aria-label="Main navigation"] a {
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  min-height: 40px;
}
header nav[aria-label="Main navigation"] {
  scrollbar-width: none;
  gap: 18px;
}
header nav[aria-label="Main navigation"]::-webkit-scrollbar {
  display: none;
}
.site-foot nav,
.site-footer nav {
  gap: 0 18px;
}
.site-foot nav a,
.site-footer nav a {
  font-size: 14px;
  font-weight: 400;
}
main {
  padding-top: 8px;
}
button {
  border-radius: 4px;
}
.list-tail button,
.game-action button {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.game-action {
  padding: 0;
}
.game-action button {
  min-height: 44px;
  width: auto;
  padding: 4px 10px;
  font-size: 14px;
  border: 0;
}
a.game-link {
  text-decoration: none;
}
a.game-link:hover {
  text-decoration: none;
}
.game-link h2,
.game-link h3 {
  font-weight: 500;
}
.detail-toolbar {
  display: flex;
  align-items: center;
  height: 44px;
  gap: 2px;
  min-width: 0;
  position: relative;
}
.detail-toolbar .detail-back {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-size: 21px;
}
.detail-toolbar h1 {
  font: 500 14px/1.3 var(--font, Arial, sans-serif);
  letter-spacing: 0;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.title-disclose {
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font:
    16px Arial,
    sans-serif;
}
.title-note {
  position: absolute;
  top: 42px;
  right: 0;
  left: 0;
  z-index: 4;
  padding: 12px 44px 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px #0002;
  overflow-wrap: anywhere;
  font-size: 16px;
}
.title-note button {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}
.player {
  border-top: 0;
  margin-top: 0;
}
.player-tools {
  gap: 4px;
  padding: 6px 8px;
}
.player-tools button {
  min-height: 44px;
  font-size: 14px;
  padding: 6px 9px;
}
.player-status {
  padding: 0 10px 10px;
  font-size: 14px;
}
@media (min-width: 768px) {
  .detail-toolbar h1 {
    font-size: 15px;
  }
}
[data-list-discovery] {
  margin: 18px 0 16px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
[data-list-discovery] h2 {
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 10px;
}
.supplement-items {
  display: grid;
  gap: 10px;
}
[data-list-discovery] .game-link {
  height: 100%;
  border: 0;
  border-radius: 0;
}
[data-list-discovery] .game-copy {
  display: block;
  min-width: 0;
}
[data-list-discovery] .game-link h3 {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
  min-height: 2.7em;
  height: 2.7em;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
[data-list-discovery] .art,
[data-list-discovery] .result-image {
  position: relative;
  overflow: hidden;
  margin: 0;
  min-height: 0;
}
[data-list-discovery] img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
[data-list-discovery] .supplement-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  text-transform: capitalize;
  margin-bottom: 4px;
}
.whole-note {
  display: block;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  text-decoration: none;
  margin-top: 12px;
}
.whole-note h2 {
  font-size: 16px;
  margin: 0 0 6px;
}
.whole-note p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}
.whole-note .note-cta {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  text-decoration: underline;
}
#filters .dialog-heading h2 {
  font-size: 17px;
}
#filters .dialog-heading button,
#filters .dialog-actions button {
  min-height: 44px;
}
#filters .radio-choice {
  font-size: 16px;
}
#filters fieldset {
  display: grid;
  row-gap: 8px;
}
#filters .radio-choice {
  padding-block: 4px;
}
#filters .dialog-actions {
  flex-wrap: nowrap;
  justify-content: flex-end;
}
@media (orientation: landscape) and (max-height: 480px) {
  .detail-toolbar {
    height: 44px;
  }
}

/* Inspection deck: roomy landscape art with a separate quiet Inspect action. */
.first-inspection {
  display: block;
}
.candidate-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 12px;
}
.candidate-pair .game-link,
.catalogue-list .game-link,
.discovery-section .game-link {
  padding: 0;
  border: 0;
  background: transparent;
}
.candidate-pair .game-link .art,
.catalogue-list .game-link .art,
.discovery-section .game-link .art {
  aspect-ratio: 16/10;
  margin-bottom: 8px;
}
.candidate-pair .game-copy,
.catalogue-list .game-copy,
.discovery-section .game-copy {
  padding: 0 4px;
}
.game-item {
  position: relative;
}
.game-action {
  justify-content: flex-start;
  margin: 2px 0 0;
}
.game-action button {
  width: auto;
  padding: 2px 6px;
}
.inspector {
  border-top: 1px solid var(--accent);
  padding: 12px 14px;
  margin: 12px 0;
}
.inspect-layout {
  display: block;
}
.supplement-items {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
[data-list-discovery] .game-link {
  display: block;
  padding: 0 0 8px;
  background: var(--wash);
}
[data-list-discovery] .art {
  aspect-ratio: 16/9;
}
[data-list-discovery] .game-copy {
  padding: 8px 12px 0;
}
@media (min-width: 960px) {
  .candidate-pair,
  .catalogue-list,
  .discovery-section .game-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    --content-columns: 4;
  }
}

.inspector {
  padding: 0;
}
.inspection-preview {
  display: block;
  padding: 12px 14px;
  color: inherit;
  text-decoration: none;
}
.inspection-preview:hover {
  text-decoration: none;
}
.inspection-preview .note-cta {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  text-decoration: underline;
}
.inspector > button {
  margin: 0 8px 8px;
  background: transparent;
  color: var(--ink);
  border: 0;
}

/* Count ancestor spacing in the detail budget. */
main:has(> .detail-toolbar) {
  padding-top: 0;
}
.detail-toolbar {
  margin: 0;
}
.site-head .identity-row {
  min-height: 44px;
}
.site-head nav[aria-label="Main navigation"] {
  margin: 0;
}
