/* ===== БАЗА: БЕЗ СКРОЛЛА ===== */
html, body {
  overflow: hidden;
  height: 100vh;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* ===== КОНТЕЙНЕР ===== */
.email-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 100vw;
  padding: 20px;
}

/* ===== EMAIL ===== */
.email-content {
  text-align: center;
  margin-bottom: 40px;
}

.email-link {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
  cursor: pointer;
  display: inline-block;
  letter-spacing: 1px;
}

.email-link:hover {
  color: var(--button-hover);
}

.email-hint {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 12px;
  font-weight: 500;
  user-select: none;
}

/* ===== КНОПКА "ВЕРНУТЬСЯ" ===== */
.bottom-nav {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.back-btn {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  text-decoration: none;
  padding: 10px 28px;
  border-radius: 30px;
  border: 2px solid var(--text-color);
  background: transparent;
  transition: all 0.3s ease;
  display: inline-block;
  font-family: 'YS Text', sans-serif;
}

.back-btn:hover {
  color: var(--button-hover);
  border-color: var(--button-hover);
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: var(--button-bg);
  color: var(--button-text);
  padding: 16px 40px;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

/* ===== ДЕКОРАТИВНЫЕ КАРТИНКИ ===== */
.deco-boy,
.deco-cloud {
  position: fixed;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 210px;
  max-height: 300px;
}

/* boy — левый нижний угол, выезжает снизу */
.deco-boy {
  bottom: 0;
  left: 10px;
  transform: translateY(100%);
}
.deco-boy.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* cloud — правый верхний угол, выезжает сверху */
.deco-cloud {
  top: 25px;
  right: 25px;
  transform: translateY(-100%);
}
.deco-cloud.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
  .email-link {
    font-size: 2.4rem;
  }
  .email-hint {
    font-size: 0.85rem;
  }
  .back-btn {
    font-size: 0.9rem;
    padding: 8px 22px;
  }
  .toast {
    padding: 14px 30px;
    font-size: 1rem;
  }
  .deco-boy { max-width: 190px; }
  .deco-cloud { max-width: 250px; }
}

@media (max-width: 480px) {
  .email-link {
    font-size: 1.8rem;
    word-break: break-all;
  }
  .email-hint {
    font-size: 0.75rem;
  }
  .bottom-nav {
    bottom: 20px;
  }
  .back-btn {
    font-size: 0.8rem;
    padding: 6px 18px;
  }
  .deco-boy { max-width: 130px; }
  .deco-cloud { max-width: 175px; }
}