:root {
  --pink-1: #ff9aa2;
  --pink-2: #ffb7b2;
  --pink-3: #ffdac1;
  --ink: #3c2c3e;
  --text-soft: #6f5b70;
  --surface: #ffffff;
  --bg: #fff6f7;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-card: 0 10px 24px rgba(255, 154, 162, 0.2);
  --shadow-soft: 0 6px 16px rgba(60, 44, 62, 0.08);
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", "Nunito", "Avenir Next", sans-serif;
  color: var(--ink);
  background: var(--bg);
  background-image: url("../assets/bg_pattern.svg");
  background-size: cover;
  background-attachment: fixed;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(100% - 24px, var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
  background: rgba(255, 246, 247, 0.85);
  border-bottom: 1px solid rgba(255, 154, 162, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 138px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-link {
  background: #fff;
  border: 1px solid #ffd7da;
  color: var(--text-soft);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  background: linear-gradient(135deg, var(--pink-1), var(--pink-2));
  color: #fff;
  transform: translateY(-1px);
}

.page {
  padding: 24px 0 72px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 32px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #ffe1e4;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  color: #8f6d90;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.game-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  padding: 14px;
  border: 1px solid #ffe6e8;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.game-card .thumb {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  overflow: hidden;
}

.game-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.game-card p {
  margin: 6px 0 8px;
  color: var(--text-soft);
  font-size: 14px;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.stars {
  display: inline-flex;
  gap: 3px;
}

.stars img {
  width: 16px;
  height: 16px;
}

.hit {
  font-size: 13px;
  color: #9c7ca0;
  background: #fff7f8;
  border: 1px solid #ffe8ea;
  padding: 2px 10px;
  border-radius: 999px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--pink-1), var(--pink-2));
  color: #fff;
}

.btn-secondary {
  background: #fff;
  border: 1px solid #ffd9dd;
  color: #7f647f;
}

.btn:hover {
  transform: scale(1.03);
}

.ads-wrap {
  margin: 18px 0;
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px dashed #ffd2d8;
  padding: 10px;
}

.site-footer {
  margin-top: 30px;
  padding: 28px 0;
  border-top: 1px solid #ffd7dc;
  color: #7d657d;
  font-size: 14px;
}

.site-footer .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.55s ease forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }

  .header-inner {
    min-height: 66px;
  }

  .main-nav {
    gap: 8px;
  }

  .nav-link {
    font-size: 13px;
    padding: 7px 12px;
  }

  .page {
    padding-top: 16px;
  }
}
