/* This site keeps its own composition; shared rules cover interaction and geometry. */
html dialog.category-dialog[data-filters] {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(88vw, 400px);
  max-width: none;
  height: 100dvh;
  min-height: 70dvh;
  max-height: 100dvh;
  padding: 0;
  overflow: hidden;
  background: var(--category-surface);
  color: var(--category-ink);
  border: 0;
  border-radius: 0;
}
html dialog.category-dialog[data-filters] .dialog-panel {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  border: 0;
  border-radius: 0;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  background: var(--category-surface);
  color: var(--category-ink);
}
.category-dialog .dialog-panel > header {
  min-height: 64px;
  flex: none;
  padding: 8px 18px;
}
.category-dialog .category-menu {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 18px 20px;
  gap: 0;
}
.category-dialog .category-menu a {
  min-height: 52px;
  min-width: 0;
  font-size: 16px;
  line-height: 1.4;
  margin: 0;
  padding: 6px 10px 6px 4px;
  border: 0;
  border-bottom: 1px solid var(--category-line);
  border-left: 1px solid var(--category-line);
  gap: 12px;
}
.category-icon {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: inherit;
}
.category-icon svg,
[data-player-return] svg {
  display: block;
}
.category-menu a > span:nth-child(2) {
  min-width: 0;
  overflow-wrap: anywhere;
}
.category-menu small {
  flex: none;
}
body main {
  padding-top: 10px;
}
body main:has([data-player]) {
  padding-top: 0;
}
body .game-heading {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
}
body .game-heading h1 {
  min-width: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body .game-heading [data-player-return] {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body .game-heading [data-player-return]::before,
body .game-heading [data-player-return]::after {
  content: none;
}
.game-heading [data-full-title-open] {
  flex: 0 0 44px;
  min-width: 44px;
  padding: 0;
  background: transparent;
  border: 0;
}
body .stage {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 0;
  background: var(--category-surface);
  color: var(--category-ink);
}
body .game-surface {
  aspect-ratio: 4 / 3;
  min-height: 0;
  height: auto;
  max-height: 68dvh;
}
body .player-block {
  margin: 0;
  padding: 0;
}
body .player-tools {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  padding: 4px 0 0;
  background: transparent;
  align-items: center;
}
body .player-tools button {
  min-height: 44px;
  padding: 4px 10px;
  border: 0;
  border-radius: 4px;
  color: inherit;
  background: transparent;
  font-size: 14px;
}
body .player-tools [data-play],
body .player-tools [data-stop] {
  color: #fff;
  background: #365d8d;
  min-width: 84px;
}
body .player-tools [data-fullscreen] {
  margin-left: auto;
}
body .stage [data-player-status] {
  font-weight: 400;
  padding: 4px 0 6px;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  background: transparent;
  color: inherit;
}
body .stage:fullscreen {
  height: 100dvh;
  width: 100vw;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom)
    env(safe-area-inset-left);
  background: #f8fafc;
}
body .stage:fullscreen .game-surface {
  flex: 1;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
}
body .stage:fullscreen .player-tools,
body .stage:fullscreen [data-player-status] {
  padding-inline: 8px;
}
.game-grid > a,
[data-local-items] > a {
  height: 100%;
}
.game-grid h3,
[data-home-feed] [data-local-items] h3 {
  min-height: 2.6em;
  line-height: 1.3;
  margin: 6px 0 0;
}
.round-game-copy > small {
  display: none;
}
.complete-fallback {
  margin: 16px 0;
}
.complete-fallback summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
}
.complete-fallback a {
  display: flex;
  align-items: center;
  min-height: 44px;
}
/* Keep genuine excerpts and body text inside the remaining advertising viewport. */
body[data-design-page="article-index"] .reading-intro > p {
  display: none !important;
}
body[data-design-page="article-index"] .reading-intro {
  margin: 0 0 8px;
}
body[data-design-page="article-index"] .reading-intro h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}
body[data-design-page="article-index"] .reading-directory > li:first-child,
body[data-design-page="article-index"] .reading-directory > li:first-child .reading-card {
  padding-top: 0;
  border-top: 0;
}
body[data-design-page="article"] .reading-intro {
  margin: 0 0 8px;
}
body[data-design-page="article"] .reading-intro .reading-context {
  display: none;
}
body[data-design-page="article"] .reading-intro h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}
body[data-design-page="article"] .reading-body > section {
  padding-block: 0;
  margin-bottom: 20px;
}
body[data-design-page="article"] .reading-body h2 {
  font-size: 16px;
  line-height: 1.4;
  margin: 0 0 6px;
}
body .policy-section {
  padding: 0;
  margin: 0 auto 20px;
  border: 0;
  max-width: 70ch;
}
body .policy-section h2 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.3;
}
body .policy-section p {
  margin: 0;
}
body[data-design-page="article"] .reading-intro > p:last-child {
  display: block;
  font-size: 16px;
  line-height: 1.5;
  margin: 8px 0 0;
}
body[data-design-site] main.reading-main {
  padding-top: 8px;
}
body[data-design-page="article"] .reading-intro h1 {
  line-height: 1.25;
}
body[data-design-page="article"] .reading-intro > p:last-child {
  margin-top: 4px;
}
/* Only supplied game excerpts are shortened visually; article excerpts remain complete. */
.game-card-link .game-excerpt,
.round-game-copy p,
.recommendation-copy p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 0;
  max-height: none;
  margin: 6px 0 0;
}
.round-game-copy h3,
.game-card-link [data-card-title],
.recommendation-copy h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.round-game-copy p {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 400;
}

body > header.refined-header {
  box-sizing: border-box;
  max-width: 1140px;
  margin: auto;
  padding: 0 14px;
  gap: 0;
  border-bottom: 1px solid var(--category-line);
}
body > header.refined-header a,
body > header.refined-header button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  color: inherit;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
body > header.refined-header a[data-current-page="true"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
body > header.refined-header a:focus-visible,
body > header.refined-header button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -2px;
}
body > header.refined-header .discovery-trigger {
  gap: 7px;
  flex: none;
}
.refined-header svg {
  display: block;
  flex: none;
}
body > header.refined-header .words-brand,
body > header.refined-header .notebook-brand,
body > header.refined-header .focus-brand,
body > header.refined-header .chain-brand {
  padding: 0;
  text-decoration: none;
}
body [data-player-return]::before,
body [data-player-return]::after {
  content: none;
}
@media (min-width: 761px) {
  body .game-surface {
    aspect-ratio: 16/10;
  }
  body .game-heading h1 {
    font-size: 15px;
  }
}

/* A connected path from the brand to chains and the complete directory. */
body > header.chain-header.refined-header {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  min-height: 92px;
  gap: 12px;
}
body > header.refined-header .chain-brand {
  font-size: 21px !important;
  line-height: 1.15;
  white-space: normal;
  justify-content: flex-start;
  max-width: 120px;
}
body > header.refined-header .chain-navigation {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0;
  border-left: 1px solid var(--category-line);
  padding-left: 8px;
}
body > header.refined-header .chain-navigation a {
  padding-inline: 6px;
}
.chain-navigation .chain-joint {
  font-size: 18px;
  text-align: center;
  grid-column: 1;
  grid-row: 2;
}
body > header.refined-header .chain-navigation a:first-child {
  grid-column: 1/3;
  justify-content: flex-start;
}
body > header.refined-header .chain-navigation a[href$="all.html"] {
  grid-column: 2;
  grid-row: 2;
}
body > header.refined-header .chain-navigation .discovery-trigger {
  grid-column: 3;
  grid-row: 2;
}
body > header.refined-header .chain-navigation a[href$="articles.html"] {
  grid-column: 3;
  grid-row: 1;
}
.chain-navigation .category-trigger-label {
  display: none;
}
html dialog.category-dialog[data-filters] {
  inset: 0 0 0 auto;
  margin: 0;
  width: min(90vw, 460px);
}
.category-dialog .category-menu a {
  border-left: 0;
  border-bottom: 0;
  position: relative;
  min-height: 52px;
  padding-left: 14px;
}
.category-dialog .category-menu a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--category-line);
}
.category-dialog .category-menu a:nth-child(even) {
  margin-left: 20px;
}
.category-dialog .category-icon {
  border-radius: 50%;
  border: 1px solid var(--category-line);
  width: 32px;
  height: 32px;
}
body .player-tools {
  border-left: 2px solid var(--category-line);
  padding-left: 8px;
  gap: 4px;
}
body .player-tools [data-play],
body .player-tools [data-stop] {
  color: #fff;
  background: #465d55;
  border-radius: 20px;
}
body .stage [data-player-status] {
  padding-left: 10px;
  border-left: 2px solid var(--category-line);
}
@media (min-width: 761px) {
  body > header.chain-header.refined-header {
    display: flex;
    justify-content: space-between;
    min-height: 64px;
    gap: 32px;
  }
  body > header.refined-header .chain-brand {
    max-width: none;
    white-space: nowrap;
  }
  body > header.refined-header .chain-navigation {
    display: flex;
    gap: 12px;
    padding-left: 24px;
  }
  .chain-navigation .chain-joint {
    transform: rotate(-90deg);
  }
}
@media (max-width: 359px) {
  body > header.chain-header.refined-header {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 4px;
    padding-inline: 8px;
  }
  body > header.refined-header .chain-brand {
    font-size: 19px !important;
  }
  body > header.refined-header .chain-navigation {
    padding-left: 4px;
  }
  body > header.refined-header .chain-navigation a {
    padding-inline: 4px;
    font-size: 13px;
  }
}

body
  > header.refined-header
  :is(.words-brand, .notebook-brand, .focus-brand, .chain-brand)[data-current-page="true"] {
  text-decoration: none !important;
}

/* The route is already named in the header; preserve the list H1 without another title block. */
body[data-design-page="article-index"] .reading-intro {
  margin: 0;
}
body[data-design-page="article-index"] .reading-intro h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
body[data-design-page="article-index"] .reading-context {
  display: none;
}
body .game-heading h1 {
  height: auto;
  min-height: 0;
  align-self: center;
}

body > header.chain-header.refined-header {
  grid-template-columns: minmax(0, 140px) minmax(0, 1fr);
  gap: 10px;
}
body > header.refined-header .chain-brand {
  font-size: 20px !important;
  white-space: normal !important;
  max-width: none;
  min-width: 0;
  overflow-wrap: normal;
}
body > header.refined-header .chain-navigation {
  min-width: 0;
  grid-template-columns: 18px minmax(0, 1fr) 44px;
}
body > header.refined-header .chain-navigation .discovery-trigger {
  padding: 0 !important;
  min-width: 44px;
  width: 44px;
}
body > header.refined-header .chain-navigation a[href$="all.html"] {
  justify-content: flex-start;
}
@media (min-width: 761px) {
  body > header.chain-header.refined-header {
    display: flex;
    gap: 24px;
  }
  body > header.refined-header .chain-brand {
    flex: none;
    white-space: nowrap !important;
  }
  body > header.refined-header .chain-navigation {
    display: flex;
  }
}
@media (max-width: 359px) {
  body > header.chain-header.refined-header {
    grid-template-columns: minmax(0, 112px) minmax(0, 1fr);
    gap: 8px;
  }
  body > header.refined-header .chain-brand {
    font-size: 18px !important;
  }
  body > header.refined-header .chain-navigation a {
    font-size: 13px;
  }
}

body > header.refined-header .chain-navigation {
  grid-template-columns: 18px minmax(0, 1fr) 60px;
}

/* A flexible connected directory preserves complete labels at enlarged text sizes. */
body > header.chain-header.refined-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
body > header.refined-header .chain-brand {
  flex: 1 1 112px;
  max-width: 100%;
}
body > header.refined-header .chain-navigation {
  display: flex;
  flex: 2 1 200px;
  flex-wrap: wrap;
  gap: 0 4px;
  padding-left: 8px;
}
body > header.refined-header .chain-navigation a {
  flex: 0 1 auto;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
body > header.refined-header .chain-navigation .chain-joint {
  flex: none;
  width: 18px;
}
body > header.refined-header .chain-navigation .discovery-trigger {
  min-width: 44px;
}
@media (min-width: 761px) {
  body > header.refined-header .chain-brand {
    flex: 0 1 auto;
  }
  body > header.refined-header .chain-navigation {
    flex: 0 1 auto;
  }
}
@media (min-width: 761px) {
  body [data-round-game-list] {
    row-gap: 10px;
  }
}

/* On narrow reading indexes, the full original title and summary lead beside a small preview. */
@media (max-width: 480px) {
  body[data-design-page="article-index"] .reading-card {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding-inline: 0;
  }
  body[data-design-page="article-index"] .reading-art {
    width: 56px;
    min-height: 56px;
  }
  body[data-design-page="article-index"] .reading-number,
  body[data-design-page="article-index"] .reading-arrow,
  body[data-design-page="article-index"] .reading-card .reading-context {
    display: none;
  }
  body[data-design-page="article-index"] .reading-card :is(h2, h3) {
    font-size: 16px;
    line-height: 1.3;
    margin: 0 0 4px;
  }
  body[data-design-page="article-index"] .reading-summary {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
  }
  body[data-design-page="article"] .reading-intro h1 {
    font-size: 16px;
    line-height: 1.25;
  }
  body[data-design-page="article"] .reading-intro {
    margin-bottom: 4px;
  }
}

@media (max-width: 480px) {
  body[data-design-page="article-index"] .reading-card {
    display: block;
  }
  body[data-design-page="article-index"] .reading-art {
    display: none;
  }
  body[data-design-page="article-index"] .reading-copy {
    display: block;
    width: 100%;
  }
}
@media (max-width: 359px) {
  body[data-design-page="article-index"] .reading-card :is(h2, h3) {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  body[data-design-page="article"] main.reading-main {
    padding-top: 0;
  }
  body[data-design-page="article"] .reading-intro {
    margin-bottom: 0;
  }
  body[data-design-page="article"] .reading-intro > p:last-child {
    margin-top: 0;
  }
}

/* 2026-10-22: the visible connection arrow carries the grouping without a full-height divider. */
body > header.chain-header.refined-header {
  min-height: 56px;
  border-bottom: 0;
}
body > header.refined-header .chain-navigation {
  border-left: 0;
  padding-left: 0;
}
body > header.refined-header .chain-navigation a[data-current-page="true"] {
  position: relative;
  text-decoration: none;
}
body > header.refined-header .chain-navigation a[data-current-page="true"]::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  bottom: 5px;
  left: calc(50% - 2px);
}
body > header.refined-header .chain-navigation .discovery-trigger[data-current-section] {
  box-shadow: none;
  background: transparent;
}

/* refinement-v2: secondary destinations stay native, with a small enhanced page menu. */
body > header.refined-header :is(a, button) {
  min-width: 44px;
  min-height: 44px;
  position: relative;
}
body > header.refined-header :is(.pages-trigger, [data-menu-open]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  color: inherit;
}
body > header.refined-header .category-trigger-label {
  display: none;
}
body > header.refined-header .brand-emblem {
  flex: none;
  width: 28px;
  height: 28px;
}
body > header.refined-header .discovery-trigger {
  flex: none;
  width: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
body > header.refined-header :is(a, button):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -3px;
}
html dialog.page-directory {
  inset: 64px 12px auto auto;
  width: min(440px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100dvh - 80px);
  margin: 0;
  padding: 0;
  background: var(--category-surface);
  color: var(--category-ink);
  border: 1px solid var(--category-line);
  border-radius: 4px;
}
html dialog.page-directory .dialog-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: calc(100dvh - 82px);
  padding: 0;
  border: 0;
  background: inherit;
  color: inherit;
}
.page-directory .dialog-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  min-height: 56px;
  padding: 6px 16px;
  gap: 12px;
  border-bottom: 1px solid var(--category-line);
}
.page-directory h2 {
  margin: 0;
  font-size: 18px;
}
.page-directory button {
  min-height: 44px;
  min-width: 44px;
}
.page-directory .page-menu-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9em), 1fr));
  overflow-y: auto;
  padding: 8px;
  gap: 2px 8px;
}
.page-directory .page-menu-links a {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 48px;
  padding: 8px;
  font-size: 16px;
  line-height: 1.4;
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
  border: 0;
}
.page-directory .page-menu-links a[aria-current] {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.page-directory .page-menu-links a:hover,
.category-links a:hover {
  background: var(--category-selected);
}
.category-dialog .category-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  flex: none;
  padding: 8px 18px max(12px, env(safe-area-inset-bottom));
  gap: 8px;
  border-top: 1px solid var(--category-line);
}
.category-links a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
  min-width: 0;
  padding: 4px;
  color: inherit;
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
}
@media (max-width: 359px) {
  .page-directory .page-menu-links {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Related Games: a triangular node mark and a small connected navigation path. */
body > header.chain-header.refined-header {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  height: auto;
  padding: 4px 12px;
  gap: 0 8px;
  border: 0;
}
body > header.refined-header .chain-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 auto;
  width: auto;
  max-width: none;
  padding: 0;
  font-size: 18px !important;
  line-height: 1;
  white-space: normal;
  text-decoration: none;
}
.chain-wordmark {
  display: grid;
  text-align: left;
  line-height: 1.05;
}
.chain-wordmark > span {
  font-size: 13px;
  letter-spacing: 0.6px;
  font-weight: 500;
}
.chain-wordmark strong {
  font-size: 20px;
  font-weight: 750;
}
body > header.refined-header .chain-navigation {
  display: flex;
  flex: 0 1 auto;
  width: auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  padding: 0;
  border: 0;
}
body > header.refined-header .chain-navigation a {
  padding: 0 7px;
  min-height: 44px;
  border: 0;
  font-size: 14px;
  white-space: normal;
}
body > header.refined-header .chain-navigation :is(.discovery-trigger, .pages-trigger) {
  padding: 0;
}
body > header.refined-header .chain-navigation .chain-joint {
  display: inline;
  width: 10px;
  align-self: center;
  font-size: 14px;
  opacity: 0.6;
}
body
  > header.refined-header
  .chain-navigation
  :is([data-current-page="true"], [data-current-section]) {
  background: transparent;
  text-decoration: none;
}
body
  > header.refined-header
  .chain-navigation
  :is([data-current-page="true"], [data-current-section])::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  bottom: 3px;
  left: calc(50% - 2.5px);
}
body > header.refined-header .chain-brand[data-current-page="true"] .brand-emblem circle {
  fill: currentColor;
}
body > header.refined-header .chain-brand[data-current-page="true"] strong {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.category-dialog .category-menu a::before {
  content: none;
}

body > header.refined-header .chain-navigation a {
  min-width: 44px;
  flex: none;
}
.category-dialog .category-menu a {
  min-height: 60px;
}

/* refinement-v2 full-page pass: real excerpts, stable rows, compact utility/recovery content. */
body[data-design-site] main .game-card-link .game-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.45;
  margin: 6px 0 0;
  min-height: 0;
  max-height: none;
}
body[data-design-site] main .game-card-link [data-card-title] {
  min-height: 2.6em;
  line-height: 1.3;
}
body[data-design-site] main > nav[aria-label="Reading"] {
  margin-block: 8px;
}
body[data-design-page="information"] main > .reading:not(.policy-section) {
  padding: 8px 0;
  margin: 0 0 10px;
}
body[data-design-page="information"] main > .reading:not(.policy-section) > h2 {
  font-size: 18px;
  line-height: 1.3;
  margin: 0 0 6px;
}
body[data-design-page="information"] main > .reading:not(.policy-section) > p {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.5;
}
body[data-recovery-page] main > .reading:first-child {
  padding: 4px 0;
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.5;
}
body[data-recovery-page] main > .reading:first-child > h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
body[data-recovery-page] main > .reading:first-child > p {
  margin: 0;
}
body[data-recovery-page] main > .reading:first-child .reading-cta {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  line-height: 1.4;
}
body[data-recovery-page] main > .round-games {
  margin-top: 8px;
}
body[data-recovery-page] main > .round-games > h2 {
  margin-bottom: 6px;
}
body [data-player-missing]:not([hidden]) {
  padding: 4px 0;
  margin: 0 0 8px;
}
body [data-player-missing] h1 {
  font-size: 16px;
  line-height: 1.4;
  margin: 0;
}
body [data-player-missing] p {
  font-size: 16px;
  line-height: 1.4;
  margin: 2px 0;
}
body [data-player-missing] a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}
body:has([data-player-missing]:not([hidden])) main > nav[aria-label="Reading"] {
  display: none;
}
body:has([data-player-missing]:not([hidden])) .round-games {
  margin-top: 8px;
}
body [data-local-empty] {
  padding: 4px 0;
  margin: 0;
}
body [data-local-empty] h2 {
  font-size: 16px;
  line-height: 1.4;
  margin: 0 0 4px;
}
body [data-local-empty] p {
  font-size: 16px;
  line-height: 1.4;
  margin: 0;
}
body [data-local-empty] a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}
body:has([data-local-empty]:not([hidden])) .route-context {
  margin: 0 0 4px;
}
body:has([data-local-empty]:not([hidden])) .history-tail,
body:has([data-local-empty]:not([hidden])) .notebook-tail {
  margin: 0;
}
body:has([data-local-empty]:not([hidden])) [data-list-discovery] {
  margin-top: 8px;
}

body:has(.chain-summary) .chain-title {
  font-size: 16px;
  line-height: 1.4;
  margin: 4px 0;
}
body:has(.chain-summary) main > .reading {
  margin: 0 0 12px;
  padding: 6px 0;
}
body:has(.chain-summary) main > .reading > h2 {
  font-size: 16px;
  line-height: 1.4;
  margin: 0 0 6px;
}

/* Match the actual 1.4 line-height and clear legacy title padding: every row starts together. */
body[data-design-site] main .game-card-link [data-card-title] {
  min-height: 2.8em;
  line-height: 1.4 !important;
  padding: 0 !important;
}
body:has([data-local-empty]:not([hidden])) main {
  padding-top: 4px;
}
body [data-local-empty] {
  padding: 0;
}
body [data-local-empty] h2,
body [data-player-missing] h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
body:has([data-local-empty]:not([hidden])) [data-list-discovery] > h2 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.4;
}
body [data-player-missing]:not([hidden]) {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 12px;
}
body [data-player-missing] p {
  flex: 1 1 160px;
}
body [data-player-missing] a {
  flex: none;
}

body [data-chain-missing]:not([hidden]) {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 12px;
  padding: 4px 0;
}
body [data-chain-missing] p {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}
body [data-chain-missing] a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
body:has([data-chain-missing]:not([hidden])) [data-chain-title],
body [data-chain-missing] h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
body:has([data-chain-missing]:not([hidden])) [data-chain-route] > .chain-reading-note {
  display: none;
}
body:has([data-chain-missing]:not([hidden])) .round-games {
  margin-top: 8px;
}

/* Let enlarged text wrap the shelf before thumbnail rows become too narrow. */
body [data-list-discovery] [data-recommendation-list] {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}
body [data-list-discovery] [data-recommendation-list] > a {
  flex: 1 1 calc(50% - 6px);
  min-width: min(100%, 8em);
  box-sizing: border-box;
}

:root {
  --dropdown-radius: 50%;
  --dropdown-row-radius: 5px;
  --dropdown-tint: #dbece1;
  --dropdown-open: #c4ddcf;
  --dropdown-hover: #edf5ef;
  --dropdown-accent: #35614e;
  --dropdown-parent-mark: inset 0 0 0 1px #35614e;
  --dropdown-current-mark: inset 0 0 0 1px #628a74;
}

/* 2026-10-22 dropdown pass: geometry is stable; contained/current and expanded are separate. */
body
  > header.refined-header
  :is([data-pages-open], [data-menu-open], [data-open-filters])[aria-expanded] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  position: relative;
  line-height: 1;
  text-decoration: none !important;
  box-shadow: none;
  background: transparent;
}
body
  > header.refined-header
  :is([data-pages-open], [data-menu-open], [data-open-filters])[aria-expanded]::after {
  content: none;
}
body
  > header.refined-header
  :is([data-pages-open], [data-menu-open], [data-open-filters])[aria-expanded]::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 32px;
  height: 32px;
  left: calc(50% - 16px);
  top: calc(50% - 16px);
  box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: var(--dropdown-radius);
  pointer-events: none;
}
body
  > header.refined-header
  :is(
    [data-pages-open],
    [data-menu-open],
    [data-open-filters]
  )[aria-expanded][data-current-section]::before {
  background: var(--dropdown-tint);
  box-shadow: var(--dropdown-parent-mark);
}
body
  > header.refined-header
  :is([data-pages-open], [data-menu-open], [data-open-filters])[aria-expanded="true"]::before {
  background: var(--dropdown-open);
  border-color: var(--dropdown-accent);
  box-shadow: none;
}
body
  > header.refined-header
  :is([data-pages-open], [data-menu-open], [data-open-filters]):not(
    [aria-expanded="true"]
  ):hover::before {
  background: var(--dropdown-tint);
}
body > header.refined-header :is([data-pages-open], [data-menu-open], [data-open-filters]) > svg {
  display: block;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  overflow: visible;
}
body > header.refined-header .utility-icon {
  display: block;
  flex: none;
}
html dialog.page-directory .dialog-panel > header,
html dialog.category-dialog .dialog-panel > header {
  align-items: center;
}
html dialog.page-directory .dialog-panel > header button,
html dialog.category-dialog .dialog-panel > header button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}
html dialog.page-directory .page-menu-links a {
  position: relative;
  gap: 8px;
  padding-inline: 12px 28px;
  border-radius: var(--dropdown-row-radius);
  text-decoration: none;
  color: var(--category-ink);
}
html dialog.page-directory .page-menu-links a[aria-current="page"] {
  background: var(--dropdown-tint);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--dropdown-current-mark);
}
html dialog.page-directory .page-menu-links a[data-current-section]:not([aria-current]) {
  background: var(--dropdown-tint);
  box-shadow: inset 2px 0 var(--dropdown-accent);
}
html dialog.page-directory .page-menu-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 10px;
  top: calc(50% - 5px);
  width: 5px;
  height: 9px;
  border-right: 2px solid var(--dropdown-accent);
  border-bottom: 2px solid var(--dropdown-accent);
  transform: rotate(45deg);
}
html dialog.page-directory .page-menu-links a:hover,
html dialog.category-dialog .category-menu a:hover {
  background: var(--dropdown-hover);
}
html dialog.page-directory .page-menu-links a:focus-visible,
html dialog.category-dialog .category-menu a:focus-visible {
  outline: 2px solid var(--dropdown-accent);
  outline-offset: -3px;
}
html dialog.category-dialog .category-menu a {
  position: relative;
  align-items: center;
  color: var(--category-ink);
  text-decoration: none;
}
html dialog.category-dialog .category-menu a > .category-icon {
  display: grid;
  place-items: center;
  align-self: center;
  margin: 0;
  line-height: 1;
  width: 28px;
  height: 28px;
}
html dialog.category-dialog .category-menu .category-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}
html dialog.category-dialog .category-menu a > span:nth-child(2) {
  align-self: center;
  line-height: 1.35;
  min-width: 0;
  text-decoration: none;
}
html dialog.category-dialog .category-menu small {
  align-self: center;
  margin: 0;
  padding: 0;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  opacity: 1;
}
html dialog.category-dialog .category-menu a[aria-current="page"] {
  background: var(--dropdown-tint);
  font-weight: 700;
  box-shadow: var(--dropdown-current-mark);
  text-decoration: none;
}

html dialog.category-dialog .category-menu a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) minmax(2ch, max-content);
  gap: 10px;
  padding-inline: 8px 12px;
}
html dialog.category-dialog .category-menu small {
  text-align: right;
  grid-column: 3;
  grid-row: 1;
}

html dialog.page-directory .page-menu-links a[aria-current="page"]::after {
  width: 6px;
  height: 6px;
  border: 0;
  border-radius: 50%;
  background: var(--dropdown-accent);
  transform: none;
  top: calc(50% - 3px);
}
html dialog.category-dialog .category-menu a[aria-current="page"] .category-icon {
  background: #c4ddcf;
  border-color: var(--dropdown-accent);
}

html dialog.category-dialog .dialog-panel > header {
  flex-wrap: wrap;
  gap: 6px 12px;
}
html dialog.category-dialog .dialog-panel > header h2 {
  flex: 1 1 max-content;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
}
html dialog.category-dialog .dialog-panel > header button {
  flex: none;
  white-space: nowrap;
}

html dialog.category-dialog .category-menu {
  grid-auto-rows: max-content;
  align-content: start;
}
html dialog.category-dialog .category-menu a {
  height: max-content;
  box-sizing: border-box;
}
html dialog.category-dialog .category-links {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 7em), 1fr));
}
html dialog.category-dialog .category-links a {
  overflow-wrap: normal;
  word-break: normal;
  gap: 6px;
}

/* Current followup: preserve icon headers and clamp only preview copy. */
body > header.refined-header [data-trigger-name],
body > header.refined-header [data-trigger-chevron],
body > header.refined-header :is([data-start-count], [data-note-count])[hidden] {
  display: none;
}
body[data-design-site]
  main
  :is(
    .game-card-link [data-card-title],
    .round-game h3,
    .recommendation-copy h3,
    .reading-card h2,
    .reading-card h3,
    .round-reading h3
  ) {
  display: block;
  -webkit-line-clamp: unset;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 0;
  max-height: none;
  padding: 0;
  line-height: 1.4;
}
body[data-design-site]
  main
  :is(.game-excerpt, .round-game p, .recommendation-copy p, .reading-summary, .round-reading p) {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 0;
  max-height: none;
}
body[data-design-site] main .game-card-link > div,
body[data-design-site] main .focus-row-copy,
body[data-design-site] main .reading-copy {
  min-width: 0;
  max-width: 100%;
}
body[data-design-site] main .reading-card {
  height: 100%;
  box-sizing: border-box;
}
body[data-design-site] main .reading-card :is(h2, h3) {
  margin-block: 3px;
}
body[data-design-site] main .reading-card .reading-summary {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 0;
  max-height: none;
  margin-block: 4px 0;
}
/* Keep the first directory row and compact recommendation copy aligned. */
body[data-design-site][data-design-page="article-index"] main .reading-directory > li,
body[data-design-site][data-design-page="article-index"] main .reading-directory .reading-card {
  padding-block-start: 0;
}
body[data-design-site] main li > a.recommendation-entry {
  display: grid;
  align-items: start;
}
/* These players have no surrounding frame: controls and status align with the image. */
body .stage .player-tools {
  padding-inline: 0;
  flex-wrap: wrap;
  min-width: 0;
  border-left-width: 0;
}
body .stage [data-player-status] {
  padding-inline: 0;
  overflow-wrap: anywhere;
  border-left-width: 0;
}
body .stage .player-tools button {
  max-width: 100%;
  min-width: 44px;
  min-height: 44px;
}

/* Side drawers follow the current 70% viewport width rule. */
html dialog.category-dialog[data-filters] {
  box-sizing: border-box;
  width: 70vw;
  max-width: 70vw;
  min-width: 0;
}
@media (max-width: 600px) {
  html dialog.category-dialog .category-menu a {
    grid-template-columns: 28px minmax(0, 1fr);
    grid-template-rows: auto auto;
    row-gap: 2px;
  }
  html dialog.category-dialog .category-menu .category-icon {
    grid-column: 1;
    grid-row: 1 / 3;
  }
  html dialog.category-dialog .category-menu a > span:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }
  html dialog.category-dialog .category-menu small {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }
}

@media (max-width: 600px) {
  html dialog.category-dialog .category-menu {
    padding-inline: 12px;
  }
  html dialog.category-dialog .category-menu a {
    column-gap: 8px;
    padding-inline: 6px;
  }
  html dialog.category-dialog .category-menu a > span:nth-child(2) {
    overflow-wrap: normal;
    word-break: normal;
  }
}

/* Bounded reading grid tracks permit single-line title ellipses. */
body[data-design-site] main .reading-directory > li {
  min-width: 0;
  max-width: 100%;
}

body[data-design-site][data-design-page="article-index"] main .round-game {
  padding-inline: 0;
  border-inline-start: 0;
}
body[data-design-site][data-design-page="home"] .game-card-link {
  height: 100%;
  box-sizing: border-box;
}

/* Let all nodes in a chain row reach the same full card height. */
body[data-design-site][data-design-page="home"] .folded-chain {
  align-items: stretch;
}
body[data-design-site][data-design-page="home"] .chain-point > section {
  height: 100%;
}

/* A clear reading headline and native return; the full original H1 remains accessible. */
.reading-title-row {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 44px;
  height: auto;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
}
.reading-title-row .article-list-return {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  line-height: 1;
  text-decoration: none;
}
.reading-title-row .article-list-return svg {
  display: block;
  flex: none;
  width: 20px;
  height: 20px;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.reading-title-row > h1 {
  display: block;
  flex: 1;
  min-width: 0;
  height: auto;
  margin: 0 !important;
  padding: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: unset;
}
body[data-design-page="article"] .reading-title-row > h1,
main[data-reading-guide] .reading-title-row > h1 {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
  border: 0;
  box-shadow: none;
}
.reading-title-row .article-list-return:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* The opening guide section belongs to the title, not a separate ruled chapter. */
body[data-design-page="information"] main[data-reading-guide] > .reading:first-child {
  border-top: 0;
  padding-top: 0;
}

/* A closed title is hidden even without the browser's native dialog stylesheet. */
[data-full-title-dialog]:not([open]) {
  display: none;
}
[data-full-title-dialog][data-title-fallback][open] {
  display: block;
  position: static;
  width: auto;
  max-width: none;
  max-height: none;
  margin: 0;
}
[data-full-title-dialog][data-title-fallback] .dialog-panel {
  max-height: none;
}
