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

:root {
  --bg: #0b1120;
  --surface: #141b2d;
  --surface-hover: #1a2440;
  --border: #1e2d4a;
  --text: #e2e8f0;
  --text-muted: #8b9dc3;
  --accent: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.15);
  --radius: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

header {
  text-align: center;
  margin-bottom: 3rem;
}

header h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #e2e8f0, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

header p {
  color: var(--text-muted);
  font-size: 1rem;
}

.github-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}

.github-link:hover {
  color: var(--text);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

a.card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.card.disabled {
  opacity: 0.45;
  cursor: default;
}

.card-thumb {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f172a, #1a2440);
  overflow: hidden;
  position: relative;
}

.card-thumb img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 12px;
}

.card-thumb .icon-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.card-body {
  padding: 1rem 1.1rem 1.2rem;
  text-align: center;
}

.card-body h2 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.card-body .subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2em 0.6em;
  border-radius: 6px;
  margin-top: 0.5rem;
}

.badge-live {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.badge-dev {
  background: rgba(250, 204, 21, 0.15);
  color: #fbbf24;
}

.badge-none {
  background: rgba(148, 163, 184, 0.1);
  color: #64748b;
}

@media (max-width: 600px) {
  .page { padding: 2rem 1rem 3rem; }
  header h1 { font-size: 1.5rem; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
  .card-thumb img, .card-thumb .icon-placeholder { width: 60px; height: 60px; font-size: 1.5rem; }
}
