/* 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 centered dictionary masthead above a ruled index band. */
body > header.words-header.refined-header {
  display: block;
  text-align: center;
}
body > header.refined-header .words-brand {
  font:
    700 25px/1.2 Georgia,
    serif !important;
  min-height: 44px;
}
.words-directory {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--category-line);
}
.words-directory nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.words-directory .category-trigger-label {
  display: none;
}
body > header.refined-header .words-directory nav a:first-child {
  font-family: Georgia, serif;
  font-weight: 700;
}
html dialog.category-dialog[data-filters] {
  inset: 0;
  margin: auto;
  width: min(90vw, 640px);
  height: 78dvh;
  max-height: calc(100dvh - 20px);
  border-radius: 4px;
}
.category-dialog .category-menu {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}
.category-dialog .category-menu a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px 2px;
  border-left: 0;
  min-height: 72px;
}
.category-dialog .category-menu a:first-child {
  grid-column: 1/-1;
  min-height: 56px;
}
.category-dialog .category-icon {
  width: 26px;
}
body .player-tools {
  display: grid;
  grid-template-columns: auto 1fr auto;
}
body .player-tools [data-play],
body .player-tools [data-stop] {
  background: #42553a;
}
body .player-tools [data-restart] {
  justify-self: end;
}
body .stage [data-player-status] {
  border-bottom: 1px solid var(--category-line);
  font-family: Georgia, serif;
}
@media (max-width: 359px) {
  body > header.refined-header {
    padding-inline: 10px;
  }
  .words-directory nav {
    gap: 0;
  }
  body > header.refined-header a {
    padding-inline: 7px;
  }
  .category-dialog .category-menu {
    gap: 0 8px;
  }
  .category-dialog .category-menu a {
    grid-template-columns: 24px minmax(0, 1fr);
    padding: 8px 2px;
  }
  .category-menu small {
    grid-column: 2;
    margin-left: 0;
  }
}

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

/* Index links wrap naturally when text is enlarged. */
body > header.refined-header .words-directory,
body > header.refined-header .words-directory nav {
  flex-wrap: wrap;
  min-width: 0;
}
body > header.refined-header .words-directory nav {
  flex: 1 1 auto;
  justify-content: space-between;
}
body > header.refined-header .words-directory a {
  flex-shrink: 1;
  white-space: normal;
  overflow-wrap: anywhere;
}
@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;
  }
}

/* A readable information column keeps complete short paragraphs in the available viewport. */
body .policy-section {
  max-width: 60ch;
}

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

/* 2026-10-22: one masthead rule separates the wordmark; no rule encloses the directory below. */
body > header.words-header.refined-header {
  border-bottom: 0;
}

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

/* Words: compact editorial type, an italic entry word and a precise ink underline. */
body > header.words-header.refined-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 56px;
  height: auto;
  gap: 0 8px;
  padding: 4px 12px;
  border: 0;
}
body > header.refined-header .words-brand {
  display: inline-flex;
  padding: 0;
  font-family: Georgia, serif;
  font-size: 24px !important;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.8px;
  white-space: normal;
  text-decoration: none;
}
.words-brand em {
  font-weight: 400;
}
.word-punctuation {
  color: var(--category-accent, var(--category-ink));
}
body > header.refined-header .words-directory {
  display: flex;
  width: auto;
  justify-content: flex-end;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
}
body > header.refined-header .words-directory a {
  min-height: 44px;
  padding: 0 7px;
  font-size: 14px;
  text-decoration: none;
  background: transparent;
  border: 0;
}
body > header.refined-header .words-directory :is(.pages-trigger, .discovery-trigger) {
  padding: 0;
}
body
  > header.refined-header
  .words-directory
  :is([data-current-page="true"], [data-current-section])::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 2px;
  background: currentColor;
  bottom: 4px;
  left: calc(50% - 10px);
}
body > header.refined-header .words-brand[data-current-page="true"] .word-punctuation {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}
html dialog.category-dialog[data-filters] {
  height: 76dvh;
}
.category-dialog .category-menu a:first-child {
  grid-column: auto;
  min-height: 68px;
}
.category-dialog .category-menu {
  padding-top: 8px;
  padding-bottom: 12px;
  gap: 6px;
}
.category-dialog .category-menu a {
  min-height: 68px;
  border-left: 0;
}

body > header.refined-header .words-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  min-width: 0;
}
body > header.refined-header .words-identity .word-index-entry {
  position: relative;
  padding: 0 7px;
  min-height: 44px;
  font-size: 14px;
  text-decoration: none;
}
body > header.refined-header .word-index-entry[data-current-page="true"]::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 2px;
  bottom: 4px;
  left: calc(50% - 10px);
  background: currentColor;
}
html dialog.category-dialog[data-filters] {
  height: 72dvh;
}

/* The entry word and its ink dot stay together when text is enlarged. */
body > header.words-header.refined-header {
  column-gap: 6px;
}
body > header.refined-header .words-identity {
  display: contents;
}
body > header.refined-header .words-brand {
  font-size: 22px !important;
}
body > header.refined-header .words-identity .word-index-entry {
  margin-right: auto;
}
.word-punctuation {
  position: relative;
  display: inline-block;
  width: 0;
}
.word-punctuation::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 3px;
  right: -5px;
  bottom: 1px;
  border-radius: 50%;
  background: currentColor;
}
body > header.refined-header .words-brand[data-current-page="true"] em {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
body .word-margin {
  flex-wrap: wrap;
}
body .word-margin h2 {
  flex: none;
  max-width: 100%;
}

/* 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[data-design-page="home"] main {
  padding-top: 4px;
}
body[data-design-page="home"] .word-cluster:first-of-type {
  padding-top: 0;
  margin-top: 0;
}
body[data-design-page="home"] .word-cluster .word-margin {
  margin-bottom: 6px;
}
body[data-design-site] main .title-citation {
  align-content: start;
}

/* The literal index shows an actual member of each word group. */
body .word-index li {
  display: block;
  min-width: 0;
  padding: 0;
}
body[data-design-site="Game77"] ul.word-index li > a {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: stretch;
  width: 100%;
  min-height: 76px;
  gap: 10px;
  padding: 6px 0;
  text-decoration: none;
  color: inherit;
}
body[data-design-site="Game77"] ul.word-index .word-entry-art {
  position: relative;
  display: block;
  width: 64px;
  height: 64px;
  min-width: 0;
  align-self: center;
  padding: 0;
  min-height: 64px;
  overflow: hidden;
}
body[data-design-site="Game77"] ul.word-index .word-entry-art img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body .word-index .word-entry-copy {
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 0;
  min-width: 0;
}
.word-entry-copy strong {
  font-family: Georgia, serif;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 600;
}
.word-entry-copy small {
  font:
    13px/1.4 system-ui,
    sans-serif;
}
body .word-index .word-entry-example {
  padding: 0;
  font:
    14px/1.4 system-ui,
    sans-serif;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body:has(.word-index) main > .reading {
  padding: 8px 0;
  margin-bottom: 12px;
}
body:has(.word-index) main > .reading > h2 {
  font-size: 16px;
  margin: 0 0 6px;
}
body .word-index-heading {
  margin: 4px 0;
  font-size: 16px;
}

/* 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-design-page="home"] .word-cluster:first-of-type {
  row-gap: 0;
}
body[data-design-page="home"] .word-cluster:first-of-type .word-margin {
  margin-bottom: 0;
}
body [data-word-missing]:not([hidden]) {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 12px;
  padding: 4px 0;
}
body [data-word-missing] p {
  flex: 1;
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}
body [data-word-missing] > a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
body:has([data-word-missing]:not([hidden])) .word-context,
body [data-word-missing] h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
body:has([data-word-missing]:not([hidden])) .word-route-note,
body:has([data-word-missing]:not([hidden])) main > nav[aria-label="Reading"] {
  display: none;
}
body:has([data-word-missing]:not([hidden])) [data-list-discovery] {
  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: 2px;
  --dropdown-tint: #e1e8d4;
  --dropdown-open: #ccd9b9;
  --dropdown-hover: #edf0e3;
  --dropdown-accent: #465f30;
  --dropdown-parent-mark: inset 0 -2px #465f30;
  --dropdown-current-mark: inset 0 -2px #465f30;
}

/* 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 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8em), 1fr));
}
html dialog.category-dialog .category-menu a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 7px;
  row-gap: 2px;
  padding: 8px 8px;
}
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;
  font-size: 12px;
  color: var(--dropdown-accent);
}

html dialog.page-directory .page-menu-links a[aria-current="page"] {
  box-shadow: none;
  background: linear-gradient(#e1e8d4, #e1e8d4) center / 100% calc(100% - 8px) no-repeat;
}
html dialog.category-dialog .category-menu a[aria-current="page"] {
  border-radius: 2px;
}

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

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