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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  color: #fff;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  user-select: none;
  -webkit-user-select: none;
}

#frame {
  position: absolute;
  inset: 0;
}

.photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.8s ease;
  -webkit-user-drag: none;
  user-drag: none;
}

.photo.visible {
  opacity: 1;
}

#overlay {
  position: absolute;
  bottom: 36px;
  right: 44px;
  text-align: right;
  text-shadow: 0 2px 14px rgba(0,0,0,0.7);
  opacity: 1;
  transition: opacity 0.4s ease;
}

#overlay.hidden {
  opacity: 0;
}

#caption {
  position: absolute;
  bottom: 36px;
  left: 44px;
  max-width: 55%;
  font-size: 20px;
  line-height: 1.4;
  white-space: pre-line;
  text-shadow: 0 2px 14px rgba(0,0,0,0.8);
  opacity: 1;
  transition: opacity 0.4s ease;
}

#caption.hidden {
  opacity: 0;
}

#pause-indicator {
  position: absolute;
  top: 28px;
  left: 28px;
  background: rgba(0,0,0,0.55);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 15px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#pause-indicator.visible {
  opacity: 1;
}

#clock {
  font-size: 48px;
  font-weight: 600;
}

#date {
  font-size: 20px;
  color: #e6e6e6;
}

#status-line {
  position: absolute;
  bottom: 12px;
  left: 16px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}
