:root {
  color-scheme: dark;
  --bg: #070809;
  --panel: #15191c;
  --text: #f7f4ee;
  --muted: #a9aaa8;
  --accent: #6ec6ff;
  --line: rgba(247, 244, 238, 0.14);
  --button: #f7f4ee;
  --button-ink: #070809;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(120% 80% at 50% 0%, #15191c 0%, #070809 58%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.deck-shell {
  width: min(100%, 1320px);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 42px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: clamp(14px, 2.5vh, 24px);
}

.heading {
  text-align: center;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 4.8vw, 64px);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: 0;
}

.subhead {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 1.8vw, 19px);
  line-height: 1.45;
  letter-spacing: 0;
}

.stage {
  min-height: 0;
  display: grid;
  place-items: center;
}

.slide-mount {
  width: min(100%, calc((100svh - 250px) * var(--slide-ratio, 1.777)));
  max-height: calc(100svh - 250px);
  aspect-ratio: var(--slide-aspect, 16 / 9);
  display: grid;
  place-items: center;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 36px 110px -46px rgba(0, 0, 0, 0.95);
}

.slide-mount img,
.slide-mount video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.slide-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

.slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-wrap {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: #000;
}

.full-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  width: 80%;
  height: 70%;
  left: 10%;
  top: 12%;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.confidentiality-footer {
  position: absolute;
  left: 1.2%;
  right: 5.6%;
  bottom: 2%;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  color: #111;
  font-size: clamp(7px, 0.78vw, 14px);
  line-height: 1.18;
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.8), 0 0 7px rgba(255, 255, 255, 0.65);
  pointer-events: none;
}

.confidentiality-page {
  color: rgba(0, 0, 0, 0.58);
  font-size: clamp(11px, 1.2vw, 20px);
}

.controls {
  min-height: 50px;
  display: grid;
  grid-template-columns: 96px minmax(90px, 1fr) 96px;
  gap: 12px;
  align-items: center;
  padding: 0;
  background: transparent;
}

button {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(247, 244, 238, 0.08);
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
}

button:hover {
  border-color: var(--accent);
}

button:disabled {
  opacity: 0.45;
  cursor: default;
}

.counter {
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

.actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-bottom: 2px;
}

.email-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 8px;
  background: var(--button);
  color: var(--button-ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 18px 46px -28px rgba(247, 244, 238, 0.65);
}

.next-link {
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  text-underline-offset: 4px;
}

.error {
  padding: 24px;
  color: #ffd1d1;
  text-align: center;
  line-height: 1.4;
}

@media (max-width: 720px) {
  .deck-shell {
    padding: 18px 12px 24px;
    gap: 14px;
  }

  .slide-mount {
    width: 100%;
    max-height: none;
    border-radius: 6px;
  }
}
