.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 32px;
  align-items: center;
  padding: 36px 0 56px;
}
.hero-title { font-size: clamp(3.4rem, 11vw, 8.2rem); line-height: .86; letter-spacing: -.05em; font-stretch: 80%; margin: 10px 0 18px; }
.hero-title .line { display: block; }
.sticker {
  display: inline-block;
  background: var(--yellow);
  color: #1b1400;
  padding: .02em .16em .08em;
  border-radius: .14em;
  transform: rotate(-3deg);
  box-shadow: .06em .07em 0 var(--pink);
  margin-top: .06em;
}
.hero-tag { font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-weight: 750; margin-bottom: 10px; letter-spacing: -.01em; }
.hero-sub { max-width: 52ch; }
.join-box { margin-top: 26px; max-width: 460px; padding: 20px; }
.join-box .label { font-weight: 800; display: block; margin-bottom: 10px; font-size: 1.05rem; }
.join-row { display: flex; gap: 12px; }
.join-row .input { flex: 1; min-width: 0; }
.join-error { color: #ff8a8a; margin: 10px 0 0; font-weight: 650; }

.hero-art { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: center; }
.hero-art .blob-bg { position: absolute; inset: 8%; border-radius: 42% 58% 55% 45% / 45% 40% 60% 55%; background: radial-gradient(circle at 30% 30%, #2c2651, #19152f); border: 2px solid var(--line); animation: morph 12s ease-in-out infinite; }
.hero-art .buddy { position: absolute; width: 26%; height: auto; aspect-ratio: 1; }
.hero-art .buddy:nth-child(2) { left: 6%; top: 12%; animation-delay: -.4s; }
.hero-art .buddy:nth-child(3) { right: 4%; top: 6%; width: 30%; animation-delay: -1.2s; }
.hero-art .buddy:nth-child(4) { left: 34%; top: 36%; width: 34%; animation-delay: -.8s; }
.hero-art .buddy:nth-child(5) { left: 4%; bottom: 8%; animation-delay: -2s; }
.hero-art .buddy:nth-child(6) { right: 8%; bottom: 4%; width: 28%; animation-delay: -1.6s; }
.hero-art .bubble {
  position: absolute; left: 52%; top: 24%; background: #fff; color: #1a1330; font-weight: 800;
  padding: 8px 14px; border-radius: 16px 16px 16px 4px; font-size: clamp(.8rem, 1.6vw, 1rem); transform: rotate(4deg);
  box-shadow: 4px 4px 0 var(--pink); animation: pop-in .6s .6s var(--ease-pop) both;
}
@keyframes morph {
  0%, 100% { border-radius: 42% 58% 55% 45% / 45% 40% 60% 55%; }
  50% { border-radius: 55% 45% 40% 60% / 55% 60% 40% 45%; }
}

.games { padding: 24px 0 56px; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-top: 22px; }
.game-card { position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 320px; overflow: hidden; text-decoration: none; color: var(--text); transition: transform .2s var(--ease-pop), border-color .2s; }
.game-card.live { grid-column: 1 / -1; min-height: 280px; padding-right: 38%;border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); background: radial-gradient(600px 300px at 100% 0, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%), var(--surface); }
.game-card.live:hover { transform: translateY(-4px) rotate(-.4deg); color: var(--text); }
.game-card .art { height: 120px; display: flex; align-items: center; gap: 4px; }
.game-card.live .art { position: absolute; right: 4%; top: 50%; transform: translateY(-50%); height: auto; }
.game-card.live .art .avatar { width: clamp(80px, 10vw, 140px); height: clamp(80px, 10vw, 140px); }
.game-card .art .avatar { width: 84px; height: 84px; }
.game-card .art .avatar:nth-child(2) { margin-top: -30px; }
.game-card.live .art .avatar { animation: bob 2.8s ease-in-out infinite; }
.game-card.live .art .avatar:nth-child(2) { animation-delay: -.7s; }
.game-card.live .art .avatar:nth-child(3) { animation-delay: -1.4s; }
.game-card h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -.03em; }
.game-card .meta { display: flex; flex-wrap: wrap; gap: 8px; }
.game-card .cta { margin-top: auto; align-self: flex-start; }
.game-card.soon { opacity: .62; filter: saturate(.3); }
.game-card.soon .art svg { width: 72px; height: 72px; color: var(--accent); }
.game-card .ribbon { position: absolute; top: 18px; right: -34px; transform: rotate(35deg); background: var(--surface-3); color: var(--muted); font-weight: 800; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; padding: 6px 40px; }
.game-card.skeleton { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.how { padding: 16px 0 24px; }
.how-steps { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how-steps li { position: relative; padding-top: 58px; }
.how-steps .num { position: absolute; top: 18px; left: 24px; width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); color: #1b1400; display: grid; place-items: center; font-weight: 800; }
.how-steps h3 { margin-bottom: 6px; }

/* Short laptop screens: keep the join box (and a bad-invite-link error under it) above the fold. */
@media (min-width: 861px) and (max-height: 820px) {
  .hero { padding: 16px 0 40px; }
  .hero-title { font-size: clamp(3.4rem, min(11vw, 15vh), 8.2rem); margin: 6px 0 12px; }
  .join-box { margin-top: 18px; }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 12px; gap: 20px; }
  /* The join box comes first on phones; the decorative crowd sits underneath it. */
  .hero-art { max-width: 260px; }
  .game-card.live { padding-right: 24px; }
  .game-card.live .art { position: static; transform: none; }
  .how-steps { grid-template-columns: 1fr; }
}
