:root {
  color-scheme: light;
  --paper: #f5f3ed;
  --ink: #142f31;
  --line: #cecec2;
  font: 16px/1.45 "DM Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); }
main { max-width: 66rem; margin-inline: auto; padding-inline: clamp(1rem, 5vw, 3rem); }
main { padding-block: clamp(1rem, 3vw, 2rem); }
ul { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(1rem, 3vw, 2rem); list-style: none; padding: 0; margin: 0; }
li { min-width: 0; background: #fffef9; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 4px 12px #1435370b; }
a { color: inherit; }
a[data-game] { display: block; border-radius: 16px 16px 0 0; text-decoration: none; }
.tile { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; height: clamp(10rem, 19vw, 13rem); border-radius: 15px 15px 0 0; background-color: #bde0c9; background-image: radial-gradient(#28615140 .9px, transparent 1px); background-size: 9px 9px; }
.tile::before, .tile::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; }
.tile::before { width: 13rem; aspect-ratio: 1; background: #d9efd6; box-shadow: 0 0 0 1px #567e652d, 0 0 0 22px #c9e7d1, 0 0 0 23px #567e6530, 0 0 0 46px #cee8d04f; }
.tile::after { width: 8.25rem; aspect-ratio: 1; border: 1px solid #739b7e66; }
[data-game="oddballz"] .tile { background-color: #c6bfdf; background-image: repeating-linear-gradient(135deg, transparent 0 9px, #6554831a 9px 10px); background-size: auto; }
[data-game="oddballz"] .tile::before { background: #e3dcef; box-shadow: 0 0 0 1px #6e5a972b, 0 0 0 22px #d4cbe7, 0 0 0 23px #66518c42, 0 0 0 46px #dacfea55; }
[data-game="oddballz"] .tile::after { border-color: #9d8eb66b; }
.tile img { width: 96px; height: 96px; image-rendering: pixelated; }
.card-heading, .downloads { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin-inline: clamp(1rem, 2vw, 1.5rem); }
.card-heading { padding-block: 1.25rem; }
.name { font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.2; font-weight: 650; letter-spacing: -.045em; }
.play { display: inline-flex; align-items: center; gap: .55rem; padding: .55rem .85rem; background: #184c4e; color: white; border-radius: 6px; font-size: .875rem; font-weight: 600; }
a[data-game]:is(:hover,:focus-visible) .play { background: #096669; }
.downloads { justify-content: flex-start; border-top: 1px solid #dedfd5; padding-block: .5rem; font-size: .8125rem; }
.downloads > span { margin-right: auto; font-weight: 600; color: #526064; }
.platforms { display: flex; flex-wrap: wrap; column-gap: .75rem; }
.platforms a { display: inline-flex; min-height: 44px; align-items: center; color: #1a5557; text-underline-offset: 3px; }
.platforms a:hover { color: #091e21; }
a:focus-visible { outline: 3px solid #98501c; outline-offset: 3px; }
@media (max-width: 640px) {
  ul { grid-template-columns: minmax(0,1fr); }
  .tile { height: 9rem; }
  .card-heading { padding-block: 1rem; }
}
