/* 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;
  }
}
/* A paired picture gallery keeps captions under their own images. */
.site-game62 .round-entry {
  display: flex;
  flex-direction: column;
}
.site-game62 .round-entry > img {
  height: auto;
  aspect-ratio: 3/1;
}
.site-game62 .round-items {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.site-game62 .round-copy {
  padding-inline: 4px;
}
body[data-design-site="Game62"] .picture-panel [data-panel] {
  position: static;
}
/* 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;
}

/* Let the final panel include its title in normal flow. */
body[data-design-site="Game62"] .picture-panel :is(.game-card, .game-entry) {
  height: auto !important;
}

/* Panels size from their image and complete title, including the last item. */
body[data-design-site="Game62"] .picture-panel [data-panel-game],
body[data-design-site="Game62"] .picture-panel .game-card,
body[data-design-site="Game62"] .picture-panel .game-entry {
  display: block !important;
  height: auto !important;
}
body[data-design-site="Game62"] .picture-panel .thumbnail {
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 4/3 !important;
}
body[data-design-site="Game62"]
  .panel-fan
  > .picture-panel:first-child:not(:nth-last-child(-n + 2))
  .thumbnail {
  aspect-ratio: 3/1 !important;
}

/* Counts retain readable contrast on the selected surface. */
dialog[data-filters].category-panel .category-links small {
  opacity: 0.8;
}

/* Keep the final panel in the same image/title flow at smaller viewports. */
@media (max-width: 899px), (max-height: 500px) {
  body[data-design-site="Game62"][data-design-page="home"]
    .panel-fan[data-panels]
    > .picture-panel:last-child
    .thumbnail {
    aspect-ratio: 4/3 !important;
  }
}

/* Use the full gallery width without enlarging the opening picture rows. */
@media (min-width: 900px) and (min-height: 501px) {
  body[data-design-site="Game62"][data-design-page="home"] .panel-fan[data-panels] {
    max-width: none;
    width: 100%;
  }
  body[data-design-site="Game62"][data-design-page="home"]
    .panel-fan[data-panels]
    .picture-panel
    .thumbnail {
    aspect-ratio: 2/1 !important;
  }
  body[data-design-site="Game62"][data-design-page="home"]
    .panel-fan[data-panels]
    > .picture-panel:first-child:not(:nth-last-child(-n + 2))
    .thumbnail {
    aspect-ratio: 4/1 !important;
  }
}

/* The panel wall opens as four complete pairs, with captions as a separate reading band. */
body.site-game62[data-design-site][data-design-page] .panel-fan[data-panels] {
  width: 100%;
  max-width: none;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
body.site-game62[data-design-site][data-design-page]
  .panel-fan[data-panels]
  > .picture-panel:nth-child(n) {
  grid-column: auto !important;
  grid-area: auto !important;
  min-height: 0 !important;
  height: auto !important;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
body.site-game62[data-design-site][data-design-page]
  .panel-fan[data-panels]
  > .picture-panel:nth-child(n)
  .thumbnail {
  aspect-ratio: 8/5 !important;
  border-radius: 3px !important;
}
body.site-game62[data-design-site] .picture-panel .game-copy {
  padding: 6px 4px !important;
}
body.site-game62[data-design-site] .picture-panel > [data-panel] {
  width: 100%;
  text-align: left;
  font-size: 13px;
  padding: 6px 4px;
  color: var(--accent);
}
body.site-game62[data-design-site] .picture-panel.active {
  box-shadow: inset 0 -2px var(--accent);
}
.site-game62 [data-panel-more] {
  display: block;
  margin: 12px auto 16px;
}
.site-game62 [data-panel-readings] {
  margin: 0;
}
.site-game62 [data-caption]:not([hidden]) {
  margin: 12px 0;
  padding: 12px 0;
  border-block: 1px solid var(--line);
}
.site-game62 .caption-heading {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
}
.site-game62 .caption-heading h2 {
  font-size: 18px;
  margin: 6px 0;
}
.site-game62 .caption-heading button {
  flex: none;
  font-size: 13px;
}
.site-game62 .reading-section-heading {
  flex-wrap: wrap;
}
.site-game62 [data-title-popup] {
  color: var(--ink);
  background: var(--paper);
}
.site-game62 .player-tools :is([data-play], [data-stop]) {
  background: var(--accent);
  color: white;
}
@media (min-width: 900px) {
  body.site-game62[data-design-site][data-design-page] .panel-fan[data-panels] {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px;
  }
  body.site-game62 [data-catalogue] [data-batches] {
    width: 100%;
    max-width: none;
  }
  body.site-game62 .reading-home > ol {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 20px;
  }
  body.site-game62 .reading-home > ol > li:first-child .reading-card {
    display: grid;
    grid-template-columns: 48% minmax(0, 1fr);
    align-items: stretch;
  }
  body.site-game62 .reading-home > ol > li:first-child .reading-image {
    height: 100%;
  }
}
