:root {
  --bg: #0b0a09;
  --ink: #f6f1e9;
  --ink-dim: rgba(246, 241, 233, 0.8);
  --ink-faint: rgba(246, 241, 233, 0.58);
  --accent: #e9b97c;
  --paper: #f3ede2;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fade: 1600ms;
  --safe-bottom: max(10vh, 108px);
  --gutter: max(5vw, 24px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html,
body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; color: inherit; }

#app { position: fixed; inset: 0; user-select: none; -webkit-user-select: none; }
#app:not(.show-ui):not(.is-intro) { cursor: none; }

.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.icon--sm { width: 16px; height: 16px; }

/* ───────────────────────── Stage & slides ───────────────────────── */

#stage { position: absolute; inset: 0; overflow: hidden; }

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--fade) cubic-bezier(0.4, 0, 0.2, 1);
}
.slide.is-active { opacity: 1; }

/* Blurred copy of the photo fills the screen behind portrait / odd-shaped photos */
.slide__backdrop {
  position: absolute;
  inset: -10%;
  background-size: cover;
  background-position: center;
  filter: blur(48px) saturate(1.15) brightness(0.42);
  transform: scale(1.08);
}

.slide__frame {
  position: absolute;
  inset: 0;
  animation: kenburns var(--kb-dur, 10s) linear both;
  will-change: transform;
}
#app.is-paused .slide__frame { animation-play-state: paused; }

.slide__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: var(--focus, 50% 45%);
}

.slide.fit-cover .slide__photo { object-fit: cover; }
.slide.fit-contain .slide__frame { inset: 4vh 4vw; }
.slide.fit-contain .slide__photo { filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.55)); }

/* Side layout: portrait photo on the left, words on the right */
.slide.is-side .slide__frame { inset: 6vh 46% 6vh 4vw; }
.slide.is-side .slide__photo { object-position: 100% 50%; }

@keyframes kenburns {
  from { transform: translate(var(--x0), var(--y0)) scale(var(--s0)); }
  to   { transform: translate(var(--x1), var(--y1)) scale(var(--s1)); }
}

/* Darkens the bottom of the photo so words stay legible */
.slide__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(6, 5, 4, 0.82) 0%, rgba(6, 5, 4, 0.45) 28%, rgba(6, 5, 4, 0) 58%);
}
.slide--plain .slide__scrim {
  background: linear-gradient(to top, rgba(6, 5, 4, 0.5) 0%, rgba(6, 5, 4, 0) 26%);
}
.slide.is-side .slide__scrim {
  background: linear-gradient(to left, rgba(6, 5, 4, 0.55) 0%, rgba(6, 5, 4, 0) 55%);
}

/* ───────────────────────── Captions ───────────────────────── */

.caption {
  position: absolute;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 1.2s ease calc(var(--fade) * 0.55),
    transform 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--fade) * 0.55);
}
.slide.is-active .caption { opacity: 1; transform: none; }
.slide.is-leaving .caption {
  opacity: 0;
  transition-delay: 0s;
  transition-duration: 0.5s;
}

/* Quote: centred, large italic serif */
.caption--quote {
  left: 0;
  right: 0;
  bottom: var(--safe-bottom);
  margin-inline: auto;
  width: min(84vw, 58rem);
  text-align: center;
}
.caption__quote { margin: 0; }
.caption__quote p {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 350;
  font-optical-sizing: auto;
  font-size: clamp(1.55rem, 3.1vw, 3.1rem);
  line-height: 1.24;
  letter-spacing: -0.01em;
  text-wrap: balance;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55);
}
.caption__quote p::before { content: '“'; }
.caption__quote p::after { content: '”'; }
.caption--quote .attribution { justify-content: center; }

/* Story: a reading card, lower left */
.caption--story {
  left: var(--gutter);
  bottom: var(--safe-bottom);
  width: min(36rem, calc(100vw - 2 * var(--gutter)));
}
.caption--story .caption__inner {
  padding: 1.6rem 1.9rem 1.4rem;
  border-radius: 20px;
  background: rgba(14, 12, 10, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.caption__title {
  margin: 0 0 0.6rem;
  font-family: var(--serif);
  font-weight: 450;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.caption__body {
  margin: 0;
  font-family: var(--serif);
  font-weight: 330;
  font-size: clamp(1.02rem, 1.3vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-dim);
  text-wrap: pretty;
}
.caption--story .caption__body::first-letter {
  float: left;
  font-size: 3.15em;
  line-height: 0.82;
  padding: 0.09em 0.1em 0 0;
  font-weight: 400;
  color: var(--accent);
}

/* Side layout overrides: words sit in the empty space beside a portrait photo */
.slide.is-side .caption {
  top: 0;
  bottom: 0;
  left: 58%;
  right: var(--gutter);
  width: auto;
  margin: 0;
  display: flex;
  align-items: center;
  text-align: left;
}
.slide.is-side .caption__inner {
  max-width: 32rem;
  background: none;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
}
.slide.is-side .caption__quote p { font-size: clamp(1.7rem, 2.8vw, 3rem); text-wrap: pretty; }
.slide.is-side .caption__title { font-size: clamp(1.7rem, 2.6vw, 2.6rem); margin-bottom: 1rem; }
.slide.is-side .caption__body { font-size: clamp(1.1rem, 1.4vw, 1.4rem); }
.slide.is-side .attribution { justify-content: flex-start; }

/* Photo with no words: just a small credit chip */
.caption--plain {
  left: var(--gutter);
  bottom: calc(var(--safe-bottom) * 0.7);
}

.attribution {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  margin-top: 1.15rem;
  font-size: 0.95rem;
  color: var(--ink-faint);
  letter-spacing: 0.01em;
}
.attribution strong { color: var(--ink); font-weight: 500; }
.attribution__sep { opacity: 0.6; }
.attribution--chip {
  margin: 0;
  padding: 0.35rem 0.95rem 0.35rem 0.35rem;
  border-radius: 999px;
  background: rgba(14, 12, 10, 0.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: hsl(var(--hue, 30) 38% 42%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

/* ───────────────────────── Progress ───────────────────────── */

.progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  z-index: 4;
  transition: opacity 0.6s;
}
#app.is-intro .progress { opacity: 0; }
.progress__bar {
  height: 100%;
  background: var(--accent);
  opacity: 0.85;
  transform-origin: left center;
  transform: scaleX(0);
}

/* ───────────────────────── Controls ───────────────────────── */

.controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 2.5rem var(--gutter) max(1.1rem, env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
#app.show-ui:not(.is-intro) .controls {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.controls__group { display: flex; align-items: center; gap: 0.35rem; }

.controls__now {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding-left: 0.5rem;
}
.controls__show {
  font-family: var(--serif);
  font-size: 1.05rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.controls__count { font-size: 0.82rem; color: var(--ink-faint); font-variant-numeric: tabular-nums; }

.btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.btn:hover { background: rgba(255, 255, 255, 0.12); }
.btn:active { transform: scale(0.94); }
.btn[aria-pressed='true'] { color: var(--accent); }
.btn--primary { width: 54px; height: 54px; background: var(--ink); color: #15120f; }
.btn--primary:hover { background: #fff; }
.btn--primary .icon { width: 24px; height: 24px; }

.btn:focus-visible,
.track:focus-visible,
.begin:focus-visible,
.volume:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.track {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 16rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.85rem;
  color: var(--ink-dim);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.track:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.25); }
.track__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.volume {
  --val: 70%;
  -webkit-appearance: none;
  appearance: none;
  width: 92px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--ink) var(--val), rgba(255, 255, 255, 0.22) var(--val));
  cursor: pointer;
}
.volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink);
  border: 0;
}
.volume::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink);
  border: 0;
}

/* ───────────────────────── Intro ───────────────────────── */

.intro {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, #241c15 0%, #110e0b 55%, #080706 100%);
  transition: opacity 1.4s ease, visibility 0s linear 1.4s;
}
#app:not(.is-intro) .intro { opacity: 0; visibility: hidden; pointer-events: none; }

.intro__prints { position: absolute; inset: 0; }
.print {
  position: absolute;
  width: clamp(130px, 17vw, 270px);
  padding: 10px 10px 36px;
  background: var(--paper);
  border-radius: 3px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 4px 10px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translate(0, 30px) rotate(var(--r));
  animation: print-in 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) forwards, drift 14s ease-in-out infinite alternate;
  animation-delay: var(--d), calc(var(--d) + 1.4s);
}
.print img { display: block; width: 100%; aspect-ratio: var(--ar, 4 / 5); object-fit: cover; filter: saturate(0.85) sepia(0.12); }
@keyframes print-in { to { opacity: 0.5; transform: translate(0, 0) rotate(var(--r)); } }
@keyframes drift { to { opacity: 0.5; transform: translate(var(--dx, 6px), -8px) rotate(calc(var(--r) * 0.85)); } }

.intro__content {
  position: relative;
  max-width: 44rem;
  padding: 2rem var(--gutter);
  text-align: center;
  animation: rise 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both;
}
.intro__content::before {
  content: '';
  position: absolute;
  inset: -30% -25%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(10, 8, 6, 0.88), rgba(10, 8, 6, 0));
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

.intro__eyebrow {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}
.intro__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 320;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.intro__subtitle {
  margin: 0.9rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 330;
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  color: var(--ink-dim);
}
.intro__people {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 2rem 0 2.25rem;
}
.faces { display: flex; }
.faces .avatar { width: 34px; height: 34px; margin-left: -8px; box-shadow: 0 0 0 2px #15110d; }
.faces .avatar:first-child { margin-left: 0; }
.intro__meta { margin: 0; font-size: 0.95rem; color: var(--ink-faint); }

.begin {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.7rem 1rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #15120f;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 40px rgba(233, 185, 124, 0.18);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.begin:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 16px 50px rgba(233, 185, 124, 0.28); }
.intro__hint { margin: 1.4rem 0 0; font-size: 0.85rem; color: var(--ink-faint); }
.intro__add {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.6rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(233, 185, 124, 0.35);
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.intro__add:hover { background: rgba(233, 185, 124, 0.1); border-color: rgba(233, 185, 124, 0.6); }
.intro__add:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ───────────────────────── Toast ───────────────────────── */

.toast {
  position: absolute;
  top: 1.5rem;
  left: 50%;
  z-index: 8;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: rgba(20, 17, 14, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  opacity: 0;
  transform: translate(-50%, -8px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ───────────────────────── "Add your photos" QR code ───────────────────────── */

#app {
  --qr: clamp(96px, 8.5vw, 168px);
  --join-w: calc(var(--qr) + 13rem); /* rough width of the corner card, to keep quotes clear of it */
}
.qr { display: block; }

/* Corner card, always on while the show plays */
.join {
  position: absolute;
  right: var(--gutter);
  bottom: calc(var(--safe-bottom) * 0.7);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 0.55rem 1.2rem 0.55rem 0.55rem;
  border-radius: 18px;
  background: rgba(14, 12, 10, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.8s ease, transform 0.6s ease, visibility 0s linear 0.8s;
}
#app.has-join:not(.is-spot):not(.is-waiting):not(.is-intro) .join {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
/* Step out of the way of the controls when they're showing */
#app.has-join.show-ui:not(.is-intro):not(.is-spot) .join { transform: translateY(-58px); }
.join__qr { width: var(--qr); height: var(--qr); border-radius: 9px; }
.join__text { max-width: 9.5rem; }
.join__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 420;
  font-size: clamp(1.05rem, 1.3vw, 1.45rem);
  line-height: 1.15;
}
.join__help {
  margin: 0.35rem 0 0;
  font-size: clamp(0.8rem, 0.85vw, 0.95rem);
  line-height: 1.35;
  color: var(--ink-faint);
}

/* Keep captions clear of the corner card */
#app.has-join .caption--quote { width: min(calc(100vw - 2 * (var(--join-w) + var(--gutter))), 58rem); }
#app.has-join .slide.is-side .caption { top: 6vh; bottom: calc(var(--safe-bottom) * 0.7 + var(--qr) + 2rem); }

/* Spotlight: the large code, between photos and as the welcome screen */
.spot {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  padding: 6vh var(--gutter);
  background: radial-gradient(ellipse at 50% 50%, rgba(24, 19, 14, 0.9), rgba(8, 7, 6, 0.96));
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s ease, visibility 0s linear 1.1s;
}
#app.is-spot .spot,
#app.is-waiting .spot {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.spot__card {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 5.5rem);
  max-width: 76rem;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s ease 0.3s, transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s;
}
#app.is-spot .spot__card,
#app.is-waiting .spot__card { opacity: 1; transform: none; }
/* Only the photo shows faintly behind the spotlight, not its words */
#app.is-spot .slide .caption { opacity: 0; transition: opacity 0.5s ease; }
/* The welcome screen replaces the title screen until the first photo arrives */
#app.is-waiting .intro__content { opacity: 0; }
.intro__content { transition: opacity 1s ease; }
.spot__code {
  flex: none;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.spot .qr { width: min(50vh, 34vw); height: min(50vh, 34vw); }
.spot__eyebrow {
  margin: 0 0 0.9rem;
  font-size: clamp(0.78rem, 0.9vw, 0.95rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}
.spot__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 320;
  font-size: clamp(2.2rem, 4.4vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.spot__steps {
  margin: clamp(1.4rem, 3vh, 2.4rem) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 0.85rem;
  font-size: clamp(1.05rem, 1.45vw, 1.5rem);
  line-height: 1.35;
  color: var(--ink-dim);
}
.spot__steps li {
  counter-increment: step;
  display: flex;
  gap: 0.85rem;
  align-items: baseline;
}
.spot__steps li::before {
  content: counter(step);
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 1.75em;
  height: 1.75em;
  border-radius: 50%;
  border: 1px solid rgba(233, 185, 124, 0.5);
  color: var(--accent);
  font-size: 0.8em;
  font-weight: 600;
  transform: translateY(-0.1em);
}
.spot__url {
  margin: clamp(1.2rem, 2.6vh, 2rem) 0 0;
  font-size: clamp(0.9rem, 1.05vw, 1.1rem);
  color: var(--ink-faint);
}
.spot__url strong { color: var(--ink); font-weight: 500; letter-spacing: 0.01em; }

/* "Theo just added 3 photos · Up next" */
.arrival {
  position: absolute;
  top: 1.5rem;
  left: var(--gutter);
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 0.5rem 0.4rem 0.4rem;
  border-radius: 999px;
  background: rgba(20, 17, 14, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(233, 185, 124, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  font-size: clamp(0.95rem, 1.1vw, 1.2rem);
  color: var(--ink-dim);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.arrival.is-on { opacity: 1; transform: none; }
.arrival:not(:has(.arrival__next)) { padding-right: 1.1rem; }
.arrival .avatar { width: 2em; height: 2em; font-size: 0.8em; }
.arrival strong { color: var(--ink); font-weight: 500; }
.arrival__next,
.badge-new {
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--accent);
  color: #1a140d;
  font-size: 0.8em;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.badge-new { font-size: 0.78rem; }

/* Shown when the browser won't play sound until the page is clicked */
.sound-hint {
  position: absolute;
  top: 1.5rem;
  right: var(--gutter);
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(20, 17, 14, 0.8);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}
.sound-hint[hidden] { display: none; }

/* ───────────────────────── TV mode ───────────────────────── */

/* No mouse on a TV: the show starts by itself, so drop the click-to-start bits */
#app.is-tv .begin,
#app.is-tv .intro__hint,
#app.is-tv .intro__add { display: none; }
#app.is-tv .intro__people { margin-bottom: 0; }

/* Hide the pointer once the controls have faded */
#app:not(.show-ui):not(.is-intro),
#app.is-tv.is-intro { cursor: none; }

/* ───────────────────────── Small screens ───────────────────────── */

@media (max-width: 760px) {
  /* Someone watching on their phone doesn't need a code to scan */
  .join,
  .spot { display: none; }
  :root { --safe-bottom: max(13vh, 120px); }
  .controls { gap: 0.5rem; flex-wrap: wrap; padding-top: 3rem; }
  .controls__now { order: -1; flex-basis: 100%; padding: 0 0 0.4rem; }
  .controls__music { margin-left: auto; }
  .track, .volume { display: none; }
  .caption--story .caption__inner { padding: 1.2rem 1.3rem 1.1rem; }
  .attribution__sep { display: none; }
}

/* Tall phone screens: lift the photo to the top so words sit beneath it, not over it */
@media (max-width: 760px) and (orientation: portrait) {
  .slide--story.fit-contain .slide__frame,
  .slide--quote.fit-contain .slide__frame { inset: 4vh 4vw 48vh; }
  .slide--story.fit-contain .slide__photo,
  .slide--quote.fit-contain .slide__photo { object-position: 50% 50%; }
  .print:nth-child(3),
  .print:nth-child(4) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .slide__frame { animation: none; }
  .print { animation: print-in 0.01s forwards; }
  .caption { transform: none; }
}
