/* ───────────────────────────────────────────────
   Bingopia · Universe of bingo adventures
   Landing page — cosmic purple theme
   ─────────────────────────────────────────────── */

:root {
  --space-0: #0a0420;
  --space-1: #160a3a;
  --space-2: #241259;
  --panel-bg: rgba(28, 16, 74, 0.72);
  --panel-border: rgba(140, 96, 245, 0.55);
  --ink: #f3edff;
  --ink-soft: #c3b4ee;
  --gold: #ffce3a;
  --green-1: #74d04a;
  --green-2: #4ca227;
  --green-3: #3a8420;
}

/* Repaint the world: deep cosmic sky (overrides base sci-fi bg) */
body {
  background: #00000D;
}
body::before, body::after { background: none !important; }

main { position: relative; z-index: 1; }

.landing {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px clamp(12px, 3vw, 28px) 56px;
  color: var(--ink);
  font-family: 'Nunito Sans', sans-serif;
}

/* ════════════ HERO ════════════ */
.hero { margin-bottom: 22px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 360px) minmax(240px, 290px);
  grid-template-areas:
    "brand   art   opening"
    "copy    art   why"
    "copy    art   why";
  gap: 18px 26px;
  align-items: start;
}

.hero-brand { grid-area: brand; }
.hero-logo {
  width: min(360px, 80%);
  display: block;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
  animation: floaty 5s ease-in-out infinite;
}
.hero-tagline {
  margin-top: 4px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  font-size: clamp(0.8rem, 1.6vw, 1rem);
}

/* Grand opening badge */
.opening-badge {
  grid-area: opening;
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 16px;
  background: linear-gradient(180deg, #5a2da8 0%, #3d1c79 100%);
  border: 2px solid rgba(178, 140, 255, 0.7);
  box-shadow: 0 8px 22px rgba(20, 8, 50, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.18s, box-shadow 0.18s;
}
.opening-badge:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(20, 8, 50, 0.6); }
.opening-badge__small {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #d9c8ff;
}
.opening-badge__date {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--gold);
  text-shadow: 0 2px 0 rgba(120, 70, 0, 0.5);
}

/* Hero artwork */
.hero-art { grid-area: art; align-self: center; }
.hero-art img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 40px rgba(120, 60, 220, 0.45));
  animation: floaty 6s ease-in-out infinite;
}

/* Hero copy */
.hero-copy { grid-area: copy; align-self: center; }
.hero-headline {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  line-height: 1.04;
  font-size: clamp(1.8rem, 4.4vw, 3rem);
  text-transform: uppercase;
  text-shadow: 0 4px 0 rgba(10, 4, 32, 0.6);
}
.hero-headline span { display: block; }
.hero-headline .accent { color: var(--gold); }
.hero-lead {
  margin-top: 14px;
  max-width: 38ch;
  color: var(--ink-soft);
  font-size: clamp(0.95rem, 1.8vw, 1.08rem);
  line-height: 1.5;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}
.btn--primary {
  margin-top: 18px;
  padding: 14px 30px;
  font-size: 1.05rem;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--green-1) 0%, var(--green-2) 55%, var(--green-3) 100%);
  box-shadow: 0 6px 0 var(--green-3), 0 10px 18px rgba(20, 50, 10, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.35);
  text-shadow: 0 2px 0 rgba(20, 60, 12, 0.6);
  transition: transform 0.12s, box-shadow 0.12s;
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--green-3), 0 13px 22px rgba(20, 50, 10, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.35); }
.btn--primary:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--green-3), inset 0 2px 0 rgba(255, 255, 255, 0.35); }

.hero-hint {
  margin-top: 10px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Why card */
.why-card {
  grid-area: why;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--panel-bg);
  border: 1.5px solid var(--panel-border);
  box-shadow: 0 14px 30px rgba(10, 4, 32, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
}
.why-card__title {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e9deff;
  margin-bottom: 12px;
}
.why-list { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.why-item { display: flex; gap: 11px; align-items: flex-start; }
.why-icon { width: 34px; height: 34px; flex: none; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4)); }
.why-item h3 {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
}
.why-item p { font-size: 0.82rem; line-height: 1.35; color: var(--ink-soft); margin-top: 2px; }

/* ════════════ FEATURE PANELS ════════════ */
.panels {
  display: grid;
  grid-template-columns: 1.35fr 1.15fr 1fr;
  gap: 18px;
  margin-bottom: 26px;
}
.panel {
  padding: 16px 18px 18px;
  border-radius: 20px;
  background: var(--panel-bg);
  border: 1.5px solid var(--panel-border);
  box-shadow: 0 16px 34px rgba(10, 4, 32, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
}
.panel__title {
  text-align: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 0.92rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #efe6ff;
  margin-bottom: 14px;
}
.panel__foot {
  margin-top: auto;
  padding-top: 12px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
}
.panel__foot--badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #efe6ff;
  font-weight: 700;
}
.foot-crown { width: 26px; height: 26px; object-fit: contain; }

/* Worlds */
.worlds { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.world { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.world img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(150, 110, 240, 0.5);
  box-shadow: 0 6px 14px rgba(10, 4, 32, 0.5);
}
.world--locked img { filter: saturate(0.7) brightness(0.78); }
.world__name {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.6rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
  color: #efe6ff;
  line-height: 1.1;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.58rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
}
.tag--unlocked { color: #2a1a05; background: linear-gradient(180deg, #ffd95a, #f3a81f); }
.tag--unlocked::before { content: "★"; }
.tag--locked { color: #d9ccff; background: rgba(70, 48, 130, 0.85); border: 1px solid rgba(150, 110, 240, 0.4); }
.tag--locked::before { content: "🔒"; font-size: 0.6rem; }

/* Ranks */
.ranks {
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  flex-wrap: wrap;
}
.rank {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
  flex: 1 1 0;
  min-width: 54px;
}
.rank img { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4)); }
.rank span {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.56rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
  color: #efe6ff;
  line-height: 1.1;
}
.rank--top span { color: var(--gold); }
.rank + .rank::before {
  content: "›";
  position: absolute;
  left: -7px;
  top: 14px;
  color: #9a7ce0;
  font-weight: 900;
  font-size: 1rem;
}

/* Rewards */
.rewards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  align-items: center;
  justify-items: center;
}
.rewards img {
  width: 100%;
  max-width: 78px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(120, 60, 220, 0.4));
}

/* ════════════ WAITLIST ════════════ */
.waitlist {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 26px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(74, 40, 150, 0.85) 0%, rgba(48, 24, 104, 0.9) 100%);
  border: 1.5px solid rgba(160, 120, 250, 0.55);
  box-shadow: 0 18px 40px rgba(10, 4, 32, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.waitlist__mascot-wrap { position: relative; }
.waitlist__mascot { width: 130px; height: auto; align-self: end; margin-bottom: -18px; }
.waitlist__founder { width: 104px; height: auto; filter: drop-shadow(0 6px 16px rgba(255, 200, 60, 0.35)); }

/* Comic bubble typing text — POSICIÓN/TAMAÑO PROVISIONAL, ajústalo a tu gusto */
.mascot-bubble {
  position: absolute;
  z-index: 5;
  /* posición X / Y inicial (placeholder aleatorio, corrígelo) */
  top: 53px;
  right: 18px;
  /* ancho 140px, alto 75px */
  width: 140px;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4px;
  box-sizing: border-box;
  pointer-events: none;
}

.mascot-bubble__text {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 16px;
  line-height: 1.15;
  text-transform: uppercase;
  color: #4a2c96;
  white-space: pre-wrap;
}

.speech {
  position: absolute;
  left: 118px;
  top: 8px;
  background: #f3edff;
  color: #4a2c96;
  border-radius: 14px;
  padding: 8px 12px;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 0.66rem;
  line-height: 1.25;
  text-transform: uppercase;
  text-align: center;
  box-shadow: 0 6px 14px rgba(10, 4, 32, 0.4);
}
.speech::after {
  content: "";
  position: absolute;
  left: -8px;
  bottom: 12px;
  border: 7px solid transparent;
  border-right-color: #f3edff;
}
.speech strong { display: block; color: #6a2ed0; }

.waitlist__main { text-align: center; }
.waitlist__title {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--gold);
  text-shadow: 0 3px 0 rgba(10, 4, 32, 0.5);
}
.waitlist__sub { color: #e7defb; font-weight: 600; font-size: 0.9rem; margin: 4px 0 12px; }

.waitlist__form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.field-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fffdf8;
  border-radius: 12px;
  padding: 0 14px;
  min-width: 220px;
  color: #8a6fc4;
  box-shadow: inset 0 2px 4px rgba(60, 30, 110, 0.15);
}
.field-pill input,
.field-pill select {
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #3a2470;
  padding: 12px 0;
  width: 100%;
}
.field-pill select { cursor: pointer; }
.waitlist__cta { margin-top: 0; }

/* ════════════ ANIMATIONS ════════════ */
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes waitlist-shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-7px); }
  40%, 60% { transform: translateX(7px); }
}

.waitlist.waitlist--shake {
  animation: waitlist-shake 0.5s ease;
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo, .hero-art img { animation: none; }
  .waitlist.waitlist--shake { animation: none; }
}

/* ════════════ RESPONSIVE ════════════ */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "brand   opening"
      "art     art"
      "copy    copy"
      "why     why";
  }
  .hero-art { max-width: 460px; margin: 0 auto; }
  .panels { grid-template-columns: 1fr; }
  .worlds { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 620px) {
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "brand" "opening" "art" "copy" "why";
  }
  .hero-brand { text-align: center; }
  .hero-logo { margin: 0 auto; }
  .opening-badge { justify-self: center; }
  .hero-copy { text-align: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .worlds { grid-template-columns: repeat(3, 1fr); }
  .waitlist {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 90px;
  }
  .waitlist__mascot { position: absolute; top: 0; left: 12px; width: 88px; margin: 0; }
  .speech { position: absolute; left: 104px; top: 6px; right: 12px; }
  .waitlist__founder { margin: 0 auto; }
  .field-pill { min-width: 0; width: 100%; }
  .waitlist__form { flex-direction: column; align-items: stretch; }
}
