* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: #102028;
  color: #f4fffb;
  font-family: system-ui, "Segoe UI", sans-serif;
}

body {
  min-height: 100dvh;
  background:
    radial-gradient(ellipse at 50% 0%, #1d4a5c 0%, transparent 55%),
    linear-gradient(#102838, #102028 55%);
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: calc(28px + env(safe-area-inset-top)) 18px calc(28px + env(safe-area-inset-bottom));
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
}

.lead {
  margin: 0 0 22px;
  color: #d5e6e1;
  line-height: 1.45;
}

.games {
  display: grid;
  gap: 14px;
}

@media (min-width: 640px) {
  .games { grid-template-columns: 1fr 1fr; }
}

.game {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: rgba(14, 24, 30, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 18px 16px 16px;
  min-height: 220px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.game:focus-visible {
  outline: 3px solid #f2d48a;
  outline-offset: 3px;
}

.game h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.game p {
  margin: 0;
  color: #d5e6e1;
  line-height: 1.45;
  flex: 1;
}

.tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #16343a;
  font-size: 0.78rem;
  font-weight: 700;
}

.play {
  display: block;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #1b8f86;
  color: #f4fffb;
  font-weight: 700;
  text-align: center;
}

.legal {
  margin: 18px 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #9bb8b2;
}
