:root {
  --bg-primary: #0a0a14;
  --bg-secondary: #161623;
  --bg-card: rgba(22, 22, 35, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --accent: #6d28d9;
  --accent-hover: #7c3aed;
  --accent-glow: rgba(109, 40, 217, 0.3);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --green: #22c55e;
  --red: #ef4444;
  --yellow: #eab308;
  --blue: #3b82f6;
}

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

.background-animation {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.orb-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #6d28d9 0%, transparent 70%);
  top: -100px; left: -100px;
  animation: float1 20s ease-in-out infinite;
}

.orb-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, #2563eb 0%, transparent 70%);
  bottom: -80px; right: -80px;
  animation: float2 25s ease-in-out infinite;
}

.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: float3 18s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(60px, 40px); }
  66% { transform: translate(-30px, 60px); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-50px, -30px); }
  66% { transform: translate(40px, -50px); }
}

@keyframes float3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.2); }
}

.container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

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

.back-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
  display: inline-block;
  margin-bottom: 1rem;
}

.back-link:hover { color: var(--accent); }

.logo {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text-main) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 300;
}

.games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.game-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.8rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.game-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(109, 40, 217, 0.15);
}

.game-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  padding: 16px;
}

.icon-typing {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.05));
  color: var(--blue);
}

.icon-ludo {
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.2), rgba(109, 40, 217, 0.05));
  color: var(--accent);
}

.game-icon svg {
  width: 36px;
  height: 36px;
}

.game-info {
  flex: 1;
}

.game-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.game-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.game-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.tag-mobile {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.2);
  color: var(--green);
}

.game-arrow {
  flex-shrink: 0;
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: all 0.3s;
}

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

.footer {
  text-align: center;
  margin-top: 3rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .container { padding: 2rem 1rem; }
  .logo { font-size: 2.2rem; }
  .game-card { padding: 1.2rem; gap: 1rem; }
  .game-icon { width: 56px; height: 56px; padding: 12px; }
  .game-icon svg { width: 28px; height: 28px; }
  .game-title { font-size: 1.1rem; }
}
