/* 68: site-owned identity and interaction refinement. */
body[data-design-site] .refined-header {
  display: block;
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  min-height: 0;
}
.refined-header :is(a, button, summary) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 10px;
  text-decoration: none;
  white-space: nowrap;
  font-size: 14px;
  border: 0;
  background: transparent;
  color: var(--ink);
}
.refined-header .wordmark {
  padding-inline: 0;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.5px;
}
.brand-zone {
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-symbol {
  font-size: 28px;
  line-height: 1;
  color: var(--accent);
}
.refined-header .brand-help {
  margin-left: auto;
  font-size: 13px;
}
.directory-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.refined-header .primary-navigation {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0;
  overflow-x: auto;
  min-width: 0;
}
.refined-header .primary-navigation a {
  position: relative;
  flex: none;
}
.refined-header a[aria-current="page"] {
  text-decoration: none;
  box-shadow: none;
}
.refined-header .primary-navigation a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  height: 2px;
  background: var(--accent);
}
.refined-header .category-open {
  flex: none;
  gap: 8px;
  padding-right: 0;
}
body[data-design-site] main {
  padding-top: 10px;
}
body[data-design-site] .listing-summary {
  margin: 0 0 8px;
  line-height: 24px;
  font-size: 14px;
}
body[data-design-site] .detail-toolbar {
  height: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  border: 0;
}
body[data-design-site] .detail-toolbar [data-return] {
  display: flex;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
}
.detail-toolbar [data-return] svg {
  display: block;
}
body[data-design-site] .detail-toolbar h1 {
  min-width: 0;
  flex: 1;
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
body[data-design-site] .player-stage {
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
}
body[data-design-site] .player-tools {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 4px 0 0;
  background: transparent;
  color: var(--ink);
}
body[data-design-site] .player-tools button {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 6px 10px;
}
body[data-design-site] .player-tools [data-play] {
  background: var(--accent);
  color: white;
  border-radius: 4px;
}
body[data-design-site] .player-tools button[disabled] {
  display: none;
}
body[data-design-site] [data-player-status] {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  margin: 4px 0 10px;
  padding: 0;
}
body[data-design-site] .player-stage .game-screen {
  aspect-ratio: 4/3;
  min-height: 0;
  max-height: 72dvh;
  background: var(--line);
}
body[data-design-site] .game-screen > :is(img, iframe) {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
body[data-design-site] .player-stage:fullscreen {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  width: 100%;
  padding: 0 8px;
  background: var(--paper);
}
body[data-design-site] .player-stage:fullscreen .game-screen {
  flex: 1;
  max-height: none;
  min-height: 0;
  aspect-ratio: auto;
}
body[data-design-site] dialog.category-panel[data-filters] {
  position: fixed;
  inset: 0 auto 0 0;
  margin: 0;
  padding: 0;
  width: min(88vw, 390px);
  height: 100dvh;
  min-height: 70dvh;
  max-height: 100dvh;
  max-width: none;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: var(--paper);
  overflow: hidden;
}
body[data-design-site] dialog.category-panel[open] {
  display: flex;
  flex-direction: column;
}
.category-panel::backdrop {
  background: #162b2580;
}
.category-panel .dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  padding: max(8px, env(safe-area-inset-top)) 16px 8px;
  border-bottom: 1px solid var(--line);
}
.category-panel .dialog-heading h2 {
  font-size: 18px;
  margin: 0;
}
.category-panel .dialog-heading button {
  border: 0;
  padding: 4px 8px;
}
body[data-design-site] .category-panel .category-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 12px 16px max(16px, env(safe-area-inset-bottom));
  margin: 0;
  min-height: 0;
  overflow: auto;
}
body[data-design-site] .category-panel .category-links a {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 8px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-size: 16px;
  text-transform: none;
}
.category-icon {
  display: flex;
  justify-content: center;
}
.category-panel .category-links small {
  font-size: 13px;
  opacity: 1;
}
.category-panel .category-links a[aria-current="page"] {
  background: color-mix(in srgb, var(--accent) 12%, var(--paper));
  box-shadow: none;
}
body[data-design-site] .round-game {
  border: 0;
}
body[data-design-site] .game-copy h3 {
  margin: 0;
  min-height: 2.8em;
  font-size: 15px;
  line-height: 1.4;
}
body[data-design-site] .game-entry {
  text-decoration: none;
}
body[data-design-site] .static-index {
  margin-block: 16px;
}
.static-index summary {
  min-height: 44px;
  cursor: pointer;
}
.static-index ul {
  padding-left: 20px;
}
.static-index a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
body[data-design-site] .reading-directory .reading-card {
  border-top: 0;
}
body[data-design-site] .reading-directory li + li .reading-card {
  border-top: 1px solid var(--line);
}
@media (min-width: 768px) {
  .refined-header .brand-zone {
    max-width: 100%;
  }
  body[data-design-site] .player-stage .game-screen {
    aspect-ratio: 16/10;
  }
  body[data-design-site] .detail-toolbar h1 {
    font-size: 15px;
  }
}
/* Reset legacy layout rules at the identity boundary only. */
body[data-design-site] .refined-header {
  margin-bottom: 0 !important;
}
body[data-design-site] .refined-header .wordmark {
  flex: 0 0 auto;
  margin: 0;
  box-shadow: none;
  overflow: visible;
  text-overflow: clip;
}
body[data-design-site] .refined-header .primary-navigation {
  order: 0;
  flex: 0 1 auto;
}
body[data-design-site] .refined-header .primary-navigation a[aria-current="page"] {
  background: transparent;
  box-shadow: none;
}
body[data-design-site] .timer-grid .thumbnail {
  display: block;
  position: relative;
  aspect-ratio: 1.35;
  width: 100%;
  overflow: hidden;
}
body[data-design-site] .timer-grid .thumbnail img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body[data-design-site] .timer-grid .game-entry {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
body[data-design-site] .timer-grid .game-copy {
  width: 100%;
  padding: 0;
}
body[data-design-site] .timer-grid .game-copy h3 {
  min-height: 2.8em;
}
body[data-design-site] .timer-grid {
  row-gap: 16px;
}
@media (min-width: 768px) {
  body[data-design-site] .timer-grid .thumbnail {
    aspect-ratio: 2.4;
  }
}
/* Focus keeps an editorial masthead and centered contents line. */
body[data-design-site] .focus-masthead {
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
body[data-design-site] .focus-masthead .wordmark {
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 500;
}
body[data-design-site] .focus-path {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
body[data-design-site] .focus-path .primary-navigation {
  flex: 1;
  justify-content: center;
  gap: 0;
}
body[data-design-site] .focus-path .category-open span {
  display: none;
}
body[data-design-site] .focus-path .category-open {
  min-width: 44px;
  justify-content: center;
  padding: 0;
}
body[data-design-site] dialog.category-panel[data-filters] {
  inset: 0;
  margin: auto;
  width: min(640px, calc(100vw - 24px));
  height: 80dvh;
  max-height: calc(100dvh - 24px);
  border: 1px solid var(--line);
  border-radius: 8px;
}
body[data-design-site] .category-panel .category-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
  align-content: start;
}
body[data-design-site] .category-panel .category-links a {
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 6px;
  padding-block: 12px;
}
body[data-design-site] .category-panel .category-links a:first-child {
  grid-column: 1/-1;
  border-bottom: 2px solid var(--line);
  margin-bottom: 8px;
}
body[data-design-site] .player-stage {
  display: flex;
  flex-direction: column;
}
body[data-design-site] .player-tools {
  justify-content: center;
  gap: 10px;
}
body[data-design-site] .player-tools [data-play] {
  min-width: 100px;
  border-radius: 24px;
}
body[data-design-site] .focus-spread {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
}
body[data-design-site] .focus-spread .focus-feature {
  margin: 0;
  padding: 0;
  border: 0;
}
body[data-design-site] .focus-spread .game-entry {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
body[data-design-site] .focus-spread .thumbnail {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1.8;
  overflow: hidden;
}
body[data-design-site] .focus-spread .thumbnail img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body[data-design-site] .focus-spread .game-copy {
  width: 100%;
  padding: 0;
}
body[data-design-site] .focus-reading {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 13px;
  margin: 0;
}
@media (min-width: 768px) {
  body[data-design-site] .focus-spread {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  body[data-design-site] .focus-spread .focus-feature:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }
  body[data-design-site] .focus-spread .focus-feature:first-child .thumbnail {
    aspect-ratio: 1.8;
  }
}

/* Only supplied game excerpts are bounded; independent article summaries remain complete. */
body[data-design-site] :is(.round-game-copy, .discovery-copy) p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 0;
  max-height: none;
}
body[data-design-site] .round-game-copy h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 2.8em;
  line-height: 1.4;
}
/* Keep first-batch games together; editorial previews follow the live list. */
body[data-design-site] .focus-spread .focus-feature {
  grid-column: auto;
  grid-row: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
body[data-design-site] .focus-spread .game-entry {
  flex: none;
  margin: 0;
}
body[data-design-site] .focus-spread .game-copy h3 {
  min-height: 2.8em;
}
body[data-design-site] .focus-spread .focus-reading {
  margin: 0;
  padding: 0;
  min-height: 44px;
  border: 0;
  justify-content: flex-start;
}
@media (min-width: 768px) {
  body[data-design-site] .focus-spread .focus-feature:first-child {
    grid-column: span 2;
    grid-row: auto;
  }
  body[data-design-site] .focus-spread .thumbnail {
    aspect-ratio: 2.8;
  }
  body[data-design-site] .focus-spread .focus-feature:first-child .thumbnail {
    aspect-ratio: 5.7;
  }
}

body[data-design-site] .game-copy .listing-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 0;
  max-height: none;
  line-height: 1.5;
}

/* Home and appended game cards use the same two-line excerpt budget. */
body[data-design-site] .home-listing-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 0;
  max-height: none;
  line-height: 1.5;
}

/* Reading starts with the title and original body, without nested section padding. */
body[data-design-page="article"] .reading-main {
  width: min(1180px, calc(100% - 24px));
  padding: 6px 0;
}
body[data-design-page="article"] .reading-intro {
  margin: 0 0 6px;
}
body[data-design-page="article"] .reading-intro h1 {
  font-size: 18px;
  line-height: 1.25;
  margin: 0;
}
body[data-design-page="article"] .reading-body section {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}
body[data-design-page="article"] .reading-body h2 {
  font-size: 17px;
  line-height: 1.3;
  margin: 0 0 4px;
}
body[data-design-page="information"] main > h1 {
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 6px;
}
body[data-design-page="information"] main > .content-group {
  margin: 0 0 8px;
  padding: 0 0 8px;
  max-inline-size: 70ch;
}
body[data-design-page="information"] .content-group h2 {
  font-size: 17px;
  line-height: 1.3;
  margin: 0 0 4px;
}
body[data-design-page="information"] .content-group p {
  margin: 0 0 6px;
}

/* Information sections continue directly into readable prose. */
body[data-design-page="information"] main > .content-group {
  margin: 0 0 4px;
  padding: 0;
  border: 0;
}
body[data-design-page="information"] .content-group p {
  margin: 0 0 4px;
}

/* The host leaves room for controls in a short landscape viewport. */
body[data-design-site] .player-stage:not(:fullscreen) .game-screen {
  max-height: min(72dvh, max(140px, calc(100dvh - 210px)));
}

/* 2026-10-22: compact identity, with decoration inside full hit targets. */
body[data-design-site] .refined-header {
  min-height: 48px;
  align-items: center;
  column-gap: 8px;
}
body[data-design-site] .refined-header :is(a, button, summary) {
  min-width: 44px;
  line-height: 1.2;
}
body[data-design-site] .refined-header .wordmark {
  gap: 7px;
  letter-spacing: -0.4px;
  position: relative;
}
body[data-design-site] .refined-header .identity-mark {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body[data-design-site] .refined-header .category-open {
  padding: 0;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
}
body[data-design-site] .refined-header .category-open > span {
  display: none;
}
body[data-design-site] .refined-header .site-menu > summary {
  gap: 5px;
  position: relative;
  list-style: none;
  cursor: pointer;
}
body[data-design-site] .refined-header .site-menu > summary::-webkit-details-marker {
  display: none;
}
body[data-design-site] .refined-header .site-menu > summary svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
body[data-design-site] .refined-header .site-menu nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  position: absolute;
  z-index: 40;
  top: 100%;
  right: 0;
  left: auto;
  width: max-content;
  max-width: calc(100vw - 24px);
  max-height: 72dvh;
  overflow: auto;
  padding: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
}
body[data-design-site] .refined-header .site-menu:not([open]) nav {
  display: none;
}
body[data-design-site] .refined-header .site-menu nav a {
  justify-content: flex-start;
  padding: 8px 12px;
  white-space: normal;
}
body[data-design-site] .refined-header .site-menu nav a[aria-current="page"] {
  font-weight: 650;
  background: color-mix(in srgb, var(--accent) 9%, transparent);
}
body[data-design-site] .panel-tools {
  margin: auto 16px 0;
  padding: 8px 0 max(12px, env(safe-area-inset-bottom));
  flex: none;
  border-top: 1px solid var(--line);
}
body[data-design-site] .panel-tools a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: 16px;
  text-decoration: none;
}
/* The complete text remains in the link; only repeated preview presentation is bounded. */
body[data-design-site]
  :is(.game-copy h3, .discovery-copy h3, .reading-card h3, .reading-card .reading-summary) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
body[data-design-site] :is(.reading-card h3, .reading-card .reading-summary) {
  min-block-size: 2lh;
}
body[data-design-site] .reading-copy {
  min-width: 0;
}
body[data-design-site] .identity-focus.refined-header {
  display: grid;
  position: relative;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 6px;
}
body[data-design-site] .identity-focus .focus-masthead {
  border: 0;
  min-width: 0;
}
body[data-design-site] .identity-focus .wordmark {
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  white-space: normal;
  text-align: center;
  padding-block: 2px;
}
body[data-design-site] .identity-focus .identity-mark {
  width: 19px;
  height: 19px;
  stroke-width: 1.4;
}
body[data-design-site] .identity-focus .site-menu > summary {
  padding: 0;
}
body[data-design-site] .identity-focus .site-menu {
  position: static;
}
body[data-design-site] .identity-focus .site-menu > summary svg {
  width: 22px;
  height: 22px;
}
body[data-design-site] .identity-focus .wordmark[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 4px;
  width: 24px;
  height: 1px;
  background: var(--accent);
}
body[data-design-site] .identity-focus .site-menu[data-current-menu] > summary::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  right: 4px;
  top: 8px;
  border-radius: 50%;
  background: var(--accent);
}
body[data-design-site] .identity-focus .site-menu nav {
  min-width: 176px;
}
body[data-design-site] .category-panel .category-links a:first-child {
  min-height: 52px;
  padding-block: 8px;
  border-bottom-width: 1px;
}

/* Whole-page review: compact, aligned previews without changing their complete text. */
body[data-design-site] .reading-card :is(h2, h3),
body[data-design-site] .round-reading :is(h3, p) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
body[data-design-site] .reading-card :is(h2, h3) {
  min-block-size: 2lh;
}
body[data-design-site] .reading-directory {
  align-items: stretch;
}
body[data-design-site] .reading-directory > li {
  min-width: 0;
}
body[data-design-site] .reading-directory .reading-card {
  height: 100%;
}
body[data-design-site] .round-game-copy {
  padding-top: 6px;
  padding-bottom: 8px;
}
body[data-design-site] .round-game-copy h3 {
  margin: 0;
}
body[data-design-site] .round-game-copy p {
  margin: 6px 0 0;
  min-block-size: 2lh;
}
body[data-design-site] .discovery-copy h3 {
  min-block-size: 2lh;
}
body[data-design-site] .discovery-copy p {
  min-block-size: 2lh;
}
body[data-design-site] .round-reading h3 {
  min-block-size: 2lh;
}
body[data-design-site] .round-reading p {
  min-block-size: 2lh;
}
/* The center wordmark must wrap inside its own track when text is enlarged. */
body[data-design-site] .identity-focus .focus-masthead .wordmark {
  flex: 0 1 auto;
  max-width: 100%;
  min-width: 0;
}
body[data-design-site] .identity-focus .wordmark > span {
  min-width: 0;
  overflow-wrap: normal;
}
body[data-design-site] .focus-spread .game-copy {
  padding: 6px 0 0 !important;
}
body[data-design-site] .focus-spread .focus-feature:first-child .game-copy h3 {
  min-height: 0 !important;
}
body[data-design-site] .reading-directory .reading-art {
  width: 100%;
  height: auto;
  aspect-ratio: 1.8;
  overflow: hidden;
  flex: none;
}
body[data-design-site] .reading-directory .reading-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body[data-design-site] [data-focus-page] .content-group {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
}
body[data-design-site] [data-focus-page] .content-group h2 {
  font-size: 17px;
  margin: 0 0 4px;
}
body[data-design-site] [data-focus-page] .content-group p {
  margin: 0 0 8px;
}
body[data-design-site] [data-focus-card] .game-copy {
  padding: 6px 0 !important;
}
body[data-design-site] [data-focus-card] .game-copy h3 {
  min-height: 0 !important;
}

/* Equal editorial previews keep the existing columns and DOM order. */
body[data-design-site="Game68"] .reading-directory > li:nth-child(n) .reading-art {
  aspect-ratio: 1.8;
}
body[data-design-site="Game68"] .reading-directory {
  grid-auto-rows: auto;
  align-items: stretch;
}

/* Recovery takes one useful row before the site's own real recommendations. */
body[data-page-status="not-found"] main {
  padding-top: 0;
}
body[data-page-status="not-found"] .not-found-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 12px;
}
body[data-page-status="not-found"] .not-found-row h1 {
  font-size: 18px;
  line-height: 1.3;
  margin: 0;
}
body[data-page-status="not-found"] .not-found-row > a {
  display: inline-flex;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  padding: 0 8px;
}
body[data-page-status="not-found"] .round-games {
  margin-top: 4px;
}
body[data-page-status="not-found"] .not-found-row h1 {
  font-family: Georgia, serif;
  font-weight: 500;
}

/* An empty result offers a native recovery link, then fixed real previews. */
body[data-empty-results] :is(.listing-summary, [data-list-discovery] > h2) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
body[data-empty-results] [data-empty]:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 8px;
  margin: 0;
}
body[data-empty-results] [data-empty] a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}
body[data-empty-results] [data-list-discovery] {
  margin-top: 8px;
}

/* 2026-10-22 dropdown revision: stable icon boxes and readable category state. */
body[data-design-site] .refined-header .category-open {
  position: relative;
  isolation: isolate;
  align-items: center;
  line-height: 1;
}
body[data-design-site] .refined-header .category-open > svg {
  display: block;
  width: 22px;
  height: 22px;
  flex: none;
}
body[data-design-site] .refined-header .category-open::after {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: -1;
  border-radius: var(--category-radius, 4px);
}
body[data-design-site] .refined-header .category-open[data-current-section]::after {
  background: color-mix(in srgb, var(--accent) 14%, var(--paper));
}
body[data-design-site] .refined-header .category-open[aria-expanded="true"]::after {
  background: color-mix(in srgb, var(--accent) 24%, var(--paper));
  box-shadow: inset 0 0 0 1px var(--accent);
}
body[data-design-site] .category-panel .category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  line-height: 1;
}
body[data-design-site] .category-panel .category-icon svg {
  display: block;
  width: 22px;
  height: 22px;
  flex: none;
}
body[data-design-site] .category-panel .category-label {
  line-height: 1.3;
  overflow-wrap: anywhere;
}
body[data-design-site] .category-panel .category-links small {
  align-self: center;
  justify-self: end;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
body[data-design-site] .category-panel .category-links a {
  position: relative;
  text-decoration: none;
}
body[data-design-site] .category-panel .category-links a[aria-current="page"] {
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}
body[data-design-site] .category-panel .category-links a:hover {
  background: color-mix(in srgb, var(--accent) 7%, var(--paper));
}
body[data-design-site] .category-panel .category-links a[aria-current="page"]:hover {
  background: color-mix(in srgb, var(--accent) 20%, var(--paper));
}
body[data-design-site]
  :is(.category-panel .category-links a, .refined-header .category-open):focus-visible {
  outline: 2px solid var(--accent) !important;
  outline-offset: -3px !important;
}

body[data-design-site] .refined-header .site-menu > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  isolation: isolate;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  list-style: none;
  text-decoration: none;
}
body[data-design-site] .refined-header .site-menu > summary::marker {
  content: "";
}
body[data-design-site] .refined-header .site-menu > summary::-webkit-details-marker {
  display: none;
}
body[data-design-site] .refined-header .site-menu > summary::before {
  content: none;
}
body[data-design-site] .refined-header .site-menu > summary::after {
  content: "";
  position: absolute;
  inset: 8px 3px;
  width: auto;
  height: auto;
  border-radius: var(--menu-radius, 3px);
  z-index: -1;
  background: transparent;
}
body[data-design-site] .refined-header .site-menu[data-current-menu] > summary::after {
  background: color-mix(in srgb, var(--accent) 16%, var(--paper));
  box-shadow: var(--menu-current-mark, inset 0 -2px var(--accent));
}
body[data-design-site] .refined-header .site-menu[open] > summary::after {
  background: color-mix(in srgb, var(--accent) 25%, var(--paper));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 65%, var(--paper));
}
body[data-design-site] .refined-header .site-menu > summary .menu-label {
  display: block;
  line-height: 1.2;
}
body[data-design-site] .refined-header .site-menu > summary .menu-chevron {
  display: block;
  flex: none;
  width: 12px;
  height: 12px;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-origin: center;
}
body[data-design-site] .refined-header .site-menu[open] > summary .menu-chevron {
  transform: rotate(180deg);
}
body[data-design-site] .refined-header .site-menu nav {
  min-width: 168px;
  border-color: color-mix(in srgb, var(--accent) 35%, var(--paper));
  box-shadow: 0 6px 14px #17120e12;
}
body[data-design-site] .refined-header .site-menu nav a {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  min-height: 44px;
  text-decoration: none;
  font-weight: 500;
  line-height: 1.3;
  box-shadow: none;
}
body[data-design-site] .refined-header .site-menu nav a::before {
  content: "";
  display: block;
  position: static;
  width: 22px;
  height: 22px;
  background: transparent;
}
body[data-design-site] .refined-header .site-menu nav a::after {
  content: none;
}
body[data-design-site] .refined-header .site-menu nav a[aria-current="page"] {
  color: var(--ink);
  background: color-mix(in srgb, var(--accent) 16%, var(--paper));
  font-weight: 650;
  text-decoration: none;
}
body[data-design-site] .refined-header .site-menu nav a:hover {
  background: color-mix(in srgb, var(--accent) 7%, var(--paper));
}
body[data-design-site] .refined-header .site-menu nav a[aria-current="page"]:hover {
  background: color-mix(in srgb, var(--accent) 22%, var(--paper));
}
body[data-design-site] .refined-header .site-menu :is(summary, nav a):focus-visible {
  outline: 2px solid var(--accent) !important;
  outline-offset: -3px !important;
}
body[data-design-site] .identity-focus {
  --category-radius: 2px;
  --menu-radius: 2px;
  --menu-current-mark: inset 0 0 0 1px var(--accent);
}
body[data-design-site] .identity-focus .site-menu > summary .menu-chevron {
  width: 22px;
  height: 22px;
}
body[data-design-site] .identity-focus .site-menu nav a[aria-current="page"]::before {
  background: linear-gradient(var(--accent), var(--accent)) center / 6px 6px no-repeat;
}
body[data-design-site] .panel-center .category-links {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, max(9em, 45%)), 1fr));
}
body[data-design-site] .panel-center .category-links a[aria-current="page"] {
  background: color-mix(in srgb, var(--accent) 16%, var(--paper));
  box-shadow: inset 0 -2px var(--accent);
}

body[data-design-site] .refined-header .site-menu[data-current-menu] > summary {
  color: var(--ink);
  font-weight: 600;
}
body[data-design-site] .refined-header .site-menu[data-current-menu] > summary::before {
  content: none;
}

body[data-design-site] .refined-header .site-menu[data-current-menu] > summary::after {
  inset: 8px 3px;
  width: auto;
  height: auto;
  border-radius: var(--menu-radius, 3px);
}

@media (forced-colors: active) {
  body[data-design-site]
    :is(
      .refined-header :is(button, summary, nav a),
      .category-panel .category-links a
    ):focus-visible {
    outline-color: Highlight !important;
  }
}

/* Current followup: one visible title line and two supplied excerpt lines. */
body[data-design-site] :is(.game-copy, .round-game-copy, .discovery-copy) {
  min-width: 0;
}
body[data-design-site]
  :is(
    .game-copy h3,
    .round-game-copy h3,
    .discovery-copy h3,
    .reading-card h2,
    .reading-card h3,
    .round-reading h3
  ) {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: unset;
  min-height: 0 !important;
  min-block-size: 0 !important;
  block-size: 1lh;
  max-block-size: 1lh;
}
body[data-design-site]
  :is(
    .listing-excerpt,
    .home-listing-excerpt,
    .round-game-copy p,
    .discovery-copy p,
    .reading-card .reading-summary,
    .round-reading p
  ) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-block-size: 2lh;
  max-block-size: 2lh;
}
body[data-design-site]
  :is(
    .listing-excerpt,
    .home-listing-excerpt,
    .round-game-copy p,
    .discovery-copy p,
    .reading-card .reading-summary,
    .round-reading p
  ):empty {
  display: none;
  min-block-size: 0;
}
body[data-design-site] .reading-card {
  padding-block: 8px;
}
body[data-design-site] .reading-context {
  margin-block: 0 2px;
}

/* These sites have unframed player controls: retain button padding, with edge-aligned controls/status. */
body[data-design-site] .player-tools,
body[data-design-site] [data-player-status] {
  box-sizing: border-box;
  padding-inline: 0;
  max-width: 100%;
}
body[data-design-site] .player-tools {
  flex-wrap: wrap;
  justify-content: flex-start;
}
body[data-design-site] .player-tools [data-full] {
  margin-inline-start: auto;
}
body[data-design-site] [data-player-status] {
  overflow-wrap: anywhere;
}

/* A fixed disclosure slot preserves brand/control coordinates when the destination changes. */
body[data-design-site] .refined-header .site-menu > summary {
  display: inline-flex;
  box-sizing: border-box;
  width: var(--menu-slot);
  gap: 6px;
  justify-content: flex-start;
  padding-inline: 8px;
}
body[data-design-site] .refined-header .site-menu > summary .menu-label {
  display: block;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  line-height: 1.2;
}
body[data-design-site] .refined-header .site-menu > summary .menu-chevron {
  flex: none;
  width: 12px;
  height: 12px;
}
@media (max-width: 360px) {
  body[data-design-site] .refined-header .site-menu > summary {
    padding-inline: 5px;
    gap: 5px;
  }
}
body[data-design-site] .identity-focus.refined-header {
  --menu-slot: 110px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 4px;
}
body[data-design-site] .identity-focus .focus-masthead {
  flex: 1 1 auto;
  min-width: 0;
}
body[data-design-site] .identity-focus .wordmark {
  min-width: 0;
  max-width: 100%;
}
body[data-design-site] .identity-focus .wordmark > span {
  min-width: 0;
  white-space: normal;
}
@media (max-width: 360px) {
  body[data-design-site] .identity-focus.refined-header {
    --menu-slot: 73px;
    gap: 2px;
  }
}

/* The heading and Close reflow as whole controls when text is enlarged. */
body[data-design-site] .category-panel .dialog-heading {
  flex-wrap: wrap;
  gap: 4px;
}
body[data-design-site] .category-panel .dialog-heading h2 {
  overflow-wrap: normal;
  word-break: normal;
}
body[data-design-site] .article-heading {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  box-shadow: none;
}
body[data-design-site] .article-heading h1 {
  flex: 1;
  min-width: 0;
  margin: 0;
  border: 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body[data-design-site] .article-return {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  line-height: 1;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  color: var(--ink);
}
body[data-design-site] .article-return svg {
  display: block;
  flex: none;
}
body[data-design-site] .article-return:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
[data-title-popup]:not([open]) {
  display: none;
}
body[data-design-site] .detail-toolbar [data-title-toggle] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
body[data-design-site] .detail-toolbar [data-title-toggle][hidden] {
  display: none;
}
body[data-design-site] .detail-toolbar [data-title-toggle] svg {
  display: block;
  flex: none;
  width: 22px;
  height: 22px;
}
[data-title-popup][data-title-fallback][open] {
  position: fixed;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  max-height: min(70dvh, calc(100% - 24px));
  overflow: auto;
  z-index: 1001;
}

/* Real preview failures retain the image node and its reserved geometry. */
[data-image-failure] {
  position: relative;
}
[data-image-failure] > .image-error {
  position: absolute;
  inset: 0;
  min-height: 0;
  border: 0;
  background: var(--paper, var(--bg, #fff));
}
[data-image-failure] > .image-error[hidden] {
  display: none;
}
