/* Home screen: hero orb with an orbiting rocket, calls to action, versions. */
.home { position: relative; z-index: 1; display: flex; flex-direction: column; width: var(--frame); min-height: 100vh; min-height: 100dvh; margin: 0 auto; padding: clamp(12px, 5.4vh, 60px) 0 clamp(12px, 3.4vh, 40px); }
.home .topbar { width: 88.4%; margin: 0 auto; }
.hero { display: flex; flex: 1 0 auto; flex-direction: column; align-items: center; justify-content: center; padding: clamp(4px, 1.5vh, 16px) 0 clamp(16px, 3vh, 32px); text-align: center; }
.hero-stage { position: relative; flex: 1 1 0; width: 100%; min-height: 150px; max-height: 330px; margin-bottom: clamp(2px, 1vh, 12px); pointer-events: none; }
#hero-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.hero-floaters { position: absolute; inset: 0; }
.hero-floaters .floater { opacity: .95; }
.headline { margin: 10px 0 12px; font-size: clamp(38px, 6vw, 82px); font-weight: 700; line-height: 1.02; letter-spacing: -.02em; text-shadow: 0 6px 34px rgba(0, 0, 0, .6); }
.headline em { color: var(--neon-bright); font-style: normal; text-shadow: 0 0 30px rgba(92, 240, 126, .35), 0 6px 34px rgba(0, 0, 0, .5); }
.lede { max-width: 560px; margin: 0 auto; padding: 0 12px; color: #c3cfca; font-size: clamp(15px, 1.35vw, 19px); line-height: 1.55; text-shadow: 0 2px 14px rgba(0, 0, 0, .8); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: clamp(18px, 3.4vh, 30px); }
.play-now { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-width: 230px; height: 62px; padding: 0 34px; font-size: 22px; font-weight: 700; }
.play-now svg { position: relative; width: 22px; height: 22px; fill: currentColor; stroke-width: 1.4; }
.cta .ghost { height: 62px; padding: 0 28px; font-size: 18px; font-weight: 500; }
/* The version cards wrap three to a row, the last row centered. */
.modes { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; width: 100%; max-width: 944px; margin-top: clamp(18px, 3.4vh, 32px); }
.modes > .mode-card { flex: 1 1 290px; max-width: 305px; }
.mode-card { position: relative; display: flex; align-items: center; gap: 16px; min-height: 92px; padding: 14px 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, rgba(12, 24, 21, .88), rgba(7, 14, 13, .92)); text-align: left; transition: border-color .2s, transform .2s, box-shadow .2s; }
.mode-card:hover { transform: translateY(-2px); border-color: rgba(92, 240, 126, .45); box-shadow: 0 12px 30px rgba(0, 0, 0, .45), 0 0 26px rgba(43, 227, 107, .13); }
.mode-card.featured { border-color: rgba(92, 240, 126, .42); box-shadow: 0 0 24px rgba(43, 227, 107, .14); }
.mode-art { flex: none; object-fit: contain; }
.rocket-art { width: 96px; height: 40px; transform: rotate(-16deg); filter: drop-shadow(0 0 10px rgba(60, 235, 120, .35)); }
.bounce-art { transform: rotate(-40deg) scale(.86); }
.classic-art { width: 64px; height: 64px; margin: 0 16px; border-radius: 50%; box-shadow: 0 0 18px rgba(80, 230, 110, .3); }
.sky-art { width: 96px; height: 60px; border-radius: 10px; box-shadow: 0 0 16px rgba(80, 230, 110, .22); }
.mode-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mode-tag { color: var(--neon-bright); font-size: 11px; font-weight: 500; letter-spacing: .18em; white-space: nowrap; }
.mode-tag b { margin-left: 6px; padding: 2px 7px; border-radius: 5px; background: var(--neon); color: var(--on-green); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.mode-card strong { font-size: 20px; font-weight: 600; line-height: 1.2; }
.mode-text { color: var(--muted); font-size: 13.5px; line-height: 1.35; }
.mode-go { flex: none; width: 22px; height: 22px; margin-left: auto; color: var(--dim); transition: color .2s, transform .2s; }
.mode-card:hover .mode-go { color: var(--neon-bright); transform: translateX(3px); }
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin: clamp(16px, 3vh, 26px) 0 0; color: #9eaca7; font-size: 13.5px; letter-spacing: .04em; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.stats b { color: var(--text); font-weight: 600; }
.home .footer { text-shadow: 0 1px 10px rgba(0, 0, 0, .9); }
.dialog-actions a { display: inline-flex; flex: 1; align-items: center; justify-content: center; height: 48px; font-size: 16px; font-weight: 600; }

@media (max-width: 1180px) { .home .topbar { width: 100%; } }
/* Tablets: still three to a row, with smaller art. */
@media (min-width: 761px) and (max-width: 1099px) {
  .modes { max-width: 820px; gap: 12px; }
  .modes > .mode-card { flex-basis: 230px; max-width: 265px; }
  .mode-card { gap: 12px; padding: 12px 14px; }
  .rocket-art { width: 64px; height: 28px; }
  .classic-art { width: 42px; height: 42px; margin: 0 11px; }
  .sky-art { width: 64px; height: 40px; }
  .mode-card strong { font-size: 18px; }
  .mode-text { font-size: 12.5px; }
}
@media (max-width: 760px) {
  .modes { max-width: 420px; gap: 10px; }
  .modes > .mode-card { flex-basis: 100%; max-width: none; }
  .mode-card { min-height: 78px; padding: 12px 14px; }
  .cta { width: 100%; max-width: 420px; }
  .play-now { flex: 1 1 100%; height: 58px; }
  .cta .ghost { flex: 1 1 100%; height: 50px; }
  .stats { gap: 6px 16px; font-size: 12.5px; }
}
@media (max-height: 820px) and (min-width: 761px) {
  .headline { font-size: clamp(34px, 4.8vw, 64px); margin: 8px 0 10px; }
  .cta { margin-top: 18px; }
  .play-now, .cta .ghost { height: 56px; }
  .modes { margin-top: 18px; }
  .mode-card { min-height: 76px; padding: 11px 16px; }
  .stats { margin-top: 14px; }
}
