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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background: #000;
}

/* ===================== LOCK SCREEN ===================== */
#lock-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#lock-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.lock-box {
  text-align: center;
  color: #fff;
  padding: 40px 30px;
  width: 90%;
  max-width: 360px;
  animation: fadeInUp 0.8s ease;
}

.lock-heart {
  font-size: 48px;
  color: #ff6b81;
  margin-bottom: 10px;
  animation: pulse 1.6s ease-in-out infinite;
}

.lock-box h1 {
  font-weight: 300;
  font-size: 24px;
  margin-bottom: 24px;
  letter-spacing: 1px;
}

#password-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: none;
  outline: none;
  font-size: 16px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-align: center;
  letter-spacing: 2px;
}

#password-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: normal;
}

#unlock-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: #ff6b81;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.15s ease;
}

#unlock-btn:hover {
  background: #ff4f68;
}

#unlock-btn:active {
  transform: scale(0.97);
}

#lock-error {
  margin-top: 14px;
  font-size: 13px;
  color: #ff8080;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#lock-error.show {
  opacity: 1;
}

/* ===================== SLIDESHOW ===================== */
#slideshow {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: #000;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.slide.active {
  opacity: 1;
}

#overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.35) 0%,
    rgba(0,0,0,0) 25%,
    rgba(0,0,0,0) 65%,
    rgba(0,0,0,0.55) 100%
  );
}

/* ===================== CONTENT / TIMER ===================== */
#content {
  position: fixed;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  padding-bottom: 60px;
}

#timer-box {
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  animation: fadeIn 1.2s ease;
}

#timer-label {
  font-size: 15px;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 12px;
  font-weight: 300;
}

#timer {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.time-unit span {
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.time-unit small {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.75;
  font-weight: 300;
}

/* ===================== DOTS (slide indicators) ===================== */
#dots {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transition: background 0.4s ease, transform 0.4s ease;
}

.dot.active {
  background: rgba(255,255,255,0.95);
  transform: scale(1.3);
}

/* ===================== ANIMATIONS ===================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

/* ===================== MOBILE ===================== */
@media (max-width: 600px) {
  .time-unit {
    min-width: 44px;
  }
  .time-unit span {
    font-size: 24px;
  }
  .time-unit small {
    font-size: 9px;
  }
  #timer {
    gap: 10px;
  }
  #timer-label {
    font-size: 12px;
    letter-spacing: 2px;
  }
  #content {
    padding-bottom: 40px;
  }
  .lock-box h1 {
    font-size: 20px;
  }
}
