/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0f172a;
  --surface: #1e293b;
  --surface-hover: #334155;
  --text: #f1f5f9;
  --text-dim: #94a3b8;
  --accent: #34d399;
  --accent-glow: rgba(52, 211, 153, 0.15);
  --border: #334155;
  --radius: 16px;
}

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

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Hero */
.hero {
  text-align: center;
  padding: 4rem 0 3rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #34d399 0%, #fbbf24 50%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  color: var(--text-dim);
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

/* App/Game Grid */
.app-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Game Card */
.app-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.app-card:not(.coming-soon):hover {
  background: var(--surface-hover);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 4px 24px var(--accent-glow);
  transform: translateY(-2px);
}

.app-card.coming-soon {
  opacity: 0.5;
  cursor: default;
}

.app-icon svg {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.app-info {
  flex: 1;
  min-width: 0;
}

.app-info h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.app-desc {
  color: var(--text-dim);
  font-size: 0.875rem;
  line-height: 1.5;
}

.app-tags {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  background: rgba(52, 211, 153, 0.1);
  color: var(--accent);
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.app-arrow {
  color: var(--text-dim);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.app-card:hover .app-arrow {
  transform: translateX(4px);
  color: var(--accent);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-dim);
}

.empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  color: var(--border);
}

.empty-icon svg {
  width: 100%;
  height: 100%;
}

.empty-state p {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}

.empty-hint {
  font-size: 0.85rem;
  color: #64748b;
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 0 1rem;
  color: var(--text-dim);
  font-size: 0.8rem;
}

.back-link {
  color: var(--accent);
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
  .hero h1 { font-size: 2.25rem; }
  .hero { padding: 2.5rem 0 2rem; }
  .app-card { padding: 1.25rem; gap: 1rem; }
  .app-icon svg { width: 48px; height: 48px; }
}
