:root {
  --bg: #140c33;
  --bg-2: #1c1248;
  --card: #241a5a;
  --card-2: #2c2069;
  --line: #3a2d80;
  --text: #f5f2ff;
  --muted: #a99fd8;
  --accent: #2ad4ff;
  --gold: #ffd23f;
  --lime: #dbf21d;
  --r: 10px;
  /* Limin's card treatment: a faint top bevel and a hard offset shadow, no blur. */
  --raised: inset 0 1px 0 rgb(255 255 255 / 0.07), 0 3px 0 #0a0520;
  --pixel: 'Jersey 10', ui-monospace, monospace;
  --body: 'Nunito', ui-rounded, system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100dvh;
  background: radial-gradient(ellipse 120% 60% at 50% -10%, #33197f 0%, var(--bg) 65%) fixed, var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 600;
  -webkit-font-smoothing: antialiased;
}
h1, p { margin: 0; }
a { color: inherit; }

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 12px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-height: 100dvh;
}
.wrap.center { align-items: center; justify-content: center; text-align: center; gap: 16px; }

.topbar { display: flex; justify-content: space-between; align-items: center; min-height: 44px; margin-bottom: clamp(8px, 6vh, 56px); }
.topbar-link { color: var(--muted); font-weight: 800; font-size: 0.9rem; text-decoration: none; }
.topbar-link:hover { color: var(--text); }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); border-radius: 6px; }
.brand img { height: 24px; width: auto; display: block; }
.brand-play {
  font-family: var(--pixel);
  font-size: 1.1rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 7px 2px;
  border-radius: 4px;
  border: 1.5px solid var(--line);
  color: var(--muted);
}
.brand:hover .brand-play { color: var(--text); border-color: var(--muted); }
a:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

.eyebrow { color: var(--muted); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
h1 {
  font-family: var(--pixel);
  font-weight: 400;
  font-size: clamp(3.5rem, 14vw, 5.5rem);
  line-height: 0.9;
  margin-top: 8px;
}
h1 span { color: var(--gold); }
.lede { color: var(--muted); font-size: 1.1rem; line-height: 1.5; margin-top: 12px; max-width: 34ch; }

.games { display: flex; flex-direction: column; gap: 12px; }
.game {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: var(--r);
  background: var(--card);
  border: 1.5px solid var(--line);
  box-shadow: var(--raised);
  text-decoration: none;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}
a.game:hover { background: var(--card-2); border-color: var(--muted); transform: translateY(-2px); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.07), 0 5px 0 #0a0520; }
.game.soon { background: transparent; border-style: dashed; box-shadow: none; }

.art {
  flex: none;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  border-radius: 8px;
  background: var(--bg-2);
}
.body { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.name { font-family: var(--pixel); font-size: 1.9rem; line-height: 1; }
.blurb { color: var(--muted); font-size: 0.95rem; line-height: 1.4; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.meta span { font-size: 0.75rem; padding: 2px 8px; border-radius: 999px; background: var(--bg-2); color: var(--muted); }
.go {
  flex: none;
  margin-left: auto;
  padding: 8px 14px;
  border-radius: var(--r);
  background: var(--gold);
  color: var(--bg);
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 3px 0 #b38d12;
}

.button {
  display: inline-block;
  padding: 12px 20px;
  border-radius: var(--r);
  background: var(--gold);
  color: var(--bg);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 3px 0 #b38d12;
}

.foot {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 20px;
  padding-top: 20px;
  border-top: 1.5px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot nav { display: flex; gap: 16px; }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
.foot-brand img { height: 22px; width: auto; }

/* Phones: the art stays beside the text and "Play" drops under it, lined up with the text. */
@media (max-width: 480px) {
  .game { flex-wrap: wrap; align-items: flex-start; }
  .body { flex-basis: calc(100% - 72px); }
  .go { margin-left: 72px; }
}
