:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --text: #141a2b;
  --muted: #5b6478;
  --border: #dde2ee;
  --accent: #2459e0;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1424;
    --surface: #182036;
    --text: #e8ecf6;
    --muted: #9aa3b8;
    --border: #2a3450;
    --accent: #4f7dff;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}

h1 {
  font-size: 1.75rem;
  margin: 0 0 4px;
}

.muted {
  color: var(--muted);
  margin: 0 0 24px;
}

.games {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.game {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color 150ms ease-out, transform 120ms ease-out;
}

.game:hover {
  border-color: var(--accent);
}

.game:active {
  transform: scale(0.99);
}

.game h2 {
  margin: 0;
  font-size: 1.125rem;
}

.game p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #2459e0;
  display: grid;
  grid-template-columns: repeat(2, 14px);
  gap: 4px;
  place-content: center;
}

.icon span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.icon .r {
  background: #e5383b;
}

.icon .y {
  background: #f6c026;
}

.icon.sea {
  background: #15284a;
  grid-template-columns: 1fr;
  gap: 6px;
  justify-items: start;
}

.icon .hull {
  width: 28px;
  height: 8px;
  border-radius: 999px;
  background: #9aa3b8;
}

.icon .hull.short {
  width: 16px;
  margin-left: 8px;
}
