:root {
  --paper: #f8f9fc;
  --ink: #28334b;
  --accent: #5c4d85;
  --line: #d6dce7;
}
:root {
  font:
    16px/1.5 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
a {
  color: inherit;
  text-underline-offset: 0.2em;
}
button,
a,
input,
summary {
  touch-action: manipulation;
}
button,
summary {
  cursor: pointer;
}
button,
input {
  min-height: 44px;
}
button {
  padding: 8px 12px;
  border: 1px solid currentColor;
  background: var(--paper);
  color: var(--ink);
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
input {
  min-width: 0;
  padding: 8px;
  max-width: 100%;
  font-size: 16px;
}
h1,
h2,
h3,
p {
  margin: 0 0 12px;
}
h1 {
  font-size: clamp(24px, 3vw, 36px);
}
h2 {
  font-size: 21px;
}
h3 {
  font-size: 18px;
}
img {
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  height: auto;
}
a,
button,
h1,
h2,
h3,
p,
label {
  overflow-wrap: anywhere;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.site-header,
main,
footer {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.wordmark {
  font-weight: 750;
  font-size: 20px;
}
.site-header nav,
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.site-header nav a,
footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 8px;
}
.content-group {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.game-card {
  min-width: 0;
}
.game-entry {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.game-entry img {
  width: 104px;
  height: 82px;
}
.game-card .category {
  font-size: 15px;
  margin: 6px 0;
}
.premise {
  font-size: 16px;
}
.result-batch > button {
  margin-top: 12px;
}
.search-region {
  padding: 8px 0;
  margin: 0 0 8px;
}
.search-region form {
  display: flex;
  gap: 6px;
}
.search-region input {
  flex: 1;
  min-width: 40px;
}
.search-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 28px;
}
.search-status button {
  border: 0;
  padding: 0 8px;
  min-height: 28px;
}
.search-status span {
  font-size: 15px;
}
dialog {
  padding: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  width: min(500px, calc(100% - 20px));
  max-height: calc(100dvh - 20px);
}
dialog[open] {
  display: flex;
  flex-direction: column;
}
dialog::backdrop {
  background: #1119;
}
.dialog-heading,
.dialog-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  flex: none;
}
.dialog-heading h2 {
  margin: 0;
}
.dialog-body {
  overflow: auto;
  min-height: 0;
  padding: 12px;
}
.dialog-actions {
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}
fieldset {
  border: 0;
  margin: 8px 0;
  padding: 0;
}
fieldset label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 16px;
  padding: 8px;
}
fieldset input {
  min-height: 20px;
}
summary {
  min-height: 44px;
  padding: 8px;
}
.player-stage {
  padding: 12px;
  border: 1px solid var(--line);
  margin: 16px 0;
}
.game-screen {
  aspect-ratio: 16/9;
  background: #171a1d;
  display: grid;
  place-items: center;
  min-width: 0;
}
.game-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.game-screen iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.player-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0;
}
.player-stage:fullscreen {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  min-height: 0;
  aspect-ratio: auto;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom)
    env(safe-area-inset-left);
  display: flex;
  flex-direction: column;
  border: 0;
  background: var(--paper);
}
.player-stage:fullscreen .game-screen {
  flex: 1;
  min-height: 0;
  aspect-ratio: auto;
}
.player-stage:fullscreen .game-screen img {
  max-height: none;
  min-height: 0;
}
.player-stage:fullscreen .player-tools {
  flex: none;
}
.player-stage:fullscreen [data-player-status] {
  margin: 0;
  flex: none;
}
.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  clip-path: none;
  padding: 12px;
  z-index: 100;
  background: var(--paper);
}
footer {
  padding: 24px 0;
}
.two-pictures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.source-section {
  max-width: 75ch;
}
.helper-note {
  max-width: 70ch;
}
@media (max-width: 700px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 8px 0;
    margin-bottom: 10px;
  }
  .site-header nav {
    gap: 0;
  }
  .game-entry {
    display: block;
  }
  .game-entry img {
    width: 100%;
    height: 76px;
  }
  .game-entry h3 {
    font-size: 17px;
    margin: 6px 0;
  }
  .premise {
    font-size: 16px;
  }
  .content-group {
    padding: 12px 0;
    margin-bottom: 12px;
  }
  .game-grid {
    gap: 10px;
  }
  .game-screen {
    aspect-ratio: 4/3;
  }
  .search-region {
    padding: 4px 0;
  }
  .search-status {
    line-height: 1.2;
  }
  .two-pictures {
    gap: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
@media print {
  .site-header,
  footer,
  button,
  .player-stage,
  dialog {
    display: none !important;
  }
  main {
    width: auto;
    color: #000;
  }
  .cue-sheet {
    break-after: page;
  }
  .content-group {
    break-inside: avoid;
    border: 0;
    margin: 0 0 12pt;
  }
  .cue-sheet img {
    max-width: 35mm;
  }
  a {
    text-decoration: none;
  }
}

.panel-fan {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.picture-panel {
  flex: 1;
  min-width: 0;
  padding: 12px;
  border-inline-start: 1px solid var(--line);
}
.picture-panel.active {
  flex: 2.7;
}
.picture-panel .game-entry {
  display: block;
}
.picture-panel img {
  width: 100%;
  height: 106px;
}
.picture-panel .premise {
  display: none;
}
@media (max-width: 1050px) {
  .panel-fan {
    display: block;
  }
  .picture-panel .game-entry {
    display: grid;
    grid-template-columns: 80px 1fr;
  }
  .picture-panel img {
    width: 80px;
    height: 64px;
  }
}

.search-region {
  padding: 4px 0;
  margin-bottom: 4px;
}
.search-status {
  min-height: 44px;
}
.search-status button {
  min-height: 44px;
}

.site-header {
  justify-content: center;
  flex-direction: column;
  gap: 0;
  text-align: center;
}
.site-header nav {
  justify-content: center;
}

/* Complete native links own the image, copy and inner space. */
.game-card {
  padding: 0;
  align-self: stretch;
}
.game-entry {
  height: 100%;
  padding: 8px;
  text-decoration: none;
  align-items: start;
  border: 1px solid transparent;
  gap: 12px;
}
.game-entry:hover,
.game-entry:focus-visible {
  background: color-mix(in srgb, var(--accent) 8%, var(--paper));
  border-color: var(--accent);
}
.game-copy {
  display: block;
  min-width: 0;
}
.game-copy h3 {
  margin-bottom: 6px;
}
.game-copy .category {
  margin: 0 0 6px;
}
.game-copy .premise {
  margin: 0;
}
.thumbnail {
  display: block;
  width: 104px;
  height: 82px;
  overflow: hidden;
}
.game-entry .thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  padding: 0;
  max-height: none;
}
.game-screen {
  position: relative;
}
.game-screen > img,
.game-screen > iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
}
main a:not(.game-entry) {
  min-height: 44px;
}
.image-error {
  display: grid;
  place-items: center;
  min-height: 76px;
  border: 1px solid var(--line);
  padding: 8px;
}
@media (max-width: 700px) {
  .thumbnail {
    width: 100%;
    height: 76px;
  }
  .game-entry {
    padding: 6px;
  }
  .game-copy h3 {
    margin-top: 6px;
  }
  .game-copy .category {
    font-size: 15px;
  }
  .game-copy .premise {
    font-size: 16px;
  }
}

.picture-panel .thumbnail {
  width: 100%;
  height: 106px;
}
.picture-panel .game-entry {
  display: block;
}
@media (max-width: 1050px) {
  .picture-panel .game-entry {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
  }
  .picture-panel .thumbnail {
    width: 80px;
    height: 64px;
  }
}

/* Horizontal media stretches to the actual text row, including long titles. */
.game-card {
  display: flex;
  flex-direction: column;
}
.game-entry {
  flex: 1;
  height: auto;
  align-items: stretch;
}
.thumbnail {
  position: relative;
  height: auto;
  min-height: 82px;
  align-self: stretch;
}
.game-entry .thumbnail img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
}
.site-header {
  padding-block: 8px;
  margin-bottom: 8px;
}
.wordmark {
  font-size: 19px;
}
.site-header nav a {
  padding-inline: 6px;
}
h1 {
  font-size: clamp(23px, 2.6vw, 32px);
  margin-bottom: 8px;
}
@media (max-width: 700px) {
  .site-header {
    gap: 0;
    padding-block: 6px;
  }
  .site-header nav a {
    padding-block: 2px;
  }
  .thumbnail {
    height: 76px;
    min-height: 0;
  }
  .game-entry .game-copy {
    min-width: 0;
  }
}

.picture-panel .thumbnail {
  height: 106px;
  min-height: 0;
}
@media (max-width: 1050px) {
  .picture-panel .thumbnail {
    height: auto;
    min-height: 64px;
  }
}

@media (max-width: 700px) {
  .result-batch .game-entry {
    padding: 4px;
  }
  .result-batch .thumbnail {
    height: 64px;
    min-height: 0;
  }
  .result-batch .category {
    display: none;
  }
  .result-batch .game-copy h3 {
    font-size: 17px;
    line-height: 1.3;
  }
  .result-batch .game-copy .premise {
    line-height: 1.4;
  }
}

@media (max-width: 700px) {
  .game-grid > .game-card:last-child:nth-child(odd),
  .two-pictures > .game-card:last-child:nth-child(odd) {
    grid-column: 1/-1;
  }
  .game-grid > .game-card:only-child .game-entry {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
  }
  .game-grid > .game-card:only-child .thumbnail {
    height: auto;
    min-height: 90px;
  }
}

.game-grid > .game-card:last-child:nth-child(odd),
.two-pictures > .game-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

/* Content-first revision: original source facts and player styles are retained. */
:root {
  --image-ratio: 16 / 9;
}
.site-header,
main,
footer {
  width: min(1180px, calc(100% - 24px));
}
.site-header {
  display: block;
  padding: 0;
  margin: 0 auto 4px;
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}
.wordmark {
  font-size: 18px;
  text-decoration: none;
}
.site-header .primary-navigation {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-end;
  min-width: 0;
  gap: 4px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
}
.primary-navigation a {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 4px 8px;
}
.primary-navigation a:focus-visible {
  outline-offset: -3px;
}
.discovery-trigger {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-color: transparent;
}
.discovery-trigger svg {
  display: block;
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
}
.game-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 0;
}
.game-entry {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1;
  height: 100%;
  gap: 6px;
  padding: 4px;
  border: 1px solid transparent;
  text-decoration: none;
  min-width: 0;
}
.game-entry:hover,
.game-entry:focus-visible {
  background: color-mix(in srgb, var(--accent) 8%, var(--paper));
  border-color: var(--accent);
}
.thumbnail {
  display: block;
  position: relative;
  align-self: stretch;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: var(--image-ratio);
  overflow: hidden;
}
.game-entry .thumbnail img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  padding: 0;
  border: 0;
}
.game-entry .game-copy {
  display: block;
  min-width: 0;
}
.game-entry .game-copy h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.game-grid > .game-card:last-child:nth-child(odd) {
  grid-column: 1/-1;
}
.game-grid > .game-card:last-child:nth-child(odd) .game-entry {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
}
.game-grid > .game-card:last-child:nth-child(odd) .thumbnail {
  aspect-ratio: auto;
  min-height: 64px;
  height: 100%;
}
[data-more],
[data-phrase-more] {
  margin-top: 10px;
  min-width: 44px;
}
.listing-status {
  margin: 0 0 6px;
  font-size: 15px;
}

dialog[open] {
  display: block;
}
.discovery-form {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 22px);
  min-height: 0;
}
.dialog-heading,
.dialog-actions {
  flex: none;
  padding: 10px;
  gap: 8px;
}
.dialog-body {
  flex: 1 1 auto;
  overflow: auto;
  overscroll-behavior: contain;
  min-height: 0;
  padding: 10px;
}
.dialog-body > label {
  display: block;
}
.dialog-body > input {
  width: 100%;
  margin-bottom: 8px;
}
.dialog-actions {
  padding-bottom: max(10px, env(safe-area-inset-bottom));
}
.dialog-navigation {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.dialog-navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 8px;
}
button {
  min-width: 44px;
}

@media (max-width: 700px) {
  .header-row {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 8px;
  }
  .site-header .primary-navigation {
    display: none;
  }
  .wordmark {
    font-size: 17px;
  }
}
@media (max-height: 500px) and (min-width: 480px) {
  .header-row {
    grid-template-columns: minmax(0, 1fr) 44px;
  }
  .site-header .primary-navigation {
    display: none;
  }
  .game-grid,
  [data-batches].game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .game-grid .game-entry {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: stretch;
    gap: 8px;
  }
  .game-grid .thumbnail {
    aspect-ratio: auto;
    min-height: 56px;
    height: 100%;
  }
  [data-batches] > .game-card {
    grid-column: auto;
  }
  [data-batches] > .game-card:last-child:nth-child(odd) {
    grid-column: 1/-1;
  }
  [data-batches] > .game-card:last-child:nth-child(odd) .game-entry {
    display: grid;
  }
  [data-batches] > .game-card:last-child:nth-child(odd) .thumbnail {
    aspect-ratio: auto;
  }
}
@media print {
  .game-entry .game-copy h3 {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
  }
}
/* Purple picture panels retain fixed widths when a caption opens. */
.site-header {
  text-align: left;
  border-top: 3px solid var(--accent);
}
.panel-fan {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
  max-width: 800px;
}
.picture-panel,
.picture-panel.active {
  min-width: 0;
  padding: 0;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.picture-panel.active {
  border-color: var(--accent);
}
.picture-panel [data-panel-game] {
  flex: 1;
  display: flex;
}
.picture-panel .game-card {
  width: 100%;
}
.picture-panel .game-entry {
  display: flex;
  flex-direction: column;
  padding: 4px;
}
.picture-panel .thumbnail {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 4/3;
}
.picture-panel [data-panel] {
  margin: 0 4px 4px;
  padding: 6px;
  font-size: 15px;
}
[data-panel-more] {
  margin: 10px 0;
}
[data-panel-readings] {
  max-width: 75ch;
}
[data-caption] {
  margin-top: 12px;
}
@media (max-height: 500px) and (min-width: 480px) {
  .picture-panel .game-entry {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
  }
  .picture-panel .thumbnail {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    min-height: 56px;
  }
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}
footer nav a {
  font-size: 15px;
  font-weight: 400;
  padding: 4px 0;
}

/* Read real rows and safe-area boundaries; column-dependent allowance is in listing-policy.mjs. */
:root {
  --content-safe-bottom: env(safe-area-inset-bottom, 0px);
}
[data-home-more] {
  min-height: 44px;
  margin: 10px 0;
}
.dialog-body input[type="hidden"] {
  display: none;
}
.dialog-heading h2 {
  font-size: 18px;
  line-height: 1.3;
}
.dialog-heading button {
  flex: 0 0 auto;
}
dialog[data-filters] {
  inset: auto 0 0;
  margin: 0 auto;
  width: min(860px, calc(100% - 12px));
  max-height: 85dvh;
  border-radius: 16px 16px 0 0;
  border-bottom: 0;
}
dialog[data-filters] .discovery-form {
  max-height: calc(85dvh - 2px);
}
[data-panel-kind="bottom-gallery"] .category-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel-fan > .picture-panel:last-child:nth-child(odd) {
  grid-column: 1/-1;
}
.panel-fan > .picture-panel:last-child:nth-child(odd) .game-entry {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
}
.panel-fan > .picture-panel:last-child:nth-child(odd) .thumbnail {
  aspect-ratio: auto;
  height: 100%;
  min-height: 72px;
}

/* Web-rendered options share the dialog's existing paper, ink and line tokens. */
.condition-group {
  margin: 10px 0;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.condition-group > summary {
  min-height: 44px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 16px;
  overflow-wrap: anywhere;
}
.condition-group [data-condition-value] {
  display: block;
  padding-top: 4px;
  font-weight: normal;
  font-size: 16px;
}
.condition-group fieldset {
  min-width: 0;
  margin: 0;
  padding: 4px 8px 8px;
  border: 0;
}
.dialog-body .condition-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  width: 100%;
  padding: 8px;
  font-size: 16px;
  line-height: 1.4;
  cursor: pointer;
}
.condition-choice input[type="radio"] {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--ink);
}
.condition-choice [data-choice-label] {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
.condition-choice:has(input:checked) {
  background: var(--paper);
  outline: 1px solid var(--line);
  border-radius: 4px;
}
.condition-group > summary:focus-visible,
.condition-choice:focus-within {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* Rules8/10/11/12: fixed 3-column identity; narrow screens use two. */
:root {
  --listing-columns: 3;
  --listing-image-ratio: 16/10;
}
.site-game62 :is(.game-grid, .panel-fan, .cue-grid, .timer-grid, .listen-grid, .two-pictures) {
  display: grid;
  grid-template-columns: repeat(var(--listing-columns), minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  max-width: 920px;
  width: 100%;
}
.site-game62
  :is(.game-grid, .panel-fan, .cue-grid, .timer-grid, .listen-grid, .two-pictures)
  > :is(.game-card, .picture-panel, .cue-tile, .timer-choice, .listening-entry, .focus-feature) {
  min-width: 0;
  grid-column: auto;
  border-radius: 10px;
  overflow: visible;
}
.site-game62
  :is(.game-grid, .panel-fan, .cue-grid, .timer-grid, .listen-grid, .two-pictures)
  .game-entry {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  height: 100%;
  padding: 4px;
  border-radius: 6px;
}
.site-game62
  :is(.game-grid, .panel-fan, .cue-grid, .timer-grid, .listen-grid, .two-pictures)
  .thumbnail {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: var(--listing-image-ratio);
  border-radius: 5px;
}
.site-game62 .game-entry .thumbnail img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  max-height: none;
}
.site-game62
  :is(.game-grid, .panel-fan, .cue-grid, .timer-grid, .listen-grid, .two-pictures)
  .game-copy
  h3 {
  font-size: 16px;
  line-height: 1.35;
  min-height: 2.7em;
  max-height: 2.7em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0;
}
.site-game62 .site-header {
  margin-bottom: 12px;
  border-width: 1px;
  padding-block: 0;
}
.site-game62 .header-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 12px;
  min-height: 44px;
}
.site-game62 .wordmark {
  flex: 1;
  min-width: 0;
}
.site-game62 .site-header .primary-navigation {
  display: flex;
  order: 3;
  flex: 1 1 100%;
  justify-content: flex-start;
  gap: 4px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  border: 0;
}
.site-game62 .primary-navigation::-webkit-scrollbar {
  display: none;
}
.site-game62 .primary-navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 8px;
  font-size: 14px;
  font-weight: 400;
  border: 0;
  border-radius: 6px;
  background: transparent;
}
.site-game62 .content-group {
  margin-block: 12px;
  padding-block: 12px;
}
.site-game62 main > section,
.site-game62 [data-saved-view-tools] {
  margin-block: 12px;
}
.site-game62 .listing-summary {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.4;
}
.site-game62 .discovery-trigger,
.site-game62 button {
  border-radius: 8px;
  transition:
    background-color 0.12s ease,
    border-color 0.12s ease;
}
.site-game62 .player-stage {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.site-game62 .game-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  min-height: 0;
  overflow: hidden;
  border-radius: 0;
}
.site-game62 .game-screen > img[data-game-preview] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  padding: 0;
  object-fit: cover;
  object-position: center;
}
.site-game62 .game-screen > iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: initial;
  transform: none;
}
.site-game62 .player-tools,
.site-game62 [data-player-status] {
  padding: 8px 12px;
  margin: 0;
}
.site-game62 .player-stage:fullscreen .game-screen {
  aspect-ratio: auto;
  min-height: 0;
  flex: 1;
}
@media (min-width: 720px) {
  .site-game62
    :is(.game-grid, .panel-fan, .cue-grid, .timer-grid, .listen-grid, .two-pictures)
    > :nth-last-child(
      1
        of
        :is(.game-card, .picture-panel, .cue-tile, .timer-choice, .listening-entry, .focus-feature)
    ):nth-child(
      3n
        + 1
        of
        :is(.game-card, .picture-panel, .cue-tile, .timer-choice, .listening-entry, .focus-feature)
    ) {
    grid-column: 1/-1;
  }
  .site-game62
    :is(.game-grid, .panel-fan, .cue-grid, .timer-grid, .listen-grid, .two-pictures)
    > :nth-last-child(
      1
        of
        :is(.game-card, .picture-panel, .cue-tile, .timer-choice, .listening-entry, .focus-feature)
    ):nth-child(
      3n
        + 2
        of
        :is(.game-card, .picture-panel, .cue-tile, .timer-choice, .listening-entry, .focus-feature)
    ) {
    grid-column: span 2;
  }
  .site-game62
    :is(.game-grid, .panel-fan, .cue-grid, .timer-grid, .listen-grid, .two-pictures)
    > :nth-last-child(
      1
        of
        :is(.game-card, .picture-panel, .cue-tile, .timer-choice, .listening-entry, .focus-feature)
    ):is(
      :nth-child(
        3n
          + 1
          of
          :is(
            .game-card,
            .picture-panel,
            .cue-tile,
            .timer-choice,
            .listening-entry,
            .focus-feature
          )
      ),
      :nth-child(
        3n
          + 2
          of
          :is(
            .game-card,
            .picture-panel,
            .cue-tile,
            .timer-choice,
            .listening-entry,
            .focus-feature
          )
      )
    )
    .game-entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
  }
  .site-game62
    :is(.game-grid, .panel-fan, .cue-grid, .timer-grid, .listen-grid, .two-pictures)
    > :nth-last-child(
      1
        of
        :is(.game-card, .picture-panel, .cue-tile, .timer-choice, .listening-entry, .focus-feature)
    ):nth-child(
      3n
        + 1
        of
        :is(.game-card, .picture-panel, .cue-tile, .timer-choice, .listening-entry, .focus-feature)
    )
    .game-entry {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  }
  .site-game62
    :is(.game-grid, .panel-fan, .cue-grid, .timer-grid, .listen-grid, .two-pictures)
    > :nth-last-child(
      1
        of
        :is(.game-card, .picture-panel, .cue-tile, .timer-choice, .listening-entry, .focus-feature)
    ):is(
      :nth-child(
        3n
          + 1
          of
          :is(
            .game-card,
            .picture-panel,
            .cue-tile,
            .timer-choice,
            .listening-entry,
            .focus-feature
          )
      ),
      :nth-child(
        3n
          + 2
          of
          :is(
            .game-card,
            .picture-panel,
            .cue-tile,
            .timer-choice,
            .listening-entry,
            .focus-feature
          )
      )
    )
    .thumbnail {
    height: 100%;
    min-height: 72px;
    aspect-ratio: auto;
  }
}
@media (max-width: 719px) {
  :root {
    --listing-columns: 2;
    --listing-image-ratio: 4/3;
  }
  .site-game62
    :is(.game-grid, .panel-fan, .cue-grid, .timer-grid, .listen-grid, .two-pictures)
    > :is(.game-card, .picture-panel, .cue-tile, .timer-choice, .listening-entry, .focus-feature) {
    grid-column: auto;
  }
  .site-game62
    :is(.game-grid, .panel-fan, .cue-grid, .timer-grid, .listen-grid, .two-pictures)
    > :nth-last-child(
      1
        of
        :is(.game-card, .picture-panel, .cue-tile, .timer-choice, .listening-entry, .focus-feature)
    ):nth-child(
      2n
        + 1
        of
        :is(.game-card, .picture-panel, .cue-tile, .timer-choice, .listening-entry, .focus-feature)
    ) {
    grid-column: 1/-1;
  }
  .site-game62
    :is(.game-grid, .panel-fan, .cue-grid, .timer-grid, .listen-grid, .two-pictures)
    > :nth-last-child(
      1
        of
        :is(.game-card, .picture-panel, .cue-tile, .timer-choice, .listening-entry, .focus-feature)
    ):nth-child(
      2n
        + 1
        of
        :is(.game-card, .picture-panel, .cue-tile, .timer-choice, .listening-entry, .focus-feature)
    )
    .game-entry {
    display: grid;
    grid-template-columns: minmax(80px, 1fr) minmax(0, 2fr);
  }
  .site-game62
    :is(.game-grid, .panel-fan, .cue-grid, .timer-grid, .listen-grid, .two-pictures)
    > :nth-last-child(
      1
        of
        :is(.game-card, .picture-panel, .cue-tile, .timer-choice, .listening-entry, .focus-feature)
    ):nth-child(
      2n
        + 1
        of
        :is(.game-card, .picture-panel, .cue-tile, .timer-choice, .listening-entry, .focus-feature)
    )
    .thumbnail {
    height: 100%;
    min-height: 64px;
    aspect-ratio: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-game62 button {
    transition: none;
  }
}
@media print {
  .site-game62
    :is(.game-grid, .panel-fan, .cue-grid, .timer-grid, .listen-grid, .two-pictures)
    .game-copy
    h3 {
    display: block;
    max-height: none;
    overflow: visible;
  }
}

/* A separate page disclosure keeps functional links out of the search task and out of the resting viewport. */
.site-game62 .header-row {
  position: relative;
  flex-wrap: nowrap;
  gap: 8px;
}
.site-game62 .site-menu {
  flex: 0 0 auto;
  position: static;
  margin: 0;
  border: 0;
}
.site-game62 .site-menu > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 4px 8px;
  font-size: 14px;
  border-radius: 8px;
  list-style: none;
}
.site-game62 .site-menu > summary::-webkit-details-marker {
  display: none;
}
.site-game62 .site-header .site-menu .primary-navigation {
  position: absolute;
  inset: 100% 0 auto auto;
  z-index: 20;
  max-width: min(100%, 560px);
  width: max-content;
  min-width: 0;
  flex-wrap: nowrap;
  flex: none;
  padding: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 4px 14px #0001;
}
.site-game62 .site-menu:not([open]) .primary-navigation {
  display: none;
}

/* October refinement: compact identity, stable lists and quiet detail toolbar. */
.site-header {
  margin-bottom: 6px !important;
}
.header-row {
  min-height: 44px;
}
.game-entry {
  padding: 0 !important;
  border: 0 !important;
  gap: 0 !important;
}
.game-copy {
  padding: 8px 10px !important;
}
.game-entry .game-copy h3 {
  font-size: 14px !important;
  line-height: 1.4 !important;
  min-height: 0 !important;
  max-height: none !important;
}
.game-entry .thumbnail {
  border-radius: 4px 4px 0 0 !important;
}
.game-entry:hover {
  background: color-mix(in srgb, var(--accent) 7%, var(--paper));
}
button {
  border-color: var(--line);
  border-radius: 5px !important;
}
button:hover:not(:disabled) {
  background: color-mix(in srgb, var(--accent) 8%, var(--paper));
}
.detail-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 44px;
  min-width: 0;
  margin: 0;
}
.detail-toolbar [data-return] {
  display: flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  height: 44px;
  text-decoration: none;
  font-size: 20px;
}
.detail-toolbar h1 {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px !important;
  line-height: 44px !important;
  font-weight: 500;
  margin: 0 !important;
  overflow-wrap: normal;
}
.detail-toolbar [data-title-toggle] {
  flex: 0 0 44px;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 20px;
  padding: 0;
}
[data-valid-game] > .player-stage {
  margin: 0 0 12px !important;
  padding: 0 !important;
}
[data-player-page] {
  margin: 0 !important;
  padding: 0 !important;
}
[data-title-popup] {
  width: min(480px, calc(100% - 24px));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
[data-title-popup] p {
  overflow-wrap: anywhere;
  font-size: 17px;
}
.player-stage .game-screen {
  margin: 0;
  width: 100%;
  aspect-ratio: 16/9;
  min-height: 0;
}
.player-stage .game-screen > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.player-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.player-tools button {
  font-size: 14px;
  padding: 6px 10px;
}
.player-stage:fullscreen {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  min-height: 0;
  border: 0 !important;
  border-radius: 0 !important;
}
.player-stage:fullscreen .game-screen {
  flex: 1;
  aspect-ratio: auto !important;
  min-height: 0 !important;
  max-height: none;
}
.player-stage:fullscreen [data-player-status] {
  font-size: 12px;
  padding: 2px 10px;
}
.condition-group {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
}
.condition-group fieldset {
  display: grid;
  gap: 8px;
  padding: 4px 0 8px;
}
.condition-group [data-condition-value] {
  display: inline;
  font-size: 14px;
  margin-left: 8px;
}
.condition-choice:has(input:checked) {
  outline: 0;
  background: color-mix(in srgb, var(--accent) 9%, var(--paper));
}
.dialog-heading h2 {
  font-size: 16px;
}
.dialog-actions {
  border-top: 1px solid var(--line);
}
[data-list-discovery] {
  margin: 20px 0 12px;
}
[data-list-discovery] h2 {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 10px;
}
[data-discovery-items] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.discovery-entry {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: stretch;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.discovery-entry > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 90px;
  object-fit: cover;
  align-self: stretch;
}
.discovery-copy {
  min-width: 0;
  padding: 10px 12px;
}
.discovery-copy h3 {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 550;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.discovery-copy p {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.4;
}
.discovery-cta {
  font-size: 12px;
  color: var(--accent);
}
.discovery-entry:hover {
  background: color-mix(in srgb, var(--accent) 7%, var(--paper));
}
.discovery-entry:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
footer {
  margin-block: 16px;
}
footer nav {
  gap: 4px 16px;
}
@media (min-width: 720px) {
  .detail-toolbar h1 {
    font-size: 15px !important;
  }
}
@media (max-width: 550px) {
  .discovery-entry {
    grid-template-columns: 1fr;
  }
  .discovery-entry > img {
    height: auto;
    aspect-ratio: 2/1;
    min-height: 0;
  }
  .discovery-copy {
    padding: 10px 12px;
  }
}
.panel-mosaic .discovery-entry {
  display: flex;
  flex-direction: column;
}
.panel-mosaic .discovery-entry > img {
  width: 100%;
  height: auto;
  aspect-ratio: 2/1;
}
@media (min-width: 720px) {
  .panel-mosaic [data-discovery-items] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.picture-panel > button {
  border: 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  width: 100%;
  text-align: left;
}
