/* 67: 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;
  }
}
/* Notebook masthead, saved tab and small ruled directory. */
body[data-design-site] .notebook-masthead {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
body[data-design-site] .notebook-masthead .wordmark {
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 500;
}
body[data-design-site] .saved-entry {
  padding-inline: 12px;
  border-left: 1px solid var(--line);
}
body[data-design-site] .notebook-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
}
body[data-design-site] .notebook-tabs .category-open {
  margin-left: auto;
}
.refined-header .site-menu {
  position: relative;
  margin: 0;
  flex: none;
}
.refined-header .site-menu nav {
  position: absolute;
  z-index: 30;
  top: 100%;
  left: 0;
  width: max-content;
  padding: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.refined-header .site-menu:not([open]) nav {
  display: none;
}
body[data-design-site] .category-panel .category-links {
  padding: 12px 22px;
  background-image: none;
}
body[data-design-site] .category-panel .category-links a {
  min-height: 54px;
  border-bottom-style: solid;
  grid-template-columns: 30px minmax(0, 1fr) 30px;
}
body[data-design-site] .category-panel .category-links a small {
  text-align: right;
}
body[data-design-site] .player-tools {
  justify-content: flex-end;
  border-bottom: 1px solid var(--line);
}
body[data-design-site] .player-tools [data-play] {
  margin-right: auto;
  color: var(--ink);
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 0;
}
body[data-design-site] [data-batches] .thumbnail {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1.6;
  overflow: hidden;
}
body[data-design-site] [data-batches] .thumbnail img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/* 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;
}

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)));
}

body[data-design-site] .notebook-masthead,
body[data-design-site] .notebook-tabs {
  flex-wrap: wrap;
}
body[data-design-site] .notebook-tabs .primary-navigation {
  flex-shrink: 0;
}

/* 2026-10-22: notebook accents sit inside generous transparent hit areas. */
body[data-design-site] .notebook-masthead {
  border-bottom: 0;
}
body[data-design-site] .saved-entry {
  position: relative;
  border-left: 0;
}
body[data-design-site] .saved-entry::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 14px;
  transform: translateY(-50%);
  background: var(--line);
}
body[data-design-site] .notebook-tabs .primary-navigation a {
  isolation: isolate;
}
body[data-design-site] .notebook-tabs .primary-navigation a[aria-current="page"]::after {
  content: none;
}
body[data-design-site] .notebook-tabs .primary-navigation a[aria-current="page"]::before {
  content: "";
  position: absolute;
  inset: 8px 3px;
  z-index: -1;
  background: color-mix(in srgb, var(--accent) 9%, transparent);
}

/* 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-notebook.refined-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
body[data-design-site] .identity-notebook .notebook-masthead {
  border: 0;
  flex-wrap: nowrap;
}
body[data-design-site] .identity-notebook .wordmark {
  gap: 6px;
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 500;
}
body[data-design-site] .identity-notebook .identity-mark {
  width: 21px;
  height: 27px;
}
body[data-design-site] .identity-notebook .notebook-name {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  gap: 2px;
}
body[data-design-site] .identity-notebook .notebook-name small {
  font-family: system-ui, sans-serif;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
body[data-design-site] .identity-notebook .notebook-tabs {
  gap: 0;
  flex-wrap: nowrap;
}
body[data-design-site] .identity-notebook .saved-entry {
  padding-inline: 10px;
}
body[data-design-site] .identity-notebook .site-menu > summary {
  padding-inline: 8px;
  isolation: isolate;
}
body[data-design-site]
  .identity-notebook
  :is(.saved-entry[aria-current="page"], .site-menu[data-current-menu] > summary)::after {
  content: "";
  position: absolute;
  inset: 9px 3px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  z-index: -1;
}
body[data-design-site] .identity-notebook .saved-entry {
  isolation: isolate;
}
body[data-design-site] .identity-notebook .wordmark[aria-current="page"] .identity-mark {
  stroke-width: 2;
}

/* Override the original mobile column at the refined identity boundary. */
body[data-design-site] .refined-header {
  flex-direction: row;
}
@media (max-width: 360px) {
  body[data-design-site] .identity-notebook.refined-header {
    column-gap: 4px;
  }
}

/* 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;
}
body[data-design-site] [data-clear-views]:disabled {
  display: none;
}
body[data-design-site] [data-saved-views] > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

/* 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;
}

/* 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;
}

body[data-saved-empty] main > h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
body[data-saved-empty] [data-saved-views] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 12px;
}
body[data-saved-empty] [data-saved-views] p {
  margin: 0;
}
body[data-saved-empty] .round-games {
  margin-top: 8px;
}
body[data-saved-empty] .round-games > h2 {
  margin-bottom: 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: inherit;
  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-notebook {
  --category-radius: 1px;
  --menu-radius: 1px;
  --menu-current-mark: inset 3px 0 var(--accent);
}
body[data-design-site] .identity-notebook .site-menu nav a[aria-current="page"]::before {
  background: linear-gradient(var(--accent), var(--accent)) center / 3px 14px no-repeat;
}
body[data-design-site] .panel-left .category-links a[aria-current="page"] {
  background: color-mix(in srgb, var(--accent) 16%, var(--paper));
  box-shadow: inset 3px 0 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;
}
@media (max-width: 360px) {
  body[data-design-site] .identity-notebook .site-menu > summary {
    padding-inline: 5px;
    gap: 5px;
  }
}
body[data-design-site] .identity-notebook.refined-header {
  position: relative;
}
body[data-design-site] .identity-notebook .site-menu {
  position: static;
}
body[data-design-site] .identity-notebook .site-menu nav {
  right: 44px;
}

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;
  }
}
body[data-design-site] .panel-left .category-links a {
  grid-template-columns: 30px minmax(0, 1fr) max-content;
}
body[data-design-site] .panel-left .category-links small {
  white-space: nowrap;
}

/* 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;
  }
}

/* User final width: side drawers use 70% of the current viewport at every breakpoint. */
body[data-design-site] dialog.category-panel:is(.panel-left, .panel-right)[data-filters] {
  width: 70vw;
  max-width: none;
}
body[data-design-site] .category-panel:is(.panel-left, .panel-right) .dialog-heading {
  flex-wrap: wrap;
  gap: 4px;
}
body[data-design-site] .category-panel:is(.panel-left, .panel-right) .category-links small {
  white-space: nowrap;
}
@media (max-width: 600px) {
  body[data-design-site] .category-panel:is(.panel-left, .panel-right) .dialog-heading {
    padding-inline: 10px;
  }
  body[data-design-site] .category-panel:is(.panel-left, .panel-right) .category-links {
    padding-inline: 10px;
  }
  body[data-design-site] .category-panel:is(.panel-left, .panel-right) .category-links a {
    grid-template-columns: 24px minmax(0, 1fr) max-content;
    gap: 6px;
  }
}
body[data-design-site] .identity-notebook {
  --menu-slot: 110px;
}
body[data-design-site] .identity-notebook .notebook-masthead {
  flex: 0 0 auto;
  min-width: 0;
}
body[data-design-site] .identity-notebook .notebook-name,
body[data-design-site] .identity-notebook .notebook-name small {
  line-height: 1.2;
}
@media (max-width: 360px) {
  body[data-design-site] .identity-notebook {
    --menu-slot: 74px;
  }
}
/* Two picture cards replace the nested narrow image/text columns. */
body[data-design-site="Game67"] :is(.discovery-entry, .round-game) {
  display: flex;
  flex-direction: column;
  height: 100%;
}
body[data-design-site="Game67"] .discovery-entry > img,
body[data-design-site="Game67"] .round-game-art {
  display: block;
  position: relative;
  flex: none;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 1.6;
  object-fit: cover;
}
body[data-design-site="Game67"] :is(.discovery-copy, .round-game-copy) {
  padding: 6px 0 8px;
}
@media (min-width: 900px) {
  body[data-design-site="Game67"] .discovery-entry > img,
  body[data-design-site="Game67"] .round-game-art {
    aspect-ratio: 2.4;
  }
}

body[data-design-site] .identity-notebook .saved-entry,
body[data-design-site] .identity-notebook .saved-entry[aria-current="page"] {
  width: 4.3em;
  font-weight: 500;
}
@media (max-width: 360px) {
  body[data-design-site] .identity-notebook {
    --menu-slot: 73px;
  }
}

/* Large text keeps category words intact; the count can take its own line. */
@media (max-width: 600px) {
  body[data-design-site] .category-panel:is(.panel-left, .panel-right) .category-links a {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
  }
  body[data-design-site] .category-panel:is(.panel-left, .panel-right) .category-icon {
    flex: 0 0 24px;
  }
  body[data-design-site] .category-panel:is(.panel-left, .panel-right) .category-label {
    flex: 1 1 auto;
    min-width: max-content;
    overflow-wrap: normal;
    word-break: normal;
  }
  body[data-design-site] .category-panel:is(.panel-left, .panel-right) .category-links small {
    flex: none;
    margin-inline-start: auto;
  }
}
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;
}
