:root {
  color-scheme: light dark;
  --bg: #f5f6f8;
  --card-bg: #ffffff;
  --text: #1a1d23;
  --muted: #666b74;
  --border: #e2e4e8;
  --accent: #2d5cff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --card-bg: #1e2126;
    --text: #f0f1f3;
    --muted: #9a9fa8;
    --border: #2c2f36;
    --accent: #6d8dff;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  display: flex;
  justify-content: center;
  padding: 48px 20px;
}

main {
  width: 100%;
  max-width: 720px;
}

header {
  margin-bottom: 36px;
  text-align: center;
}

h1 {
  font-size: 2rem;
  margin: 0 0 8px;
}

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

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.tile {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.tile:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.tile-emoji {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 10px;
}

.tile-name {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.tile-description {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.tile-note {
  font-size: 0.8rem;
  color: var(--accent);
}

.empty {
  color: var(--muted);
  text-align: center;
}
