* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  color-scheme: light dark;
  --font-display: "Baloo 2", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --bg: #fff6fb;
  --bg-alt: #ffe6f2;
  --card: #ffffff;
  --text: #2d1f2f;
  --muted: #6c4a69;
  --accent: #ff89c1;
  --accent-strong: #f464ad;
  --border: #f7cde1;
  --shadow: 0 18px 40px rgba(255, 137, 193, 0.18);
}

:root[data-theme="dark"] {
  --bg: #1e1320;
  --bg-alt: #2a1a2e;
  --card: #2f2033;
  --text: #f8e9f2;
  --muted: #d4b4c8;
  --accent: #ff9ad1;
  --accent-strong: #ff77c3;
  --border: #4e334f;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1e1320;
    --bg-alt: #2a1a2e;
    --card: #2f2033;
    --text: #f8e9f2;
    --muted: #d4b4c8;
    --accent: #ff9ad1;
    --accent-strong: #ff77c3;
    --border: #4e334f;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  }
}

body {
  font-family: var(--font-body);
  background: radial-gradient(circle at top, var(--bg-alt), var(--bg));
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 8vw 16px;
  gap: 20px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 5;
  flex-wrap: nowrap;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  flex-wrap: nowrap;
}

.logo-bubble {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}

.brand-link h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: 0.5px;
}

.brand-link p {
  color: var(--muted);
}

.theme-toggle {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-size: 2rem;
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle span {
  font-size: 2.8rem;
  line-height: 1;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.15);
}

main {
  padding: 16px 8vw 64px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
}

.hero h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 36px);
  margin-bottom: 12px;
}

.hero p {
  color: var(--muted);
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 400px;
  min-width: 400px;
}

.hero-card h3 {
  font-family: var(--font-display);
  margin-bottom: 10px;
}

.card-media {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, var(--bg-alt), var(--accent));
}

.card-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.card-media.small img {
  height: 140px;
}

.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 600;
  margin-top: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow);
}

.secondary {
  background: transparent;
  border: 1px solid var(--border);
}

.primary:hover,
.secondary:hover {
  transform: translateY(-2px);
}

.games .section-head {
  margin-bottom: 20px;
}

.games h2 {
  font-family: var(--font-display);
}

.games p {
  color: var(--muted);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.game-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 170px;
  max-width: 400px;
  min-width: 400px;
}

.game-card h3 {
  font-family: var(--font-display);
  margin-bottom: 8px;
}

.game-card p {
  color: var(--muted);
}

.site-footer {
  padding: 24px 8vw 40px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
}

