
/* ================= BASE ================= */

* {
  font-family: 'Nunito', sans-serif;
}

body {
  min-height: 100vh;
  background: url('/static/fon.jpg') center/cover no-repeat fixed;
  margin: 0;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(2px);
  z-index: 0;
}

/* ================= GLASS ================= */

.glass {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.25);
}

/* ================= HEADINGS ================= */

h1 {
  line-height: 1.2;
}

h2 {
  line-height: 1.3;
}

/* ================= CLOCK ================= */

#clock {
  font-size: 2.4rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

#date {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
}

/* ================= TEXTAREA ================= */

textarea {
  font-size: 1rem;
}

/* ================= BUTTON ================= */

button {
  font-size: 1.2rem;
  padding: 12px;
}

/* ================= EMOJI ================= */

.emoji-input {
  display: none;
}

.emoji-label {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 10px 18px;
  border-radius: 18px;
  border: 2px solid transparent;
  transition: all .2s ease;
  background: rgba(255,255,255,0.15);
}

.emoji-label span.emoji {
  font-size: 3.2rem;
  line-height: 1;
}

.emoji-label:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.05);
}

.emoji-input:checked + .emoji-label {
  background: rgba(255,255,255,0.55);
  border-color: #fff;
  transform: scale(1.08);
  box-shadow: 0 0 15px rgba(255,255,255,0.5);
}

/* ================= ANIMATIONS ================= */

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
  50% { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
}

#btn-submit:not(:disabled) {
  animation: pulse-glow 2.5s infinite;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fadeUp .6s ease both;
}

/* ================= SCROLL ================= */

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.4);
  border-radius: 3px;
}

/* ================= LAYOUT FIX (ВАЖНО) ================= */

/* чтобы не ломалось на 1024 */
.max-w-6xl {
  max-width: 900px;
}

/* ================= ADAPTIVE ================= */

@media (max-width: 1100px) {

  .emoji-label span.emoji {
    font-size: 2.8rem;
  }

  #clock {
    font-size: 2rem;
  }

  button {
    font-size: 1.1rem;
    padding: 10px;
  }

}

/* ================= EXTRA FIX ================= */

/* чтобы всё было компактнее */
.glass {
  padding: 10px !important;
}
