* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #5f2d43;
  background: linear-gradient(180deg, #fff7fb 0%, #ffe9f2 100%);
  display: flex;
  justify-content: center;
}

.container {
  width: min(980px, 100vw);
  padding: 14px 10px 24px;
}

.hidden {
  display: none;
}

.auth-overlay.hidden {
  display: none;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  padding: 18px;
  background: rgba(255, 239, 246, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.auth-card {
  width: min(430px, 100%);
  background: #fff;
  border: 1px solid #ffd9e8;
  border-radius: 20px;
  box-shadow: 0 12px 34px rgba(177, 90, 125, 0.16);
  padding: 20px 16px;
  text-align: center;
}

.auth-title {
  margin: 0;
  color: #8a3c5e;
  font-weight: 700;
}

.auth-subtitle {
  margin: 8px 0 14px;
  font-size: 0.9rem;
  color: #a25174;
}

.auth-input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #f3c3d8;
  border-radius: 10px;
  font-size: 1rem;
  text-align: center;
}

.auth-btn {
  margin-top: 10px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: #ea7da9;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px;
  cursor: pointer;
}

.auth-error {
  min-height: 18px;
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: #c3315f;
}

.hero {
  text-align: center;
  margin-bottom: 10px;
}

.tag {
  margin: 0;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b15a7d;
}

h1 {
  margin: 8px 0 0;
  font-size: clamp(1.5rem, 5.8vw, 2.3rem);
}

.card {
  background: #fff;
  border: 1px solid #ffd9e8;
  border-radius: 22px;
  padding: 28px 20px;
  box-shadow: 0 12px 32px rgba(177, 90, 125, 0.18);
  text-align: center;
  min-height: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.date {
  margin: 0;
  font-size: 0.72rem;
  color: #b46a8a;
  text-align: right;
  font-weight: 500;
}

.day {
  margin: 0 0 4px;
  font-size: clamp(0.88rem, 3.8vw, 1rem);
  color: #a25174;
  font-weight: 600;
  text-align: center;
}

.phase {
  margin: 0 0 8px;
  font-size: clamp(0.92rem, 4vw, 1.02rem);
  color: #8a3c5e;
  font-weight: 600;
}

.meta-top {
  margin: 0 4px 10px;
  text-align: center;
}

.message {
  margin: 0;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: clamp(1.45rem, 7vw, 2rem);
  line-height: 1.65;
  letter-spacing: 0.012em;
  width: 100%;
}

.actions {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.btn {
  width: 100%;
  border: 1px solid #f3c3d8;
  border-radius: 10px;
  background: #fff4f9;
  color: #a25174;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 8px;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.2s ease, background 0.2s ease;
}

.btn:hover {
  background: #ffe9f3;
}

.btn:active {
  transform: scale(0.99);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (min-width: 700px) {
  .container {
    padding: 28px 18px 36px;
  }

  .card {
    padding: 38px 34px;
    min-height: 330px;
  }

  .date {
    font-size: 0.78rem;
  }

  .message {
    font-size: clamp(1.55rem, 4vw, 2.1rem);
  }

  .actions {
    grid-template-columns: 1fr 1fr;
  }
}
