/* The finale and its export previews share one palette per atmosphere. */
.sf-overlay {
  color-scheme: dark;
  --sf-base: #160a13;
  --sf-ink: #fff2e4;
  --sf-muted: #e4c7bc;
  --sf-gold: #f2c497;
  --sf-edge: #c48d687d;
  --sf-focus: #ffe1ad;
  --sf-plate: #321927;
  --sf-plate-deep: #23101c;
  --sf-control: #351d2a;
  --sf-ghost: #fdcca019;
  --sf-shadow: #10040b8a;
  --sf-cta: linear-gradient(145deg, #ffe1b9, #efb68c 59%, #d89876);
  --sf-cta-ink: #3f1725;
  --sf-veil: linear-gradient(90deg, #1b0c17 0%, #1b0c17ed 23%, #1b0c17bc 41%, #1b0c172a 65%, transparent 86%);
  --sf-floor: linear-gradient(0deg, #1b0c17 0%, #1b0c1780 19%, #1b0c1703 52%);
  --sf-phone-veil: linear-gradient(0deg, #21101a 3%, #21101a 26%, #21101ada 43%, #21101a30 64%, transparent 81%);
  --sf-scene: url('/brand/finale-keepsake-dark-20261129.webp');
  --sf-tarot-back: url('/brand/tarot-back-dark.webp');
  --sf-serif: 'Cormorant Garamond', Georgia, serif;
  --sf-sans: Manrope, system-ui, sans-serif;
  position: fixed;
  z-index: 1800;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  background: radial-gradient(ellipse at 67% 19%, var(--sf-plate), var(--sf-base) 74%);
  color: var(--sf-ink);
  font: 550 15px/1.5 var(--sf-sans);
}

.sf-overlay[data-theme="light"] {
  color-scheme: light;
  --sf-base: #faeadc;
  --sf-ink: #43232e;
  --sf-muted: #69444b;
  --sf-gold: #81523f;
  --sf-edge: #a96f517b;
  --sf-focus: #7d354c;
  --sf-plate: #fff6eb;
  --sf-plate-deep: #f1d9cc;
  --sf-control: #fff3e7;
  --sf-ghost: #90413112;
  --sf-shadow: #5e263c36;
  --sf-cta: linear-gradient(138deg, #a54e63, #89374f 61%, #74374a);
  --sf-cta-ink: #fff4ed;
  --sf-veil: linear-gradient(90deg, #f8e6d8 0%, #f8e6d8f8 23%, #f8e6d8c9 41%, #f8e6d837 66%, transparent 86%);
  --sf-floor: linear-gradient(0deg, #f9e7db 0%, #f9e7db8a 19%, #f9e7db03 53%);
  --sf-phone-veil: linear-gradient(0deg, #fae9df 4%, #fae9df 26%, #fae9dfe3 44%, #fae9df42 64%, transparent 81%);
  --sf-scene: url('/brand/finale-keepsake-light-20261129.webp');
  --sf-tarot-back: url('/brand/tarot-back-light.webp');
}

#endScreen.sf-visible > .c-dossier { display: none !important; }
body:has(#endScreen.sf-visible) :is(.scene-control-cluster,.commercial-entry) { visibility: hidden !important; pointer-events: none; }
.sf-overlay *, .sf-overlay *::before, .sf-overlay *::after { box-sizing: border-box; }
.sf-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sf-overlay[hidden], .sf-overlay [hidden], dialog.sf-overlay:not([open]) { display: none !important; }
.sf-overlay::backdrop { background: var(--sf-base); }
.sf-overlay :where(button, a, input, summary):focus-visible {
  outline: 2px solid var(--sf-focus);
  outline-offset: 3px;
}
.sf-overlay :where(button, a)[aria-disabled="true"], .sf-overlay button:disabled { opacity: .57; cursor: default; }
.sf-overlay button {
  appearance: none;
  margin: 0;
  color: inherit;
  font: inherit;
  text-transform: none;
  cursor: pointer;
}
.sf-overlay a { color: inherit; text-decoration: none; }
.sf-overlay .sf-icon, .sf-overlay button svg, .sf-overlay a svg {
  display: block;
  flex: none;
  width: 18px;
  height: 18px;
}

.sf-shell { width: min(100% - 64px, 1280px); margin-inline: auto; padding-bottom: 22px; }
.sf-overlay[data-view="poster"] .sf-shell,
.sf-overlay[data-view="video"] .sf-shell,
.sf-shell:has(.sf-gallery) { width: min(100% - 52px, 1155px); }

.sf-topbar {
  min-height: 74px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.sf-topbar--preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}
.sf-topbar:not(.sf-topbar--preview) > .sf-ctrls:empty { display: none; }
.sf-topbar--preview > :first-child { justify-self: start; }
.sf-topbar--preview > :last-child { justify-self: end; }
.sf-brand { display: block; width: 72px; height: 56px; object-fit: contain; object-position: left center; }
.sf-overlay[data-theme="light"] .sf-brand { width: 112px; }
.sf-topbar--preview .sf-brand { object-position: center; }
.sf-ctrls, .sf-end-links { display: flex; align-items: center; gap: 7px; min-width: 0; }

.sf-overlay :is(.sf-primary,.sf-secondary,.sf-icon-btn),
.sf-overlay .sf-ctrls button,
.sf-overlay .sf-end-links button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid var(--sf-edge);
  border-radius: 12px;
  background: var(--sf-control);
  color: var(--sf-ink);
  box-shadow: inset 0 1px #fff2d225;
  font: 740 13px/1.25 var(--sf-sans);
  text-align: center;
  overflow-wrap: anywhere;
}
.sf-overlay .sf-icon-btn, .sf-overlay .sf-ctrls .sf-icon-btn { flex: none; width: 44px; min-width: 44px; height: 44px; padding: 0; }
.sf-overlay button.sf-icon-btn.salon-fullscreen {
  padding: 0 !important;
  border-radius: 12px !important;
  border-color: var(--sf-edge) !important;
  background: var(--sf-control) !important;
  color: var(--sf-ink) !important;
}
.sf-overlay button.sf-icon-btn.salon-fullscreen svg { width: 18px !important; height: 18px !important; }
.sf-topbar--preview [data-sf="back"] > span:first-child { font-size: 18px; font-weight: 500; line-height: 1; }
.sf-overlay .sf-ctrls button[aria-pressed="true"] { color: var(--sf-gold); border-color: var(--sf-gold); }
.sf-overlay .sf-primary {
  justify-content: space-between;
  gap: 13px;
  min-height: 51px;
  padding-inline: 16px;
  background: var(--sf-cta);
  color: var(--sf-cta-ink);
  font-weight: 800;
  font-size: 15px;
  box-shadow: inset 0 1px 2px #ffead3ba, 0 9px 23px var(--sf-shadow);
}
.sf-overlay .sf-primary:not(:has(svg, [aria-hidden])) { justify-content: center; }
.sf-overlay .sf-secondary { background: var(--sf-ghost); }
.sf-overlay :is(.sf-primary,.sf-secondary,.sf-icon-btn,.sf-ctrls button,.sf-end-links button):not(:disabled):active {
  transform: translateY(1px);
}
@media (hover: hover) {
  .sf-overlay :is(.sf-secondary,.sf-icon-btn,.sf-ctrls button,.sf-end-links button):not(:disabled):hover { border-color: var(--sf-gold); }
  .sf-overlay .sf-primary:not(:disabled):hover { filter: brightness(1.08); }
}

.sf-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(460px, 57dvh, 568px);
  overflow: hidden;
  border: 1px solid var(--sf-edge);
  border-radius: 24px;
  background: var(--sf-plate-deep);
  box-shadow: 0 24px 62px var(--sf-shadow);
}
.sf-hero::before, .sf-hero::after, .sf-hero-art { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sf-hero::before { content: ''; z-index: -3; background: var(--sf-scene) center 19% / cover no-repeat; }
.sf-hero::after { content: ''; z-index: -1; background: var(--sf-floor), var(--sf-veil); }
.sf-hero-art { z-index: -2; object-fit: cover; object-position: center 19%; }
.sf-hero-copy { width: min(53%, 620px); min-width: 0; padding: clamp(24px, 4dvh, 48px) 0 clamp(26px, 4dvh, 50px) clamp(25px, 5.7vw, 73px); }
.sf-eyebrow {
  margin: 0 0 20px;
  color: var(--sf-gold);
  font: 790 11px/1.35 var(--sf-sans);
  text-transform: uppercase;
  letter-spacing: .16em;
}
.sf-hero h1 {
  margin: 0;
  max-width: 9ch;
  color: var(--sf-ink);
  font: 680 clamp(62px, 7.9vw, 112px)/.83 var(--sf-serif);
  letter-spacing: -.047em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.sf-hero h1 em { display: block; color: var(--sf-gold); font-style: normal; }
.sf-praise { max-width: 42ch; margin: 18px 0; color: var(--sf-ink); font: 610 clamp(14px, 1.32vw, 17px)/1.48 var(--sf-sans); text-wrap: pretty; }
.sf-hero .sf-primary { width: min(100%, 288px); }

.sf-stats {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  width: min(100%, 440px);
  margin: 0 0 21px;
  padding-block: 9px;
  border-block: 1px solid var(--sf-edge);
  background: linear-gradient(95deg, var(--sf-ghost), transparent);
  font-variant-numeric: tabular-nums;
}
.sf-stats > div { display: grid; grid-template-rows: auto 1fr; align-content: start; min-width: 0; padding: 1px 10px; }
.sf-stats > div + div { border-left: 1px solid var(--sf-edge); }
.sf-stats:has(> :nth-child(4)) { grid-template-columns: repeat(3,minmax(0,1fr)); grid-auto-flow: row; }
.sf-stats:has(> :nth-child(4)) > :nth-child(n + 4) { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--sf-edge); }
.sf-stats > :nth-child(4) { border-left: 0; }
.sf-stats dt { grid-row: 2; color: var(--sf-muted); font: 690 11px/1.25 var(--sf-sans); text-wrap: pretty; }
.sf-stats dd { grid-row: 1; margin: 0 0 4px; color: var(--sf-gold); font: 630 clamp(28px, 3.45vw, 42px)/.98 var(--sf-serif); overflow-wrap: anywhere; }
.sf-stats dd span { font-size: .64em; }

.sf-keepsakes { margin-top: 19px; }
.sf-keepsakes h2 { margin: 0 0 11px; color: var(--sf-ink); font: 690 33px/.97 var(--sf-serif); letter-spacing: -.022em; }
.sf-tray { display: grid; grid-template-columns: 1.36fr 1fr 1fr; gap: 12px; }
.sf-tile {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
  min-height: 139px;
  overflow: hidden;
  padding: 14px 15px 13px;
  border: 1px solid var(--sf-edge);
  border-radius: 15px;
  background: linear-gradient(142deg, var(--sf-plate), var(--sf-plate-deep));
  box-shadow: inset 0 1px #fff4df30, 0 8px 21px color-mix(in srgb, var(--sf-shadow) 38%, transparent);
}
.sf-tile h3 { margin: 0; color: var(--sf-ink); font: 680 clamp(23px, 2.4vw, 34px)/.96 var(--sf-serif); letter-spacing: -.02em; }
.sf-tile p { max-width: 34ch; margin: 0 0 5px; color: var(--sf-muted); font: 600 12px/1.35 var(--sf-sans); }
.sf-tile :is(.sf-primary,.sf-secondary) { margin-top: auto; padding-inline: 10px; font-size: 12px; }
.sf-tile--film { padding-right: clamp(104px, 11vw, 156px); }
.sf-film-still {
  position: absolute;
  z-index: -1;
  inset: 9px 10px 9px auto;
  width: clamp(80px, 9.1vw, 137px);
  overflow: hidden;
  border: 1px solid var(--sf-edge);
  border-radius: 9px;
  background: var(--sf-scene) 66% 50% / cover no-repeat;
  box-shadow: 0 8px 19px var(--sf-shadow);
}
.sf-film-still img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 69% 48%; }
img.sf-film-still { height: calc(100% - 18px); object-fit: cover; object-position: 69% 48%; }
.sf-film-still span {
  position: absolute;
  inset: auto 5px 5px auto;
  padding: 2px 5px;
  border-radius: 4px;
  background: #210d18d9;
  color: #fff4e4;
  font: 760 10px/1.4 var(--sf-sans);
}
.sf-tile--personal { padding-right: clamp(41px, 5.8vw, 81px); }
.sf-deck-teaser {
  position: absolute;
  z-index: -1;
  inset: 18px -13px auto auto;
  width: 68px;
  height: 136px;
  border: 1px solid var(--sf-edge);
  border-radius: 7px;
  background: var(--sf-tarot-back) center / cover no-repeat;
  object-fit: cover;
  transform: rotate(14deg);
  opacity: .55;
  box-shadow: 0 7px 22px var(--sf-shadow);
}
.sf-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 14px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--sf-edge);
}
.sf-footer :is(.sf-moments, [data-sf="notes"]) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 5px 0;
  border: 0;
  background: none;
  color: var(--sf-gold);
  font-size: 13px;
  font-weight: 760;
}

.sf-footer > .sf-actions { display: flex; flex-wrap: wrap; margin: 0; }
.sf-footer .sf-actions > .sf-secondary { width: auto; }
#endScreen .sf-return {
  min-height: 38px;
  padding: 6px 12px;
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 2;
  border-radius: 10px;
  font: 730 12px/1.25 Manrope, system-ui, sans-serif;
  white-space: nowrap;
}

/* The keepsake player borrows the deck's velvet and pearl finishes. */
.sf-overlay:has(.sf-gallery) {
  --sf-base: #18080c;
  --sf-ink: #fff1df;
  --sf-muted: #e8c8b8;
  --sf-gold: #f2c997;
  --sf-edge: #c18b5c8a;
  --sf-plate: #3a1720;
  --sf-plate-deep: #210b12;
  --sf-control: #4b1c27;
  --sf-ghost: #fbd3a71c;
  --sf-shadow: #0e0306a2;
  --sf-cta: linear-gradient(145deg, #ffdfac, #efb889 57%, #d98f68);
  --sf-cta-ink: #3d1520;
  --sf-menu-frame: url('/brand/finale-menu-frame-dark-20261129.webp');
  --sf-menu-scene: url('/brand/tarot-bg-dark.webp');
  --sf-menu-veil: radial-gradient(ellipse at 50% 40%, #3a121780, #110408db 77%);
  background: var(--sf-menu-veil), var(--sf-menu-scene) center / cover;
}
.sf-overlay[data-theme="light"]:has(.sf-gallery) {
  --sf-base: #f1dfcc;
  --sf-ink: #48262d;
  --sf-muted: #694848;
  --sf-gold: #75462f;
  --sf-edge: #ad795d85;
  --sf-plate: #fff6e8;
  --sf-plate-deep: #f3ddc9;
  --sf-control: #fff8ed;
  --sf-ghost: #94553314;
  --sf-shadow: #5729394d;
  --sf-cta: linear-gradient(138deg, #a25062, #88384e 56%, #713347);
  --sf-cta-ink: #fff5e9;
  --sf-menu-frame: url('/brand/finale-menu-frame-light-20261129.webp');
  --sf-menu-scene: url('/brand/tarot-bg-light.webp');
  --sf-menu-veil: radial-gradient(ellipse at 52% 34%, #fff1e2c4, #f4dcca9e 80%);
}
.sf-gallery {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(314px, 418px);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--sf-edge);
  border-radius: 23px;
  background: linear-gradient(145deg, var(--sf-plate), var(--sf-plate-deep));
  box-shadow: 0 21px 67px var(--sf-shadow);
}
.sf-gallery::after {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  border: 39px solid transparent;
  border-image: var(--sf-menu-frame) 17% stretch;
  pointer-events: none;
}
.sf-stage {
  display: grid;
  place-items: center;
  grid-area: 1 / 1;
  min-width: 0;
  min-height: min(750px, calc(100dvh - 98px));
  padding: 22px;
  background: radial-gradient(ellipse at 50% 39%, var(--sf-plate), var(--sf-base) 78%);
}
.sf-media {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-areas: 'media';
  width: min(100%, 340px, 36dvh);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid var(--sf-edge);
  border-radius: 14px;
  background: var(--sf-plate-deep);
  box-shadow: 0 0 0 3px var(--sf-ghost), 0 0 0 4px var(--sf-edge), 0 13px 37px var(--sf-shadow);
}
.sf-media > :is(img,video,canvas) { grid-area: media; display: block; width: 100%; height: 100%; min-height: 0; min-width: 0; object-fit: contain; }
.sf-media .sf-placeholder { grid-area: media; }
.sf-media img.sf-placeholder { object-fit: cover; object-position: 67% 38%; }
.sf-overlay .sf-play {
  z-index: 2;
  grid-area: media;
  place-self: center;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 1px solid #ffdbab;
  border-radius: 50%;
  background: #2c1124d9;
  color: #fff0df;
  box-shadow: inset 0 1px #fff0d377, 0 12px 28px #1907178c;
  backdrop-filter: blur(7px);
}
.sf-overlay .sf-play svg { width: 26px; height: 26px; }
.sf-timeline {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 10px 5px;
  background: linear-gradient(transparent, #180914ee);
  color: #fff4e7;
  font: 740 10px/1 var(--sf-sans);
  font-variant-numeric: tabular-nums;
}
.sf-timeline input { width: 100%; min-width: 0; min-height: 26px; accent-color: #efba90; }

.sf-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  grid-area: 1 / 2;
  min-width: 0;
  min-height: 0;
  padding: clamp(23px, 3.25vw, 46px);
  border-left: 1px solid var(--sf-edge);
}
.sf-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; padding: 4px; border: 1px solid var(--sf-edge); border-radius: 13px; background: var(--sf-ghost); }
.sf-overlay .sf-tabs :is(button,a) {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: none;
  color: var(--sf-ink);
  font: 740 14px/1.25 var(--sf-sans);
  text-align: center;
}
.sf-overlay .sf-tabs :is([aria-current="page"],[aria-pressed="true"],[aria-selected="true"]) {
  border-color: var(--sf-edge);
  background: var(--sf-control);
  color: var(--sf-gold);
  box-shadow: 0 3px 11px var(--sf-shadow);
}
.sf-panel h1 {
  margin: clamp(29px, 5.3dvh, 51px) 0 12px;
  color: var(--sf-ink);
  font: 700 clamp(48px, 5vw, 71px)/.87 var(--sf-serif);
  letter-spacing: -.045em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.sf-panel .sf-note { margin: 0; max-width: 40ch; color: var(--sf-muted); font: 620 14px/1.48 var(--sf-sans); }
.sf-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; padding: 0; list-style: none; }
.sf-meta :is(li,span) { padding: 4px 9px; border: 1px solid var(--sf-edge); border-radius: 999px; background: var(--sf-ghost); color: var(--sf-gold); font: 800 11px/1.28 var(--sf-sans); font-variant-numeric: tabular-nums; }
.sf-scenes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; margin: 0 0 15px; }
.sf-overlay .sf-scenes button {
  display: grid;
  align-content: center;
  justify-content: stretch;
  gap: 3px;
  min-width: 0;
  min-height: 44px;
  padding: 7px 8px;
  border: 1px solid var(--sf-edge);
  border-radius: 9px;
  background: var(--sf-plate);
  color: var(--sf-ink);
  font: 720 11px/1.3 var(--sf-sans);
  text-align: left;
  overflow-wrap: anywhere;
}
.sf-scenes img { display: block; width: 100%; aspect-ratio: 1.25; object-fit: cover; object-position: center 32%; border-radius: 5px; margin-bottom: 5px; }
.sf-scenes :is(small,span) { display: block; padding-inline: 3px; }
.sf-scenes small { padding: 0; color: var(--sf-gold); font-variant-numeric: tabular-nums; white-space: nowrap; }

.sf-photo {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 5px 11px;
  min-width: 0;
  margin: 0 0 15px;
  padding: 10px 11px;
  border: 1px solid var(--sf-edge);
  border-radius: 12px;
  background: var(--sf-ghost);
  color: var(--sf-ink);
  font: 630 12px/1.38 var(--sf-sans);
}
.sf-photo > :not(img) { grid-column: 1 / -1; min-width: 0; }
.sf-photo:has(> img:not([hidden])) > :first-child { grid-column: 1; }
.sf-photo > img { grid-area: 1 / 2; width: 80px; max-width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--sf-edge); border-radius: 8px; }
.sf-photo h3 { margin: 0 0 4px; color: var(--sf-ink); font: 670 27px/.99 var(--sf-serif); }
.sf-photo p { color: var(--sf-muted); }
.sf-photo .sf-photo-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sf-photo .sf-photo-actions > button { min-height: 44px; padding: 6px 10px; font-size: 12px; }
.sf-photo .sf-photo-status { color: var(--sf-gold); overflow-wrap: anywhere; }
.sf-photo-status:empty { display: none; }
.sf-shell > .sf-photo { margin: 14px 0 0; padding: 12px 14px; }
@media (min-width: 711px) {
  .sf-shell > .sf-photo { grid-template-columns: minmax(0,1fr) auto auto; gap: 6px 13px; }
  .sf-shell > .sf-photo > :first-child { grid-column: 1; }
  .sf-shell > .sf-photo > .sf-photo-actions { grid-column: 3; }
}
.sf-photo :is(p, label) { margin: 0; }
.sf-photo label, label.sf-photo { cursor: pointer; }
.sf-photo label { display: flex; align-items: center; gap: 7px; min-height: 31px; }
.sf-photo input[type="checkbox"] { flex: none; width: 19px; height: 19px; margin: 0; accent-color: var(--sf-focus); }
.sf-photo small { color: var(--sf-muted); font-size: 11px; }
.sf-status { min-width: 0; margin: 0 0 9px; color: var(--sf-gold); font: 660 12px/1.4 var(--sf-sans); overflow-wrap: anywhere; }
.sf-status:empty { display: none; }
.sf-progress {
  appearance: none;
  display: block;
  width: 100%;
  height: 7px;
  margin: 0 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--sf-ghost);
  overflow: hidden;
}
.sf-progress::-webkit-progress-bar { background: var(--sf-ghost); }
.sf-progress::-webkit-progress-value { border-radius: inherit; background: var(--sf-gold); }
.sf-progress::-moz-progress-bar { border-radius: inherit; background: var(--sf-gold); }
.sf-actions { display: grid; gap: 8px; margin-top: auto; }
.sf-actions :is(.sf-primary,.sf-secondary) { width: 100%; }

@media (max-width: 960px) {
  .sf-shell { width: calc(100% - 36px); }
  .sf-hero h1 { font-size: clamp(56px, 9vw, 90px); }
  .sf-tile--personal { padding-right: 45px; }
  .sf-deck-teaser { right: -23px; }
}

@media (max-width: 710px) {
  .sf-shell, .sf-shell:has(.sf-gallery) { width: calc(100% - 24px); padding-bottom: 16px; }
  .sf-topbar { min-height: 61px; }
  .sf-brand { width: 63px; height: 48px; }
  .sf-overlay[data-theme="light"] .sf-brand { width: 98px; }
  .sf-ctrls { gap: 5px; }
  .sf-overlay .sf-ctrls button { padding-inline: 8px; }
  .sf-ctrls :is(.sf-back-full,.sf-minimise) { display: none; }
  .sf-topbar--preview [data-sf="back"]:not(.sf-icon-btn) { min-width: 44px; }
  .sf-topbar--preview [data-sf="back"]:not(.sf-icon-btn) > span + span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  #endScreen .sf-return { position: static; margin: 1px auto 5px; }
  .sf-hero { align-items: end; min-height: clamp(486px, 72dvh, 585px); border-radius: 18px; }
  .sf-hero::before { height: 69%; background-position: 69% 40%; }
  .sf-hero-art { height: 69%; object-position: 69% 40%; }
  .sf-hero::after { background: var(--sf-phone-veil); }
  .sf-hero-copy { width: 100%; padding: clamp(154px, 49vw, 228px) 17px 17px; }
  .sf-eyebrow { margin-bottom: 12px; font-size: 10px; }
  .sf-hero h1 { font-size: clamp(49px, 14.8vw, 71px); }
  .sf-praise { margin-block: 12px; font-size: 13px; }
  .sf-stats { margin-bottom: 14px; padding-block: 7px; }
  .sf-stats dd { font-size: clamp(25px, 7.8vw, 34px); }
  .sf-stats dt { font-size: 10px; }
  .sf-stats > div { padding-inline: 7px; }
  .sf-hero .sf-primary { width: 100%; min-height: 48px; }
  .sf-keepsakes { margin-top: 16px; }
  .sf-keepsakes h2 { margin-bottom: 9px; font-size: 28px; }
  .sf-tray { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .sf-tile { min-height: 126px; padding: 11px 10px 10px; }
  .sf-tile h3 { font-size: 24px; }
  .sf-tile p { font-size: 11px; }
  .sf-tile :is(.sf-primary,.sf-secondary) { gap: 6px; padding-inline: 7px; font-size: 11px; }
  .sf-tile :is(.sf-primary,.sf-secondary) svg { width: 16px; height: 16px; }
  .sf-tile--film { grid-column: 1 / -1; min-height: 115px; padding-right: 129px; }
  .sf-film-still { inset: 8px 8px 8px auto; width: 109px; }
  .sf-tile--personal { padding-right: 42px; }
  .sf-deck-teaser { right: -23px; width: 57px; height: 112px; }
  .sf-footer { margin-top: 9px; padding-top: 5px; }

  .sf-gallery { grid-template-columns: minmax(0,1fr); border-radius: 17px; }
  .sf-gallery::after { border-width: 25px; }
  .sf-stage, .sf-panel { display: contents; }
  .sf-tabs { grid-area: 1 / 1; margin: 15px 14px 0; }
  .sf-panel h1 { grid-area: 2 / 1; margin: 16px 14px 7px; font-size: clamp(40px,11.8vw,53px); }
  .sf-panel .sf-note { grid-area: 3 / 1; margin: 0 14px; max-width: none; font-size: 12px; }
  .sf-meta { grid-area: 4 / 1; margin: 9px 14px 11px; }
  .sf-gallery .sf-photo { grid-area: 5 / 1; margin: 0 12px 11px; }
  .sf-media { grid-area: 6 / 1; justify-self: center; width: min(67vw, 247px); margin-bottom: 13px; }
  .sf-gallery:has(.sf-photo > img:not([hidden])) .sf-media { width: min(62vw, 229px); }
  .sf-overlay .sf-play { width: 50px; height: 50px; }
  .sf-overlay .sf-play svg { width: 23px; height: 23px; }
  .sf-scenes { grid-area: 7 / 1; margin: 0 12px 10px; }
  .sf-scenes img { aspect-ratio: 1.6; }
  .sf-status { grid-area: 8 / 1; margin: 0 12px 9px; }
  .sf-progress { grid-area: 9 / 1; width: auto; margin: 0 12px 10px; }
  .sf-panel .sf-actions { grid-area: 10 / 1; grid-template-columns: 1.2fr 1fr; gap: 7px; margin: 0 14px 16px; }
  .sf-actions :is(.sf-primary,.sf-secondary) { min-height: 45px; padding: 7px 9px; font-size: 12px; }
  .sf-panel .sf-actions:has(> :nth-child(2)[hidden]):has(> :nth-child(3)[hidden]) > :first-child,
  .sf-panel .sf-actions > :only-child { grid-column: 1 / -1; }
}

@media (max-width: 355px) {
  .sf-shell, .sf-shell:has(.sf-gallery) { width: calc(100% - 18px); }
  .sf-hero-copy { padding-inline: 13px; }
  .sf-tile--film { padding-right: 101px; }
  .sf-film-still { width: 86px; }
  .sf-tile--personal { padding-right: 34px; }
  .sf-overlay .sf-ctrls button { padding-inline: 6px; }
}

@media (max-height: 570px) and (min-width: 711px) {
  .sf-topbar { min-height: 60px; }
  .sf-stage { min-height: 0; }
  .sf-media { width: min(100%, 340px, 46dvh); }
  .sf-panel h1 { margin-top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .sf-overlay { scroll-behavior: auto; }
}
