:root {
  color-scheme: dark;
  --bg: #101923;
  --surface: #1c2b3b;
  --selected: #30465a;
  --text: #edf2f7;
  --muted: #b1c0cf;
  --action: #c2ef70;
  --ink: #15220c;
  --link: #bad9ff;
  --border: #304254;
  --field: #a9b1bf;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Hiragino Sans",
    sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
::selection {
  background: #c2ef70;
  color: #15220c;
}
html {
  scroll-padding-top: 24px;
  scrollbar-color: #617487 #101923;
}
a {
  color: var(--link);
  text-underline-offset: 3px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
summary,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
select,
summary {
  cursor: pointer;
}
button,
input,
select,
textarea {
  color: var(--text);
}
button {
  background: none;
  border: 0;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
a:hover {
  color: white;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}
button svg,
a svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
svg {
  vertical-align: middle;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.25;
  font-weight: 680;
}
h1 {
  font-size: 32px;
  letter-spacing: -0.025em;
}
h2 {
  font-size: 26px;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 17px;
}
p {
  margin-block: 8px 16px;
}
header {
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1440px;
  min-height: 64px;
  margin: auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.brand {
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}
.brand span {
  color: var(--muted);
  font-weight: 500;
}
nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  align-self: stretch;
}
nav a {
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  border-bottom: 3px solid transparent;
  padding-top: 3px;
}
nav a[aria-current] {
  color: var(--text);
  border-color: var(--action);
}
.locale-label select {
  border: 0;
  background: transparent;
  font-size: 14px;
  min-height: 44px;
  max-width: 130px;
}

main {
  max-width: 1440px;
  margin: auto;
  padding: 0 24px 48px;
}
.intro {
  padding: 32px 0 28px;
}
.intro p {
  color: var(--muted);
  max-width: 72ch;
  margin: 12px 0 0;
}
.catalog-layout {
  display: grid;
  grid-template-columns: minmax(0, 52fr) minmax(0, 48fr);
  gap: 24px;
  align-items: start;
}
.catalog-list {
  min-width: 0;
}
.tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: flex-end;
  gap: 0 16px;
  margin-bottom: 12px;
}
.js .tools {
  grid-template-columns: minmax(0, 1fr) auto;
}
.search-field {
  flex: 1;
  min-width: 0;
}
.tools label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
.search-input {
  position: relative;
  display: flex;
  align-items: center;
}
.search-input > svg {
  width: 19px;
  position: absolute;
  left: 13px;
  pointer-events: none;
  color: var(--muted);
}
input,
select,
textarea {
  border: 1px solid var(--field);
  border-radius: 6px;
  background: #152332;
  min-height: 46px;
  padding: 9px 12px;
  caret-color: var(--action);
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
}
.search-input input {
  width: 100%;
  padding-left: 40px;
  padding-right: 42px;
}
.search-input input::-webkit-search-cancel-button {
  display: none;
}
.search-input button {
  position: absolute;
  right: 0;
  width: 44px;
  height: 44px;
}
.sort-field select {
  max-width: 180px;
}
.search-submit {
  margin-bottom: 1px;
}
.js .search-submit {
  display: none;
}
#result-count {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  white-space: nowrap;
}
.search-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
#sort-note {
  font-size: 13px;
}
.game-row {
  position: relative;
  display: flex;
  gap: 16px;
  border: 1px solid transparent;
  border-bottom-color: var(--border);
  padding: 16px 12px;
  background: #172332;
  transition: background 140ms;
}
.game-row + .game-row {
  margin-top: 8px;
}
.game-row:hover {
  background: #223446;
}
.game-row.selected {
  background: var(--selected);
  border-color: #829ab2;
  border-radius: 4px;
}
.row-cover {
  flex: 0 0 200px;
  align-self: flex-start;
  text-decoration: none;
}
.row-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 4px;
}
.row-cover span {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  aspect-ratio: 16/9;
  font-size: 13px;
  color: var(--muted);
}
.row-info {
  min-width: 0;
  flex: 1;
}
.game-title {
  font-size: 18px;
  font-weight: 680;
  color: var(--text);
  text-decoration: none;
  line-height: 1.35;
  display: inline-block;
}
.row-author {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 6px;
}
.row-hook {
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 8px;
}
.row-author {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
}
.row-creator {
  color: var(--text);
}
.row-dates {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0 8px;
}
.row-dates time {
  white-space: nowrap;
}
.row-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px 12px;
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0;
}
.row-meta p {
  margin: 0;
}
.row-x {
  max-width: 160px;
  text-align: right;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 9px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.4;
}
.play {
  background: var(--action);
  color: var(--ink);
}
.play:hover {
  background: #d1ff83;
  color: var(--ink);
}
.secondary {
  border: 1px solid #8193a5;
  background: transparent;
  color: var(--text);
}
.secondary:hover {
  background: #304254;
}
.disabled {
  background: #304254;
  color: var(--muted);
}
.like[aria-pressed="true"] {
  color: var(--action);
}
.like[aria-pressed="true"] svg {
  fill: var(--action);
  stroke: var(--action);
}
.like-count:empty {
  display: none;
}
.row-actions .like {
  font-size: 13px;
  padding-inline: 9px;
}
.row-actions .like svg {
  width: 16px;
}
#preview {
  min-width: 0;
  background: var(--surface);
  border-radius: 4px;
}
#preview:empty {
  display: none;
}
#preview.can-stick {
  position: sticky;
  top: 24px;
}
.game-detail {
  padding: 24px;
}
.detail-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.detail-heading h1,
.detail-heading h2 {
  overflow-wrap: anywhere;
}
.detail-heading > div {
  min-width: 0;
}
.detail-heading .detail-language {
  display: inline-block;
  margin-left: 12px;
  font-size: 13px;
}
.detail-heading p {
  color: var(--muted);
  margin: 6px 0 0;
  font-size: 14px;
}
.detail-heading .like {
  align-self: flex-start;
  flex-shrink: 0;
}
.detail-heading .like-label {
  display: none;
}
.main-media {
  aspect-ratio: 16/9;
  background: #0d141d;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  overflow: hidden;
}
.image-open {
  display: block;
  padding: 0;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}
.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.image-empty,
.image-failure {
  color: var(--muted);
  padding: 24px;
  text-align: center;
}
.image-empty {
  min-height: 120px;
}
.thumbnail-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-top: 10px;
  max-width: 100%;
  padding: 3px;
}
.thumbnail-strip button {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  flex: 0 0 80px;
  min-height: 48px;
  overflow: hidden;
}
.thumbnail-strip button[aria-current="true"] {
  border-color: var(--action);
}
.thumbnail-strip img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.media-count {
  float: right;
  text-align: right;
  color: var(--muted);
  font-size: 12px;
  margin: 4px 0;
}
.detail-hook {
  font-size: 16px;
  margin: 12px 0;
}
.detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.detail-actions .play {
  flex: 1;
  min-width: 180px;
}
.availability {
  font-size: 12px;
  margin-top: 8px;
}
.muted,
.language-note {
  color: var(--muted);
}
.language-note {
  font-size: 13px;
  margin: 0 0 16px;
}
.detail-section {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 12px;
}
.detail-section > h2,
.detail-section > h3 {
  font-size: 16px;
  line-height: 1.4;
  margin: 0;
}
.detail-section p {
  font-size: 14px;
  max-width: 72ch;
  margin: 10px 0 0;
}
.facts {
  font-size: 13px;
  margin: 16px 0 0;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.facts > div {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 8px;
}
.facts dt {
  color: var(--muted);
}
.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
summary {
  min-height: 44px;
  display: list-item;
  font-weight: 600;
  font-size: 14px;
}
details p {
  padding-bottom: 10px;
}
.sources ul {
  padding-left: 18px;
  font-size: 13px;
}
.sources li {
  margin-bottom: 12px;
}
.sources li span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}
.detail-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border);
  margin-top: 24px;
  padding-top: 16px;
  font-size: 14px;
}
.detail-footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.mobile-collapse {
  display: none;
  color: var(--link);
  min-height: 44px;
  font-size: 14px;
}
.like-explanation {
  font-size: 12px;
  margin: 20px 0 0;
}
.preview-prompt {
  padding: 32px;
}
#empty-state {
  padding: 40px 12px;
}
#empty-state h2 {
  font-size: 22px;
}
#empty-state p {
  color: var(--muted);
}
.reading {
  max-width: 72ch;
  margin: 40px auto 72px;
}
.reading > p {
  margin-top: 20px;
  color: var(--muted);
}
.reading form {
  margin-top: 24px;
  display: grid;
  gap: 8px;
}
.reading form label {
  font-size: 14px;
  margin-top: 8px;
}
.reading form input,
.reading textarea {
  width: 100%;
}
.reading form .button {
  justify-self: start;
  margin-top: 16px;
}
.reading details {
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}
.reading details p {
  color: var(--muted);
}
.reading form #source-hint {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--muted);
}
.form-result {
  overflow-wrap: anywhere;
}
.form-result:empty {
  display: none;
}
.form-errors {
  border-left: 3px solid var(--action);
  padding: 12px 16px;
  background: var(--surface);
}
.field-error {
  font-size: 14px;
  color: var(--action);
}
.reading form .field-error {
  margin: 0;
}
[aria-invalid="true"] {
  border-color: var(--action);
}
.standalone {
  max-width: 1040px;
  margin: 32px auto;
}
.standalone .game-detail {
  background: var(--surface);
  margin-top: 24px;
}
.standalone h1 {
  font-size: 32px;
}
.standalone .gallery {
  max-width: 880px;
  margin: auto;
}
.detail-primary {
  min-width: 0;
}
@media (min-width: 901px) {
  .standalone .detail-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
  }
  .standalone .gallery {
    width: 100%;
    margin: 0;
  }
  .standalone .detail-hook {
    margin-top: 0;
  }
}
.back-link {
  font-size: 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
footer {
  max-width: 1440px;
  padding: 28px 24px;
  margin: auto;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
footer .brand {
  font-size: 17px;
}
footer > div {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
footer a {
  font-size: 13px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
#notice {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  padding: 12px 20px;
  background: #30465a;
  border-radius: 6px;
  box-shadow: 0 8px 30px #0006;
  z-index: 5;
  font-size: 14px;
}
#notice:empty {
  display: none;
}
dialog {
  border: 0;
  border-radius: 4px;
  background: #101923;
  color: var(--text);
  width: min(1300px, 96vw);
  max-height: 96vh;
  padding: 20px;
}
dialog::backdrop {
  background: #05090ee8;
}
.viewer-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.viewer-toolbar p {
  margin: 0;
}
.viewer-stage {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}
.viewer-stage img {
  max-width: calc(100% - 128px);
  max-height: 72vh;
  object-fit: contain;
}
.viewer-stage button {
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
  padding: 9px;
}
#viewer-caption {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-top: 16px;
}
.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 20;
  background: var(--action);
  color: var(--ink);
  padding: 10px;
}
.skip:focus {
  top: 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}
.locale-links {
  display: flex;
  gap: 8px;
  font-size: 12px;
}
@media (max-width: 1279px) {
  main {
    padding-inline: 20px;
  }
  .row-cover {
    flex-basis: 128px;
  }
  .header-inner {
    padding-inline: 20px;
    gap: 24px;
  }
  .game-detail {
    padding: 20px;
  }
  .detail-heading h2 {
    font-size: 24px;
  }
}
@media (min-width: 901px) and (max-width: 1099px) {
  .catalog-layout {
    grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
    gap: 16px;
  }
  .game-detail {
    padding: 16px;
  }
  .game-row {
    gap: 12px;
    padding-inline: 8px;
  }
  .row-cover {
    flex-basis: 128px;
  }
  .detail-actions .button {
    width: 100%;
  }
  .detail-heading h2 {
    font-size: 22px;
  }
  .sort-field select {
    max-width: 142px;
  }
}
@media (max-width: 900px) {
  .catalog-layout {
    display: block;
  }
  .header-inner {
    min-height: 68px;
    padding: 12px 16px;
    gap: 16px;
    flex-wrap: wrap;
  }
  .brand {
    font-size: 22px;
  }
  nav {
    order: 3;
    width: 100%;
    margin: 0;
    gap: 24px;
  }
  nav a {
    min-height: 44px;
  }
  .locale-label {
    margin-left: auto;
  }
  main {
    padding-inline: 16px;
  }
  .intro {
    padding: 24px 0;
  }
  h1 {
    font-size: 28px;
  }
  .intro p {
    font-size: 14px;
  }
  .game-row {
    gap: 12px;
    padding: 14px 10px;
  }
  .game-row {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 8px 12px;
  }
  .game-row .row-cover {
    grid-column: 1;
    grid-row: 1;
  }
  .game-row .row-info {
    display: contents;
  }
  .game-row .row-summary {
    grid-column: 2;
    min-width: 0;
  }
  .game-row .row-meta,
  .game-row .row-actions {
    grid-column: 1 / -1;
    margin: 0;
  }
  .row-author {
    gap: 0;
    margin-bottom: 0;
  }
  .row-creator,
  .row-dates {
    width: 100%;
  }
  .row-x {
    max-width: 120px;
  }
  .row-cover {
    flex-basis: 96px;
  }
  .row-cover img {
    aspect-ratio: 8/5;
  }
  .game-title {
    font-size: 17px;
  }
  .row-author {
    font-size: 12px;
  }
  .row-hook {
    font-size: 13px;
  }
  .row-actions .button {
    padding: 8px 11px;
  }
  .game-detail {
    padding: 16px;
  }
  .detail-heading h2 {
    font-size: 22px;
  }
  #preview {
    margin: 0 0 16px;
    border-top: 1px solid var(--border);
  }
  .mobile-collapse {
    display: block;
  }
  .detail-actions .button {
    flex: 1;
  }
  .detail-actions .secondary {
    min-width: 130px;
  }
  .sort-field select {
    max-width: 150px;
  }
  .facts > div {
    grid-template-columns: 90px minmax(0, 1fr);
  }
  footer {
    padding: 24px 16px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .reading {
    margin-top: 28px;
  }
  .standalone {
    margin-top: 20px;
  }
  .standalone .game-detail {
    padding: 16px;
  }
  .standalone h1 {
    font-size: 24px;
  }
  .viewer-stage {
    gap: 4px;
  }
  .viewer-stage img {
    max-width: calc(100% - 100px);
  }
  dialog {
    padding: 12px;
  }
  .tools {
    gap: 12px;
  }
  .tools,
  .js .tools {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .search-field {
    grid-column: 1 / -1;
  }
  .sort-field {
    grid-column: 1;
    grid-row: 2;
  }
  .search-submit {
    grid-column: 1 / -1;
  }
  .js #preview:empty {
    display: none;
  }
}
@media (min-width: 390px) and (max-width: 900px) {
  .tools,
  .js .tools {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
  }
  .search-field {
    grid-column: 1;
  }
  .sort-field {
    grid-column: 2;
    grid-row: 1;
  }
}
@media (max-width: 360px) {
  main {
    padding-inline: 12px;
  }
  .header-inner {
    padding-inline: 12px;
  }
  .brand {
    font-size: 20px;
  }
  .sort-field select {
    max-width: 125px;
    font-size: 13px;
  }
  .row-actions .like-label {
    display: none;
  }
  .row-hook {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.editorial-pending {
  font-size: 13px;
  margin-top: 20px;
}
.reading h2 {
  font-size: 23px;
  margin: 32px 0 12px;
}
.reading ul {
  padding-left: 24px;
}
.reading li {
  margin: 8px 0;
}
@media (min-width: 1100px) {
  .game-row .row-info {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px;
    column-gap: 8px;
    align-items: start;
    align-content: start;
    min-height: 99px;
  }
  .game-row .row-summary {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
  }
  .game-row .row-hook,
  .game-row .row-author {
    margin: 0;
  }
  .game-row .row-meta {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .game-row .row-actions {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
  }
  .game-row .row-actions .button {
    padding-inline: 9px;
  }
  .game-row .row-actions .like-label {
    display: none;
  }
  .row-hook {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .game-row {
    padding-block: 12px;
  }
}
@media (max-width: 900px) {
  .detail-actions .button {
    width: 100%;
    flex: auto;
  }
  .detail-actions {
    gap: 10px;
  }
  .row-hook {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
@media (min-width: 1100px) {
  .intro {
    padding: 8px 0;
  }
  .intro p {
    margin-top: 8px;
    max-width: 100ch;
  }
  .game-row .row-meta {
    margin: 4px 0 0;
  }
}
.game-title {
  align-self: flex-start;
  max-width: 100%;
  overflow-wrap: anywhere;
  user-select: text;
  -webkit-user-select: text;
  -webkit-user-drag: none;
}

/* FOUNDATION-1.4: related facts share a compact group. */
.game-description {
  margin-top: 12px;
  font-size: 14px;
}
.game-description p {
  margin: 0;
}
.preserve-lines {
  white-space: pre-line;
}
.media-credit {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.media-credit:empty {
  display: none;
}
.platform-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}
.test-observation {
  font-size: 13px !important;
  color: var(--muted);
}
.inline-disclosure {
  position: relative;
  margin-top: 4px;
}
.inline-disclosure summary {
  cursor: pointer;
  color: var(--link);
  min-height: 44px;
  padding: 8px 0;
}
.inline-disclosure > div {
  font-size: 14px;
}
.inline-disclosure[open] {
  padding-bottom: 44px;
}
.inline-disclosure[open] > summary {
  position: absolute;
  bottom: 0;
  left: 0;
}
.control-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 4px 16px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
.controls-section .preserve-lines {
  line-height: 1.5;
}
.controls-section h3 + .preserve-lines {
  margin-top: 0;
}
.facts a {
  text-underline-offset: 3px;
}
.facts dd {
  line-height: 1.6;
}
.controls-section h3,
.sources h3 {
  font-size: 16px;
  margin-bottom: 8px;
}
.detail-footer {
  margin-top: 20px;
  padding-top: 12px;
}

.content-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin-block: 24px;
}
.content-table th,
.content-table td {
  text-align: start;
  vertical-align: top;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .content-table,
  .content-table tbody,
  .content-table tr,
  .content-table td {
    display: block;
  }
  .content-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .content-table tr {
    margin-block-end: 24px;
  }
  .content-table td {
    padding: 8px 0;
  }
  .content-table td::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    margin-block-end: 4px;
  }
}

/* SEO reading surfaces inherit the existing directory palette and type. */
.guide h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  text-wrap: balance;
}
.guide h3,
.player-answers h3 {
  font-size: 19px;
  margin: 28px 0 10px;
  line-height: 1.4;
}
.guide p,
.guide li,
.player-answers p {
  line-height: 1.75;
}
.guide-toc {
  margin: 28px 0 36px;
  padding-block: 20px;
  border-block: 1px solid var(--border);
}
.guide-toc > summary {
  font-weight: 600;
}
.guide-toc ul {
  margin-top: 12px;
}
.guide a,
.player-answers a,
.related-guides a {
  overflow-wrap: anywhere;
  text-underline-offset: 0.2em;
}
.guide [id],
.player-answers [id] {
  scroll-margin-top: 24px;
}
.answer-sources {
  font-size: 13px;
  color: var(--muted);
}
.related-guides {
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* Compact directory preview: image, entry, X, one recommendation. */
#preview .preview-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.preview-card .detail-heading {
  margin: 0;
}
.preview-card .detail-heading h2 {
  font-size: 22px;
  line-height: 1.25;
  margin: 0;
}
.preview-card .detail-heading p {
  margin-top: 4px;
  font-size: 13px;
}
.preview-card .main-media {
  position: relative;
  aspect-ratio: var(--media-aspect, 16/9);
  height: auto;
}
.preview-card .media-credit {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.4;
}
.preview-card .media-credit:empty {
  display: none;
}
.preview-card .media-count {
  position: absolute;
  top: 8px;
  right: 8px;
  margin: 0;
  padding: 3px 8px;
  border-radius: 4px;
  background: #101923e8;
  color: var(--text);
  font-size: 12px;
  pointer-events: none;
}
.preview-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 52px;
  display: grid;
  place-items: center;
  background: #101923ed;
  border: 1px solid #b1c0cf;
  border-radius: 6px;
  color: var(--text);
}
.preview-arrow svg {
  width: 24px;
  height: 24px;
}
.preview-arrow-prev {
  left: 8px;
}
.preview-arrow-next {
  right: 8px;
}
.preview-arrow:hover:not(:disabled) {
  background: var(--selected);
  border-color: var(--action);
}
.preview-arrow:disabled {
  opacity: 0.45;
  cursor: default;
}
.row-view {
  margin-left: 12px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.preview-post-text {
  margin: 0;
  padding: 8px 12px;
  border-left: 1px solid var(--border);
  background: #152332;
}
.preview-post-text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.preview-card .detail-actions {
  margin: 0;
}
.preview-card .detail-actions .button {
  width: 100%;
}
.preview-x {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  font-size: 13px;
}
.preview-posts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.preview-x p {
  margin: 0;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.preview-recommendation p,
.preview-summary {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
.preview-recommendation strong {
  color: var(--action);
  margin-right: 4px;
}
.preview-access {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.game-row .row-meta {
  display: flex;
  justify-content: flex-end;
}
.game-row .row-dates {
  gap: 4px;
  flex-basis: 100%;
  margin-top: 3px;
}
.tools .search-heading {
  display: contents;
}
@media (min-width: 901px) {
  .intro {
    padding-block: 12px;
  }
  #preview.can-stick {
    top: 16px;
  }
}
@media (max-width: 900px) {
  .intro {
    padding-block: 16px;
  }
  .preview-card .main-media {
    height: auto;
    aspect-ratio: var(--media-aspect, 16/9);
  }
  .game-row .row-meta {
    grid-column: 1 / -1;
  }
  .preview-card .mobile-collapse {
    align-self: flex-start;
    padding: 0;
  }
}

/* Directory media navigation and metadata. */
.preview-thumbnails {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 1px 2px;
  scrollbar-width: thin;
}
.preview-thumbnails button {
  flex: 0 0 88px;
  padding: 2px;
  border: 2px solid transparent;
  border-radius: 3px;
  opacity: 0.65;
}
.preview-thumbnails button:hover {
  opacity: 1;
}
.preview-thumbnails button[aria-current="true"] {
  border-color: var(--action);
  opacity: 1;
}
.preview-thumbnails img {
  display: block;
  width: 100%;
  height: 48px;
  object-fit: cover;
}
.preview-tweet:empty,
.tweet-loaded .preview-post-text {
  display: none;
}
.preview-tweet {
  overflow-wrap: anywhere;
  min-width: 0;
}

/* Reading surfaces migrated from the public Roadster site. */
.migrated-page .reading {
  max-width: 760px;
  line-height: 1.7;
  margin: 40px auto 72px;
}
.migrated-page .reading h1 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  margin: 0 0 18px;
  overflow-wrap: anywhere;
}
.migrated-page .reading h2 {
  font-size: 26px;
  line-height: 1.3;
  margin: 0 0 16px;
}
.migrated-page .reading h3 {
  font-size: 21px;
  line-height: 1.35;
  margin: 0 0 12px;
}
.migrated-page .reading p {
  margin: 0 0 18px;
}
.migrated-page .reading .lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 28px;
}
.migrated-page .reading section {
  margin-top: 36px;
}
.migrated-page .sources,
.migrated-page .review-date {
  font-size: 13px;
  color: var(--muted);
}
.migrated-page .reading-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 760px);
  gap: 40px;
  justify-content: center;
}
.migrated-page .reading-layout .reading {
  width: 100%;
  margin-inline: 0;
}
.migrated-page .contents {
  padding-top: 44px;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 12px;
  font-size: 14px;
}
.migrated-page .contents a {
  color: var(--muted);
  text-decoration: none;
  min-height: 36px;
}
.migrated-page .reading .answer {
  padding: 20px 22px;
  background: var(--surface);
  border-radius: 3px;
  margin-top: 24px;
}
.migrated-page .answer,
.migrated-page .faq-group,
.migrated-page .anchor-alias {
  scroll-margin-top: 24px;
}
.migrated-page .reading .answer .sources {
  margin-bottom: 0;
  font-size: 12px;
}
.migrated-page .faq-group > h2 {
  font-size: 17px;
}
.migrated-page .topic-more,
.migrated-page .breadcrumb {
  font-size: 14px;
}
.migrated-page .topic-list {
  margin: 28px 0 36px;
}
.migrated-page .topic-list div {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.migrated-page .topic-list a {
  font-size: 19px;
  text-decoration: none;
}
.migrated-page .resource h2 {
  font-size: 22px;
}
@media (max-width: 900px) {
  .migrated-page .reading-layout {
    display: block;
  }
  .migrated-page .contents {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding-top: 24px;
  }
  .migrated-page .reading {
    margin-block: 28px 48px;
  }
  .migrated-page .reading .answer {
    padding: 18px 16px;
  }
}

/* Preserve existing bookmarked game pages during the directory cutover. */
.legacy-game img {
  max-width: 100%;
  height: auto;
  display: block;
}
.legacy-game .game-heading h1 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
}
.legacy-game .game-detail-grid {
  display: grid;
  gap: 20px;
}
.legacy-game .play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--action);
  color: var(--ink);
  padding: 10px 18px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 650;
}
.legacy-game .play svg {
  width: 20px;
  height: 20px;
}
.legacy-game .game-details section {
  margin-block: 24px;
}
.legacy-game .game-details h2 {
  font-size: 20px;
}
.legacy-game .social-line {
  margin-block: 16px;
}
.legacy-game .image-open-label {
  display: block;
  font-size: 13px;
  margin-top: 4px;
}

/* Product recommendations use the same layout as game rows. */
.product-card {
  position: relative;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 112px;
  gap: 16px;
  padding: 16px 12px;
  margin: 8px 0;
  background: #172332;
  border: 1px solid transparent;
  border-bottom-color: var(--border);
}
.product-image {
  position: relative;
  align-self: start;
  display: block;
}
.product-image img {
  width: 100%;
  aspect-ratio: 3/2;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 3px;
}
.product-pr {
  position: absolute;
  top: 3px;
  right: 8px;
  color: var(--muted);
  font-size: 10px;
}
.product-content {
  min-width: 0;
  padding-top: 3px;
}
.product-content h2 {
  font-size: 18px;
  line-height: 1.35;
  margin: 0 24px 6px 0;
  letter-spacing: -0.02em;
}
.product-content h2 a {
  color: var(--text);
  text-decoration: none;
}
.product-content p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #d2dce5;
}
.product-content .product-meta {
  margin-top: 4px;
  color: var(--muted);
}
.product-stats,
.product-rating {
  display: flex;
  align-items: center;
  gap: 4px 8px;
}
.product-stats {
  flex-wrap: wrap;
}
.product-rating {
  color: #ffad33;
  white-space: nowrap;
}
.product-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 4px 0 0;
  align-self: center;
}
.product-cta {
  width: 112px;
  min-width: 112px;
  height: 44px;
  min-height: 44px;
  white-space: nowrap;
  font-size: 12px;
  padding: 9px 8px;
  gap: 6px;
  background: #ff9900;
  border-color: #ff9900;
  color: #111820;
}
.product-cta:hover {
  background: #ffad33;
  border-color: #ffad33;
  color: #111820;
}
.product-card + .game-row {
  margin-top: 8px;
}
@media (max-width: 900px) {
  .product-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 10px;
  }
  .product-image {
    align-self: start;
    margin-top: 0;
  }
  .product-actions {
    grid-column: 2;
    margin-top: 0;
  }
  .product-content h2 {
    font-size: 16px;
  }
  .product-cta {
    min-width: 107px;
    min-height: 44px;
  }
}
@media (max-width: 360px) {
  .product-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
  }
}
