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

body {
  font-family: 'Space Mono', monospace;
  background-color: #f95f62;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.hidden {
  display: none;
}

/* ── Password screen ── */
.pw-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.pw-box {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  padding: 2.5rem 2rem;
  max-width: 360px;
  width: 100%;
  text-align: center;
}

.pw-prompt {
  font-family: 'Space Mono', monospace;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

input[type="password"] {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: 'Space Mono', monospace;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 6px;
  outline: none;
  text-align: center;
  background: rgba(255,255,255,0.2);
  color: #fff;
}

input[type="password"]::placeholder {
  color: rgba(255,255,255,0.5);
}

input[type="password"]:focus {
  border-color: #fff;
  background: rgba(255,255,255,0.3);
}

button {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: 'Space Mono', monospace;
  border: none;
  border-radius: 6px;
  background-color: #fff;
  color: #f95f62;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.05em;
}

button:hover {
  background-color: #ffe0e0;
}

.error {
  color: #fff;
  font-size: 0.85rem;
  margin-top: 1rem;
  display: none;
  letter-spacing: 0.03em;
}

.error.visible {
  display: block;
}

/* ── Save-the-date card ── */
.save-the-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 100%;
  width: 100%;
}

.border-frame {
  background: #f95f62;
  padding: 18px;
  border-radius: 4px;
  max-width: 700px;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
}

.location,
.date-text {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: clamp(0.75rem, 2vw, 1rem);
  color: #fff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  line-height: 0;
  outline: 6px solid #e2a9f1;
  max-height: calc(100vh - 8rem);
}

.photo-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 45%;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 100%);
  pointer-events: none;
}

.photo-wrap img {
  width: 100%;
  height: 111%;
  display: block;
  object-fit: cover;
  object-position: right top;
  border-radius: 2px 2px 0 0;
}

.overlay-text {
  position: absolute;
  bottom: 5%;
  left: 4%;
  z-index: 1;
  font-family: 'Space Mono', monospace;
  font-size: clamp(0.7rem, 4vw, 2.2rem);
  font-weight: 500;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.overlay-text span {
  color: #f95f62;
}

.coming-soon {
  font-family: 'Space Mono', monospace;
  color: #fff;
  font-size: clamp(0.9rem, 2.5vw, 1.25rem);
  letter-spacing: 0.06em;
  opacity: 0.85;
}

@media (max-width: 600px) {
  .overlay-text {
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    text-align: center;
  }
}
