/* 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;
  }
}
/* The brand is a separate compact masthead; the path below owns navigation. */
body .site-header .trail-brand {
  display: flex;
  align-items: center;
  min-height: 44px;
  border: 0;
}
body .site-header .trail-brand .wordmark {
  flex: none;
  font:
    500 21px/1.2 Georgia,
    serif;
  min-height: 44px;
  max-width: none;
  overflow: visible;
}
body .site-header .trail-path {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  border-top: 1px solid var(--line);
}
body .site-header .trail-navigation {
  display: flex;
  position: static;
  flex: 1;
  flex-wrap: nowrap;
  min-width: 0;
  margin: 0;
  padding: 0;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  border: 0;
  background: transparent;
  box-shadow: none;
}
body .site-header .trail-navigation a {
  flex: none;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  font-size: 14px;
  white-space: nowrap;
}
body .site-header .trail-navigation a[aria-current="page"] {
  background: transparent;
  box-shadow: inset 0 -1px var(--accent);
}
body .site-header .trail-path .discovery-trigger {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 0;
  padding: 10px;
  background: transparent;
}
body .site-header .trail-path .discovery-trigger svg {
  display: block;
}
@media (min-width: 900px) {
  body .site-header .trail-brand .wordmark {
    font-size: 24px;
  }
  body .site-header .trail-navigation {
    flex: none;
  }
  body .site-header .trail-path {
    justify-content: space-between;
  }
}
body .site-header .trail-navigation a {
  text-decoration: none;
  border-radius: 0;
}
body .site-header .trail-brand .wordmark {
  box-shadow: none;
  text-decoration: none;
}
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;
}

/* 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;
}

/* 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;
}

body.site-game61 .site-header .trail-brand .wordmark {
  display: flex;
  flex: 0 1 auto;
  max-width: 100%;
  white-space: normal;
}

/* The opening section label reads with its paragraph, without a separate empty row. */
body[data-design-site][data-design-page="article"] .reading-body > section:first-child h2 {
  display: inline;
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}
body[data-design-site][data-design-page="article"] .reading-body > section:first-child h2::after {
  content: ". ";
}
body[data-design-site][data-design-page="article"]
  .reading-body
  > section:first-child
  p:first-of-type {
  display: inline;
}

body[data-design-site][data-design-page="article"] .reading-article > .reading-intro {
  margin-bottom: 2px;
}
body[data-design-site][data-design-page="article"] .reading-article > .reading-intro h1 {
  margin-bottom: 0;
}

/* 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 compact serif wordmark follows a three-point trail into the current section. */
body.site-game61 .site-header.trail-masthead {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 4px !important;
  border: 0;
  border-bottom: 1px solid var(--line);
}
body.site-game61 .trail-brand {
  flex: 1 1 130px;
  min-width: min-content;
}
body.site-game61 .site-header .trail-brand .wordmark {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
  max-width: 100%;
  font:
    500 18px/1.15 Georgia,
    serif;
}
body.site-game61 .trail-brand .brand-name {
  min-width: 0;
  white-space: normal;
}
body.site-game61 .trail-path {
  flex: none;
  min-height: 44px;
  gap: 4px;
  border: 0;
}
body.site-game61 .trail-path .site-menu {
  position: relative;
}
body.site-game61 .trail-path summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  width: 7.2em;
  min-width: min-content;
  padding: 0 6px;
  font-size: 14px;
  line-height: 1.3;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
body.site-game61 .trail-path summary span {
  min-width: min-content;
}
body.site-game61 .trail-path .primary-navigation {
  right: 0;
  left: auto;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgb(26 45 32 / 0.1);
}
body.site-game61 .site-header .site-menu .primary-navigation a {
  text-decoration: none;
}
body.site-game61 .site-header .site-menu .primary-navigation a[aria-current="page"] {
  background: transparent;
  text-decoration: none;
  font-weight: 600;
  box-shadow: inset 2px 0 var(--accent);
}
body.site-game61 .trail-brand .wordmark[aria-current="page"] .brand-mark circle:last-child {
  r: 4px;
}
dialog[data-filters].category-panel {
  inset: 8px 0 auto auto;
  height: 80dvh;
  min-height: 70dvh;
  max-height: calc(100dvh - 16px);
  border-left: 1px solid var(--line);
}
dialog[data-filters].category-panel .category-links a[aria-current="page"] {
  background: transparent;
  box-shadow: inset 3px 0 var(--accent);
}
@media (min-width: 900px) {
  body.site-game61 .site-header .trail-brand .wordmark {
    font-size: 23px;
  }
  body.site-game61 .trail-path {
    gap: 14px;
  }
}

/* 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;
}

/* Dropdown refinement: one centred label/arrow pair inside the existing touch area. */
body.site-game61 .site-header .site-menu summary {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  line-height: 1.25;
  text-decoration: none !important;
  background: transparent !important;
  list-style: none;
}
body.site-game61 .site-header .site-menu summary::marker {
  content: "";
}
body.site-game61 .site-header .site-menu summary::after {
  content: none;
}
body.site-game61 .site-header .site-menu .menu-label {
  display: block;
  line-height: inherit;
}
body.site-game61 .site-header .site-menu .menu-chevron {
  display: block;
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  align-self: center;
  transform-origin: center;
}
body.site-game61 .site-header .site-menu summary::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-inline: 0;
  top: 50%;
  height: max(30px, 1.5em);
  transform: translateY(-50%);
  border-radius: 3px;
  background: transparent;
}
body.site-game61 .site-header .site-menu summary:hover::before {
  background: color-mix(in srgb, var(--accent) 7%, var(--paper));
}
body.site-game61 .site-header .site-menu[data-current-section] summary::before {
  background: color-mix(in srgb, var(--accent) 12%, var(--paper));
}
body.site-game61 .site-header .site-menu[open] summary::before {
  background: color-mix(in srgb, var(--accent) 20%, var(--paper));
}
body.site-game61 .site-header .site-menu .primary-navigation {
  top: calc(100% + 3px);
  min-width: 180px;
  color: var(--ink);
}
body.site-game61 .site-header .site-menu .primary-navigation a {
  position: relative;
  min-height: 44px;
  line-height: 1.25;
  font-weight: 400;
  text-decoration: none;
  background: transparent;
  box-shadow: none;
}
body.site-game61 .site-header .site-menu .primary-navigation a:hover {
  background: color-mix(in srgb, var(--accent) 6%, var(--paper));
}
body.site-game61 .site-header .site-menu .primary-navigation a[aria-current="page"] {
  color: var(--ink);
  background: color-mix(in srgb, var(--accent) 13%, var(--paper));
  font-weight: 600;
  text-decoration: none;
}
body.site-game61 .site-header .site-menu[data-current-section] summary::before,
body.site-game61 .site-header .site-menu .primary-navigation a[aria-current="page"] {
  box-shadow: inset 2px 0 var(--accent);
}
body.site-game61 .site-header .site-menu[open] summary::before {
  box-shadow:
    inset 2px 0 var(--accent),
    inset 0 -1px var(--accent);
}

/* Category controls keep icon, label and count on stable optical centres. */
body.site-game61 .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-game61 .site-header [data-open-filters] > svg {
  display: block;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  align-self: center;
}
body.site-game61 .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-game61: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-game61 .site-header [data-open-filters]:is(:hover, [aria-expanded="true"])::before {
  background: color-mix(in srgb, var(--accent) 20%, var(--paper));
}
body.site-game61 dialog[data-filters] .category-links a {
  align-items: center;
  line-height: 1.35;
  text-decoration: none;
  color: var(--ink);
}
body.site-game61 dialog[data-filters] .category-links a > span:nth-child(2) {
  line-height: 1.35;
  min-width: 0;
}
body.site-game61 dialog[data-filters] .category-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
}
body.site-game61 dialog[data-filters] .category-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}
body.site-game61 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-game61 dialog[data-filters] .category-links a:hover {
  background: color-mix(in srgb, var(--accent) 6%, var(--paper));
}
body.site-game61 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-game61 dialog[data-filters] .category-links a {
  height: auto;
}
body.site-game61 dialog[data-filters] .category-links small {
  min-width: max-content;
  white-space: nowrap;
}

body.site-game61 dialog[data-filters] .category-links {
  grid-auto-rows: max-content;
}

/* Current names remain complete, including restored category routes. */
body.site-game61 .site-header .site-menu summary {
  width: auto;
  min-width: 44px;
  max-width: 100%;
  gap: 5px;
}
body.site-game61 .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-game61 .game-entry .game-copy h3,
body.site-game61 .round-entry h3,
body.site-game61 .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-game61 .game-entry .game-excerpt,
body.site-game61 .round-copy p,
body.site-game61 .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-game61[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-game61[data-design-site] :is(.reading-home, .reading-directory) .reading-context {
  line-height: 1.3;
  margin: 0;
}
body.site-game61[data-design-site] :is(.reading-home, .reading-directory) .reading-card {
  min-height: 0;
  padding-block: 8px;
}

body.site-game61 .trail-brand {
  flex: 1 1 0;
}
/* The existing featured first card leaves a single tail at four or six trail entries. */
body.site-game61[data-design-page="home"] .trail-grid > .game-card:only-child,
body.site-game61[data-design-page="home"]
  .trail-grid
  > .game-card:last-child:nth-child(even):nth-child(n + 4) {
  grid-column: 1 / -1 !important;
}
body.site-game61[data-design-page="home"] .trail-grid > .game-card:only-child .game-entry,
body.site-game61[data-design-page="home"]
  .trail-grid
  > .game-card:last-child:nth-child(even):nth-child(n + 4)
  .game-entry {
  display: grid !important;
  grid-template-columns: clamp(88px, 28%, 180px) minmax(0, 1fr) !important;
  align-items: stretch;
}
body.site-game61[data-design-page="home"] .trail-grid > .game-card:only-child .thumbnail,
body.site-game61[data-design-page="home"]
  .trail-grid
  > .game-card:last-child:nth-child(even):nth-child(n + 4)
  .thumbnail {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none;
  aspect-ratio: 8 / 5 !important;
}
body.site-game61 .trail-grid .game-copy {
  padding-block: 6px !important;
}
body.site-game61 .trail-tools {
  justify-content: flex-start;
  gap: 0 4px;
  margin: 0 0 4px;
}
body.site-game61 .trail-words {
  margin: 0;
}
body.site-game61 .trail-tools button {
  padding-inline: 8px;
}
body.site-game61 .trail-tools [data-read-trail] {
  margin-left: 0;
}
body.site-game61 .trail-supplement {
  margin-top: 4px;
}

/* Preview titles use the same single-line scan rhythm as game cards. */
body.site-game61[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-game61[data-design-site] :is(.reading-home > ol, .reading-directory) > li {
  min-width: 0;
  display: flex;
}
body.site-game61[data-design-site] :is(.reading-home, .reading-directory) .reading-card {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
}
body.site-game61[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-game61 .player-stage .player-tools {
  box-sizing: border-box;
  padding-inline: 10px;
  flex-wrap: wrap;
}
body.site-game61 .player-stage [data-player-status] {
  box-sizing: border-box;
  padding-inline: 10px;
  overflow-wrap: break-word;
}

/* A name wraps at word boundaries before the navigation needs a second row. */
body.site-game61 .site-header .trail-brand .wordmark,
body.site-game61 .trail-brand .brand-name {
  min-width: min-content;
  overflow-wrap: normal;
  word-break: normal;
}

body.site-game61 .round-copy,
body.site-game61 .discovery-copy {
  min-width: 0;
  max-width: 100%;
}
body.site-game61 :is(.round-entry, .discovery-entry) h3 {
  align-self: start;
}
body.site-game61 .reading-controls {
  flex-wrap: wrap;
  gap: 4px 16px;
}

body.site-game61 .trail-grid {
  margin-bottom: 4px;
}

/* A fixed trigger footprint keeps ordinary current-label changes from moving the masthead. */
body.site-game61 .site-header .site-menu summary {
  box-sizing: border-box;
  width: 7.2em;
  gap: 6px;
  padding-inline: 6px;
}
body.site-game61 .site-header .site-menu .menu-label {
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Side drawers use the viewport proportion; very large text gets a complete label row. */
body.site-game61 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-game61 dialog[data-filters].category-panel .category-links a {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 8px;
  }
  body.site-game61 dialog[data-filters].category-panel .category-icon {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }
  body.site-game61 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-game61 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-game61 .player-stage:fullscreen .player-tools,
body.site-game61 .player-stage:fullscreen [data-player-status] {
  padding-inline: 0;
}
body.site-game61 .player-stage:fullscreen [data-full] {
  margin-left: auto;
}

/* Keep equal-height mobile previews from distributing spare space into their images. */
@media (max-width: 550px) {
  body.site-game61 .discovery-entry {
    grid-template-rows: auto 1fr;
  }
  body.site-game61 .discovery-entry > img {
    height: auto;
    aspect-ratio: 2 / 1;
    align-self: start;
  }
}

/* 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%);
}
