.hero {
  margin-top: 1.4rem;
  padding: clamp(1.1rem, 2.8vw, 2rem);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1rem;
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -40px -70px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 123, 44, 0.35), rgba(255, 123, 44, 0));
}

.hero h1 {
  margin: 0;
  font-family: "Baloo 2", "Trebuchet MS", sans-serif;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 0.96;
  letter-spacing: 0.01em;
}

.hero p {
  margin: 0.85rem 0 0;
  max-width: 60ch;
  color: var(--muted);
}

.hero-badges {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-badge {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(135, 80, 33, 0.2);
  padding: 0.42rem 0.8rem;
  font-size: 0.9rem;
}

.search-wrap {
  margin-top: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(121, 83, 44, 0.28);
  border-radius: 999px;
  padding: 0.5rem 0.75rem;
}

.search-wrap img {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}

.search-wrap input {
  flex: 1;
  border: 0;
  outline: 0;
  font: inherit;
  background: transparent;
  color: #2b2622;
}

.hero-preview {
  border-radius: var(--radius-lg);
  padding: 0.9rem;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.95), rgba(255, 245, 234, 0.9));
  border: 1px solid rgba(135, 80, 33, 0.2);
  box-shadow: var(--shadow-1);
}

.recommend-grid,
.games-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.9rem;
}

.section-block {
  margin-top: 1.65rem;
  padding: clamp(1rem, 2vw, 1.35rem);
}

.home-ad-wrap {
  margin-top: 1.2rem;
  padding: 0.7rem 0.9rem;
  transition:
    margin 0.24s ease,
    padding 0.24s ease,
    background-color 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease;
}

.home-ad-label {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(98, 77, 61, 0.82);
  transition: opacity 0.2s ease, margin 0.2s ease, max-height 0.2s ease;
}

.home-adsense {
  min-height: 0;
  overflow: hidden;
  transition: min-height 0.24s ease, opacity 0.24s ease;
}

.home-ad-wrap.ad-pending .home-adsense {
  min-height: 90px;
}

.home-ad-wrap.ad-empty {
  margin-top: 0.75rem;
  padding: 0;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.home-ad-wrap.ad-empty .home-ad-label {
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

.home-ad-wrap.ad-empty .home-adsense {
  min-height: 0;
  opacity: 0;
}

.game-card {
  background: var(--card-strong);
  border: 1px solid rgba(129, 73, 30, 0.2);
  border-radius: 16px;
  padding: 0.85rem;
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 0.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.game-card img {
  width: 68px;
  height: 68px;
  border-radius: 14px;
}

.game-card h3 {
  margin: 0;
  font-size: 1.02rem;
}

.game-card p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.card-actions {
  margin-top: 0.55rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.mini-btn {
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
  border: 1px solid rgba(111, 68, 36, 0.26);
  background: #fff;
  font-size: 0.8rem;
}

.mini-btn.play {
  background: linear-gradient(125deg, var(--brand), var(--brand-deep));
  color: #fff;
  border: 0;
}

.result-count {
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
  }
}
