/* Local content flow; each group contains two real listings. */
[data-round-support][hidden],
[data-round-group][hidden] {
  display: none !important;
}
.round-group {
  margin: 20px 0;
}
.round-group > h2 {
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 550;
  margin: 0 0 10px;
}
.round-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.round-entry {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: stretch;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.round-entry > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.round-copy {
  min-width: 0;
  padding: 10px 12px;
}
.round-entry h3 {
  font-size: 1rem;
  line-height: 1.4;
  margin: 4px 0 8px;
  overflow-wrap: anywhere;
}
.round-entry p {
  font-size: 0.9375rem;
  line-height: 1.55;
  margin: 6px 0;
  overflow-wrap: anywhere;
}
.round-entry small {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.5;
}
.round-entry:hover {
  background: color-mix(in srgb, var(--accent) 7%, var(--paper));
  text-decoration: none;
}
.round-entry:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.round-entry .round-action {
  display: block;
  font-size: 0.8125rem;
  margin-top: 8px;
}
header .primary-navigation a[aria-current="page"] {
  background: color-mix(in srgb, var(--accent) 10%, var(--paper));
  box-shadow: inset 0 -2px var(--accent);
}
body[data-design-site] .reading-home .reading-summary {
  display: block;
}
@media (max-width: 600px) {
  .round-items {
    grid-template-columns: 1fr;
  }
  .round-entry {
    grid-template-columns: 88px minmax(0, 1fr);
  }
}
@media print {
  [data-round-support] {
    display: none !important;
  }
}
/* Original English and Chinese names share an alphabetical reference row. */
.site-game63 .round-items {
  grid-template-columns: 1fr;
  gap: 0;
}
.site-game63 .round-entry {
  grid-template-columns: 72px minmax(0, 1fr);
}
.site-game63 .round-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 20px;
}
.site-game63 .round-copy small,
.site-game63 .round-action {
  grid-column: 1/-1;
}
.site-game63 .round-copy p {
  margin-block: 4px;
}
@media (max-width: 600px) {
  .site-game63 .round-copy {
    display: block;
  }
}
/* Remove the retired search drawer's fixed height; retain the native menu structure. */
dialog[data-filters].category-panel {
  inset: 12px 12px auto auto;
  height: auto;
  min-height: 0;
  max-height: calc(100dvh - 24px);
  max-width: calc(100vw - 24px);
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}
dialog[data-filters].category-panel .category-links {
  flex: 0 1 auto;
  min-height: 0;
}
dialog[data-filters].category-panel .category-links a {
  min-height: 44px;
  font-size: 16px;
}

/* Keep native page links reachable in the same compact header row. */
body.site-game63 .site-header .primary-navigation {
  display: flex;
  flex: 1 1 0;
  min-width: 44px;
  justify-content: flex-start;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
body.site-game63 .site-header .primary-navigation a {
  font-size: 14px;
  flex: 0 0 auto;
}
body.site-game63 .site-header .wordmark {
  flex: 0 0 auto;
}

/* An actual title index: original labels stay together and More stays beside its list. */
body.site-game63[data-design-site] [data-catalogue] [data-batches] {
  width: 100%;
  max-width: none;
  gap: 12px;
}
body.site-game63[data-design-site] [data-batches] > .game-card:nth-child(n) {
  grid-column: auto !important;
  grid-area: auto !important;
}
body.site-game63[data-design-site] [data-batches] > .game-card:nth-child(n) .game-entry {
  display: block !important;
  background: transparent;
}
body.site-game63[data-design-site] [data-batches] > .game-card:nth-child(n) .thumbnail {
  width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  aspect-ratio: 1 !important;
}
body.site-game63[data-design-site] .game-copy {
  padding: 6px 4px !important;
}
.site-game63 .source-alias {
  margin: 3px 0 0;
  font-size: 12px;
  line-height: 1.4;
  min-height: 1.4em;
  color: var(--accent);
}
body.site-game63[data-design-site] [data-more] {
  display: block;
  margin: 12px auto 16px;
}
.site-game63 .reading-home {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.site-game63 .reading-home .reading-context {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.site-game63 [data-title-popup] {
  background: var(--paper);
  color: var(--ink);
}
.site-game63 .player-tools :is([data-play], [data-stop]) {
  background: var(--accent);
  color: white;
}
@media (min-width: 360px) and (max-width: 899px) {
  body.site-game63[data-design-site] [data-batches] > .game-card:last-child:nth-child(3n + 2) {
    grid-column: span 2 !important;
  }
  body.site-game63[data-design-site] [data-batches] > .game-card:last-child:nth-child(3n + 1) {
    grid-column: 1/-1 !important;
  }
  body.site-game63[data-design-site]
    [data-batches]
    > .game-card:last-child:nth-child(3n + 1)
    .game-entry {
    display: grid !important;
    grid-template-columns: 34% minmax(0, 1fr);
    align-items: stretch;
  }
  body.site-game63[data-design-site]
    [data-batches]
    > .game-card:last-child:nth-child(3n + 1)
    .thumbnail {
    height: 100% !important;
  }
}
@media (min-width: 900px) {
  body.site-game63[data-design-site] [data-batches] {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
  body.site-game63[data-design-site] [data-batches] > .game-card:nth-child(n) .thumbnail {
    aspect-ratio: 8/5 !important;
  }
  body.site-game63[data-design-site] .reading-home > ol {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}
