* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --card-bg: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.14);
  --text: #eef1f6;
  --muted: #a5adbf;
  --accent: #6ea8fe;
}

body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #312e81 100%);
  background-attachment: fixed;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

h1 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sub {
  color: var(--muted);
  margin-top: 8px;
  font-size: 0.95rem;
}

code {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 1100px;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(12px);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.12);
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 14px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.card .name {
  font-size: 1.05rem;
  font-weight: 600;
  text-align: center;
  word-break: break-word;
}

.card .hint {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--muted);
}

footer {
  margin-top: 40px;
  color: var(--muted);
  font-size: 0.85rem;
}

.empty {
  color: var(--muted);
  text-align: center;
  padding: 40px;
  font-size: 1rem;
  grid-column: 1 / -1;
}