* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: #000; color: #eee; font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }
a { color: #fff; }
header { text-align: center; padding: 56px 0 32px; }
h1 { margin: 0; font: 900 clamp(2.6rem, 12vw, 5rem)/1 Impact, "Arial Narrow Bold", sans-serif; }
h2 { margin: 0 0 16px; font-size: 1.3rem; }
section { padding: 32px 0; border-top: 1px solid #222; }
footer { border-top: 1px solid #222; padding: 24px 0 40px; text-align: center; color: #888; font-size: .9rem; }

.games { display: grid; gap: 24px 12px; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.game { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-align: center; }
.icon { width: 88px; height: 88px; margin: 0 auto 8px; border-radius: 20px; background: #1c1c1e; display: grid; place-items: center; font-size: 2rem; font-weight: 800; overflow: hidden; }
.icon img { width: 100%; height: 100%; object-fit: cover; }
.name { display: block; font-size: .9rem; line-height: 1.3; }
.stores { display: flex; justify-content: center; gap: 8px; margin-top: 6px; color: #999; min-height: 16px; font-size: .75rem; }
svg { width: 16px; height: 16px; fill: currentColor; flex: none; }

dialog { width: min(360px, 92vw); border: 1px solid #333; border-radius: 18px; background: #111; color: #eee; padding: 24px; text-align: center; }
dialog::backdrop { background: rgba(0,0,0,.75); }
dialog a, dialog .close { display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; margin-top: 8px; padding: 11px; border-radius: 10px; border: 1px solid #333; text-decoration: none; background: none; color: #eee; font: inherit; }
dialog a.store { background: #fff; color: #000; font-weight: 600; }
dialog .close { border: 0; color: #999; cursor: pointer; }
