/* Your Game History: a compact identity cluster and a right-hand ledger. */
body > header.refined-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  min-height: 56px;
  height: auto;
  max-width: 1140px;
  padding: 0 12px;
  gap: 12px;
  margin: auto;
  border-bottom: 1px solid var(--category-line);
}
.refined-header .history-identity,
.refined-header nav {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
body > header.refined-header a,
body > header.refined-header button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-height: 44px;
  box-sizing: border-box;
  color: inherit;
  text-decoration: none;
  border: 0;
  box-shadow: none;
  background: transparent;
  font-size: 14px;
  padding: 0 7px;
}
body > header.refined-header .history-brand {
  padding: 0;
  font-size: 18px !important;
  font-weight: 720;
  letter-spacing: -0.4px;
}
body > header.refined-header .discovery-trigger {
  width: 44px;
  padding: 0;
  border-radius: 50%;
  background: var(--category-selected);
}
.refined-header .category-trigger-label {
  display: none;
}
body > header.refined-header nav a[data-current-page="true"] {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}
body > header.refined-header a:focus-visible,
body > header.refined-header button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -2px;
}
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;
}
@media (max-width: 359px) {
  body > header.refined-header {
    padding-inline: 8px;
    gap: 4px;
  }
  .refined-header .history-identity,
  .refined-header nav {
    gap: 2px;
  }
  body > header.refined-header .history-brand {
    font-size: 16px !important;
  }
  body > header.refined-header nav a {
    padding-inline: 4px;
    font-size: 13px;
  }
}
@media (min-width: 761px) {
  body .game-surface {
    aspect-ratio: 16 / 10;
  }
  body .game-heading h1 {
    font-size: 15px;
  }
}

/* Identity and the directory have separate, compact roles on every route. */
body > header.refined-header {
  display: block;
  padding: 0 12px;
}
.refined-header .history-identity {
  justify-content: space-between;
  min-height: 48px;
  gap: 12px;
}
body > header.refined-header .history-brand {
  font-size: 20px !important;
  text-decoration: none !important;
}
body > header.refined-header .identity-action {
  gap: 6px;
}
.refined-header .history-directory {
  border-top: 1px solid var(--category-line);
  gap: 12px;
}
body > header.refined-header .history-directory a {
  min-width: 44px;
  padding-inline: 8px;
  text-decoration: none;
}
body > header.refined-header .history-directory a[data-current-page="true"] {
  text-decoration: underline;
}
body > header.refined-header .discovery-trigger {
  width: auto;
  gap: 7px;
  border-radius: 0;
  background: transparent;
}
.refined-header .category-trigger-label {
  display: inline;
}
body[data-design-page="home"] .history-section-title {
  margin-top: 0;
}
@media (max-width: 359px) {
  body > header.refined-header .history-brand {
    font-size: 18px !important;
  }
  .refined-header .history-directory {
    gap: 6px;
  }
}
/* 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;
}
@media (min-width: 761px) {
  body[data-design-page="home"] .last-start .start-game {
    display: grid;
    grid-template-columns: minmax(260px, 42%) minmax(0, 1fr);
    align-items: start;
    gap: 20px;
  }
  body[data-design-page="home"] .last-start .start-preview {
    aspect-ratio: 2.1;
  }
  body[data-design-page="home"] .last-start h3 {
    font-size: 20px;
    margin-top: 0;
  }
  body[data-design-page="home"] .last-start .game-excerpt {
    font-size: 16px;
    margin-top: 8px;
  }
  body[data-design-page="home"] .suggestion-pair .start-game {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
  }
  body[data-design-page="home"] .suggestion-pair .start-preview {
    aspect-ratio: 4 / 3;
    height: 120px;
  }
}
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;
}

/* 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[data-design-page="home"] .last-start .game-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 0;
  padding: 0;
}
body[data-design-page="article"] .reading-article {
  margin-top: 0;
}
body[data-design-page="article"] .reading-body {
  margin-top: 0;
}

/* Large text wraps within each navigation group while keeping every link reachable. */
.refined-header .history-identity,
.refined-header .history-directory {
  flex-wrap: wrap;
}
body > header.refined-header .history-brand,
body > header.refined-header .identity-action,
body > header.refined-header .history-directory a {
  flex-shrink: 1;
  overflow-wrap: anywhere;
}
body > header.refined-header .history-brand {
  min-width: 0;
}
body > header.refined-header .identity-action {
  flex-wrap: wrap;
}
/* A default home batch has bounded rows and useful original descriptions. */
body [data-home-feed] .game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
body [data-home-feed] .game-grid > .game-card-link {
  grid-column: auto;
}
body [data-home-feed] .game-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body [data-home-feed] [data-image-frame] {
  aspect-ratio: 2 / 1;
}

body[data-design-page="home"] [data-home-feed] .start-game .game-excerpt {
  display: -webkit-box;
}
body[data-design-page="home"] [data-home-feed] .start-preview {
  max-height: 110px;
}
body[data-design-page="home"] [data-home-feed] h3 {
  min-height: 0;
}

/* Compact history slips keep the initial five choices inside a bounded shelf. */
body[data-design-page="home"] [data-home-feed] .start-game {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  height: 100%;
}
body[data-design-page="home"] [data-home-feed] .start-game .start-preview {
  height: 100%;
  min-height: 88px;
  max-height: 110px;
  aspect-ratio: auto;
}
body[data-design-page="home"] [data-home-feed] .start-game h3 {
  margin: 0;
  font-size: 14px;
  min-height: 0;
}
body[data-design-page="home"] [data-home-feed] .start-game .game-excerpt {
  font-size: 13px;
  line-height: 1.4;
  margin-top: 4px;
}
@media (min-width: 761px) {
  body[data-design-page="home"] [data-home-feed] .start-game {
    grid-template-columns: 112px minmax(0, 1fr);
  }
}

/* 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;
  }
}

@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;
  }
}

@media (min-width: 761px) {
  body .policy-section {
    max-width: 46ch;
  }
}

/* 2026-10-22: the history directory stays open, with a short identity mark instead of a frame. */
body > header.history-header.refined-header {
  border-bottom: 0;
}
body > header.refined-header .history-directory {
  border-top: 0;
}
body > header.refined-header .history-brand {
  position: relative;
}
body > header.refined-header .history-brand::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--category-line);
}
body > header.refined-header .history-directory a[data-current-page="true"] {
  text-decoration: none;
  background: linear-gradient(var(--category-selected), var(--category-selected)) center / 100% 26px
    no-repeat;
}
body > header.refined-header .history-directory .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);
  }
}

/* History: a small clock seal and stacked wordmark replace two directory rows. */
body > header.history-header.refined-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 56px;
  height: auto;
  padding: 4px 12px;
  gap: 0 10px;
  border: 0;
}
body > header.refined-header .history-brand {
  display: inline-flex;
  gap: 9px;
  padding: 0 4px 0 0;
  font-size: 18px !important;
  letter-spacing: -0.25px;
}
body > header.refined-header .history-brand::after {
  content: none;
}
.history-wordmark {
  display: grid;
  text-align: left;
  line-height: 1.05;
}
.history-wordmark > span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.35px;
}
.history-wordmark strong {
  font-size: 20px;
  font-weight: 760;
}
body > header.refined-header .history-directory {
  display: flex;
  flex: 0 1 auto;
  width: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 3px;
  border: 0;
  padding: 0;
}
body > header.refined-header .history-directory a {
  min-height: 44px;
  padding: 0;
  background: none;
  text-decoration: none;
}
body > header.refined-header .history-directory .identity-action {
  width: auto;
  min-width: 52px;
  padding: 0 4px;
  gap: 5px;
  font-size: 13px;
  border: 0;
  border-radius: 0;
}
body
  > header.refined-header
  .history-directory
  :is([data-current-page="true"], [data-current-section]) {
  background: radial-gradient(ellipse at center, var(--category-selected) 60%, transparent 63%)
    center / 100% 30px no-repeat;
  text-decoration: none;
}
body > header.refined-header .history-brand[data-current-page="true"] .brand-emblem {
  stroke-width: 2.2;
  background: var(--category-selected);
  border-radius: 50%;
}
body > header.refined-header .history-directory [data-current-section]::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  bottom: 3px;
  left: calc(50% - 2px);
}
.category-dialog .category-menu a {
  border-left: 0;
}

html dialog.category-dialog[data-filters] {
  inset: 0 0 0 auto;
  height: max(70dvh, min(100dvh, 660px));
}

/* 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"] .last-start {
  padding-top: 0;
  margin-top: 0;
}
body[data-design-page="home"] .history-section-title {
  margin: 0;
}
body .suggestion-pair .start-game [data-card-title] {
  min-height: 2.6em;
}

/* 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"] main {
  padding-top: 0;
}

/* Let enlarged text wrap the shelf before thumbnail rows become too narrow. */
body[data-design-page="home"] [data-home-feed] [data-local-items] {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}
body[data-design-page="home"] [data-home-feed] [data-local-items] > a {
  flex: 1 1 calc(50% - 6px);
  min-width: min(100%, 8em);
  box-sizing: border-box;
}

:root {
  --dropdown-radius: 5px;
  --dropdown-row-radius: 3px;
  --dropdown-tint: #dce8f5;
  --dropdown-open: #c8dbef;
  --dropdown-hover: #edf3fa;
  --dropdown-accent: #416181;
  --dropdown-parent-mark: inset 3px 0 #416181;
  --dropdown-current-mark: inset 3px 0 #416181;
}

/* 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.category-dialog .category-menu a[aria-current="page"] .category-icon {
  background: #c7daed;
  border-radius: 50%;
}

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;
}

@media (max-width: 359px) {
  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;
  }
}

/* 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;
  }
}

/* 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;
}

/* Two visible empty-state lines; four recommendations retain their own semantics. */
body:has([data-history-list] [data-local-empty]:not([hidden])) .history-gallery > h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* 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;
}
