/* ============================================================
   PROJECT NFT — COMING SOON & WAITLIST
   Background: asset/background.png full-screen cover
   ============================================================ */

:root {
  --bg-color: #81a180;

  --pixel-dark: #1b2b1b;
  --gold-main: #f6b73c;
  --gold-light: #ffdf7a;
  --gold-dark: #b87c12;
  --gold-shadow: #3a2206;

  --font-pixel: 'Press Start 2P', 'Silkscreen', monospace;
  --font-pixel-text: 'Silkscreen', 'Press Start 2P', monospace;
}

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

html, body {
  width: 100%;
  height: 100%;
}

body {
  min-height: 100vh;
  overflow: hidden;
  font-family: var(--font-pixel);
  -webkit-font-smoothing: none;
  image-rendering: pixelated;

  /* Full-screen background, no overflow */
  background-color: var(--bg-color);
  background-image: url('/asset/background.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: local;

  display: flex;
  justify-content: center;
  align-items: flex-end; /* anchor to bottom of screen */
  padding-bottom: clamp(2rem, 6vh, 5rem);
}

/* Center Container — only the form, no banner */
.coming-soon-container {
  width: 100%;
  max-width: 560px;
  padding: 0 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ============================================================
   PIXEL ART WAITLIST FORM
   ============================================================ */
.waitlist-box {
  width: 100%;
}

.waitlist-form {
  width: 100%;
}

/* Pixel Input & Button Group */
.pixel-input-group {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--pixel-dark);
  border: 4px solid var(--pixel-dark);
  box-shadow:
    0 -4px 0 0 #283e28,
    0 4px 0 0 #283e28,
    -4px 0 0 0 #283e28,
    4px 0 0 0 #283e28;
}

#email-input {
  flex: 1;
  min-width: 0; /* prevent flex overflow */
  background: #172617;
  border: none;
  outline: none;
  padding: 1rem 1rem;
  font-family: var(--font-pixel);
  font-size: 0.68rem;
  line-height: 1.6;
  color: #ffffff;
  letter-spacing: 0.04em;
  box-shadow: inset 3px 3px 0 0 #0d160d;
}

#email-input::placeholder {
  color: #698368;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
}

#email-input:focus {
  background: #1e331e;
  box-shadow: inset 3px 3px 0 0 #0f1c0f;
}

/* Pixel Button */
.pixel-btn {
  background: var(--gold-main);
  color: var(--gold-shadow);
  border: 3px solid var(--gold-shadow);
  padding: 1rem 1.4rem;
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 3px 3px 0 0 var(--gold-light),
    inset -3px -3px 0 0 var(--gold-dark);
  transition: transform 0.08s ease, filter 0.1s ease;
  user-select: none;
}

.pixel-btn:hover {
  background: #ffc957;
  filter: brightness(1.06);
}

.pixel-btn:active {
  box-shadow:
    inset -3px -3px 0 0 var(--gold-light),
    inset 3px 3px 0 0 var(--gold-dark);
  transform: translate(2px, 2px);
}

.pixel-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.pixel-dots {
  animation: pixelBlink 1s infinite steps(2);
}

@keyframes pixelBlink {
  50% { opacity: 0.3; }
}

/* Pixel Feedback Alert */
.form-feedback {
  margin-top: 1.2rem;
  padding: 0.85rem 1rem;
  font-family: var(--font-pixel-text);
  font-size: 0.78rem;
  line-height: 1.7;
  text-align: center;
  border: 3px solid;
  box-shadow:
    0 -3px 0 0 #000,
    0 3px 0 0 #000,
    -3px 0 0 0 #000,
    3px 0 0 0 #000;
}

.form-feedback.success {
  background: #1d361c;
  color: #72f788;
  border-color: #388439;
}

.form-feedback.error {
  background: #3d1717;
  color: #ff9191;
  border-color: #8a3434;
}

/* ============================================================
   RESPONSIVE — Mobile
   ============================================================ */
@media (max-width: 600px) {
  body {
    /* Swap to portrait background on mobile */
    background-image: url('/asset/background-mobile.png');
    background-position: top center;

    /* Push form to the bottom portion of the screen */
    align-items: flex-end;
    padding-bottom: 5vh;
    padding-top: 0;
  }

  .coming-soon-container {
    max-width: 100%;
    padding: 0 1rem;
  }

  .pixel-input-group {
    flex-direction: column;
  }

  #email-input {
    width: 100%;
    padding: 0.95rem 0.85rem;
    font-size: 0.6rem;
    text-align: center;
  }

  #email-input::placeholder {
    font-size: 0.55rem;
  }

  .pixel-btn {
    width: 100%;
    padding: 1rem 1rem;
    font-size: 0.65rem;
    border-top: 3px solid var(--gold-shadow);
  }

  .form-feedback {
    font-size: 0.7rem;
  }
}

@media (max-width: 380px) {
  body {
    background-image: url('/asset/background-mobile.png');
    background-position: top center;
    padding-bottom: 4vh;
  }

  #email-input {
    font-size: 0.52rem;
  }

  .pixel-btn {
    font-size: 0.58rem;
  }
}
