:root {
  color-scheme: dark;
  background: #100911;
  color: #fcdfd9;
  font: 100% system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; }
button { font: inherit; color: inherit; }

.show {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: 100vh;
  height: 100svh;
  min-height: 240px;
  background: radial-gradient(ellipse at 50% 46%, #261221, #100911 57%, #080609 100%);
}

.stage, .layer, .glimmer, .vignette { position: absolute; inset: 0; }
.stage { overflow: hidden; }
.layer {
  overflow: hidden;
  opacity: 0;
  background: radial-gradient(ellipse at 50% 46%, var(--light), var(--shade) 62%, #080609 100%);
}
.lilies { --light: #241123; --shade: #100a13; }
.bouquet { --light: #211321; --shade: #100910; }
.portrait-one { --light: #2b1919; --shade: #110b10; }
.portrait-two { --light: #2b191c; --shade: #100a12; }
.layer canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.layer img {
  position: absolute;
  display: block;
  max-width: none;
  user-select: none;
  pointer-events: none;
}
.portrait-one img {
  mask-image: radial-gradient(ellipse 66% 53% at 51% 56%, #000 68%, #000d 84%, transparent 100%);
}
.portrait-two img {
  mask-image: linear-gradient(to bottom, #000 85%, transparent 100%);
}

.vignette {
  pointer-events: none;
  background: linear-gradient(to bottom, #09060980, transparent 19%, transparent 78%, #090609d9);
}
.glimmer {
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse at 52% 47%, #f5b2ab54, transparent 62%);
  mix-blend-mode: screen;
}
.dedication {
  position: absolute;
  inset: max(22px, calc(env(safe-area-inset-top) + 10px)) 0 auto;
  display: grid;
  place-items: center;
  pointer-events: none;
}
h1 {
  margin: 0;
  color: #ffe3df;
  font-family: Baskerville, 'Palatino Linotype', 'Times New Roman', serif;
  font-size: clamp(2.15rem, 3.8vw, 3.3rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -.025em;
  line-height: 1;
  text-shadow: 0 2px 28px #df768d55;
}
.player {
  position: absolute;
  inset: auto 0 max(12px, env(safe-area-inset-bottom)) 0;
  display: grid;
  justify-items: center;
}
.steps, .transport { display: flex; align-items: center; }
.steps { gap: 5px; }
.transport { gap: 9px; }
.step, .round {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.step { width: 44px; height: 44px; border-radius: 12px; }
.step span {
  position: relative;
  width: 100%;
  height: 3px;
  border-radius: 4px;
  background: #f8c6ce52;
  overflow: hidden;
}
.step span::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #ffd2d7;
  border-radius: inherit;
  transform-origin: left center;
  transform: scaleX(var(--progress, 0));
}
.step[aria-current] span { background: #f8c6ce8a; }
.round {
  width: 44px;
  height: 44px;
  border: 1px solid #ffd4db43;
  border-radius: 50%;
  background: #21131cd6;
}
.round i { display: block; }
.previous i, .next i {
  width: 8px;
  height: 8px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateX(1px) rotate(135deg);
}
.next i { transform: translateX(-1px) rotate(-45deg); }
.playback i {
  width: 9px;
  height: 11px;
  border-inline: 2px solid currentColor;
}
.playback.is-paused i {
  width: 0;
  height: 0;
  margin-left: 2px;
  border: solid transparent;
  border-width: 5px 0 5px 8px;
  border-left-color: currentColor;
}
button:focus-visible { outline: 2px solid #ffe3df; outline-offset: 3px; }
@media (hover: hover) {
  .round:hover { background: #402531; border-color: #ffd4db9e; }
  .step:hover span { background: #f8c6cea3; }
}
@media (max-height: 540px) and (orientation: landscape) {
  .dedication { inset: max(14px, env(safe-area-inset-top)) auto auto max(18px, env(safe-area-inset-left)); }
  h1 { font-size: 2.1rem; }
  .player { inset: auto max(18px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) auto; }
}
@media (prefers-reduced-motion: reduce) {
  .glimmer, #playback { display: none; }
  .step[aria-current] span { background: #ffd2d7; }
}

.static-portrait {
  position: absolute;
  inset: 9% 12%;
  width: 76%;
  height: 82%;
  object-fit: contain;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
