/* Tokens lifted from the approved "Midnight" welcome popup */
:root {
  --ink: #0D0C0A;
  --ink-2: #14110B;
  --cream: #FBF9F1;
  --cream-90: rgba(251, 249, 241, .9);
  --cream-78: rgba(251, 249, 241, .78);
  --cream-62: rgba(251, 249, 241, .62);
  --cream-45: rgba(251, 249, 241, .45);
  --cream-40: rgba(251, 249, 241, .4);
  --cream-22: rgba(251, 249, 241, .22);
  --cream-12: rgba(251, 249, 241, .12);
  --yellow: #F4E62B;
  --yellow-soft: #FBF48A;
  --orange: #EF7D00;
  --orange-hover: #FF9422;
  --pink: #FF6FAE;

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: Archivo, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --gutter: 16px;
  --frame-h: min(88vh, 860px);
}

@supports (height: 1svh) {
  :root { --frame-h: min(88svh, 860px); }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-wrap: pretty;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

.confetti {
  position: fixed;
  inset: 0;
  z-index: 100;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ---------- Shared popup pieces ---------- */

.panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.logo {
  height: 52px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  filter: invert(1);
}

.logo--small { height: 38px; max-width: 110px; }

.logo-text {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
}

.eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--cream-45);
}

.eyebrow--yellow { color: var(--yellow); font-size: 12.5px; }
.eyebrow + .headline { margin-top: -10px; }

.headline {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--serif);
  font-weight: 700;
}

.headline__top {
  font-size: clamp(38px, 11vw, 52px);
  line-height: 1.02;
  letter-spacing: -.01em;
}

/* "6 Shots of Joy" is ~6.3em wide in Playfair italic: size it to the screen so it stays on one line */
.headline__accent {
  font-style: italic;
  color: var(--yellow);
  font-size: clamp(36px, calc((100vw - 48px) / 6.6), 64px);
  line-height: 1.04;
  white-space: nowrap;
}

.headline--section .headline__top { font-size: clamp(34px, 9vw, 44px); }
.headline--section .headline__accent { font-size: clamp(36px, calc((100vw - 48px) / 6.8), 58px); }

.lede {
  max-width: 340px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -.01em;
  color: var(--cream-90);
}

.lede--muted {
  font-size: 16px;
  font-weight: 500;
  color: var(--cream-78);
}

.panel__actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.btn {
  width: 100%;
  padding: 17px 18px;
  border: none;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .18s, transform .18s;
}

.btn--primary { background: var(--orange); color: var(--ink-2); }
.btn--primary:hover { background: var(--orange-hover); }
.btn--primary:active { transform: scale(.98); }

.text-link {
  padding: 0;
  border: none;
  background: none;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--cream-62);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.text-link:hover { color: var(--cream); }

.dashes { display: flex; gap: 7px; }

.dash {
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--cream-22);
  transition: background .3s;
}

.dash.is-on { background: var(--yellow); }

.hint {
  margin-top: -10px;
  font-size: 13px;
  color: var(--cream-45);
}

.play-icon {
  position: relative;
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 8px rgba(244, 230, 43, .18), 0 10px 26px rgba(0, 0, 0, .4);
}

.play-icon::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -10px 0 0 -6px;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent var(--ink-2);
}

.play-icon--large { width: 76px; height: 76px; }
.play-icon--large::before { margin: -13px 0 0 -8px; border-width: 13px 0 13px 21px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(115% 62% at 50% 16%, rgba(244, 230, 43, .24) 0%, rgba(239, 125, 0, .10) 46%, rgba(13, 12, 10, 0) 76%);
}

.hero__panel {
  order: 1;
  padding: max(28px, env(safe-area-inset-top)) 24px 0;
}

.hero__product {
  position: relative;
  order: 2;
  flex: none;
  margin-top: auto;
  height: 260px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  padding-bottom: 22px;
  pointer-events: none;
}

.hero__product-glow {
  position: absolute;
  left: 50%;
  bottom: -40px;
  width: 400px;
  height: 330px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(244, 230, 43, .30) 0%, rgba(239, 125, 0, .14) 52%, rgba(13, 12, 10, 0) 100%);
}

.hero__bag {
  position: relative;
  height: 210px;
  width: auto;
  transform: rotate(-6deg);
  filter: brightness(1.22) contrast(1.08) drop-shadow(0 0 20px rgba(244, 230, 43, .4)) drop-shadow(0 16px 30px rgba(0, 0, 0, .5));
}

.hero__pieces {
  position: relative;
  height: 96px;
  width: auto;
  margin-bottom: 6px;
  transform: rotate(5deg);
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .45));
}

.hero__scrim {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 70%;
  background: linear-gradient(to bottom, #0D0C0A 0%, rgba(13, 12, 10, .55) 40%, rgba(13, 12, 10, 0) 100%);
}

/* Wide screens: the desktop popup's composition, bag on the left and copy on the right */
@media (min-width: 1080px) {
  .hero {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(48px, 7vw, 128px);
    padding: 56px 48px;
  }

  .hero__glow {
    background: radial-gradient(60% 80% at 64% 30%, rgba(244, 230, 43, .20) 0%, rgba(239, 125, 0, .08) 48%, rgba(13, 12, 10, 0) 78%);
  }

  .hero__panel {
    order: 1;
    max-width: 480px;
    margin: 0;
    padding: 0;
  }

  .hero .headline__top { font-size: 60px; }
  .hero .headline__accent { font-size: 72px; }
  .hero .lede { font-size: 18px; }

  .hero__product {
    order: 0;
    height: auto;
    margin: 0;
    padding: 0;
    gap: 0;
  }

  .hero__product-glow {
    left: 34%;
    bottom: -22%;
    width: 150%;
    height: 125%;
    background: radial-gradient(closest-side, rgba(244, 230, 43, .28) 0%, rgba(239, 125, 0, .13) 54%, rgba(13, 12, 10, 0) 100%);
  }

  .hero__bag {
    height: min(62vh, 560px);
    transform: rotate(-8deg);
    filter: brightness(1.2) contrast(1.08) drop-shadow(0 0 28px rgba(244, 230, 43, .34)) drop-shadow(0 26px 48px rgba(0, 0, 0, .55));
  }

  .hero__pieces {
    height: min(18vh, 162px);
    margin: 0 0 10px -34px;
    transform: rotate(6deg);
    filter: drop-shadow(0 18px 34px rgba(0, 0, 0, .5));
  }

  .hero__scrim { display: none; }
}

/* ---------- The shots ---------- */

.shots {
  position: relative;
  padding: 88px var(--gutter) 72px;
}

.section-head {
  max-width: 460px;
  margin: 0 auto 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

/* Wrapping rows that centre any leftover card (5 shots: 2-2-1 on phones, 3-2 on desktop) */
.shots__grid {
  --cols: 2;
  --gap: 12px;
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap);
}

@media (min-width: 720px) {
  .shots__grid { --cols: 3; --gap: 20px; }
}

.shot {
  position: relative;
  display: block;
  flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
  min-width: 0;
  aspect-ratio: 9 / 16;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--cream-12);
  border-radius: 22px;
  background: var(--ink-2);
  color: var(--cream);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
  .shot:not(.is-missing):hover {
    transform: translateY(-4px);
    border-color: rgba(244, 230, 43, .6);
    box-shadow: 0 24px 54px rgba(0, 0, 0, .5), 0 0 36px rgba(244, 230, 43, .16);
  }
  .shot:not(.is-missing):hover .play-icon { transform: scale(1.08); }
}

.shot__fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(100% 60% at 50% 30%, rgba(244, 230, 43, .22) 0%, rgba(239, 125, 0, .08) 50%, rgba(13, 12, 10, 0) 80%),
    var(--ink-2);
}

/* stands in for the face until a still or frame arrives */
.shot__initials {
  position: absolute;
  left: 0;
  right: 0;
  top: 42%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(40px, 10vw, 72px);
  line-height: 1;
  text-align: center;
  color: var(--yellow);
}

.shot__video,
.shot__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot__poster { opacity: 0; transition: opacity .35s ease; }
.shot.has-poster .shot__poster { opacity: 1; }

.shot::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(13, 12, 10, 0) 0%, rgba(13, 12, 10, .88) 100%);
  pointer-events: none;
}

.shot__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(13, 12, 10, .55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.shot__check {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink-2);
  transform: scale(0);
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
}

.shot.is-watched .shot__check { transform: scale(1); }

/* bottom corner, so it never sits on anyone's face */
.shot .play-icon {
  position: absolute;
  right: 10px;
  bottom: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  box-shadow: 0 0 0 5px rgba(244, 230, 43, .18), 0 8px 20px rgba(0, 0, 0, .4);
  transition: transform .25s ease;
}

.shot .play-icon::before {
  margin: -7px 0 0 -4px;
  border-width: 7px 0 7px 11px;
}

.shot__meta {
  position: absolute;
  left: 12px;
  right: 56px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

@media (min-width: 720px) {
  .shot .play-icon { right: 14px; bottom: 14px; width: 52px; height: 52px; }
  .shot .play-icon::before { margin: -9px 0 0 -6px; border-width: 9px 0 9px 15px; }
  .shot__meta { left: 16px; bottom: 16px; right: 80px; }
}

.shot.is-missing .shot__meta { right: 14px; }

.shot__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(17px, 4.4vw, 23px);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.shot__role,
.shot__status {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cream-62);
}

.shot__status { display: none; font-weight: 700; color: var(--yellow); }

.shot.is-missing {
  cursor: default;
  border-style: dashed;
  border-color: rgba(244, 230, 43, .35);
  box-shadow: none;
}

.shot.is-missing .shot__video,
.shot.is-missing .shot__poster,
.shot.is-missing .play-icon { display: none; }
.shot.is-missing .shot__status { display: block; }

/* ---------- In their own words ---------- */

.words { padding: 24px var(--gutter) 72px; }

.words__list {
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.quote {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 4px;
  border: none;
  border-top: 1px solid var(--cream-12);
  background: none;
  color: var(--cream);
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.quote:last-child { border-bottom: 1px solid var(--cream-12); }

.quote__avatar {
  position: relative;
  flex: none;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--ink-2);
  box-shadow: 0 0 0 2px var(--yellow), 0 0 0 5px rgba(244, 230, 43, .16);
}

.quote__avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.quote__initials {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 20px;
  color: var(--yellow);
}

.quote__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quote__text {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(19px, 5vw, 23px);
  line-height: 1.32;
}

.quote__who { display: flex; align-items: center; gap: 12px; }

.quote__name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--yellow);
}

.quote__watch {
  font-size: 12.5px;
  color: var(--cream-62);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (hover: hover) {
  .quote:hover .quote__watch { color: var(--cream); }
}

/* ---------- Look What You Created ---------- */

.work {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 72px 0 64px;
}

.work__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(90% 55% at 50% 62%, rgba(244, 230, 43, .13) 0%, rgba(239, 125, 0, .06) 46%, rgba(13, 12, 10, 0) 76%);
}

.work .section-head { margin-bottom: 24px; padding: 0 var(--gutter); }

/* Splide carousel (splide-core.css does the mechanics; the look is all here) */
.slider {
  --card: min(70vw, 300px);
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
}

.slider .splide__track { padding: 16px 0 20px; }

.slide {
  text-align: center;
  opacity: .45;
  transform: scale(.9);
  transition: opacity .4s ease, transform .4s ease;
  cursor: grab;
  user-select: none;
}

.slide.is-active { opacity: 1; transform: none; }
.slide:active { cursor: grabbing; }

.slider .splide__pagination {
  flex-wrap: nowrap;
  gap: 0;
  margin-top: 4px;
  padding: 0 var(--gutter);
}

.slider .splide__pagination li { flex: 0 1 28px; min-width: 0; }

/* tall invisible buttons around the popup's 3px dashes, so they're easy to tap */
.slider .splide__pagination__page {
  display: block;
  width: 100%;
  height: 22px;
  padding: 0 3px;
  border: none;
  background: none;
  cursor: pointer;
}

.slider .splide__pagination__page::before {
  content: '';
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--cream-22);
  transition: background .3s;
}

.slider .splide__pagination__page.is-active::before { background: var(--yellow); }

/* no Splide: a plain swipeable row */
.slider.is-fallback .splide__track { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slider.is-fallback .splide__list { gap: 16px; padding: 0 calc(50% - var(--card) / 2) !important; }
.slider.is-fallback .slide { width: var(--card); scroll-snap-align: center; opacity: 1; transform: none; }
.slider.is-fallback .slider__arrow { display: none; }

.slide__media {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 22px;
  background: var(--cream);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}

.slide.is-active .slide__media {
  box-shadow: 0 24px 54px rgba(0, 0, 0, .55), 0 0 44px rgba(244, 230, 43, .16);
}

.slide__media img { width: 100%; height: 100%; object-fit: cover; }

.slide__caption {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.slide__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
}

.slide__kind {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cream-62);
}


.slider__arrow {
  position: absolute;
  top: calc(16px + var(--card) / 2);
  z-index: 2;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  display: none;
  place-items: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(251, 249, 241, .12);
  color: var(--cream);
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background .18s;
}

.slider__arrow:hover { background: rgba(251, 249, 241, .24); }
.slider .splide__arrow--prev { left: calc(50% - var(--card) / 2 - 66px); }
.slider .splide__arrow--next { right: calc(50% - var(--card) / 2 - 66px); }

@media (min-width: 720px) {
  .slider__arrow { display: grid; }
  .slider .splide__track {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%);
  }
}

/* ---------- Reward ---------- */

.reward {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 96px 24px 80px;
}

.reward__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(90% 55% at 50% 28%, rgba(244, 230, 43, .17) 0%, rgba(239, 125, 0, .07) 46%, rgba(13, 12, 10, 0) 76%);
}

.code {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 20px;
  border: 1px dashed rgba(244, 230, 43, .75);
  border-radius: 8px;
  background: rgba(244, 230, 43, .08);
  cursor: pointer;
  transition: background .18s;
}

.code:hover { background: rgba(244, 230, 43, .14); }

.code__value {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--yellow);
}

.code__action {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cream-62);
}

.fine-print { margin-top: -6px; font-size: 14px; color: var(--cream-62); }
.fine-print--small { margin-top: 0; font-size: 12.5px; color: var(--cream-45); }

.signoff {
  max-width: 640px;
  margin: 80px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.signoff__names {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(22px, 5.5vw, 30px);
  line-height: 1.3;
  text-wrap: balance;
}

.signoff__pink { color: var(--pink); white-space: nowrap; }

.heart {
  display: inline-block;
  width: .8em;
  height: .8em;
  vertical-align: -.04em;
  color: var(--pink);
  transform-origin: 50% 60%;
  animation: heartbeat 1.6s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 50%, 100% { transform: scale(1); }
  12% { transform: scale(1.22); }
  24% { transform: scale(.96); }
  36% { transform: scale(1.12); }
}

.signoff__wish {
  margin-top: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(24px, 6.4vw, 32px);
  line-height: 1.2;
  color: var(--yellow);
}

/* ---------- Footer ---------- */

.footer {
  padding: 44px var(--gutter) max(44px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--cream-12);
  text-align: center;
}

.footer p {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cream-45);
}

/* ---------- Player ---------- */

.player {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
}

.player[hidden] { display: none; }
.player:focus { outline: none; }

.player__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 50% 40%, rgba(244, 230, 43, .16) 0%, rgba(239, 125, 0, .07) 46%, rgba(13, 12, 10, 0) 76%);
  pointer-events: none;
}

.player__frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  touch-action: manipulation;
  cursor: pointer;
}

@media (min-width: 720px) {
  .player__frame {
    width: auto;
    height: var(--frame-h);
    aspect-ratio: 9 / 16;
    border-radius: 26px;
    box-shadow: 0 28px 64px rgba(0, 0, 0, .6), 0 0 0 1px var(--cream-12);
  }
}

.player__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.player__video.is-landscape { object-fit: contain; }

.player__top {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 3;
  padding: max(12px, env(safe-area-inset-top)) 14px 40px;
  background: linear-gradient(to bottom, rgba(13, 12, 10, .72) 0%, rgba(13, 12, 10, 0) 100%);
  pointer-events: none;
}

.player__top button { pointer-events: auto; }

.player__bars { display: flex; gap: 4px; }

.player__bar {
  position: relative;
  flex: 1;
  height: 3px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(251, 249, 241, .3);
}

.player__bar i {
  position: absolute;
  inset: 0;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
}

.player__bar.is-done i { transform: scaleX(1); }
.player__bar.is-missing { opacity: .35; }

.player__head {
  margin-top: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.player__who {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.player__count {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--yellow);
}

.player__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.15;
}

.player__role {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cream-62);
}

.player__role:empty { display: none; }

.player__actions { flex: none; display: flex; gap: 8px; }

.icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(251, 249, 241, .14);
  color: var(--cream);
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background .18s;
}

.icon-btn:hover { background: rgba(251, 249, 241, .26); }

.icon-sound-off { display: none; }
.player.is-muted .icon-sound-on { display: none; }
.player.is-muted .icon-sound-off { display: block; }

.sound-chip {
  display: block;
  margin: 14px auto 0;
  padding: 9px 16px;
  border: none;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
}

.sound-chip[hidden] { display: none; }

.player__bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 56px 22px max(24px, env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(13, 12, 10, .78), rgba(13, 12, 10, 0));
  pointer-events: none;
}

.player__bottom[hidden] { display: none; }

.player__note {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.3;
  text-align: center;
  text-wrap: balance;
}

.player__paused {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}

.player.is-paused .player__paused { opacity: 1; }

.player__spinner {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border: 3px solid rgba(251, 249, 241, .18);
  border-top-color: var(--yellow);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  animation: spin .8s linear infinite;
}

.player.is-loading .player__spinner { opacity: 1; }
.player.is-loading .player__paused { opacity: 0; }

@keyframes spin { to { transform: rotate(360deg); } }

.player__arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  display: grid;
  place-items: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(13, 12, 10, .4);
  color: var(--cream);
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background .18s, opacity .18s;
}

.player__arrow:hover { background: rgba(251, 249, 241, .22); }
.player__arrow:disabled { opacity: .3; cursor: default; }

/* phones: bottom corners, clear of faces */
.player__arrow--prev { left: 12px; }
.player__arrow--next { right: 12px; }

@media (max-width: 719px) {
  .player__arrow { top: auto; bottom: max(20px, env(safe-area-inset-bottom)); margin-top: 0; }
  .player__bottom { padding-left: 64px; padding-right: 64px; }
  .player__note { font-size: 16px; }
}

@media (min-width: 720px) {
  .player__arrow {
    width: 48px;
    height: 48px;
    margin-top: -24px;
    background: rgba(251, 249, 241, .1);
  }
  .player__arrow--prev { left: auto; right: calc(50% + var(--frame-h) * 9 / 32 + 24px); }
  .player__arrow--next { left: calc(50% + var(--frame-h) * 9 / 32 + 24px); }
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 60;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .4);
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}

.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .player__spinner { animation-duration: 2s; }
  .heart { animation: none; }
}
