:root {
  color-scheme: dark;
  --ink: #101618; --surface: #1b2325; --line: #384244; --paper: #f7f7ed;
  --muted: #bcc6c4; --lime: #cbfa79; --accent: var(--lime);
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--paper); background: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: inherit; }
:focus-visible { outline: 3px solid #ffda68; outline-offset: 4px; }
.skip { position: absolute; top: -5rem; background: #fff; color: #111; padding: .75rem; z-index: 2; }
.skip:focus { top: .25rem; }
.wrap { max-width: 74rem; margin-inline: auto; padding-inline: clamp(1rem,5vw,4rem); }
header { border-bottom: 1px solid var(--line); }
header nav { display: flex; align-items: center; justify-content: space-between; min-height: 4.7rem; }
.brand, .nav-link { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; min-height: 44px; }
.brand { font-size: 1.6rem; font-weight: 800; letter-spacing: -.07em; }
.brand img { image-rendering: pixelated; }
.nav-link { font: 600 .89rem var(--mono); }
.grid-icon { width: 6px; height: 6px; background: var(--lime); box-shadow: 8px 0 var(--lime),0 8px var(--lime),8px 8px var(--lime); margin: -7px .55rem 0 0; }
.intro { padding-block: clamp(2rem,6.3vw,5.5rem) clamp(1.5rem,3.2vw,2.7rem); }
.kicker, .label { text-transform: uppercase; font: 600 .82rem/1.3 var(--mono); letter-spacing: .075em; }
.kicker { color: var(--lime); }
h1,h2,p { margin: 0; }
h1,h2 { letter-spacing: -.055em; }
h1 { margin: .5rem 0 .85rem; font-size: clamp(2.65rem,6.5vw,5.45rem); line-height: 1.02; }
em { font-style: normal; color: var(--lime); }
p { color: var(--muted); line-height: 1.55; }
.intro p,.detail-copy p { font-size: 1.1rem; }
.cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(.9rem,2.1vw,1.6rem); padding-bottom: 3rem; }
.card,.detail { background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; overflow: hidden; }
.card { text-decoration: none; }
.xmegle { --accent: #ccb4fb; }
.card:hover,.card:focus-visible { border-color: var(--accent); }
.cover { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.card-text { padding: clamp(1rem,2.3vw,1.7rem); }
.label { display: inline-flex; align-items: center; gap: .65rem; color: var(--muted); font-size: .78rem; }
.label b { color: var(--accent); }
.label i { height: .8rem; width: 1px; background: #74817e; transform: rotate(16deg); }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin: .7rem 0 .35rem; }
h2 { font-size: clamp(1.5rem,2.6vw,2.3rem); line-height: 1.1; }
.play-icon { flex: none; display: grid; place-items: center; border-radius: 50%; width: 2.2rem; height: 2.2rem; background: var(--accent); }
.play-icon::after { content: ""; border-left: .57rem solid var(--ink); border-block: .36rem solid transparent; margin-left: .14rem; }
.detail { margin-top: clamp(2rem,6vw,5rem); display: grid; grid-template-columns: 1fr 1fr; }
.detail-art { display: grid; align-items: center; background: #81c8e0; }
.xmegle .detail-art { background: #ae9ce8; }
.detail-art .cover { height: 100%; object-fit: cover; }
.detail-copy { padding: clamp(1.3rem,3.8vw,3.4rem); }
.detail-copy h1 { font-size: clamp(2.45rem,4.6vw,4rem); margin: .85rem 0 1rem; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.5rem; }
.launch,button { font: inherit; font-weight: 700; padding: .83rem 1.05rem; border-radius: .52rem; text-decoration: none; cursor: pointer; }
.launch { background: var(--accent); color: var(--ink); }
button { border: 1px solid #71817d; color: var(--paper); background: transparent; }
:is(.launch,button):hover { filter: brightness(1.12); }
output:not(:empty) { display: block; margin-top: .9rem; color: var(--muted); }
input { width: 100%; font: inherit; padding: .65rem; margin-top: .5rem; }
.more { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem 1rem; margin-block: 1.1rem 2.2rem; }
.more span { color: var(--muted); }
.more a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: .22em; }
@media (max-width: 42rem) {
  header nav { min-height: 3.65rem; }
  .cards,.detail { grid-template-columns: 1fr; }
  .card .cover { aspect-ratio: 2.55; object-fit: cover; }
  .detail-art .cover { height: auto; }
  .card-title { margin: .33rem 0 .18rem; }
  .card-text p { line-height: 1.4; }
  .card-text { padding-block: .85rem 1rem; }
  .intro { padding-block: 1.8rem 1.25rem; }
  .detail { margin-top: 1.5rem; }
}
.rally { --accent: #7fe8ef; }
.rally .detail-art { background: #152225; }
@media (min-width: 62rem) {
  .cards:has(.rally) { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
.poker { --accent: #f1cc76; }
.poker .detail-art { background: #173e2d; }
@media (min-width: 62rem) {
  .cards:has(.poker) { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
