:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #2b0f24, #4a1942, #1a0a2e);
  font-family: "Cormorant Garamond", serif;
}

.slideshow {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
}

.slide.visible {
  opacity: 1;
}

.scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.55) 100%);
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  pointer-events: none;
  padding: 24px;
}

.since {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: clamp(16px, 2.4vw, 26px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  margin-bottom: 18px;
}

.counter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(16px, 4vw, 48px);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

.counter .unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
}

.counter .unit .value {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(36px, 8vw, 88px);
  line-height: 1;
}

.counter .unit .label {
  margin-top: 6px;
  font-size: clamp(12px, 1.6vw, 18px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}

.counter .clock {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(28px, 6vw, 64px);
  font-variant-numeric: tabular-nums;
  opacity: 0.95;
}

.plus-btn {
  position: fixed;
  right: clamp(16px, 4vw, 36px);
  bottom: clamp(16px, 4vw, 36px);
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, background 0.2s ease;
}

.plus-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.08);
}

.plus-btn:active {
  transform: scale(0.95);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: rgba(10, 4, 12, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  width: 100%;
  max-width: 340px;
  background: linear-gradient(160deg, #3a1533, #24101f);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  color: #fff;
  font-family: "Cormorant Garamond", serif;
}

.modal-title {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 19px;
  text-align: center;
  margin-bottom: 18px;
}

.modal-input {
  width: 100%;
  font-size: 18px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: none;
  text-align: center;
  letter-spacing: 0.15em;
}

.modal-input:focus {
  border-color: rgba(255, 255, 255, 0.5);
}

.modal-error {
  margin-top: 10px;
  text-align: center;
  color: #ff9fb2;
  font-size: 14px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.modal-btn {
  flex: 1;
  padding: 10px 0;
  border-radius: 10px;
  border: none;
  font-family: "Cormorant Garamond", serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.modal-btn:active {
  transform: scale(0.96);
}

.modal-btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.modal-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

.modal-btn-primary {
  background: #e8a1c4;
  color: #2b0f24;
}

.modal-btn-primary:hover {
  background: #f0b3d1;
}
