/* Find Your Game: directory handle, wordmark, and the separate tab shortlist. */
.refined-header {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 1180px;
  margin: auto;
  padding: 4px 12px;
  box-sizing: border-box;
  min-height: 56px;
  border-bottom: 1px solid #b6c1cc;
}
.refined-header .refined-brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 19px;
  line-height: 1.15;
  font-weight: 700;
  white-space: normal;
  min-width: 0;
  flex: 1;
  text-decoration: none !important;
  color: inherit;
}
.refined-header nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.refined-header nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 6px;
  box-sizing: border-box;
  color: inherit;
  font-size: 14px;
  text-decoration: none;
}
.refined-header .discovery-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  border: 0;
  background: transparent;
  text-decoration: none;
  border-radius: 0;
  padding: 8px !important;
}
.refined-header a[aria-current="page"]:not(.refined-brand) {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}
.refined-header .identity-action {
  gap: 4px;
  background: transparent !important;
  box-shadow: none !important;
  border: 0;
}
.refined-header a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -3px;
}
main#main {
  padding-top: 10px;
}
.route-context {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 400;
  text-transform: capitalize;
}
dialog.category-dialog[data-filters] {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(88vw, 380px);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  border: 0;
  border-radius: 0;
}
dialog.category-dialog[data-filters] .dialog-panel {
  height: 100%;
  min-height: 100%;
  max-height: 100%;
  border: 0;
  border-radius: 0;
  padding-bottom: env(safe-area-inset-bottom);
  box-sizing: border-box;
}
.category-dialog .category-menu {
  flex: 1;
  align-content: start;
  min-height: 0;
  overflow-y: auto;
}
.category-menu .category-number {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.category-menu a {
  min-height: 52px;
}
.category-menu svg {
  display: block;
  flex: none;
}
.game-heading {
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0;
}
.game-heading h1 {
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0 !important;
  min-width: 0;
}
.game-heading [data-player-return] {
  display: flex !important;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  color: inherit;
  text-decoration: none;
}
.game-heading [data-player-return]::before,
.game-heading [data-player-return]::after {
  content: none !important;
}
.game-heading svg {
  display: block;
  width: 20px;
  height: 20px;
}
.game-heading button {
  min-height: 44px;
  min-width: 44px;
  border: 0;
  background: transparent;
  color: inherit;
}
.player-block {
  margin: 0 0 16px !important;
}
.stage {
  background: transparent;
  color: inherit;
  border: 0;
}
.game-surface {
  aspect-ratio: 4 / 3;
  min-height: 0;
  max-height: min(65dvh, 600px);
  background: #172536;
}
.player-tools {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  padding: 6px 0 0;
  align-items: center;
}
.player-tools button {
  min-height: 44px;
  min-width: 44px;
  padding: 6px 10px;
  color: inherit;
  background: transparent;
  border: 0;
}
.player-tools :is([data-play], [data-stop]) {
  border-radius: 3px;
  background: #1b557c;
  color: white;
  min-width: 86px;
}
.player-tools [data-restart] {
  margin-left: auto;
  font-size: 22px;
}
.player-tools [data-fullscreen] {
  font-size: 22px;
}
.stage [data-player-status] {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  padding: 4px 0 0;
  margin: 0;
}
.stage:fullscreen {
  background: #172536;
  color: white;
  gap: 0;
  border: 0;
}
.stage:fullscreen .game-surface {
  flex: 1;
  height: auto;
  max-height: none;
  min-height: 0;
  aspect-ratio: auto;
}
.stage:fullscreen .player-tools {
  padding: 0 6px;
}
.stage:fullscreen [data-player-status] {
  padding: 0 8px 4px;
}
[hidden] {
  display: none !important;
}
.game-grid [data-card-title] {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}
.complete-categories {
  display: none;
}
.reading-home .reading-card,
.reading-directory .reading-card {
  border-top: 0;
}
.reading-summary {
  display: block !important;
}
@media (max-width: 350px) {
  .refined-header {
    gap: 2px;
    padding-inline: 8px;
  }
  .refined-header .refined-brand {
    font-size: 17px;
  }
  .refined-header nav a {
    padding-inline: 4px;
  }
}
@media (min-width: 768px) {
  .refined-header {
    padding-inline: 20px;
    gap: 16px;
  }
  .refined-header .refined-brand {
    font-size: 22px;
  }
  .game-heading h1 {
    font-size: 15px !important;
  }
  .game-surface {
    aspect-ratio: 16 / 10;
    max-height: 600px;
  }
}
/* A source-slip masthead and a single index carrier instead of a tab rail. */
.refined-header {
  display: block;
  padding: 0 12px;
  border-bottom: 1px solid #bba88f;
}
.refined-header .refined-brand {
  min-height: 46px;
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  border-bottom: 0;
}
.refined-header nav {
  margin: 0;
  justify-content: flex-start;
  gap: 6px;
}
.refined-header nav .index-entrance {
  padding-left: 0;
  flex: 1;
  justify-content: space-between;
  font-size: 15px;
}
.refined-header nav .independent-reading-link {
  display: none;
}
.refined-header nav .discovery-trigger {
  border-left: 0;
}
.refined-header nav .index-entrance[aria-current="page"] {
  color: #794923;
  text-decoration: none;
}
.refined-header nav .index-entrance[aria-current="page"] > span {
  text-decoration: underline;
  text-underline-offset: 4px;
}
dialog.category-dialog[data-filters] {
  inset: auto 0 0;
  margin: 0 auto;
  transform: none;
  width: min(100vw, 760px);
  height: 80dvh;
}
dialog.category-dialog[data-filters] .dialog-panel {
  border: 1px solid #bca88d;
  border-bottom: 0;
}
.category-menu {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
  padding: 12px 18px;
}
.category-menu a {
  padding-inline: 0;
  gap: 12px;
  min-height: 56px;
}
.category-menu a:first-child {
  grid-column: 1/-1;
}
.player-tools {
  padding-block: 6px;
}
.player-tools :is([data-play], [data-stop]) {
  background: transparent;
  color: #794923;
  border: 1px solid #a57d59;
  font-family: Georgia, serif;
}
.player-tools [data-restart] {
  margin-left: auto;
}
.stage [data-player-status] {
  border-left: 2px solid #bba88f;
  padding: 2px 10px;
  margin-top: 4px;
}
@media (min-width: 768px) {
  .refined-header {
    display: flex;
    gap: 28px;
    padding: 6px 20px;
    min-height: 62px;
  }
  .refined-header .refined-brand {
    border-bottom: 0;
    flex: none;
  }
  .refined-header nav {
    margin-left: auto;
    min-width: 260px;
    border-bottom: 0;
  }
}

/* Game excerpts use only original supplied descriptions, at most two visual lines. */
.recommendation-copy p,
.round-game-copy p,
.game-card-link > p,
.game-card-link .game-description,
.fact-card p,
.choice-card p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 0;
  height: auto;
  line-height: 1.45;
  margin: 6px 0 0;
}
.recommendation-copy h3 {
  min-height: 0;
}
.recommendation-copy {
  padding: 8px 10px;
}
.recommendation-cta {
  display: none;
}
[data-list-discovery] > h2 {
  font-size: 16px;
  line-height: 1.4;
  margin: 0 0 10px;
}
[data-list-discovery] {
  margin-block: 20px;
}

body > header.refined-header a.refined-brand {
  white-space: normal;
  max-width: 100%;
  box-sizing: border-box;
}
body[data-design-site="Game75"] .source-reading > summary {
  box-sizing: border-box;
}

/* The complete article title leads directly into the original body. */
body[data-design-page="article"] .reading-intro {
  margin: 0 0 8px;
}
body[data-design-page="article"] .reading-intro h1 {
  margin: 0;
}
body[data-design-page="article"] .reading-body > section {
  padding-top: 0;
}
body[data-design-page="article"] .reading-body h2 {
  margin-top: 0;
  margin-bottom: 4px;
}
.reading-summary-end {
  margin: 16px 0;
  line-height: 1.6;
}
.reading-summary-end p {
  margin: 8px 0;
}
body[data-design-page="information"] main > .reading {
  padding-top: 0;
}
body[data-design-page="information"] main > .reading h2 {
  margin-top: 0;
  margin-bottom: 8px;
}

/* Recovery: remove redundant spacing before real information; retain full readable text. */
body[data-design-page="information"] main#main {
  padding-top: 0;
}
body[data-design-page="information"] main > .policy-section {
  margin-block: 0 12px;
  padding-block: 0;
}
body[data-design-page="information"] main > .policy-section h2 {
  margin: 0 0 4px;
}
body[data-design-page="information"] main > .policy-section p {
  margin: 0;
}

body[data-design-page="article"] main#main {
  padding-top: 0;
}
body[data-design-page="article"] .reading-intro {
  margin-bottom: 4px;
}
body[data-design-page="article"] .reading-intro h1 {
  line-height: 1.2;
}
body[data-design-page="article"] .reading-summary-lead {
  font-size: 1rem;
  line-height: 1.55;
  margin: 0 0 8px;
}

/* V2: a small bookplate and a single game index, with notes beside it. */
body > .refined-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  min-height: 56px;
  padding: 4px 12px;
}
body > header.refined-header a.refined-brand {
  flex: 1 1 max-content;
  min-width: 0;
  gap: 6px;
  margin: 0;
  min-height: 44px;
  border: 0;
}
.refined-header .brand-mark {
  width: 22px;
  color: #8a5737;
  flex: none;
}
.refined-header .brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.05;
}
.refined-header .brand-copy > span {
  font-size: 11px;
  font-family: Georgia, serif;
  letter-spacing: 0.08em;
}
.refined-header .brand-copy > strong {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.refined-header .refined-brand[aria-current="page"] .brand-mark {
  fill: #f1e3cf;
  stroke-width: 2;
}
.refined-header nav {
  min-width: 0;
  display: flex;
  gap: 2px;
  margin: 0;
  border: 0;
  flex: 0 0 auto;
}
.refined-header nav .index-entrance {
  flex: 0 1 auto;
  padding: 0 6px;
  min-height: 44px;
  gap: 6px;
  font-size: 14px;
  position: relative;
}
.refined-header .index-long,
.refined-header .nav-label {
  display: none;
}
.refined-header nav .independent-reading-link {
  display: inline-flex;
  padding: 0 6px;
  gap: 6px;
}
.refined-header nav .independent-reading-link svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.refined-header nav .discovery-trigger {
  box-sizing: border-box;
}
.refined-header nav .index-entrance[aria-current="page"] > span {
  text-decoration: none;
}
.refined-header nav .index-entrance[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 6px;
  width: 22px;
  height: 2px;
  background: #8a5737;
}
.refined-header nav .independent-reading-link[aria-current="page"] {
  background: radial-gradient(circle at 50% 88%, #8a5737 2px, transparent 2.5px);
  text-decoration: none;
}
dialog.category-dialog[data-filters] {
  width: min(100vw, 540px);
  height: 72dvh;
}
.category-menu {
  grid-template-columns: 1fr;
  padding: 8px 18px 16px;
  gap: 0;
}
.category-menu a {
  min-height: 52px;
  padding: 6px 0;
}
.category-menu a:first-child {
  grid-column: auto;
}
@media (min-width: 640px) {
  body > .refined-header {
    padding-inline: 20px;
    gap: 24px;
  }
  .refined-header .brand-copy {
    display: block;
  }
  .refined-header .brand-copy > span,
  .refined-header .brand-copy > strong {
    font-size: 23px;
    letter-spacing: -0.02em;
  }
  .refined-header .index-long,
  .refined-header .nav-label {
    display: inline;
  }
  .refined-header nav {
    gap: 12px;
  }
}

/* List previews are two lines each; the original full text remains in the link and article. */
body[data-design-site="Game75"] :is(.reading-home, .reading-directory) .reading-card :is(h2, h3),
body[data-design-site="Game75"]
  :is(.reading-home, .reading-directory)
  .reading-card
  .reading-summary {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
body[data-design-site="Game75"] :is(.reading-home, .reading-directory) .reading-card :is(h2, h3) {
  line-height: 1.35;
  min-block-size: 0;
}
body[data-design-site="Game75"]
  :is(.reading-home, .reading-directory)
  .reading-card
  .reading-summary {
  line-height: 1.55;
  min-block-size: 0;
}
body[data-design-site="Game75"] .reading-directory > li .reading-card {
  height: 100%;
  box-sizing: border-box;
}

/* These three source titles are short; keep disclosure controls close to their wording. */
body[data-design-site="Game75"] .source-slip [data-card-title] {
  min-height: 0;
  margin: 6px 0 0 !important;
}

/* Error recovery stays a compact native link row, leaving room for real recommendations. */
body.error-page main > .reading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  min-height: 44px;
  padding: 0;
  margin: 0 0 8px;
  border: 0;
}
body.error-page main > .reading p {
  margin: 0;
}
body.error-page main > .reading a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
body.error-page main > .reading > h2,
body.error-page [data-round-recommendations] > h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
body.error-page [data-round-recommendations] {
  margin-top: 0;
}

/* Supplemental reading keeps the same two-line preview budget as the article directory. */
.round-reading :is(h3, p) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.round-reading li > a {
  height: 100%;
  box-sizing: border-box;
}

/* Publication index: warm paper behind the title, with steady icon and count columns. */
body[data-design-site="Game75"] .refined-header [data-open-filters] {
  position: relative;
  isolation: isolate;
  color: #754b30;
  background: transparent;
  box-shadow: none;
  text-decoration: none !important;
  line-height: 1;
}
body[data-design-site="Game75"] .refined-header [data-open-filters]::before {
  content: "";
  position: absolute;
  inset: auto;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 30px;
  transform: translate(-50%, -50%);
  border-radius: 2px;
  background: transparent;
  z-index: -1;
  pointer-events: none;
}
body[data-design-site="Game75"] .refined-header [data-current-section]::before {
  background: #f0e3d0;
  box-shadow: inset 0 -2px #aa7d4c;
}
body[data-design-site="Game75"] .refined-header [aria-expanded="true"] {
  color: #fff;
}
body[data-design-site="Game75"] .refined-header [aria-expanded="true"]::before {
  background: #754b30;
  box-shadow: none;
}
.refined-header [data-open-filters] > svg {
  display: block;
  flex: none;
  width: 21px;
  height: 21px;
  align-self: center;
}
.refined-header [data-open-filters]::after {
  content: none !important;
}
.category-menu a {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 32px;
  align-items: center;
  column-gap: 10px;
}
.category-menu a > span:nth-child(2) {
  min-width: 0;
  line-height: 1.4;
  font-weight: 500;
  padding: 4px 8px;
  margin: -4px -8px;
  border-radius: 2px;
}
.category-menu small {
  margin: 0;
  justify-self: end;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.category-menu a[aria-current="page"] {
  color: #663d24;
  background: transparent;
  box-shadow: none;
  text-decoration: none !important;
}
.category-menu a[aria-current="page"] > span:nth-child(2) {
  background: #f0e2cd;
}
.category-menu a[aria-current="page"] svg {
  stroke-width: 2;
}
.category-menu a:not([aria-current]):hover > span:nth-child(2) {
  background: #f6eee1;
}
.category-menu a:focus-visible {
  outline: 2px solid #754b30;
  outline-offset: -2px;
}

/* Compact preview budgets. Padding sits outside clipped title line boxes. */
body[data-design-site="Game75"] :is(.game-card-link, .category-signpost) [data-card-title],
body[data-design-site="Game75"] .thumbnail-label,
body[data-design-site="Game75"] .recommendation-copy h3,
body[data-design-site="Game75"] :is(.complete-copy, .row-completion-copy) strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  min-height: 0;
  min-block-size: 0;
  max-height: none;
  padding-block: 0 !important;
  line-height: 1.4;
}
body[data-design-site="Game75"] :is(.game-card-link, .category-signpost) [data-card-title] {
  margin-block: 8px;
}
body[data-design-site="Game75"] :is(.recommendation-copy, .complete-copy, .row-completion-copy) p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 0;
}
body[data-design-site="Game75"] :is(.reading-home, .reading-directory) .reading-card :is(h2, h3),
body[data-design-site="Game75"] .round-reading h3 {
  -webkit-line-clamp: 1;
  min-block-size: 0;
  padding-block: 0;
}
/* Unframed player controls meet the image/content edges; button padding stays intact. */
.stage .player-tools {
  padding-inline: 0;
  box-sizing: border-box;
}
.stage [data-player-status] {
  box-sizing: border-box;
  overflow-wrap: anywhere;
}

body[data-design-site="Game75"] :is(.reading-home, .reading-directory) .reading-card :is(h2, h3) {
  font-size: 1.2rem;
  line-height: 1.35;
}
/* This status has its own left rule; retain the existing inset against that rule. */
.stage [data-player-status] {
  padding-inline: 10px;
}

/* One return arrow shares a single title line; complete title text stays in the H1. */
.article-title-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.article-title-row > [data-article-back] {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  box-sizing: border-box;
  text-decoration: none;
}
.article-title-row > [data-article-back] svg {
  display: block;
  width: 20px;
  height: 20px;
}
.article-title-row > [data-article-back]:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.article-title-row > h1 {
  min-width: 0;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.guide-article-return {
  margin-bottom: 8px;
}
.guide-article-return > h1 {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
}
.reading-game-back {
  max-inline-size: 70ch;
  margin-inline: auto;
}
.reading-game-back a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* The optional title disclosure shares the return arrow's geometric center. */
.game-heading [data-full-title-open] {
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 1;
}

/* Closed dialogs remain hidden when the browser has no native dialog implementation. */
dialog:not([open]) {
  display: none;
}
dialog[data-dialog-fallback][open] {
  display: block;
  position: fixed;
  z-index: 10001;
  max-height: calc(100vh - 24px);
  overflow: auto;
}
[data-dialog-backdrop] {
  position: fixed;
  z-index: 10000;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}
