:root {
  --paper:#f1f1f0;
  --ink:#171719;
  --muted:#606065;
  --line:#d0d0d2;
  --accent:#a21766;
  --white:#fff;
  --wash:#f7eaf1;
  font-family:Arial,Helvetica,sans-serif;
  color:var(--ink);
  background:var(--paper);
  font-synthesis:none;
  line-height:1.5;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
}
a {
  color:inherit;
  text-decoration-thickness:1px;
  text-underline-offset:4px;
}
a:hover {
  color:var(--accent);
}
button,input {
  font:inherit;
}
button,.button {
  min-height:44px;
  cursor:pointer;
  border:1px solid var(--ink);
  background:var(--white);
  color:var(--ink);
  padding:9px 15px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  font-weight:700;
}
button:hover,.button:hover {
  background:var(--wash);
  color:var(--accent);
}
button:disabled {
  cursor:default;
  opacity:.5;
}
.primary {
  background:var(--ink);
  color:white;
}
.primary:hover {
  background:var(--accent);
  color:white;
}
:focus-visible {
  outline:3px solid var(--accent);
  outline-offset:4px;
}
[hidden] {
  display:none!important;
}
h1,h2,h3,p {
  margin:0;
}
h1 {
  font-size:clamp(27px,4vw,46px);
  line-height:1.1;
  letter-spacing:-1.5px;
}
h2 {
  font-size:23px;
  line-height:1.2;
  letter-spacing:-.5px;
}
h3 {
  font-size:19px;
  line-height:1.3;
}
p+p {
  margin-top:12px;
}
img {
  display:block;
  max-width:100%;
  height:auto;
}
input {
  min-width:0;
}
a,button,p,h1,h2,h3,span {
  overflow-wrap:anywhere;
}
.shell {
  max-width:1248px;
  margin:auto;
  padding:0 32px;
}
.skip {
  position:absolute;
  top:-100px;
  left:12px;
  z-index:30;
  background:white;
  padding:12px;
}
.skip:focus {
  top:8px;
}
.site-head {
  border-bottom:1px solid var(--ink);
}
.head-inner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  min-height:82px;
}
.brand {
  font-size:24px;
  font-weight:800;
  letter-spacing:-1px;
  text-decoration:none;
  display:flex;
  align-items:center;
  gap:12px;
}
.brand-mark {
  display:grid;
  gap:4px;
  width:24px;
}
.brand-mark i {
  height:4px;
  background:var(--ink);
  display:block;
}
.brand-mark i:nth-child(2) {
  width:16px;
  background:var(--accent);
}
.nav {
  display:flex;
  gap:22px;
  align-items:center;
}
.nav a {
  display:flex;
  align-items:center;
  min-height:44px;
  text-decoration:none;
  font-weight:700;
}
.nav a[aria-current] {
  border-bottom:3px solid var(--accent);
}
main {
  padding-bottom:48px;
}
.intro {
  padding:27px 0 24px;
  display:flex;
  gap:24px;
  justify-content:space-between;
  align-items:end;
}
.intro p {
  color:var(--muted);
  max-width:460px;
  margin-top:9px;
}
.eyebrow {
  font-size:13px;
  font-weight:700;
  letter-spacing:1px;
  text-transform:uppercase;
  color:var(--accent);
  margin-bottom:9px;
}
.content-block {
  margin-bottom:24px;
  border-top:2px solid var(--ink);
  padding:17px 0 19px;
}
.block-head {
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:12px;
  margin-bottom:15px;
}
.block-head span,.meta {
  font-size:14px;
  color:var(--muted);
}
.home-board {
  display:grid;
  grid-template-columns:minmax(0,1.8fr) minmax(0,1fr);
  gap:32px;
}
.home-list {
  display:grid;
  gap:0;
}
.home-row {
  display:grid;
  grid-template-columns:148px minmax(0,1fr);
  gap:20px;
  padding:14px 0;
  border-bottom:1px solid var(--line);
}
.home-row:first-child {
  padding-top:0;
}
.home-row img {
  aspect-ratio:4/3;
  object-fit:cover;
  background:#ddd;
}
.home-row h3 a {
  text-decoration:none;
}
.home-row p {
  margin-top:7px;
  font-size:16px;
}
.control {
  color:var(--muted);
  font-size:16px;
}
.home-row .control {
  margin-top:10px;
}
.compact-row {
  display:grid;
  grid-template-columns:76px minmax(0,1fr);
  gap:14px;
  padding:12px 0;
  border-bottom:1px solid var(--line);
}
.compact-row:first-child {
  padding-top:0;
}
.block-head + .compact-row {
  padding-top:0;
}
.compact-row img {
  aspect-ratio:4/3;
  object-fit:cover;
  background:#ddd;
}
.compact-row h3 {
  font-size:17px;
}
.compact-row a {
  text-decoration:none;
}
.compact-row .meta {
  margin-top:6px;
}
.inline-link {
  display:inline-flex;
  min-height:44px;
  align-items:center;
  font-weight:700;
}
.callout {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
}
.callout p {
  max-width:520px;
  margin-top:12px;
}
.topic-links {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.topic-link {
  border:1px solid var(--line);
  min-height:54px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:10px 14px;
  text-decoration:none;
  font-weight:700;
}
.topic-link span {
  color:var(--accent);
}
.search-region {
  border-top:2px solid var(--ink);
  border-bottom:1px solid var(--line);
  padding:10px 0 7px;
  margin-bottom:22px;
}
.search-form {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  gap:8px;
}
.search-form input {
  width:100%;
  border:1px solid var(--line);
  background:#fff;
  padding:10px 12px;
  min-height:44px;
  font-size:16px;
}
.search-status {
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  min-height:23px;
  font-size:14px;
  color:var(--muted);
  margin-top:4px;
}
.search-status button {
  font-size:14px;
  min-height:23px;
  padding:0 4px;
  border:0;
  background:transparent;
  text-decoration:underline;
  font-weight:400;
}
.batch {
  border-bottom:1px solid var(--line);
}
.batch-heading {
  font-size:14px;
  letter-spacing:.7px;
  text-transform:uppercase;
  margin-bottom:13px;
}
.game-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:17px 30px;
}
.game-card {
  display:grid;
  grid-template-columns:112px minmax(0,1fr);
  gap:17px;
  align-items:start;
  text-decoration:none;
  min-width:0;
}
.game-card img {
  width:112px;
  aspect-ratio:4/3;
  object-fit:cover;
  background:#ddd;
}
.game-card h3 {
  font-size:20px;
}
.game-card .control {
  margin-top:7px;
}
.batch-tail {
  margin-top:17px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  font-size:14px;
  color:var(--muted);
}
.empty {
  padding:25px 0;
}
.empty p {
  margin:12px 0;
}
.category-notes {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0 30px;
}
.category-note p {
  margin-top:10px;
  max-width:540px;
}
.category-note a {
  display:inline-flex;
  min-height:44px;
  align-items:center;
  margin-top:8px;
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  clip-path:inset(50%);
  white-space:nowrap;
}
.filter-dialog {
  position:fixed;
  inset:0 0 0 auto;
  margin:0;
  width:min(100%,480px);
  max-width:100%;
  height:100dvh;
  max-height:100dvh;
  padding:0;
  border:0;
  border-left:2px solid var(--ink);
  background:var(--paper);
  color:var(--ink);
}
.filter-dialog::backdrop {
  background:#17171988;
}
.dialog-layout {
  height:100%;
  display:flex;
  flex-direction:column;
}
.dialog-head,.dialog-foot {
  padding:16px 22px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  background:white;
  flex-shrink:0;
}
.dialog-head {
  border-bottom:1px solid var(--line);
  flex-wrap:wrap;
}
.dialog-head h2 {
  font-size:23px;
  flex:1 1 180px;
  min-width:0;
}
.dialog-foot {
  border-top:1px solid var(--line);
  padding-bottom:max(16px,env(safe-area-inset-bottom));
  flex-wrap:wrap;
}
.dialog-head button,.dialog-foot button {
  flex-shrink:0;
  white-space:nowrap;
}
.dialog-body {
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:18px 22px;
  flex:1;
  min-height:0;
}
.dialog-body>p {
  color:var(--muted);
  margin-bottom:18px;
}
details {
  border-top:1px solid var(--line);
  margin-bottom:16px;
}
summary {
  font-size:18px;
  font-weight:700;
  cursor:pointer;
  padding:12px 0;
  min-height:50px;
}
.filter-dialog fieldset {
  border:0;
  margin:0;
  padding:0;
}
.filter-dialog legend {
  font-size:16px;
  margin-bottom:9px;
}
.radio-label {
  display:flex;
  align-items:center;
  gap:12px;
  min-height:48px;
  font-size:16px;
  padding:10px;
  border:1px solid var(--line);
  background:white;
  margin:7px 0;
}
.radio-label input {
  accent-color:var(--accent);
  width:18px;
  height:18px;
  flex-shrink:0;
}
.radio-label span:nth-of-type(2) {
  margin-left:auto;
  color:var(--muted);
}
.stage-heading {
  display:grid;
  grid-template-columns:150px minmax(0,1fr);
  gap:24px;
  padding:27px 0 24px;
  align-items:start;
}
.side-tag {
  border-left:5px solid var(--accent);
  padding-left:12px;
  font-size:14px;
  font-weight:bold;
  line-height:1.8;
}
.stage-heading h1 {
  font-size:clamp(26px,4vw,44px);
}
.stage-heading .control {
  margin-top:12px;
}
.player {
  background:#1d1d21;
  color:#fff;
  margin-bottom:24px;
}
.player-toolbar {
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
  padding:10px 12px;
  border-bottom:1px solid #555;
}
.player-toolbar button {
  padding:8px 12px;
}
.player-toolbar .primary {
  background:#b22377;
  border-color:#b22377;
}
.screen {
  display:grid;
  place-items:center;
  width:100%;
  aspect-ratio:16/9;
  position:relative;
}
.preview {
  width:100%;
  height:100%;
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  background:#252529;
}
.preview img {
  width:auto;
  height:100%;
  max-width:100%;
  object-fit:cover;
  opacity:.8;
}
.preview-label {
  position:absolute;
  bottom:18px;
  background:#171719;
  padding:8px 16px;
  font-weight:700;
  pointer-events:none;
}
.screen iframe {
  display:block;
  width:100%;
  height:100%;
  border:0;
  position:absolute;
  inset:0;
  background:#000;
}
.player-status {
  font-size:14px;
  padding:9px 13px;
  border-top:1px solid #555;
}
.player:fullscreen {
  width:100vw;
  height:100dvh;
  display:flex;
  flex-direction:column;
  margin:0;
  border:0;
  padding:0;
  max-width:none;
  max-height:none;
  min-height:0;
  aspect-ratio:auto;
}
.player:fullscreen .player-toolbar {
  flex:none;
  padding:5px 8px;
  gap:6px;
}
.player:fullscreen .player-toolbar button {
  min-height:36px;
  padding:5px 10px;
}
.player:fullscreen .screen {
  aspect-ratio:auto;
  min-height:0;
  max-height:none;
  flex:1;
  width:100%;
  height:auto;
}
.player:fullscreen .player-status {
  flex:none;
  padding:3px 10px;
  font-size:12px;
}
.player:fullscreen iframe {
  width:100%;
  height:100%;
  max-height:none;
  min-height:0;
  aspect-ratio:auto;
}
.play-info {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:30px;
}
.play-info p {
  margin-top:12px;
}
.article {
  max-width:850px;
}
.article .content-block {
  padding-bottom:22px;
}
.article h2 {
  margin-bottom:12px;
}
.article ul {
  padding-left:22px;
  margin:12px 0;
}
.article li+li {
  margin-top:8px;
}
.term {
  display:grid;
  grid-template-columns:150px minmax(0,1fr);
  gap:26px;
}
.term p {
  margin-top:10px;
}
.term .word {
  font-size:30px;
  line-height:1.2;
  font-weight:800;
  color:var(--accent);
  letter-spacing:-1px;
}
.example-link {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  margin-top:10px;
  font-weight:700;
}
.footer {
  border-top:2px solid var(--ink);
  padding:24px 0 30px;
}
.footer-inner {
  display:flex;
  justify-content:space-between;
  gap:25px;
}
.footer p {
  font-size:14px;
  color:var(--muted);
  max-width:380px;
  margin-top:8px;
}
.footer nav {
  display:flex;
  flex-wrap:wrap;
  justify-content:end;
  gap:0 20px;
  max-width:550px;
}
.footer nav a {
  min-height:44px;
  display:inline-flex;
  align-items:center;
  font-size:14px;
}
.noscript {
  padding:20px;
  border:1px solid var(--accent);
  margin:20px 0;
}
.error-box {
  padding:28px 0;
}
.error-box p {
  margin:15px 0;
}
.image-failure {
  color:var(--muted);
  font-size:14px;
  background:#ddd;
  padding:10px;
}
.divider {
  border-left:1px solid var(--line);
  padding-left:25px;
}
@media(min-width:1000px) {
  .home-row {
    grid-template-columns:160px minmax(0,1fr);
  }
  .home-row img {
    width:160px;
  }
  .home-list .home-row p {
    max-width:410px;
  }
}
@media(max-width:767px) {
  .shell {
    padding:0 20px;
  }
  .head-inner {
    min-height:72px;
    gap:10px;
    align-items:start;
    padding-top:14px;
    padding-bottom:10px;
  }
  .brand {
    font-size:22px;
    min-height:44px;
    gap:8px;
  }
  .brand-mark {
    width:20px;
  }
  .nav {
    gap:12px;
    flex-wrap:wrap;
    justify-content:end;
    max-width:215px;
  }
  .nav a {
    font-size:14px;
  }
  .intro {
    padding:22px 0 20px;
    display:block;
  }
  .intro .button {
    margin-top:17px;
  }
  .home-board {
    grid-template-columns:1fr;
    gap:0;
  }
  .home-row {
    grid-template-columns:105px minmax(0,1fr);
    gap:15px;
  }
  .home-row h3 {
    font-size:19px;
  }
  .home-row p {
    font-size:16px;
  }
  .home-row .control {
    font-size:14px;
    margin-top:7px;
  }
  .compact-row {
    grid-template-columns:88px minmax(0,1fr);
  }
  .compact-row h3 {
    font-size:18px;
  }
  .callout {
    grid-template-columns:1fr;
    gap:0;
  }
  .callout .divider {
    border:0;
    padding:0;
    margin-top:22px;
  }
  .topic-links {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .search-region {
    padding:9px 0 7px;
  }
  .search-form {
    gap:6px;
  }
  .search-form button {
    padding:9px 10px;
  }
  .search-form input {
    padding:9px 10px;
  }
  .search-status {
    gap:8px;
  }
  .game-grid {
    gap:18px 14px;
  }
  .game-card {
    display:block;
  }
  .game-card img {
    width:100%;
    aspect-ratio:4/3;
  }
  .game-card h3 {
    font-size:17px;
    line-height:1.25;
    margin-top:9px;
  }
  .game-card .control {
    font-size:14px;
    margin-top:5px;
  }
  .batch {
    padding-top:13px;
    padding-bottom:15px;
  }
  .batch-heading {
    margin-bottom:11px;
  }
  .batch-tail {
    margin-top:14px;
  }
  .category-notes {
    grid-template-columns:1fr;
  }
  .stage-heading {
    grid-template-columns:1fr;
    gap:13px;
    padding:20px 0;
  }
  .side-tag {
    line-height:1.2;
    display:flex;
    gap:12px;
  }
  .play-info {
    grid-template-columns:1fr;
    gap:0;
  }
  .player-toolbar {
    gap:6px;
    padding:8px;
  }
  .player-toolbar button {
    font-size:14px;
    padding:8px 10px;
  }
  .screen {
    aspect-ratio:4/3;
  }
  .preview-label {
    bottom:10px;
    font-size:14px;
  }
  .term {
    grid-template-columns:1fr;
    gap:13px;
  }
  .term .word {
    font-size:26px;
  }
  .footer-inner {
    display:block;
  }
  .footer nav {
    margin-top:16px;
    justify-content:start;
  }
  .footer p {
    max-width:100%;
  }
}
@media(max-width:360px) {
  .shell {
    padding:0 14px;
  }
  .head-inner {
    flex-wrap:wrap;
    gap:0;
    padding-top:7px;
    padding-bottom:5px;
  }
  .brand {
    min-height:38px;
  }
  .nav {
    max-width:none;
    width:100%;
    justify-content:start;
    gap:22px;
  }
  .nav a {
    min-height:38px;
  }
  .home-row {
    grid-template-columns:86px minmax(0,1fr);
    gap:12px;
  }
  .game-card h3 {
    font-size:16px;
  }
  .search-form input {
    padding:8px;
  }
  .search-form button {
    padding:8px;
  }
  .search-status {
    font-size:13px;
  }
  .dialog-head,.dialog-foot {
    padding-left:15px;
    padding-right:15px;
  }
  .dialog-body {
    padding:15px;
  }
  .player-toolbar button {
    padding:8px;
  }
  .block-head {
    gap:8px;
  }
}
.search-region {
  padding:4px 0;
  margin-bottom:0;
}
.filter-dialog summary .meta {
  font-size:16px;
  font-weight:400;
  margin-left:8px;
}
.search-form input {
  padding:9px 12px;
}
.search-status {
  min-height:44px;
  margin-top:0;
}
.search-status button {
  min-height:44px;
  padding:0 6px;
}
.batch-tail {
  min-height:44px;
}
@media(max-width:767px) {
  .head-inner {
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:2px;
    padding-top:10px;
    padding-bottom:8px;
  }
  .brand {
    width:max-content;
    max-width:100%;
    white-space:nowrap;
    min-height:44px;
  }
  .nav {
    max-width:none;
    width:100%;
    justify-content:start;
    gap:24px;
  }
  .nav a {
    min-height:44px;
  }
}
@media(max-width:360px) {
  .brand,.nav a {
    min-height:44px;
  }
}
@media(prefers-reduced-motion:no-preference) {
  a,button {
    transition:background-color .15s,color .15s;
  }
}

/* Filled preview cells and native links for complete game cards. */
.home-row, .compact-row { color: inherit; text-decoration: none; }
.home-row:hover h3, .compact-row:hover h3 { text-decoration: underline; }
