/* =============================================================================
   gate.css — Pump Town landing / wallet gate. Sky scene + login card.
   ========================================================================== */

:root {
  --green:   #43d65a;
  --green-d: #25a23c;
  --gold:    #ffd54a;
  --ink:     #eafff0;
  --card:    rgba(18, 38, 26, 0.78);
  --card-2:  rgba(12, 28, 18, 0.85);
  --edge:    rgba(120, 230, 150, 0.22);
  --muted:   #9fc6ab;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  font-family: "Pixelify Sans", ui-monospace, monospace;
  color: var(--ink);
  background: #160a26;
  -webkit-font-smoothing: none;
  overflow-x: hidden;
}

/* live apocalyptic scene behind everything */
#gatebg { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; display: block; }

/* ── sky scenery ────────────────────────────────────────────────────────── */
.sky { position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.sun {
  position: absolute; top: 40px; right: 90px;
  width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #fff3b0, #ffd54a 60%, #ffc233 100%);
  box-shadow: 0 0 70px 30px rgba(255, 213, 74, 0.45);
}
.cloud {
  position: absolute;
  background: #fff;
  border-radius: 999px;
  box-shadow: 28px 0 0 -4px #fff, 56px 6px 0 -8px #fff, -26px 6px 0 -6px #fff;
  opacity: 0.95;
}
.c1 { top: 110px; left: 40px; width: 70px; height: 26px; }
.c2 { top: 220px; right: 160px; width: 54px; height: 20px; opacity: 0.8; }
.c3 { top: 330px; left: 22%; width: 60px; height: 22px; opacity: 0.7; }
.coin-float, .orb-float {
  position: absolute; font-size: 26px;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,0.18));
  animation: bobf 4s ease-in-out infinite;
}
.f1 { top: 30%; left: 8%; }
.f2 { top: 56%; right: 9%; animation-delay: 1.2s; }
.o1 { top: 66%; left: 14%; color: #a06bff; animation-delay: 0.6s; }
@keyframes bobf { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hill {
  position: absolute; left: -5%; right: -5%; bottom: -40px; height: 230px;
  background: linear-gradient(#5fcf52, #4cbb45);
  border-radius: 50% 50% 0 0 / 60px 60px 0 0;
  box-shadow: inset 0 8px 0 rgba(255,255,255,0.12);
}

/* ── gate column ────────────────────────────────────────────────────────── */
.gate {
  position: relative; z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: 38px 18px 70px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.pill {
  font-size: 40px;
  transform: rotate(-30deg);
  filter: drop-shadow(0 4px 0 rgba(0,0,0,0.15));
  animation: bobf 3.5s ease-in-out infinite;
}
.logo {
  font-size: clamp(40px, 10vw, 68px);
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1;
  margin-top: 4px;
  text-shadow: 3px 4px 0 rgba(0, 0, 0, 0.55), 0 0 22px rgba(180, 120, 255, 0.55);
}
.logo .w { color: #fff; }
.logo .t { color: #ff8a3c; }
.tagline {
  font-family: "Silkscreen", monospace;
  font-size: 13px; letter-spacing: 1px;
  color: #d9c6ff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  margin-top: 10px;
}
.rocket { filter: none; }

/* character lineup */
.lineup { display: flex; gap: 6px; margin: 18px 0 4px; flex-wrap: wrap; justify-content: center; }
.lineup img, .lineup canvas {
  height: 72px; width: auto;
  filter: drop-shadow(0 3px 0 rgba(0,0,0,0.18));
  animation: bobf 3s ease-in-out infinite;
}
.lineup canvas { image-rendering: pixelated; }
.lineup img:nth-child(2n), .lineup canvas:nth-child(2n) { animation-delay: 0.4s; }
.lineup img:nth-child(3n), .lineup canvas:nth-child(3n) { animation-delay: 0.8s; }

/* ── login card ─────────────────────────────────────────────────────────── */
.card {
  width: 100%;
  margin-top: 18px;
  background: var(--card);
  border: 1.5px solid var(--edge);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 14px 34px rgba(8, 26, 14, 0.35);
  backdrop-filter: blur(4px);
}
.field {
  width: 100%;
  background: var(--card-2);
  border: 1.5px solid var(--edge);
  border-radius: 12px;
  color: var(--ink);
  font-family: "Pixelify Sans", monospace;
  font-size: 15px;
  text-align: center;
  padding: 13px 14px;
  margin-bottom: 10px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field::placeholder { color: #6f9a7e; }
.field.mono { font-family: "Silkscreen", monospace; font-size: 11px; letter-spacing: 0.5px; }
.field:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(67, 214, 90, 0.18); }

.start {
  width: 100%;
  border: none;
  border-radius: 13px;
  background: linear-gradient(180deg, var(--green), var(--green-d));
  color: #05290e;
  font-family: "Pixelify Sans", monospace;
  font-size: 19px; font-weight: 700; letter-spacing: 1px;
  padding: 15px;
  margin-top: 4px;
  cursor: pointer;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,0.22), 0 6px 18px rgba(37, 162, 60, 0.4);
  transition: transform 0.08s, filter 0.15s;
}
.start:hover { filter: brightness(1.06); }
.start:active { transform: translateY(2px); }
.start:disabled { filter: grayscale(0.5) brightness(0.8); cursor: progress; }

.note { font-size: 11.5px; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.note b { color: var(--gold); }
.msg { font-size: 13px; margin-top: 10px; min-height: 18px; font-weight: 500; }
.msg.err { color: #ff8a96; }
.msg.ok { color: #9bf0a9; }
.msg.info { color: #ffe49b; }
.msg a { color: #9bf0a9; text-decoration: underline; cursor: pointer; }

/* ── feature cards ──────────────────────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  margin-top: 16px;
}
.feat {
  background: var(--card);
  border: 1.5px solid var(--edge);
  border-radius: 13px;
  padding: 12px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.feat .fi { font-size: 22px; }
.feat b { font-family: "Silkscreen", monospace; font-size: 11px; color: var(--green); letter-spacing: 0.5px; }
.feat span { font-size: 10.5px; color: var(--muted); line-height: 1.3; }
.feat.win { grid-column: 2 / 3; margin-top: 0; }

/* ── links ──────────────────────────────────────────────────────────────── */
.links { display: flex; gap: 10px; margin-top: 16px; }
.link {
  background: var(--card);
  border: 1.5px solid var(--edge);
  border-radius: 999px;
  color: var(--ink);
  font-family: "Pixelify Sans", monospace;
  font-size: 13px;
  padding: 9px 16px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.08s;
}
.link:hover { border-color: var(--green); }
.link:active { transform: translateY(1px); }

/* ── how-it-works modal ─────────────────────────────────────────────────── */
.modal {
  position: fixed; inset: 0; z-index: 20;
  display: none; align-items: center; justify-content: center;
  background: rgba(6, 18, 10, 0.6);
  backdrop-filter: blur(3px);
  padding: 20px;
}
.modal.show { display: flex; animation: fade 0.2s; }
@keyframes fade { from { opacity: 0; } }
.modal-card {
  width: min(440px, 94vw);
  background: var(--card-2);
  border: 1.5px solid var(--edge);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 18px 40px rgba(4, 16, 9, 0.5);
}
.modal-card h2 { font-size: 22px; color: var(--green); letter-spacing: 1px; text-align: center; margin-bottom: 14px; }
.how-list { text-align: left; font-size: 13.5px; line-height: 1.7; color: #d6f3df; padding-left: 20px; margin-bottom: 18px; }
.how-list b { color: #fff; }

@media (max-width: 480px) {
  .sun { width: 80px; height: 80px; right: 30px; }
  .lineup canvas { width: 42px; height: 50px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .feat.win { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .pill, .coin-float, .orb-float, .lineup canvas { animation: none; }
}
