/* Each reel is a native, vertically snapping scroll page inside the sample phone. */
#app-preview .tb-screen.reel-screen {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  background: #31232a;
  color: #fffaf3;
  font: 480 14px/1.3 WilderOutfit, sans-serif;
}
#app-preview .reel-header, #app-preview .reel-navigator {
  display: flex;
  flex: none;
  align-items: center;
  background: #fcf6eb;
  color: #35212a;
}
#app-preview .reel-header { min-height: 54px; padding: 6px 12px; justify-content: space-between; gap: 5px; }
#app-preview .reel-header h4 { font-size: 23px; line-height: 1; letter-spacing: -.05em; }
#app-preview .reel-views { display: flex; padding: 2px; border-radius: 20px; background: #ece1d0; }
#app-preview .reel-screen button {
  font: inherit;
  color: inherit;
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
}
#app-preview .reel-views button {
  background: transparent;
  padding: 0 11px;
  min-height: 40px;
  border-radius: inherit;
  font-size: 13px;
  font-weight: 580;
}
#app-preview .reel-views button[aria-pressed=true] { background: #39232c; color: #fffaf3; }
#app-preview .reel-stage { position: relative; flex: 1; min-height: 0; }
#app-preview .reel-deck {
  position: absolute;
  inset: 0;
  /* Whole-pixel pages give the last snap point the same offset as the native
     scroll limit, so an outward swipe continues immediately onto the page. */
  height: round(down, 100%, 1px);
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  background: #627568;
}
#app-preview .reel-deck::-webkit-scrollbar { display: none; }
#app-preview .reel-card {
  position: relative;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
#app-preview .reel-card > img, #app-preview .reel-card > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
#app-preview .reel-card > video { object-position: var(--reel-framing, center); }
#app-preview .reel-camera > img {
  animation: reel-camera-move 9s ease-in-out infinite alternate;
  animation-play-state: paused;
}
#app-preview .reel-cutaway { opacity: 0; }
#app-preview .reel-camera > .reel-cutaway {
  animation: reel-detail-cut 10s ease-in-out infinite;
  animation-play-state: paused;
}
#app-preview .reel-camera-playing > img { animation-play-state: running; }
#app-preview .reel-camera-playing > .reel-cutaway { animation-play-state: running; }
@keyframes reel-camera-move {
  from { transform: scale(1.02); }
  to { transform: translateX(var(--camera-x)) scale(1.13); }
}
@keyframes reel-detail-cut {
  0%, 40%, 100% { opacity: 0; transform: scale(1.09); }
  49% { opacity: 1; transform: scale(1.08); }
  86% { opacity: 1; transform: scale(1.01); }
  95% { opacity: 0; transform: scale(1); }
}
#app-preview .reel-copy::before {
  content: "";
  position: absolute;
  inset: -22px -12px -12px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, #21181bbd 22px, #21181be6);
}
#app-preview .reel-copy {
  position: absolute;
  z-index: 1;
  isolation: isolate;
  inset: auto 12px 12px;
  font-size: clamp(15px, 5.9cqi, 16px);
  line-height: 1.24;
}
#app-preview .reel-copy summary {
  display: block;
  align-content: end;
  min-height: 44px;
  list-style: none;
  cursor: pointer;
  text-align: left;
  font-weight: 560;
}
#app-preview .reel-copy summary::-webkit-details-marker { display: none; }
#app-preview .reel-more {
  display: inline-block;
  margin-left: 4px;
  white-space: nowrap;
  color: #f3eadf;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: .15em;
}
#app-preview .reel-more::before { content: "… more"; }
#app-preview .reel-copy[open] .reel-more::before { content: "less"; }
#app-preview .reel-copy[open]::before {
  background: linear-gradient(to bottom, transparent, #251c20ed 22px, #251c20f5);
}
#app-preview .reel-details {
  display: grid;
  gap: 3px;
  max-height: 10em;
  overflow: auto;
  padding: 8px 0 2px;
  text-align: left;
  font-size: 13px;
  line-height: 1.3;
}
#app-preview .reel-details a {
  justify-self: start;
  color: inherit;
  text-underline-offset: .15em;
}
#app-preview .reel-actions {
  position: absolute;
  top: 9px;
  right: 9px;
  display: grid;
  padding: 3px;
  gap: 2px;
  border: 1px solid #d5c6ad;
  border-radius: 26px;
  background: #fff8eb;
  box-shadow: 0 2px 6px #39272624;
}
#app-preview .reel-actions button {
  --mark: #a12150;
  --selected-paper: #f9dce6;
  display: grid;
  width: 45px;
  min-height: 47px;
  padding: 4px 1px;
  align-content: center;
  justify-items: center;
  gap: 2px;
  border-radius: 22px;
  background: transparent;
  color: #422931;
  font-size: 11px;
  font-weight: 620;
  line-height: 1.1;
}
#app-preview .reel-with-guide .reel-actions { grid-auto-flow: column; }
#app-preview .reel-actions [data-reel-save] { --mark: #286348; --selected-paper: #dcecd9; }
#app-preview .reel-actions svg {
  width: 22px;
  height: 22px;
  stroke: var(--mark);
  stroke-width: 1.8;
  stroke-linejoin: round;
  fill: transparent;
}
#app-preview .reel-actions button[aria-pressed=true] { background: var(--selected-paper); color: var(--mark); }
#app-preview .reel-actions [aria-pressed=true] svg { fill: var(--mark); }
@media (hover: hover) {
  #app-preview .reel-actions button[aria-pressed=false]:hover { background: #eee3cf; }
}
@media (prefers-reduced-motion: no-preference) {
  #app-preview .reel-actions button { transition: background-color .14s; }
  #app-preview .reel-actions svg { transition: transform .14s, fill .14s; }
  #app-preview .reel-actions button:active svg { transform: scale(.88); }
}
#app-preview .reel-navigator { min-height: 45px; padding-inline: 8px 4px; gap: 2px; }
#app-preview .reel-navigator button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 6px;
  border-radius: 10px;
  background: transparent;
  font-size: 20px;
}
#app-preview .reel-navigator button[data-reel-play] { margin-right: auto; font-size: 13px; font-weight: 600; }
#app-preview .reel-navigator button[data-reel-first] { font-size: 13px; font-weight: 600; }
#app-preview .reel-navigator button[data-reel-first]:disabled { visibility: hidden; }
#app-preview .reel-navigator button:disabled { opacity: .36; cursor: default; }
#app-preview .reel-play-icon { width: 11px; height: 12px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
#app-preview .reel-playing .reel-play-icon { clip-path: polygon(0 0, 36% 0, 36% 100%, 0 100%, 0 0, 64% 0, 100% 0, 100% 100%, 64% 100%, 64% 0); }
#app-preview .reel-wishlist {
  flex: 1;
  overflow: auto;
  background: #fcf6eb;
  color: #35212a;
  padding: 10px 12px;
}
#app-preview .reel-wishlist h4 { font-size: 22px; letter-spacing: -.04em; }
#app-preview .reel-wishlist p { margin: 7px 0; font-size: 14px; color: #67544f; }
#app-preview .reel-wishlist button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin-top: 6px;
  padding: 6px;
  text-align: left;
  border-radius: 10px;
  background: #efe6d8;
  font-size: 14px;
  font-weight: 580;
}
#app-preview .reel-wishlist img { width: 44px; height: 46px; border-radius: 6px; object-fit: cover; }
#app-preview .reel-screen :is(button,summary,.reel-deck):focus-visible { outline: 3px solid #d85380; outline-offset: -3px; }
#app-preview .reel-announcement { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#app-preview .reel-screen [hidden] { display: none; }
