/* Phrase trails: a quiet masthead, right directory, and an unbroken picture ledger. */
body .site-header {
  margin: 0 auto 10px !important;
  padding-block: 0 !important;
}
body .round-masthead {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  align-items: center;
  min-height: 48px;
}
body .round-masthead .wordmark {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 15px;
  margin: 0;
  text-decoration: none;
  box-shadow: none;
}
body .round-masthead .direct-catalogue {
  display: flex;
  flex: none;
  align-items: center;
  min-height: 44px;
  padding-inline: 8px;
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
}
body .round-masthead .site-menu {
  flex: none;
}
body .round-masthead .discovery-trigger {
  flex: 0 0 44px;
  padding: 10px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
body .round-masthead a[aria-current="page"] {
  background: transparent;
  box-shadow: inset 0 -1px var(--accent);
}
body .round-masthead .wordmark[aria-current="page"] {
  box-shadow: none;
}
body .round-masthead summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 14px;
  padding: 0 6px;
}
body .site-header .site-menu .primary-navigation {
  flex-direction: column;
  align-items: stretch;
  padding: 6px;
  min-width: 180px;
  width: max-content;
  max-width: calc(100vw - 24px);
}
body .site-header .site-menu .primary-navigation a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
}
dialog[data-filters].category-panel {
  inset: 0 0 0 auto;
  margin: 0;
  width: min(400px, 88vw);
  max-width: 88vw;
  height: 100dvh;
  min-height: 70dvh;
  max-height: 100dvh;
  border-radius: 0;
  border: 0;
  border-left: 1px solid var(--line);
  padding: 0;
  background: var(--paper);
  color: var(--ink);
}
dialog[data-filters]::backdrop {
  background: rgb(10 24 18 / 0.45);
}
dialog[data-filters].category-panel .dialog-heading {
  flex: none;
  padding: 8px 16px;
}
dialog[data-filters].category-panel .category-links {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: grid;
  align-content: start;
  grid-template-columns: 1fr;
  padding: 8px 16px max(16px, env(safe-area-inset-bottom));
  gap: 0;
}
dialog[data-filters].category-panel .category-links a {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  min-height: 52px;
  font-size: 16px;
  padding: 8px;
  gap: 12px;
  color: var(--ink);
}
.category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.category-icon svg {
  display: block;
  flex: none;
}
.category-panel small {
  opacity: 1;
  font-size: 13px;
}
body .detail-toolbar [data-return] {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-toolbar [data-return] svg {
  display: block;
}
body .detail-toolbar [data-return]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}
body .detail-toolbar [data-game-title] {
  line-height: 1.4 !important;
}
body [data-valid-game] .player-stage .game-screen {
  aspect-ratio: 4 / 3;
  height: var(--game-window-height, auto);
  max-height: max(96px, calc(100dvh - 240px));
  min-height: 0;
}
@media (min-width: 900px) {
  body [data-valid-game] .player-stage .game-screen {
    aspect-ratio: 16 / 10;
  }
}
body [data-valid-game] .player-stage:fullscreen .game-screen {
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  flex: 1;
}
body .player-tools [hidden] {
  display: none !important;
}
body .player-stage .player-tools {
  background: transparent;
  border: 0;
  justify-content: flex-start;
  gap: 4px;
  padding: 6px 0;
}
body .player-tools button {
  min-height: 44px;
}
body .player-tools [data-restart],
body .player-tools [data-full] {
  background: transparent;
  color: var(--ink);
  border-color: transparent;
}
body .round-copy small {
  display: none;
}
body .reading-intro {
  margin: 0 0 10px;
  padding: 0;
}
body .reading-intro > h1 {
  font-size: 18px;
  line-height: 1.4;
  margin: 0 0 8px;
}
body .reading-intro > p {
  display: none;
}
body .reading-directory > li:first-child .reading-card {
  border-top: 0;
}
body .reading-directory .reading-card {
  padding-block: 10px;
}
body .site-game-index {
  padding: 0;
}
body .site-game-index .game-entry {
  display: block;
}
body .site-game-index img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body .site-game-index h3 {
  margin: 0;
}
body .site-game-index [data-index-fallback] summary {
  min-height: 44px;
  display: flex;
  align-items: center;
}
body .listing-summary {
  margin: 0 0 8px;
  line-height: 20px;
  font-size: 14px;
}
@media (min-width: 900px) {
  body .round-masthead {
    min-height: 52px;
  }
  body .round-masthead .wordmark {
    flex: none;
    margin-right: 16px;
  }
  body .round-masthead .site-menu {
    margin-left: auto;
  }
  body .round-masthead .wordmark {
    font-family: Georgia, serif;
    font-size: 20px;
  }
}
@media (max-width: 350px) {
  body .round-masthead .wordmark {
    font-size: 14px;
  }
  body .round-masthead .direct-catalogue {
    padding-inline: 4px;
  }
}
body .reading-directory .reading-context {
  display: none;
}
body .reading-main:has(.reading-directory) > .reading-intro {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
}
body .reading-directory {
  margin-top: 0;
}
body .reading-main .reading-intro h1 {
  margin-top: 0;
}
body[data-site-section="about.html"] main > h1,
body[data-site-section="contact.html"] main > h1,
body[data-site-section="privacy.html"] main > h1,
body[data-site-section="copyright.html"] main > h1,
body[data-site-section="terms.html"] main > h1 {
  font-size: 18px;
  line-height: 1.4;
  margin: 0 0 8px;
}
body[data-site-section="about.html"] .content-group,
body[data-site-section="contact.html"] .content-group,
body[data-site-section="privacy.html"] .content-group,
body[data-site-section="copyright.html"] .content-group,
body[data-site-section="terms.html"] .content-group {
  margin: 8px 0 14px;
  padding: 0;
  border: 0;
}
body[data-site-section="about.html"] .content-group h2,
body[data-site-section="contact.html"] .content-group h2,
body[data-site-section="privacy.html"] .content-group h2,
body[data-site-section="copyright.html"] .content-group h2,
body[data-site-section="terms.html"] .content-group h2 {
  font-size: 16px;
  line-height: 1.4;
  margin: 0 0 6px;
}
body[data-site-section="about.html"] .content-group p,
body[data-site-section="contact.html"] .content-group p,
body[data-site-section="privacy.html"] .content-group p,
body[data-site-section="copyright.html"] .content-group p,
body[data-site-section="terms.html"] .content-group p {
  margin: 0;
}
/* A title-index nameplate sits beside its own compact index band. */
body .site-header.title-masthead {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
  padding: 0;
  border-bottom: 1px solid var(--line);
}
body .title-brand {
  display: flex;
  align-items: center;
  border-right: 1px solid var(--line);
}
body .title-brand .wordmark {
  flex: none;
  min-width: 0;
  width: 92px;
  white-space: normal;
  overflow: visible;
  font:
    500 23px/1.1 Georgia,
    serif;
  margin: 0;
  text-decoration: none;
  box-shadow: none;
}
body .title-index {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
}
body .title-index .discovery-trigger {
  order: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  justify-content: flex-start;
  width: auto;
  height: 44px;
  padding: 0 6px;
  border: 0;
  background: transparent;
  font-size: 16px;
}
body .title-index .title-navigation {
  order: 0;
  display: flex;
  position: static;
  flex: none;
  min-width: 0;
  width: 100%;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 0;
  border: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
body .title-index .title-navigation a {
  flex: none;
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  padding: 0 7px;
  text-decoration: none;
  border-radius: 0;
}
body .title-index .title-navigation a[aria-current="page"] {
  background: transparent;
  box-shadow: inset 0 -2px var(--accent);
}
dialog[data-filters].category-panel {
  inset: 0 auto 0 0;
  margin: 0;
  width: min(380px, 88vw);
  height: 100dvh;
  max-height: 100dvh;
  border-left: 0;
  border-right: 1px solid var(--line);
}
dialog[data-filters].category-panel .category-links a {
  grid-template-columns: 24px minmax(0, 1fr) 32px;
  gap: 12px;
  font-family: inherit;
  border: 0;
  border-bottom: 1px solid var(--line);
  min-height: 52px;
}
body .player-tools :is([data-play], [data-stop]) {
  background: var(--ink);
  color: var(--paper);
}
body .player-tools [data-restart] {
  border-left: 1px solid var(--line);
  border-radius: 0 !important;
}
@media (min-width: 900px) {
  body .site-header.title-masthead {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  body .title-brand .wordmark {
    width: auto;
    font-size: 30px;
  }
  body .title-index {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }
  body .title-index .title-navigation {
    width: auto;
    flex: 1;
  }
}
@media (max-width: 350px) {
  body .site-header.title-masthead {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 6px;
  }
  body .title-brand .wordmark {
    width: 80px;
    font-size: 21px;
  }
  body .title-index .title-navigation a {
    padding-inline: 6px;
  }
}

/* Opening article text starts directly after the complete title. */
body .reading-article > .reading-intro {
  margin: 0 0 8px;
}
body .reading-body h2 {
  margin-bottom: 6px;
  font-size: 16px;
  line-height: 1.4;
}
body .reading-original-summary {
  line-height: 1.7;
  margin: 16px 0;
}

/* Game list excerpts are finite; complete source text remains on the destination. */
body .round-entry p,
body .discovery-entry p,
body .game-entry .game-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 0;
  max-height: none;
  line-height: 1.45;
}
body .round-entry h3,
body .discovery-entry h3 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 0;
  max-height: none;
}
body .round-entry .round-copy {
  align-self: start;
}
body .round-entry {
  align-items: stretch;
}
body .round-entry > img {
  height: 100%;
  min-height: 0;
  object-fit: cover;
}
body .round-entry .round-action {
  margin-top: 6px;
}

body.site-game63 .site-header.title-masthead .title-index .title-navigation {
  display: flex !important;
  position: static !important;
  flex-wrap: nowrap;
  width: 100%;
  height: auto;
  min-height: 44px;
  overflow-x: auto;
  margin: 0;
  padding: 0;
  border: 0;
}
body.site-game63 .site-header.title-masthead .title-brand .wordmark {
  box-shadow: none !important;
  border: 0 !important;
  text-decoration: none !important;
}
body.site-game63 .site-header.title-masthead .title-index .title-navigation a {
  min-height: 44px;
  white-space: nowrap;
  text-decoration: none;
  font-size: 14px;
  border: 0;
}

/* Remove inherited section padding before the first paragraph. */
body[data-design-site][data-design-page="article"] .reading-main {
  padding-block: 0;
}
body[data-design-site][data-design-page="article"] .reading-article > .reading-intro {
  margin: 0 0 6px;
}
body[data-design-site][data-design-page="article"] .reading-body > section {
  padding-block: 0;
}

/* Reserve whole-word space for the title nameplate at enlarged text sizes. */
body.site-game63 .site-header.title-masthead {
  grid-template-columns: minmax(min-content, 30%) minmax(0, 1fr);
}
body.site-game63 .site-header.title-masthead .title-brand .wordmark {
  display: block;
  width: 100%;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}
body.site-game63 .title-index .discovery-trigger {
  flex-wrap: wrap;
  min-height: 44px;
  height: auto;
  white-space: normal;
}
@media (min-width: 900px) {
  body.site-game63 .site-header.title-masthead {
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 24px;
  }
  body.site-game63 .site-header.title-masthead .title-brand {
    padding-right: 24px;
  }
}

/* A small index entry marker replaces the ruled nameplate and long selected line. */
body.site-game63 .site-header.title-masthead,
body.site-game63 .site-header.title-masthead .title-brand {
  border: 0;
}
body.site-game63 .title-index .title-navigation a {
  position: relative;
  padding-inline: 12px 8px;
  box-shadow: none;
  background: transparent;
}
body.site-game63 .title-index .title-navigation a::before {
  content: "";
  position: absolute;
  left: 3px;
  top: calc(50% - 2px);
  width: 4px;
  height: 4px;
  background: transparent;
}
body.site-game63 .site-header.title-masthead .title-index .title-navigation a {
  max-width: 100%;
  white-space: normal;
}
body.site-game63 .title-index .title-navigation a[aria-current="page"] {
  box-shadow: none;
  color: var(--accent);
}
body.site-game63 .title-index .title-navigation a[aria-current="page"]::before {
  background: currentColor;
}

/* Shared route semantics remain native; the visible menu marker stays inside its hit area. */
body .site-header .brand-mark {
  display: block;
  flex: none;
}
body .site-header .category-trigger-label {
  display: none;
}
body .site-header .menu-chevron {
  flex: none;
}
body .site-header .site-menu summary {
  gap: 5px;
  list-style: none;
}
body .site-header .site-menu summary::-webkit-details-marker {
  display: none;
}
body .site-header .site-menu[open] .menu-chevron {
  transform: rotate(180deg);
}
body .site-header :is(a, button, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* A typographic title-and-overline lockup keeps the index in one compact band. */
body.site-game63 .site-header.title-masthead {
  grid-template-columns: minmax(min-content, 24%) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding-block: 4px !important;
}
body.site-game63 .site-header.title-masthead .title-brand {
  padding: 0;
}
body.site-game63 .site-header.title-masthead .title-brand .wordmark {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  font:
    500 24px/1.1 Georgia,
    serif;
}
body.site-game63 .title-brand .brand-name {
  display: grid;
}
body.site-game63 .title-overline {
  font: 500 0.46em/1.1 system-ui;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
body.site-game63 .title-name {
  position: relative;
  white-space: nowrap;
}
/* The title comparison list shares a name with the header index, not its layout. */
body.site-game63 main [data-list-discovery].title-index {
  display: block;
  width: auto;
  min-width: 0;
  padding: 0;
  border: 0;
}
body.site-game63 main .title-index .discovery-entry {
  grid-template-columns: 80px minmax(0, 1fr);
  border-top: 0;
}
@media (max-width: 600px) {
  body.site-game63 main .title-index [data-discovery-items] {
    grid-template-columns: 1fr;
  }
}
body.site-game63 .wordmark .title-name::after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 5px;
  height: 11px;
  margin-left: 7px;
  background: transparent;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 75%, 0 100%);
}
body.site-game63 .wordmark[aria-current="page"] .title-name::after {
  background: var(--accent);
}
body.site-game63 .title-index {
  flex-direction: row;
  align-items: center;
  gap: 6px;
}
body.site-game63 .title-index .discovery-trigger {
  width: 44px;
  min-width: 44px;
  flex: none;
  padding: 10px;
}
body.site-game63 .site-header.title-masthead .title-index .title-navigation {
  flex: 1;
  width: auto;
}
body.site-game63 .title-index .title-navigation a::before {
  height: 10px;
  width: 3px;
  top: calc(50% - 5px);
}
dialog[data-filters].category-panel {
  inset: 8px auto auto 0;
  height: 80dvh;
  min-height: 70dvh;
  max-height: calc(100dvh - 16px);
}
dialog[data-filters].category-panel .category-links a[aria-current="page"] {
  background: transparent;
  box-shadow: inset 3px 0 var(--accent);
}
@media (max-width: 350px) {
  body.site-game63 .title-navigation :is(a[href="index.html"], a[href="../index.html"]) {
    display: none;
  }
}
@media (min-width: 900px) {
  body.site-game63 .site-header.title-masthead {
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 32px;
  }
  body.site-game63 .title-index {
    justify-content: flex-end;
  }
  body.site-game63 .title-index .category-trigger-label {
    display: inline;
  }
  body.site-game63 .title-index .discovery-trigger {
    width: auto;
    padding-inline: 8px;
  }
  body.site-game63 .site-header.title-masthead .title-index .title-navigation {
    flex: none;
  }
}

/* Error recovery stays beside the title; actual collection images follow promptly. */
body[data-site-section="404.html"] .not-found-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 12px;
}
body[data-site-section="404.html"] .not-found-bar h1 {
  font-size: 18px;
  line-height: 1.4;
  margin: 0;
}
body[data-site-section="404.html"] .not-found-bar a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
}
body[data-site-section="404.html"] .not-found-copy {
  margin: 0 0 8px;
}
body[data-site-section="404.html"] [data-round-support] > .round-group:first-child {
  margin-top: 8px;
}
body[data-site-section="404.html"] [data-round-support] > .round-group:first-child > h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

body[data-site-section="404.html"] .not-found-copy {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

/* Large text keeps the category title whole while Close remains reachable. */
dialog[data-filters].category-panel .dialog-heading {
  flex-wrap: wrap;
}
dialog[data-filters].category-panel .dialog-heading h2 {
  flex: 1 0 auto;
  min-width: max-content;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}
dialog[data-filters].category-panel .dialog-heading button {
  margin-left: auto;
}

/* Category controls keep icon, label and count on stable optical centres. */
body.site-game63 .site-header [data-open-filters] {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.25;
  background: transparent;
}
body.site-game63 .site-header [data-open-filters] > svg {
  display: block;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  align-self: center;
}
body.site-game63 .site-header [data-open-filters]::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-inline: 2px;
  top: 50%;
  height: max(30px, 1.5em);
  transform: translateY(-50%);
  border-radius: 3px;
}
body.site-game63:has(dialog[data-filters] [aria-current="page"])
  .site-header
  [data-open-filters]::before {
  background: color-mix(in srgb, var(--accent) 12%, var(--paper));
}
body.site-game63 .site-header [data-open-filters]:is(:hover, [aria-expanded="true"])::before {
  background: color-mix(in srgb, var(--accent) 20%, var(--paper));
}
body.site-game63 dialog[data-filters] .category-links a {
  align-items: center;
  line-height: 1.35;
  text-decoration: none;
  color: var(--ink);
}
body.site-game63 dialog[data-filters] .category-links a > span:nth-child(2) {
  line-height: 1.35;
  min-width: 0;
}
body.site-game63 dialog[data-filters] .category-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
}
body.site-game63 dialog[data-filters] .category-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}
body.site-game63 dialog[data-filters] .category-links small {
  display: block;
  align-self: center;
  justify-self: end;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: var(--ink);
}
body.site-game63 dialog[data-filters] .category-links a:hover {
  background: color-mix(in srgb, var(--accent) 6%, var(--paper));
}
body.site-game63 dialog[data-filters] .category-links a[aria-current="page"] {
  background: color-mix(in srgb, var(--accent) 13%, var(--paper));
  color: var(--ink);
  font-weight: 600;
}

/* Rows grow with enlarged labels; counts always remain one stable number. */
body.site-game63 dialog[data-filters] .category-links a {
  height: auto;
}
body.site-game63 dialog[data-filters] .category-links small {
  min-width: max-content;
  white-space: nowrap;
}
body.site-game63 dialog[data-filters] .category-links a {
  grid-template-columns: 24px minmax(0, 1fr) max-content;
}

body.site-game63 dialog[data-filters] .category-links {
  grid-auto-rows: max-content;
}

/* Current names remain complete, including restored category routes. */
body.site-game63 .site-header .site-menu summary {
  width: auto;
  min-width: 44px;
  max-width: 100%;
  gap: 5px;
}
body.site-game63 .site-header .site-menu .menu-label {
  min-width: 0;
  white-space: normal;
  overflow-wrap: normal;
}

/* All instances of a game listing share a one-line title and a two-line excerpt. */
body.site-game63 .game-entry .game-copy h3,
body.site-game63 .round-entry h3,
body.site-game63 .discovery-entry h3 {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: unset;
  min-height: 0 !important;
  max-height: none !important;
  margin-block: 0;
}
body.site-game63 .game-entry .game-excerpt,
body.site-game63 .round-copy p,
body.site-game63 .discovery-copy p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 0;
  max-height: none;
  margin-block: 4px 0;
}

/* Preview limits affect only article links; titles, summaries and full articles stay intact. */
body.site-game63[data-design-site] :is(.reading-home, .reading-directory) .reading-summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 0;
  max-height: none;
  margin-block: 4px 0;
}
body.site-game63[data-design-site] :is(.reading-home, .reading-directory) .reading-context {
  line-height: 1.3;
  margin: 0;
}
body.site-game63[data-design-site] :is(.reading-home, .reading-directory) .reading-card {
  min-height: 0;
  padding-block: 8px;
}

body.site-game63 .site-header .title-index {
  min-width: 0;
}
body.site-game63 .site-header .title-index .title-navigation {
  min-width: 0;
}

/* Preview titles use the same single-line scan rhythm as game cards. */
body.site-game63[data-design-site]
  :is(.reading-home, .reading-directory)
  .reading-card
  :is(h2, h3) {
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
  -webkit-line-clamp: unset;
  overflow: hidden;
  min-height: 0;
  max-height: none;
  margin-block: 4px 0;
}
body.site-game63[data-design-site] :is(.reading-home > ol, .reading-directory) > li {
  min-width: 0;
  display: flex;
}
body.site-game63[data-design-site] :is(.reading-home, .reading-directory) .reading-card {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
}
body.site-game63[data-design-site] :is(.reading-home, .reading-directory) .reading-copy {
  min-width: 0;
}

/* Text controls sit inside the player border without shrinking its image or iframe. */
body.site-game63 .player-stage .player-tools {
  box-sizing: border-box;
  padding-inline: 10px;
  flex-wrap: wrap;
}
body.site-game63 .player-stage [data-player-status] {
  box-sizing: border-box;
  padding-inline: 10px;
  overflow-wrap: break-word;
}

/* The index itself scrolls; long link text never turns into a tall narrow column. */
body.site-game63 .site-header .title-index {
  flex-wrap: wrap;
}
body.site-game63 .site-header.title-masthead .title-index .title-navigation {
  flex: 1 1 100px;
  min-width: 44px;
}
body.site-game63 .site-header.title-masthead .title-index .title-navigation a {
  white-space: nowrap;
  flex: none;
}

body.site-game63 .round-copy,
body.site-game63 .discovery-copy {
  min-width: 0;
  max-width: 100%;
}
body.site-game63 :is(.round-entry, .discovery-entry) h3 {
  align-self: start;
}
body.site-game63 .reading-controls {
  flex-wrap: wrap;
  gap: 4px 16px;
}

/* Side drawers use the viewport proportion; very large text gets a complete label row. */
body.site-game63 dialog[data-filters].category-panel {
  box-sizing: border-box;
  width: 70vw;
  max-width: 70vw;
  container: category-drawer / inline-size;
}
@container category-drawer (max-width: 12em) {
  body.site-game63 dialog[data-filters].category-panel .category-links a {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 8px;
  }
  body.site-game63 dialog[data-filters].category-panel .category-icon {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }
  body.site-game63 dialog[data-filters].category-panel .category-links [data-category-label] {
    grid-column: 1 / -1;
    grid-row: 2;
    overflow-wrap: normal;
    word-break: normal;
  }
  body.site-game63 dialog[data-filters].category-panel .category-links small {
    grid-column: 2;
    grid-row: 1;
  }
}

/* Full screen has no surrounding player frame, so controls share the image's content edge. */
body.site-game63 .player-stage:fullscreen .player-tools,
body.site-game63 .player-stage:fullscreen [data-player-status] {
  padding-inline: 0;
}
body.site-game63 .player-stage:fullscreen [data-full] {
  margin-left: auto;
}

/* Keep closed title disclosures hidden even without native dialog styling. */
body [data-title-toggle][hidden],
body [data-title-popup] {
  display: none !important;
}
body [data-title-popup][open] {
  display: block !important;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow: auto;
}
body [data-title-popup] button {
  min-width: 44px;
  min-height: 44px;
}
body [data-title-popup][data-title-fallback][open] {
  position: fixed;
  z-index: 1000;
  inset: 50% auto auto 50%;
  margin: 0;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 100vmax rgb(0 0 0 / 30%);
}

body .detail-toolbar [data-title-toggle] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
body .detail-toolbar [data-title-toggle] svg {
  display: block;
  flex: none;
}

/* Keep the original H1 in the DOM and ellipsize its single visible line. */
body .reading-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0 0 8px;
}
body .reading-title-row > h1 {
  flex: 1;
  min-width: 0;
  margin: 0 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body .reading-title-row > [data-article-list-back] {
  box-sizing: border-box;
  display: flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
  text-decoration: none;
}
body .reading-title-row > [data-article-list-back] svg {
  display: block;
  flex: none;
}
body .reading-title-row > [data-article-list-back]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}
body .reading-article > .reading-intro {
  margin-bottom: 8px;
}
body .reading-intro > .reading-title-row {
  margin-bottom: 0;
}
body .reading-guide-title > h1 {
  font-size: 18px;
  line-height: 1.35;
}
body .reading-guide-title + .content-group {
  margin-top: 0;
  padding-top: 0;
}

body .game-screen [data-image-error] {
  color: #fff;
  border-color: rgb(255 255 255 / 45%);
}
