@font-face {
  font-family: Fredoka;
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("fonts/fredoka-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Fredoka;
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("fonts/fredoka-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #5c3a45;
  --muted: #a56b7d;
  --line: #efd0de;
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body { margin: 0; height: 100%; }

body {
  font-family: Fredoka, "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--ink);
  background-color: #fff3f8;
  background-image: radial-gradient(#ffd3e6 1.3px, transparent 1.3px);
  background-size: 22px 22px;
}

.shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
  width: min(880px, 100%);
  margin: 0 auto;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 1.2rem;
  font-weight: 600;
}

.games {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 210px;
  padding: 22px 18px;
  border-radius: 32px;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(180deg, #ffd0e4, #fff 58%);
  border: 3px solid #fff;
  box-shadow: 0 8px 0 var(--line);
}

.card.house { background: linear-gradient(180deg, #b7e4ff, #fff 58%); }

.card:active { transform: translateY(4px); box-shadow: 0 3px 0 var(--line); }

.emoji { font-size: 64px; line-height: 1; }

.name {
  margin-top: 8px;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hint {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 600;
  font-size: 1.05rem;
}

@media (min-width: 800px) {
  .games { grid-template-columns: 1fr 1fr; }
  .card { min-height: 320px; }
}
