/* ── Possibilities page container ── */
#poss-page {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, #111111 0%, #0a1a2c 100%);
}

/* ── Logo: plus-lighter blend on this page ── */
#logo-btn {
  mix-blend-mode: plus-lighter;
}

/* ── Robot info (name badge + request), shown only while one is active ── */
#poss-info {
  position: fixed;
  top: max(28px, calc(16px + env(safe-area-inset-top, 0px)));
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: min(560px, 82vw);
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
#poss-info.visible { opacity: 1; }

#poss-info-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: #1DB2FF;
  color: #0a0a0a;
  font-family: 'Roboto Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

#poss-info-request {
  margin: 0;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: #ffffff;
}

@media (max-width: 768px) {
  #poss-info { top: max(96px, calc(56px + env(safe-area-inset-top, 0px))); width: 86vw; }
  #poss-info-badge { font-size: 14px; }
  #poss-info-request { font-size: 16px; }
}

/* ── Carousel ── */
#poss-carousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  /* Stop the browser from treating any touch here as a page scroll/pan
     gesture — otherwise mobile Safari/Chrome can pop the toolbar back in
     while a robot is playing, even though the page itself never scrolls. */
  touch-action: none;
}
#poss-carousel.dragging { cursor: grabbing; }

#poss-track {
  display: flex;
  height: 100%;
  will-change: transform;
}

.poss-item {
  flex-shrink: 0;
  width: calc(100vw / 3.2);
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  /* Reserve space so robots sit above the logo instead of covering it. */
  padding-bottom: max(90px, 9vh);
}

.poss-item video {
  display: block;
  /* Actual size is set inline by possibilities.js, proportional to each
     robot's native canvas. Not clamped to the slot's own width/height —
     the largest robots are intentionally sized past their slot so item
     spacing can stay tight without shrinking them (see updateDimensions). */
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* Siblings dim while one robot is active/playing */
.poss-item {
  opacity: 1;
  transition: opacity 0.25s ease;
}
#poss-track.has-active .poss-item {
  opacity: 0.3;
}
#poss-track.has-active .poss-item.active {
  opacity: 1;
}

@media (max-width: 768px) {
  .poss-item {
    padding-bottom: max(100px, calc(10vh + env(safe-area-inset-bottom, 0px)));
  }
}
