/* Present scene. Every rule stays under the mount the integrator drops into #present. */

.ps-present-mount,
.ps-present-section .ps-present-mount {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
  color: var(--paper-ink);
}

.ps-present-mount *,
.ps-present-mount *::before,
.ps-present-mount *::after {
  box-sizing: border-box;
}

.ps-present-mount .ps-present-unit {
  width: min(100%, 960px);
  margin-inline: auto;
  padding-right: 22px;
}

.ps-present-mount .ps-present-bezel {
  position: relative;
  padding: 11px 11px 0;
  border-radius: 18px;
  background: linear-gradient(180deg, #e4e1db 0%, #c9c6bf 28%, #aeaaa3 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / .7),
    inset 0 -1px 0 rgb(0 0 0 / .16),
    0 22px 48px rgb(0 0 0 / .28);
}

.ps-present-mount .ps-present-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: var(--paper-stage);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .45);
  container-type: size;
  color: var(--paper-ink);
}

.ps-present-mount .ps-present-deck {
  position: absolute;
  z-index: 1;
  inset: 0;
  height: 100%;
  overflow: hidden;
  border-radius: 0;
  background: radial-gradient(ellipse at 50% 42%, color-mix(in srgb, var(--paper) 14%, var(--paper-stage)) 0%, var(--paper-stage) 72%);
}

.ps-present-mount .ps-motion-card {
  top: 42%;
  padding: 26px 7%;
}

.ps-present-mount.is-instant .ps-motion-card,
.ps-present-mount.is-reduced .ps-motion-card {
  animation: none;
  transition: none;
}

.ps-present-mount .ps-present-rec {
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
}

.ps-present-mount .ps-present-caption {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: min(74%, 440px);
  margin: 0;
  padding: 9px 14px 11px;
  border: 0.5px solid rgb(255 255 255 / .16);
  border-radius: 12px;
  background: rgb(14 13 12 / .62);
  color: #fff;
  font: 500 14px/1.35 -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  letter-spacing: -0.005em;
  box-shadow: 0 10px 28px rgb(0 0 0 / .45);
  transform: translateX(-50%);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
}

.ps-present-mount .ps-cc-top {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgb(255 255 255 / .68);
  font: 600 9px/1 -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ps-present-mount .ps-cc-icon {
  display: block;
  flex: none;
  width: 18px;
  height: 18px;
  fill: #fff;
}

.ps-present-mount .ps-cc-live {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff453a;
  box-shadow: 0 0 0 0 rgb(255 69 58 / .5);
  animation: ps-cc-live 1.6s ease-out infinite;
}

.ps-present-mount .ps-cc-who { flex: none; }

.ps-present-mount .ps-cc-bars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 10px;
  margin-left: auto;
}

.ps-present-mount .ps-cc-bars i {
  width: 2px;
  height: 3px;
  border-radius: 1px;
  background: rgb(255 255 255 / .75);
  animation: ps-cc-bar 1.05s ease-in-out infinite;
}

.ps-present-mount .ps-cc-bars i:nth-child(2) { animation-delay: .12s; }
.ps-present-mount .ps-cc-bars i:nth-child(3) { animation-delay: .24s; }
.ps-present-mount .ps-cc-bars i:nth-child(4) { animation-delay: .08s; }
.ps-present-mount .ps-cc-bars i:nth-child(5) { animation-delay: .2s; }

.ps-present-mount .ps-cc-line {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font: 500 14px/1.35 -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
  animation: ps-cc-in .32s ease;
}

.ps-present-mount .ps-present-pip {
  position: absolute;
  z-index: 5;
  right: -20px;
  bottom: 20%;
  width: clamp(108px, 23%, 150px);
  aspect-ratio: 1 / 1.05;
  overflow: hidden;
  border: 2px solid rgb(255 255 255 / .88);
  border-radius: 18px;
  background: #241f1b;
  box-shadow: 0 14px 32px rgb(0 0 0 / .5);
}

@keyframes ps-cc-live {
  70% { box-shadow: 0 0 0 5px rgb(255 69 58 / 0); }
}

@keyframes ps-cc-bar {
  0%, 100% { height: 3px; }
  50% { height: 9px; }
}

@keyframes ps-cc-in {
  from { opacity: 0; transform: translateY(3px); }
}

.ps-present-mount .ps-present-pip canvas,
.ps-present-mount .ps-present-still {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ps-present-mount .ps-present-still[hidden],
.ps-present-mount .ps-present-pip canvas[hidden] {
  display: none;
}

.ps-present-mount .ps-present-chin {
  display: grid;
  height: 34px;
  place-items: center;
}

.ps-present-mount .ps-present-chin span { display: none; }

.ps-present-mount .ps-present-neck {
  width: 16%;
  height: 40px;
  margin: 0 auto;
  background: linear-gradient(90deg, #8e8b85 0%, #ddd9d2 46%, #b7b3ab 62%, #7c7973 100%);
  clip-path: polygon(36% 0, 64% 0, 80% 100%, 20% 100%);
}

.ps-present-mount .ps-present-foot {
  width: 30%;
  height: 10px;
  margin: -1px auto 0;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg, #c8c4bc, #8d8982);
}

.ps-present-mount .ps-present-example {
  max-width: 46rem;
  margin: 14px auto 0;
  padding-inline: 12px;
  color: var(--paper-muted);
  font: 400 12px/1.55 var(--font-mono, ui-monospace, monospace);
  text-align: center;
}

.ps-present-mount .ps-present-live {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 699px) {
  .ps-present-mount .ps-present-bezel {
    padding: 6px 6px 0;
    border-radius: 12px;
  }

  .ps-present-mount .ps-present-unit { padding-right: 12px; }

  .ps-present-mount .ps-present-screen { aspect-ratio: 8 / 5; }

  .ps-present-mount .ps-motion-card { padding: 22px 8%; }

  .ps-present-mount .ps-present-caption {
    bottom: 4px;
    width: min(86%, 320px);
    padding: 8px 10px 9px;
  }

  .ps-present-mount .ps-cc-line { font-size: 12px; }

  .ps-present-mount .ps-present-pip {
    right: -10px;
    bottom: 16%;
    width: clamp(72px, 28%, 96px);
    border-radius: 14px;
  }

  .ps-present-mount .ps-present-chin {
    height: 14px;
  }

  .ps-present-mount .ps-present-chin span {
    width: 5px;
    height: 5px;
  }

  .ps-present-mount .ps-present-neck,
  .ps-present-mount .ps-present-foot {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ps-present-mount .ps-motion-card,
  .ps-present-mount .ps-present-caption,
  .ps-present-mount .ps-cc-live,
  .ps-present-mount .ps-cc-bars i,
  .ps-present-mount .ps-cc-line {
    animation: none;
    transition: none;
  }
}
