:root {
  --paper: #eeece6;
  --surface: #faf9f5;
  --ink: #282b28;
  --muted: #5c615a;
  --line: #c9cbc2;
  --red: #c63424;
  --soft: #e1e3da;
  --radius: 6px;
  --measure: 1140px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}
body.modal-open {
  position: fixed;
  width: 100%;
  overflow-y: scroll;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--red);
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
button,
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}
button:hover,
.button:hover {
  border-color: var(--red);
  color: var(--red);
}
button.primary,
.button.primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
button.primary:hover,
.button.primary:hover {
  background: #a72a1e;
  color: #fff;
}
button[hidden],
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(28px, 3.1vw, 42px);
  line-height: 1.13;
  letter-spacing: -1.2px;
}
h2 {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.45px;
}
h3 {
  font-size: 19px;
  line-height: 1.25;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
p,
li,
h1,
h2,
h3,
a {
  overflow-wrap: anywhere;
}
small {
  font-size: 14px;
}
.wrap {
  width: min(var(--measure), calc(100% - 48px));
  margin: auto;
}
.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  background: var(--ink);
  color: white;
  padding: 12px;
  z-index: 100;
}
.skip:focus {
  top: 8px;
}
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 38px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: -0.8px;
}
.brand-mark {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  background: var(--red);
  border-radius: 50%;
  color: #fff;
  font-size: 17px;
  letter-spacing: -4px;
  padding-right: 4px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 8px 13px;
  border-radius: 4px;
  font-weight: 700;
}
.nav a[aria-current='page'] {
  background: var(--soft);
}
.nav a[aria-current='page']:before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  margin-right: 8px;
}
main {
  padding: 28px 0 42px;
  min-height: 50vh;
}
.page-intro {
  margin-bottom: 22px;
}
.page-intro p {
  margin-top: 8px;
  color: var(--muted);
  max-width: 68ch;
}
.eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 8px;
}
.block {
  margin: 0 0 26px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
}
.block > h2 + p {
  margin-top: 12px;
}
.block > p + p {
  margin-top: 12px;
}
.block-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.block-heading a {
  font-weight: 700;
}
.block-heading .eyebrow {
  margin-bottom: 0;
}
.queue-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}
.queue-tabs button {
  background: transparent;
}
.queue-tabs button[aria-pressed='true'] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.feature {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  padding: 0;
  gap: 0;
  min-width: 0;
}
.feature > a {
  display: block;
  min-width: 0;
}
.feature-image {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 5px 0 0 5px;
  min-height: 0;
}
.feature-copy {
  padding: 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
}
.feature h2 {
  font-size: clamp(25px, 3vw, 36px);
  letter-spacing: -1px;
}
.feature-copy p {
  max-width: 46ch;
}
.feature-copy .meta {
  margin: 0;
}
.feature-copy .button {
  margin-top: 4px;
}
.meta {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}
.meta .dot {
  margin: 0 7px;
}
.queue-note {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.queue-note > div {
  min-width: 0;
}
.queue-note > .button {
  flex-shrink: 0;
  white-space: nowrap;
}
.queue-note p {
  color: var(--muted);
  margin-top: 5px;
}
.queue-note .number {
  font-size: 35px;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}
.rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}
.game-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 14px;
  min-height: 105px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  min-width: 0;
}
.game-card img {
  width: 92px;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 3px;
  background: var(--soft);
}
.game-card h3 {
  font-size: 18px;
  line-height: 1.25;
}
.game-card .meta {
  margin-top: 5px;
}
.game-card .arrow {
  color: var(--red);
  font-size: 22px;
}
.game-card:hover h3 {
  text-decoration: underline;
}
.game-card:hover {
  color: var(--ink);
}
.batch-footer {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding-top: 15px;
}
.batch-footer p {
  color: var(--muted);
  font-size: 14px;
}
.batch-footer button {
  min-width: 144px;
}
.search-region {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 8px 14px;
  margin-bottom: 8px;
}
.search-form {
  display: flex;
  gap: 8px;
  align-items: center;
}
.search-form input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 9px 12px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
}
.search-summary {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}
.text-button {
  background: none;
  border: 0;
  padding: 0;
  min-height: 24px;
  font-size: 14px;
  text-decoration: underline;
  color: var(--red);
}
.filter-dialog {
  width: min(520px, calc(100% - 24px));
  max-width: calc(100% - 24px);
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
}
.filter-dialog::backdrop {
  background: rgb(30 33 29 / 0.64);
}
.filter-shell {
  max-height: calc(100dvh - 26px);
  display: flex;
  flex-direction: column;
}
.filter-head,
.filter-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  flex-shrink: 0;
}
.filter-head {
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.filter-head h2 {
  flex: 1 1 12ch;
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
}
.filter-head > button {
  flex: 0 0 auto;
  margin-left: auto;
  white-space: nowrap;
}
.filter-actions {
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-bottom: max(14px, env(safe-area-inset-bottom));
}
.filter-actions > button {
  flex: 0 0 auto;
  white-space: nowrap;
}
.filter-actions > .primary {
  margin-left: auto;
}
.filter-scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px 18px 16px;
}
.filter-scroll > p {
  font-size: 14px;
  color: var(--muted);
  margin: 10px 0;
}
.filter-scroll details {
  border-top: 1px solid var(--line);
}
.filter-scroll summary {
  cursor: pointer;
  min-height: 48px;
  padding: 11px 0;
  font-weight: 700;
}
.filter-scroll fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 12px;
}
.filter-scroll legend {
  font-size: 16px;
  font-weight: 700;
  padding: 0;
  margin-bottom: 8px;
}
.radio-label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 12px;
  margin: 4px 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 16px;
  background: #fff;
  cursor: pointer;
}
.radio-label input {
  width: 19px;
  height: 19px;
  accent-color: var(--red);
  flex-shrink: 0;
}
.radio-label .count {
  margin-left: auto;
  color: var(--muted);
  font-size: 16px;
}
.link-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.queue-link {
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-height: 82px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.queue-link img {
  width: 76px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}
.queue-link h3 {
  font-size: 18px;
}
.queue-link p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 5px;
}
.reading {
  max-width: 820px;
}
.reading .block {
  padding: 24px;
}
.reading h2 {
  margin-bottom: 12px;
}
.reading p + p {
  margin-top: 12px;
}
.reading li + li {
  margin-top: 8px;
}
.reading ul,
.reading ol {
  padding-left: 24px;
  margin: 12px 0 0;
}
.note-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.note-pair p {
  margin-top: 8px;
  color: var(--muted);
}
.crumb {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 14px;
}
.game-title {
  margin-bottom: 20px;
}
.game-title h1 {
  max-width: 26ch;
}
.game-title p {
  margin-top: 8px;
}
.player {
  border: 1px solid var(--line);
  background: var(--ink);
  border-radius: 6px;
  margin-bottom: 26px;
  position: relative;
  min-width: 0;
}
.player-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 12px;
  background: var(--surface);
  border-radius: 5px 5px 0 0;
}
.player-tools {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.player-toolbar strong {
  font-size: 14px;
}
.player-tools button {
  padding: 8px 12px;
}
.player-screen {
  position: relative;
  aspect-ratio: 16/9;
  width: 100%;
  display: grid;
  place-items: center;
  min-height: 240px;
}
.player-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  width: min(750px, 100%);
  padding: 30px;
  color: white;
}
.player-preview img {
  width: 45%;
  max-width: 320px;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 5px;
}
.preview-copy {
  max-width: 280px;
}
.preview-copy p {
  margin: 0 0 16px;
}
.player-screen iframe {
  width: 100%;
  height: 100%;
  border: 0;
  position: absolute;
  inset: 0;
  background: #fff;
}
.player-status {
  padding: 9px 14px;
  color: #f3f3ed;
  background: #363b34;
  font-size: 14px;
  border-radius: 0 0 5px 5px;
}
.player:fullscreen {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  background: #171a16;
  overflow: visible;
}
.player:fullscreen .player-toolbar {
  flex: 0 0 auto;
  border-radius: 0;
  padding: 6px max(8px, env(safe-area-inset-right)) 6px max(8px, env(safe-area-inset-left));
  gap: 4px;
}
.player:fullscreen .player-toolbar strong {
  display: none;
}
.player:fullscreen .player-screen {
  flex: 1 1 0;
  min-height: 0;
  height: 0;
  aspect-ratio: auto;
  max-height: none;
  width: 100%;
  max-width: none;
}
.player:fullscreen .player-screen iframe {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  aspect-ratio: auto;
}
.player:fullscreen .player-status {
  flex: 0 0 auto;
  max-width: none;
  border-radius: 0;
  padding: 4px 10px;
  font-size: 12px;
  line-height: 1.3;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 28px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-inner p {
  font-size: 14px;
  color: var(--muted);
  max-width: 46ch;
}
.footer-links {
  display: flex;
  gap: 10px 20px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
}
.empty p {
  margin: 10px 0 18px;
}
.image-fallback {
  object-fit: cover !important;
  background: var(--soft);
}
@media (min-width: 1500px) {
  :root {
    --measure: 1200px;
  }
}
@media (max-width: 900px) {
  .header-inner {
    gap: 18px;
  }
  .nav a {
    padding-inline: 9px;
  }
  .feature-copy {
    padding: 22px;
  }
  .link-list {
    grid-template-columns: 1fr;
  }
  .queue-link img {
    width: 64px;
    aspect-ratio: 1;
  }
  .queue-link {
    grid-template-columns: 64px 1fr;
    min-height: 78px;
  }
  .rows {
    gap: 0 18px;
  }
  .game-card {
    grid-template-columns: 76px minmax(0, 1fr) 16px;
    gap: 12px;
  }
  .game-card img {
    width: 76px;
  }
  .feature-image {
    aspect-ratio: auto;
  }
  .feature-copy p {
    font-size: 15px;
  }
  .feature h2 {
    font-size: 29px;
  }
}
@media (max-width: 699px) {
  .wrap {
    width: calc(100% - 28px);
  }
  .header-inner {
    min-height: 0;
    display: block;
    padding-top: 10px;
    padding-bottom: 7px;
  }
  .brand {
    font-size: 21px;
  }
  .brand-mark {
    width: 28px;
    height: 28px;
  }
  .nav {
    gap: 3px;
    margin-top: 4px;
    justify-content: space-between;
  }
  .nav a {
    font-size: 14px;
    min-height: 44px;
    padding: 8px 7px;
  }
  .nav a[aria-current='page']:before {
    display: none;
  }
  main {
    padding-top: 20px;
  }
  .page-intro {
    margin-bottom: 17px;
  }
  h1 {
    font-size: 30px;
  }
  .page-intro p {
    font-size: 15px;
  }
  .block {
    padding: 17px;
    margin-bottom: 20px;
  }
  .block-heading {
    margin-bottom: 12px;
  }
  .block-heading h2 {
    font-size: 21px;
  }
  .block-heading a {
    font-size: 14px;
  }
  .queue-tabs {
    gap: 6px;
    margin-bottom: 14px;
  }
  .queue-tabs button {
    padding: 8px 10px;
    font-size: 14px;
    flex: 1;
  }
  .feature {
    display: block;
    padding: 0;
  }
  .feature-image {
    height: auto;
    aspect-ratio: 1.9;
    max-height: none;
    min-height: 0;
    border-radius: 5px 5px 0 0;
    object-position: center;
  }
  .feature-copy {
    padding: 18px;
    gap: 10px;
  }
  .feature h2 {
    font-size: 27px;
  }
  .feature-copy p {
    font-size: 16px;
  }
  .feature-copy .eyebrow {
    margin: 0;
  }
  .feature-copy .button {
    width: 100%;
    margin-top: 0;
  }
  .rows {
    grid-template-columns: 1fr;
  }
  .game-card {
    grid-template-columns: 78px minmax(0, 1fr) 18px;
    min-height: 89px;
    gap: 12px;
    padding: 11px 0;
  }
  .game-card img {
    width: 78px;
  }
  .game-card h3 {
    font-size: 17px;
  }
  .game-card .meta {
    font-size: 13px;
    margin-top: 4px;
  }
  .batch-footer {
    padding-top: 12px;
    gap: 8px;
  }
  .batch-footer button {
    min-width: 120px;
    padding-inline: 12px;
  }
  .batch-footer p {
    font-size: 13px;
  }
  .queue-note {
    margin-bottom: 12px;
  }
  .queue-note p {
    font-size: 14px;
  }
  .queue-note .number {
    font-size: 30px;
  }
  .search-region {
    padding: 8px 10px;
    margin-bottom: 10px;
  }
  .search-form {
    gap: 6px;
  }
  .search-form input {
    padding-inline: 9px;
  }
  .search-form button {
    padding-inline: 11px;
    font-size: 14px;
  }
  .search-summary {
    font-size: 13px;
    gap: 8px;
  }
  .filter-head,
  .filter-actions {
    padding-inline: 14px;
  }
  .filter-head h2 {
    font-size: 22px;
  }
  .filter-scroll {
    padding-inline: 14px;
  }
  .note-pair {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .reading .block {
    padding: 19px;
  }
  .reading h2 {
    font-size: 22px;
  }
  .player-toolbar {
    padding: 8px;
  }
  .player-toolbar strong {
    display: none;
  }
  .player-tools {
    width: 100%;
    justify-content: space-between;
  }
  .player-tools button {
    font-size: 14px;
    flex: 1;
    padding: 8px;
  }
  .player-screen {
    aspect-ratio: 4/3;
    min-height: 230px;
  }
  .player-screen:has(.player-preview:not([hidden])) {
    aspect-ratio: auto;
  }
  .player-preview {
    padding: 18px;
    gap: 14px;
    flex-direction: column;
    text-align: center;
  }
  .player-preview img {
    width: 160px;
    max-height: 120px;
    object-fit: cover;
  }
  .preview-copy p {
    font-size: 14px;
    margin-bottom: 10px;
  }
  .player-status {
    font-size: 13px;
  }
  .game-title h1 {
    font-size: 30px;
  }
  .footer-inner {
    display: block;
  }
  .footer-links {
    margin-top: 10px;
    gap: 0 18px;
  }
}
@media (max-width: 350px) {
  .wrap {
    width: calc(100% - 20px);
  }
  .nav a {
    padding-inline: 5px;
    font-size: 13px;
  }
  .queue-tabs button {
    font-size: 13px;
    padding-inline: 6px;
  }
  .block {
    padding: 14px;
  }
  .feature {
    padding: 0;
  }
  .feature-copy {
    padding: 15px;
  }
  .game-card {
    grid-template-columns: 66px minmax(0, 1fr) 14px;
    gap: 12px;
  }
  .game-card img {
    width: 66px;
  }
  .game-card h3 {
    font-size: 16px;
  }
  .game-card .meta {
    font-size: 12px;
  }
  .search-form button {
    padding-inline: 8px;
  }
  .search-form input {
    width: 0;
  }
  .search-summary {
    font-size: 12px;
  }
  .player-tools {
    gap: 4px;
  }
  .player-tools button {
    font-size: 12px;
    padding-inline: 6px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a {
    transition:
      background-color 0.12s,
      border-color 0.12s,
      color 0.12s;
  }
}

/* Filled preview cells and native links for complete game cards. */
.feature { color: inherit; text-decoration: none; }
.feature > span { display: block; min-width: 0; }
.feature:hover h2 { text-decoration: underline; }
