/* Brainrot Games Portal */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&display=swap');

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

:root {
  --bg: #f0e6ff;
  --surface: #ffffff;
  --surface-hover: #f8f4ff;
  --border: #e2d4f7;
  --accent: #8b5cf6;
  --pink: #ec4899;
  --cyan: #06b6d4;
  --green: #10b981;
  --orange: #f59e0b;
  --text: #1e1033;
  --text-secondary: #7c6a94;
  --radius: 20px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Baloo 2', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 60%);
}

/* Header */
.header {
  text-align: center;
  padding: 44px 20px 4px;
}

.header h1 {
  font-size: clamp(1.8rem, 6vw, 3rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}

.header h1 span {
  background: linear-gradient(135deg, var(--accent), var(--pink), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header .subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 2px;
  font-weight: 500;
}

/* Game Grid */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  padding: 24px 20px;
  max-width: 680px;
  margin: 0 auto;
}

/* Game Card */
.game-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 2px 12px rgba(139, 92, 246, 0.06);
}

.game-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15);
}

.game-card:active {
  transform: translateY(0) scale(0.98);
}

.game-preview {
  font-size: 2.8rem;
  margin-bottom: 12px;
  line-height: 1;
}

.game-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.game-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
  font-weight: 500;
}

.game-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.high-score {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green);
  background: #ecfdf5;
  padding: 3px 10px;
  border-radius: 20px;
}

.play-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 8px 22px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: 'Baloo 2', system-ui, sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 3px 10px rgba(139, 92, 246, 0.3);
}

.play-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

/* Card accent colors */
.game-card:nth-child(1) .play-btn { background: #8b5cf6; box-shadow: 0 3px 10px rgba(139, 92, 246, 0.3); }
.game-card:nth-child(2) .play-btn { background: #ec4899; box-shadow: 0 3px 10px rgba(236, 72, 153, 0.3); }
.game-card:nth-child(3) .play-btn { background: #06b6d4; box-shadow: 0 3px 10px rgba(6, 182, 212, 0.3); }
.game-card:nth-child(4) .play-btn { background: #f59e0b; box-shadow: 0 3px 10px rgba(245, 158, 11, 0.3); }

.game-card:nth-child(1):hover { border-color: #8b5cf6; }
.game-card:nth-child(2):hover { border-color: #ec4899; }
.game-card:nth-child(3):hover { border-color: #06b6d4; }
.game-card:nth-child(4):hover { border-color: #f59e0b; }

/* Ad Banner */
.ad-banner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 28px 20px;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 600px) {
  .game-grid {
    grid-template-columns: 1fr;
    padding: 16px 14px;
    gap: 12px;
  }

  .header {
    padding: 32px 16px 4px;
  }

  .game-preview {
    font-size: 2.2rem;
    margin-bottom: 8px;
  }

  .game-card {
    padding: 16px;
  }
}
