/* Homepage-only styles. Shared styles live in fun.css. */

/* Mithai tints for glass cards */
.tint-saffron { background: linear-gradient(140deg, rgba(255, 224, 178, 0.85), rgba(255, 255, 255, 0.62)); }
.tint-pink { background: linear-gradient(140deg, rgba(255, 214, 232, 0.85), rgba(255, 255, 255, 0.62)); }
.tint-gold { background: linear-gradient(140deg, rgba(255, 236, 170, 0.88), rgba(255, 255, 255, 0.62)); }
.tint-pista { background: linear-gradient(140deg, rgba(216, 238, 198, 0.9), rgba(255, 255, 255, 0.62)); }

.section-head { margin-bottom: 14px; }
.section-head p { margin: 0; }

/* Hero */
.hero { padding: 12px 0 20px; }
.hero-grid { display: grid; gap: 14px; align-items: center; }
.hero-copy { text-align: center; }
.hero-copy h1 { margin-bottom: 0.3em; }
.hero-tag { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5em; }
.hero-sub { max-width: 34em; margin-left: auto; margin-right: auto; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 4px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }

#hero3d {
  position: relative;
  height: 260px;
  border-radius: var(--radius);
  overflow: hidden;
}
#hero3d .hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.6s ease;
}
#hero3d.is-3d .hero-fallback { opacity: 0; }

@media (min-width: 900px) {
  .hero { padding: 28px 0 36px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 32px; }
  .hero-copy { text-align: left; }
  .hero-sub { margin-left: 0; }
  .hero-cta, .hero-chips { justify-content: flex-start; }
  .hero-tag { font-size: 1.25rem; }
  #hero3d { height: 420px; }
}

/* Featured: Shaadi Ka Laddoo */
.feature { display: grid; gap: 14px; align-items: center; padding: 22px 20px; }
.feature-art { display: flex; justify-content: center; align-items: flex-end; gap: 6px; }
.feature-art img { width: 104px; height: auto; }
.feature h2 { margin-bottom: 0.15em; }
.feature .feature-line { font-weight: 700; margin-bottom: 0.6em; }
.feature p:last-child { margin-bottom: 0; }
@media (min-width: 700px) {
  .feature { grid-template-columns: auto 1fr; gap: 28px; padding: 30px 32px; }
  .feature-art img { width: 132px; }
}

/* Trending row: sideways scroll on phones, even columns on desktop */
.trend-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 82%);
  gap: 14px;
  overflow-x: auto;
  padding: 4px 16px 14px;
  margin: 0 -16px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.trend-row > * { scroll-snap-align: start; }
.trend-row.single { grid-auto-columns: 100%; }
@media (min-width: 700px) {
  .trend-row, .trend-row.single { grid-auto-columns: minmax(260px, 340px); }
}

/* Games grid, grouped by category */
.cat-groups { display: grid; gap: 22px 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); align-items: start; }
.cat-group h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.cat-cards { display: grid; gap: 14px; }
.game-card .card-title { font-weight: 800; font-size: 1.05rem; line-height: 1.2; }
.game-card .card-hook { color: var(--ink-soft); font-size: 0.92rem; }
.game-card .card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.game-card.soon { cursor: default; }

/* Smiles counter */
.smiles-num { font-size: clamp(2.4rem, 11vw, 4.2rem); font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; }
.smiles-label { font-size: 1.15rem; font-weight: 700; margin: 0; }

/* Hall teaser */
.hall-teaser { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.hall-teaser p { margin: 0; }
@media (min-width: 700px) {
  .hall-teaser { flex-direction: row; text-align: left; gap: 20px; padding: 24px 28px; }
  .hall-teaser .grow { flex: 1; }
}
