:root {
  color-scheme: dark;
  --fade-time: 1800ms;
  --overlay: rgba(8, 6, 6, 0.58);
  --text: #fff9f0;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: #080606;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.slideshow {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 4vw, 56px);
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 246, 226, 0.11), transparent 34rem),
    #080606;
}

.save-card {
  width: min(94vw, 980px);
  height: min(94vh, 900px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(18px, 3vh, 32px);
}

.title-block {
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.title-block h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 7vw, 5.8rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.04em;
}

.title-block p {
  margin: 12px 0 0;
  font-size: clamp(1rem, 2.4vw, 1.45rem);
  letter-spacing: 0.38em;
}

.photo-frame {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 249, 240, 0.62);
  border-radius: 6px;
  background: rgba(255, 249, 240, 0.06);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.48),
    inset 0 0 0 10px rgba(255, 249, 240, 0.06);
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: clamp(12px, 2vw, 24px);
  object-fit: contain;
  opacity: 0;
  transition: opacity 1800ms ease-in-out;
  filter: saturate(0.96) contrast(1.02);
}

.slide.is-visible {
  opacity: 1;
}

.start-screen {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: grid;
  gap: 18px;
  place-items: center;
  align-content: center;
  background: rgba(8, 6, 6, 0.18);
  transition: opacity 700ms ease, visibility 700ms ease;
}

.start-screen.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.start-hint {
  margin: 0;
  font-size: clamp(1rem, 2.7vw, 1.35rem);
  letter-spacing: 0.08em;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.62);
}

.start-button {
  min-width: 168px;
  border: 1px solid rgba(255, 249, 240, 0.72);
  border-radius: 999px;
  padding: 16px 28px;
  background: rgba(255, 249, 240, 0.12);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.42);
}

.start-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.start-button:hover {
  background: rgba(255, 249, 240, 0.2);
}

.start-button:focus-visible {
  outline: 3px solid rgba(255, 249, 240, 0.85);
  outline-offset: 5px;
}

@media (prefers-reduced-motion: reduce) {
  .slide,
  .start-screen {
    transition: none;
  }
}
