/* ------------------------------------------------------------------
   The intro films (film.js): a story-style player, and the Roll up app
   inside a phone, walked through with a finger.
   Static states are .is-<name> on .ph-screen; the same state animating
   in is .is-<name>.go-<name>. Delays come from --d (set in film.js).
   ------------------------------------------------------------------ */

/* ============ Player ============ */
.film {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2b201e;
  min-height: 0;
}
.f-frame {
  --scene: var(--espresso);
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--scene);
  color: var(--cream);
  transition: background-color 0.9s var(--ease);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
/* Soft cinematic falloff to the edges. */
.f-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 80% at 50% 38%, transparent 55%, rgb(20 12 11 / 0.32));
}
@media (min-width: 700px) {
  .f-frame {
    width: 430px;
    height: min(900px, calc(100vh - 48px));
    border-radius: 34px;
    box-shadow: 0 40px 120px -30px rgb(0 0 0 / 0.6);
  }
}

.f-bars {
  position: relative;
  z-index: 4;
  display: flex;
  gap: 4px;
  padding: max(10px, env(safe-area-inset-top)) 14px 0;
}
.f-bars i {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgb(247 241 234 / 0.26);
  overflow: hidden;
}
.f-bars b {
  display: block;
  height: 100%;
  background: var(--cream);
  transform-origin: left center;
  transform: scaleX(var(--p, 0));
}

.f-top {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 0 18px;
}
.f-mark {
  flex: 1;
  font-family: var(--serif);
  font-variation-settings: 'SOFT' 100;
  font-size: 21px;
  font-weight: 500;
  line-height: 1;
}
.f-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  min-width: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: rgb(247 241 234 / 0.14);
  color: var(--cream);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.f-btn:hover {
  background: rgb(247 241 234 / 0.22);
}
.f-btn.icon {
  padding: 0;
}
.f-btn:focus-visible {
  outline-color: var(--cream);
}

.f-stage {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 8px 16px 6px;
}
.f-stage > .vis-wrap {
  grid-area: 1 / 1;
}
.f-stage > .vis-wrap.enter {
  animation: visIn 0.6s var(--ease) both;
}
.f-stage > .vis-wrap.leaving {
  animation: fadeOut 0.35s var(--ease) forwards;
}

.f-copy {
  position: relative;
  z-index: 3;
  padding: 4px 26px max(28px, calc(env(safe-area-inset-bottom) + 16px));
  pointer-events: none;
}
.f-title {
  margin: 0;
  max-width: 21ch;
  min-height: 3.2em;
  font-size: clamp(24px, 6.9vw, 29px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.f-frame.is-end .f-title {
  min-height: 0;
  font-size: clamp(34px, 9.6vw, 40px);
}
.f-title .w > span {
  --base: 80ms;
  animation-duration: 0.75s;
}
.f-sub {
  margin: 12px 0 0;
  max-width: 32ch;
  color: var(--on-dark-2);
  font-size: 16.5px;
  line-height: 1.45;
  animation: fade 0.6s var(--ease) 0.5s both;
}
.f-sub:empty {
  display: none;
}
.f-cta {
  display: grid;
  gap: 4px;
  margin-top: 24px;
  pointer-events: auto;
  animation: rise 0.6s var(--ease) 0.7s both;
}
.f-cta:empty {
  display: none;
}
.f-cta .btn-clear {
  min-height: 48px;
  font-size: 15.5px;
  color: var(--on-dark-2);
}

.f-tap {
  position: absolute;
  top: 70px;
  bottom: 0;
  z-index: 2;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.f-tap:focus-visible {
  outline-offset: -6px;
  outline-color: var(--cream);
}
.f-prev {
  left: 0;
  width: 32%;
}
.f-next {
  right: 0;
  width: 68%;
}
.f-frame.is-end .f-tap {
  display: none;
}

.film.is-paused *,
.film.is-paused *::before,
.film.is-paused *::after {
  animation-play-state: paused !important;
}
/* The screen fading in isn't part of the story: let it finish even when paused. */
.film.is-paused .vis-wrap {
  animation-play-state: running !important;
}

.f-logo {
  display: grid;
  justify-items: center;
}
.f-logo img {
  width: 104px;
  height: 104px;
  border-radius: 26px;
  box-shadow: 0 22px 50px -16px rgb(0 0 0 / 0.6);
  animation: popIn 0.6s var(--spring) 0.15s both;
}

/* ============ The phone ============ */
.ph-fit {
  transform: scale(var(--k, 1));
  transform-origin: center center;
}
.phone {
  position: relative;
  width: 268px;
  height: 560px;
  padding: 9px;
  border-radius: 47px;
  background: #1b1312;
  box-shadow:
    0 50px 90px -34px rgb(0 0 0 / 0.75),
    inset 0 0 0 1.5px rgb(255 255 255 / 0.1);
  text-align: left;
}
.ph-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 38px;
  background: var(--cream);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
  isolation: isolate;
}
.ph-screen svg {
  display: inline-block;
  flex-shrink: 0;
}
.ph-island {
  position: absolute;
  z-index: 60;
  top: 9px;
  left: 50%;
  width: 80px;
  height: 23px;
  margin-left: -40px;
  border-radius: 12px;
  background: #000;
}
.ph-status {
  position: absolute;
  z-index: 59;
  top: 0;
  left: 0;
  right: 0;
  height: 41px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 22px 0 30px;
  font-size: 13.5px;
  font-weight: 700;
  pointer-events: none;
}
.ph-status span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.ph-light .ph-status {
  color: var(--cream);
}
.ph-home {
  position: absolute;
  z-index: 61;
  left: 50%;
  bottom: 7px;
  width: 92px;
  height: 4px;
  margin-left: -46px;
  border-radius: 2px;
  background: var(--ink);
  opacity: 0.85;
}
.ph-light .ph-home {
  background: var(--cream);
}

/* The finger that taps through the app. */
.ph-finger {
  position: absolute;
  z-index: 70;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.55);
  border: 2px solid rgb(58 42 40 / 0.28);
  box-shadow: 0 6px 16px -4px rgb(58 42 40 / 0.45);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.55s var(--ease),
    opacity 0.3s ease;
}
.ph-finger.on {
  opacity: 1;
}
.ph-finger.press {
  animation: press 0.32s ease;
}
.ph-rip {
  position: absolute;
  z-index: 69;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: rgb(164 77 93 / 0.38);
  pointer-events: none;
  animation: ripple 0.6s var(--ease) forwards;
}

/* Shared bits */
.ph-h {
  margin: 0;
  font-family: var(--serif);
  font-variation-settings: 'SOFT' 100;
  font-weight: 400;
  font-size: 25px;
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.ph-muted {
  color: var(--ink-3);
  font-size: 12px;
}
.ph-label {
  margin: 14px 0 7px;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 700;
}
.ph-av {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--nude);
  color: var(--espresso);
  font-family: var(--serif);
  font-variation-settings: 'SOFT' 100;
  font-size: 13px;
  font-weight: 500;
}
.ph-av.rose {
  background: var(--blush);
  color: var(--rose);
}
.ph-av.plum {
  background: var(--plum);
  color: var(--cream);
}
.ph-what {
  flex: 1;
  display: grid;
  min-width: 0;
}
.ph-what b {
  font-size: 12.5px;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ph-what small {
  color: var(--ink-3);
  font-size: 11px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ph-tag {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--blush);
  color: var(--rose);
  font-size: 10.5px;
  font-weight: 700;
}
.ph-tag.dark {
  background: var(--espresso);
  color: var(--cream);
}
.ph-tick {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--espresso);
  color: var(--cream);
}
.ph-btn {
  position: relative;
  display: grid;
  place-items: center;
  height: 44px;
  border-radius: 999px;
  background: var(--rose);
  color: var(--cream);
  font-size: 14px;
  font-weight: 600;
}
.ph-btn > span {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ph-btn .b,
.ph-btn .c {
  opacity: 0;
}
.ph-btn.dark {
  background: var(--espresso);
}
.ph-btn.line {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--espresso);
}
.ph-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--line);
}
.ph-row + .ph-row {
  margin-top: 6px;
}
.ph-time {
  flex-shrink: 0;
  width: 38px;
  font-size: 12.5px;
  font-weight: 700;
}
.ph-left {
  flex-shrink: 0;
  color: var(--rose);
  font-size: 10.5px;
  font-weight: 700;
}

/* Tab bar */
.ph-tabs {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  bottom: 0;
  height: 62px;
  display: flex;
  justify-content: space-around;
  padding: 8px 6px 0;
  background: rgb(247 241 234 / 0.97);
  border-top: 1px solid var(--line);
}
.ph-tabs span {
  display: grid;
  justify-items: center;
  gap: 3px;
  width: 54px;
  color: var(--ink-4);
  font-size: 9.5px;
  font-weight: 600;
}
.ph-tabs .on {
  color: var(--ink);
}

/* Banner that drops in from the top */
.ph-note {
  position: absolute;
  z-index: 50;
  top: 44px;
  left: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border-radius: 18px;
  background: rgb(255 255 255 / 0.96);
  box-shadow: 0 14px 30px -12px rgb(10 5 4 / 0.5);
  transform: translateY(calc(-100% - 60px));
}
.ph-note img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}
.ph-note .ph-what small {
  white-space: normal;
}

/* ---------- Pilates goer: the map ---------- */
.ph-map {
  position: absolute;
  inset: 0;
  background: #f4ece3;
  overflow: hidden;
}
.ph-map img.t {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 300px;
  height: 600px;
  max-width: none;
  margin: -300px 0 0 -150px;
  transform-origin: 50% 50%;
  /* Draw each picture once and let the graphics chip scale it, so the zoom never flashes blank. */
  will-change: transform, opacity;
  backface-visibility: hidden;
}
.ph-wide {
  transform: scale(1);
}
.ph-close {
  opacity: 0;
  transform: scale(0.2873);
}
.is-zoom .ph-wide {
  opacity: 0;
  transform: scale(3.48);
}
.is-zoom .ph-close {
  opacity: 1;
  transform: scale(1);
}
.go-zoom .ph-wide {
  animation: zoomWide 3s cubic-bezier(0.55, 0, 0.2, 1) both;
}
.go-zoom .ph-close {
  animation: zoomClose 3s cubic-bezier(0.55, 0, 0.2, 1) both;
}
.ph-attrib {
  position: absolute;
  z-index: 3;
  right: 8px;
  bottom: 66px;
  color: var(--ink-4);
  font-size: 7.5px;
  opacity: 0.85;
}

.ph-pin {
  --pb: var(--pb0);
  --pf: var(--pf0);
  position: absolute;
  z-index: 2;
  display: block;
  padding-bottom: 5px;
  opacity: 0;
  transform: translate(-50%, -100%);
  transform-origin: 50% 100%;
  transition: opacity 0.4s ease;
}
.ph-pin b {
  display: flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--pb, var(--nude));
  color: var(--pf, var(--espresso));
  font-size: 10.5px;
  font-weight: 700;
  box-shadow: 0 3px 8px -3px rgb(58 42 40 / 0.55);
  transition: background-color 0.25s, color 0.25s;
}
.ph-pin i {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 0;
  margin-left: -4px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--pb, var(--nude));
}
.is-pins .ph-pin {
  opacity: 1;
}
.go-pins .ph-pin {
  animation: pinPop 0.45s var(--spring) var(--d, 0s) both;
}
.is-sel .ph-pin.aura {
  --pb: var(--espresso);
  --pf: var(--cream);
  z-index: 4;
}
.is-filter .ph-pin:not(.beg) {
  opacity: 0.18;
}
.go-filter .ph-pin:not(.beg) {
  animation: dim 0.4s ease both;
}

.ph-me {
  position: absolute;
  z-index: 1;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--espresso);
  border: 3px solid var(--white);
  box-shadow: 0 2px 6px rgb(58 42 40 / 0.4);
}
.ph-me::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgb(58 42 40 / 0.35);
  animation: pulse 2.2s ease-out infinite;
}

.ph-top {
  position: absolute;
  z-index: 5;
  top: 44px;
  left: 10px;
  right: 10px;
}
.ph-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-3);
  font-size: 12px;
  box-shadow: 0 6px 16px -8px rgb(58 42 40 / 0.35);
}
.ph-chips {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  overflow: hidden;
}
.ph-chip {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--white);
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 4px 10px -6px rgb(58 42 40 / 0.35);
}
.ph-chip.on,
.is-filter .ph-chip.new {
  background: var(--espresso);
  color: var(--cream);
}

.ph-sheet {
  position: absolute;
  z-index: 10;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 12px 72px;
  border-radius: 24px 24px 0 0;
  background: var(--cream);
  box-shadow: 0 -12px 30px -14px rgb(58 42 40 / 0.4);
  transform: translateY(105%);
}
.ph-grab {
  width: 36px;
  height: 4px;
  margin: 0 auto 10px;
  border-radius: 2px;
  background: var(--light-nude);
}
.is-sheet .ph-sheet {
  transform: none;
}
.go-sheet .ph-sheet {
  animation: sheetUp 0.5s var(--ease) both;
}
.ph-sheet .ph-h {
  font-size: 21px;
}
.ph-sheet-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.ph-beg {
  position: absolute;
  z-index: 10;
  left: 10px;
  right: 10px;
  bottom: 72px;
  padding: 12px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 14px 30px -12px rgb(58 42 40 / 0.5);
  transform: translateY(140%);
}
.is-beg .ph-beg {
  transform: none;
}
.go-beg .ph-beg {
  animation: cardUp 0.55s var(--ease) both;
}
.ph-beg .ph-h {
  font-size: 19px;
  margin: 8px 0 2px;
}
.ph-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

/* ---------- Pilates goer: the class ---------- */
.ph-class {
  position: absolute;
  z-index: 31;
  inset: 0;
  padding: 46px 16px 0;
  background: var(--cream);
  transform: translateX(105%);
}
.is-class .ph-class {
  transform: none;
}
.go-class .ph-class {
  animation: pushIn 0.45s var(--ease) both;
}
.ph-back {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
}
.ph-teacher {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 14px 0 12px;
}
.ph-facts {
  display: flex;
  gap: 5px;
}
.ph-facts span {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 10.5px;
  font-weight: 600;
}
.ph-times {
  display: flex;
  gap: 6px;
}
.ph-times span {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  height: 38px;
  border-radius: 999px;
  background: var(--white);
  border: 1.5px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  transition:
    background-color 0.25s,
    color 0.25s,
    border-color 0.25s;
}
.is-time .ph-times .seven {
  background: var(--espresso);
  border-color: var(--espresso);
  color: var(--cream);
}
.ph-about {
  margin: 12px 0 0;
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.45;
}
.ph-class .ph-btn.book {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 26px;
  transition: background-color 0.3s;
}
.is-booked .ph-btn.book {
  background: var(--mocha);
}
.is-booked .ph-btn.book .a {
  opacity: 0;
}
.is-booked .ph-btn.book .b {
  opacity: 1;
}
.go-booked .ph-btn.book .a {
  animation: fadeOut 0.2s ease both;
}
.go-booked .ph-btn.book .b {
  animation: fade 0.3s ease 0.1s both;
}
.is-booked .ph-note.booked {
  transform: none;
}
.go-booked .ph-note.booked {
  animation: noteDrop 0.6s var(--spring) 0.35s both;
}

/* After class: follow the instructor */
.ph-love {
  position: absolute;
  z-index: 35;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 18px 30px;
  border-radius: 26px 26px 0 0;
  background: var(--white);
  box-shadow: 0 -14px 34px -12px rgb(58 42 40 / 0.45);
  text-align: center;
  transform: translateY(105%);
}
.is-love .ph-love {
  transform: none;
}
.go-love .ph-love {
  animation: sheetUp 0.55s var(--ease) both;
}
.is-love .ph-note.booked {
  transform: translateY(calc(-100% - 60px));
}
.go-love .ph-note.booked {
  animation: noteUp 0.4s ease both;
}
.ph-love .ph-av {
  width: 62px;
  height: 62px;
  margin: 6px auto 10px;
  font-size: 23px;
}
.ph-hearts {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 8px 0 4px;
  color: var(--rose);
}
.ph-love .ph-h {
  font-size: 21px;
}
.ph-love .ph-muted {
  margin: 4px 0 14px;
}
.is-following .ph-btn.follow {
  background: var(--espresso);
  color: var(--cream);
}
.is-following .ph-btn.follow .a {
  opacity: 0;
}
.is-following .ph-btn.follow .b {
  opacity: 1;
}
.go-following .ph-btn.follow .a {
  animation: fadeOut 0.2s ease both;
}
.go-following .ph-btn.follow .b {
  animation: fade 0.25s ease both;
}
.is-newclass .ph-note.newclass {
  transform: none;
}
.go-newclass .ph-note.newclass {
  animation: noteDrop 0.6s var(--spring) both;
}

/* ---------- Instructor: lock screen ---------- */
.ph-lock {
  position: absolute;
  inset: 0;
  padding: 58px 10px 0;
  background: var(--plum);
  color: var(--cream);
  text-align: center;
}
.ph-lock::before {
  content: '';
  position: absolute;
  left: -40px;
  right: -40px;
  bottom: -120px;
  height: 300px;
  border-radius: 50%;
  background: rgb(217 184 163 / 0.18);
}
.ph-lock-day {
  position: relative;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.85;
}
.ph-lock-time {
  position: relative;
  margin: 0 0 18px;
  font-size: 62px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}
.ph-n {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 6px;
  padding: 9px 10px;
  border-radius: 16px;
  background: rgb(247 241 234 / 0.92);
  color: var(--ink);
  text-align: left;
  opacity: 0;
}
.ph-n .ic {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--ink-4);
  color: var(--white);
}
.ph-n .ph-what b {
  font-size: 11.5px;
}
.ph-n .ph-what small {
  font-size: 10.5px;
}
.ph-n em {
  align-self: flex-start;
  color: var(--ink-4);
  font-size: 9.5px;
  font-style: normal;
}
.is-notes .ph-n {
  opacity: 1;
}
.go-notes .ph-n {
  animation: noteDrop 0.55s var(--spring) var(--d, 0s) both;
}
.is-pile .ph-n {
  opacity: 1;
  animation: shake 0.5s ease var(--d, 0s);
}

/* ---------- Instructor: app screens ---------- */
.ph-page {
  position: absolute;
  inset: 0;
  padding: 50px 14px 0;
  background: var(--cream);
}
.ph-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 12px;
}
.ph-reg-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 2px;
  border-top: 1px solid var(--line);
}
.ph-reg-row .ph-tick {
  opacity: 0;
}
.is-ticks .ph-reg-row .ph-tick {
  opacity: 1;
}
.go-ticks .ph-reg-row .ph-tick {
  animation: popIn 0.4s var(--spring) var(--d, 0s) both;
}
.ph-page .ph-btn.make {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 74px;
}

.ph-inv {
  position: absolute;
  z-index: 35;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 16px 30px;
  border-radius: 26px 26px 0 0;
  background: var(--espresso);
  color: var(--cream);
  transform: translateY(105%);
}
.is-inv .ph-inv {
  transform: none;
}
.go-inv .ph-inv {
  animation: sheetUp 0.55s var(--ease) both;
}
.ph-inv .ph-grab {
  background: rgb(247 241 234 / 0.25);
}
.ph-inv .ph-h {
  font-size: 23px;
}
.ph-inv .ph-muted {
  color: var(--on-dark-2);
}
.ph-line {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1px solid rgb(247 241 234 / 0.16);
  font-size: 12px;
}
.ph-line strong {
  font-size: 17px;
}
.ph-inv .ph-btn {
  margin-top: 12px;
  background: var(--cream);
  color: var(--espresso);
  transition: background-color 0.3s;
}
.is-sent .ph-inv .ph-btn {
  background: var(--mocha);
  color: var(--cream);
}
.is-sent .ph-inv .ph-btn .a {
  opacity: 0;
}
.is-sent .ph-inv .ph-btn .b {
  opacity: 1;
}
.go-sent .ph-inv .ph-btn .a {
  animation: fadeOut 0.2s ease both;
}
.go-sent .ph-inv .ph-btn .b {
  animation: fade 0.3s ease 0.1s both;
}

.ph-bar {
  position: relative;
  padding: 9px 2px 10px;
  border-top: 1px solid var(--line);
}
.ph-bar-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 7px;
  font-size: 12px;
}
.ph-bar-top b {
  font-weight: 600;
}
.ph-bar-top span {
  color: var(--ink-3);
  font-size: 11px;
}
.ph-track {
  height: 9px;
  border-radius: 5px;
  background: var(--blush);
  overflow: hidden;
}
.ph-fill {
  height: 100%;
  border-radius: 5px;
  background: var(--fill, var(--rose));
  transform-origin: left center;
  transform: scaleX(0);
}
.is-bars .ph-fill {
  transform: scaleX(var(--w, 1));
}
.go-bars .ph-fill {
  animation: grow 1s var(--ease) var(--d, 0s) both;
}
.ph-bar .ph-tag.best {
  position: absolute;
  top: 5px;
  right: 56px;
  opacity: 0;
}
.is-bars .ph-bar .ph-tag.best {
  opacity: 1;
}
.go-bars .ph-bar .ph-tag.best {
  animation: popIn 0.45s var(--spring) 1.2s both;
}
.ph-tip {
  position: absolute;
  z-index: 10;
  left: 10px;
  right: 10px;
  bottom: 72px;
  padding: 12px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 14px 30px -12px rgb(58 42 40 / 0.5);
  transform: translateY(150%);
}
.is-tip .ph-tip {
  transform: none;
}
.go-tip .ph-tip {
  animation: cardUp 0.55s var(--ease) both;
}
.ph-tip p {
  margin: 0 0 10px;
  font-size: 12.5px;
  font-weight: 600;
}
.ph-tip .ph-btn {
  height: 38px;
  font-size: 12.5px;
  transition: background-color 0.3s;
}
.is-added .ph-tip .ph-btn {
  background: var(--mocha);
}
.is-added .ph-tip .ph-btn .a {
  opacity: 0;
}
.is-added .ph-tip .ph-btn .b {
  opacity: 1;
}
.go-added .ph-tip .ph-btn .a {
  animation: fadeOut 0.2s ease both;
}
.go-added .ph-tip .ph-btn .b {
  animation: fade 0.3s ease 0.1s both;
}

.ph-prof {
  text-align: center;
}
.ph-prof .ph-av.big {
  width: 70px;
  height: 70px;
  margin: 6px auto 10px;
  font-size: 26px;
}
.ph-stats {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin: 14px 0 12px;
}
.ph-stats div {
  display: grid;
}
.ph-stats small {
  color: var(--ink-3);
  font-size: 11px;
}
.ph-num {
  display: block;
  height: 1.15em;
  overflow: hidden;
  font-family: var(--serif);
  font-variation-settings: 'SOFT' 100;
  font-size: 26px;
  line-height: 1.15;
}
.ph-num > span {
  display: block;
}
.ph-num > span > span {
  display: block;
  height: 1.15em;
}
.is-count .ph-num.roll > span {
  transform: translateY(-5.75em);
}
.go-count .ph-num.roll > span {
  animation: count 2.2s steps(5, end) both;
}
.ph-places {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}
.ph-places span {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 10.5px;
  font-weight: 600;
}
.ph-prof .ph-label {
  text-align: left;
}

.ph-cover-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
}
.ph-cover-row + .ph-cover-row {
  margin-top: 6px;
}
.ph-mini {
  position: relative;
  display: grid;
  flex-shrink: 0;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--espresso);
  color: var(--cream);
  font-size: 10.5px;
  font-weight: 700;
  transition: background-color 0.3s;
}
.ph-mini > span {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.ph-mini .b {
  opacity: 0;
}
.is-covered .ph-mini.cover {
  background: var(--mocha);
}
.is-covered .ph-mini.cover .a {
  opacity: 0;
}
.is-covered .ph-mini.cover .b {
  opacity: 1;
}
.go-covered .ph-mini.cover .a {
  animation: fadeOut 0.2s ease both;
}
.go-covered .ph-mini.cover .b {
  animation: fade 0.3s ease both;
}

.ph-who {
  position: absolute;
  z-index: 35;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px 30px;
  border-radius: 26px 26px 0 0;
  background: var(--white);
  box-shadow: 0 -14px 34px -12px rgb(58 42 40 / 0.45);
  transform: translateY(105%);
}
.is-who .ph-who {
  transform: none;
}
.go-who .ph-who {
  animation: sheetUp 0.5s var(--ease) both;
}
.is-covered .ph-who {
  transform: translateY(105%);
}
.go-covered .ph-who {
  animation: sheetDown 0.45s var(--ease) both;
}
.ph-who .ph-h {
  font-size: 21px;
}
.ph-who .ph-row .ph-mini {
  background: var(--blush);
  color: var(--rose);
}
.is-asked .ph-who .ph-row .ph-mini.ask {
  background: var(--espresso);
  color: var(--cream);
}
.is-asked .ph-mini.ask .a {
  opacity: 0;
}
.is-asked .ph-mini.ask .b {
  opacity: 1;
}
.is-covered .ph-note.covered {
  transform: none;
}
.go-covered .ph-note.covered {
  animation: noteDrop 0.6s var(--spring) 0.3s both;
}
.is-fans .ph-note.fan {
  transform: none;
}
.go-fans .ph-note.fan {
  animation: noteDrop 0.6s var(--spring) both;
}

/* ============ Film keyframes ============ */
@keyframes press {
  50% {
    transform: var(--at) scale(0.8);
  }
}
@keyframes zoomWide {
  from {
    transform: scale(1);
  }
  40% {
    opacity: 1;
  }
  78% {
    opacity: 0;
  }
  to {
    transform: scale(3.48);
    opacity: 0;
  }
}
@keyframes zoomClose {
  from {
    transform: scale(0.2873);
    opacity: 0;
  }
  40% {
    opacity: 0;
  }
  78% {
    opacity: 1;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes pinPop {
  from {
    opacity: 0;
    transform: translate(-50%, -100%) scale(0.2);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -100%) scale(1);
  }
}
@keyframes dim {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.18;
  }
}
@keyframes sheetUp {
  from {
    transform: translateY(105%);
  }
  to {
    transform: none;
  }
}
@keyframes sheetDown {
  from {
    transform: none;
  }
  to {
    transform: translateY(105%);
  }
}
@keyframes cardUp {
  from {
    transform: translateY(140%);
  }
  to {
    transform: none;
  }
}
@keyframes pushIn {
  from {
    transform: translateX(105%);
  }
  to {
    transform: none;
  }
}
@keyframes noteDrop {
  from {
    opacity: 0;
    transform: translateY(calc(-100% - 60px));
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes noteUp {
  from {
    transform: none;
  }
  to {
    transform: translateY(calc(-100% - 60px));
  }
}
@keyframes shake {
  25% {
    transform: translateX(-3px);
  }
  75% {
    transform: translateX(3px);
  }
}
@keyframes grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(var(--w, 1));
  }
}
@keyframes count {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-5.75em);
  }
}
