/* Shared, deliberately slim device shell for the unedited production screenshots. */
.gater-device,
.new-hero .gater-device,
.story-device-wrap .gater-device,
.feature-split .gater-device,
.lobby-devices .gater-device {
  --device-width: 320px;
  --device-tilt: 0deg;
  --device-lift: 0px;
  --device-scale: 1;
  --device-shadow-blur: 58px;
  position: relative;
  z-index: var(--device-layer, 1);
  display: block;
  flex: 0 0 auto;
  box-sizing: border-box;
  width: var(--device-width);
  max-width: 100%;
  height: auto;
  aspect-ratio: auto;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 37px;
  background: transparent;
  outline: 0;
  box-shadow:
    0 0 0 1px rgba(207, 203, 215, .58),
    0 0 0 2px rgba(196, 145, 177, .08),
    0 27px var(--device-shadow-blur) rgba(0, 0, 0, .46),
    0 12px 26px rgba(14, 8, 26, .42),
    inset 0 1px rgba(255, 255, 255, .22);
  transform: translateY(var(--device-lift)) rotate(var(--device-tilt)) scale(var(--device-scale));
  transform-origin: center;
  opacity: 1;
  isolation: isolate;
}

.gater-device::before,
.new-hero .gater-device::before,
.story-device-wrap .gater-device::before,
.feature-split .gater-device::before,
.lobby-devices .gater-device::before {
  content: none;
  display: none;
}

.gater-device::after,
.new-hero .gater-device::after,
.story-device-wrap .gater-device::after,
.feature-split .gater-device::after,
.lobby-devices .gater-device::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: inherit;
  background: none;
  box-shadow: inset 0 1px rgba(255, 255, 255, .20);
  pointer-events: none;
}

.gater-device .device-display,
.new-hero .gater-device .device-display {
  display: block;
  width: 100%;
  aspect-ratio: 851 / 1848;
  overflow: hidden;
  border-radius: 36px;
  background: #131119;
  box-shadow: inset 0 0 0 1px rgba(222, 218, 232, .12);
}

.gater-device .device-display img,
.new-hero .gater-device .device-display img,
.story-device-wrap .gater-device .device-display img,
.feature-split .gater-device .device-display img,
.lobby-devices .gater-device .device-display img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  filter: none;
}

.gater-device figcaption,
.new-hero .gater-device figcaption,
.story-device-wrap .gater-device figcaption,
.feature-split .gater-device figcaption,
.lobby-devices .gater-device figcaption {
  position: absolute;
  z-index: 3;
  right: -5px;
  bottom: -30px;
  left: -5px;
  padding: 0;
  border: 0;
  color: #c8bdcc;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  font-size: .73rem;
  font-weight: 650;
  line-height: 1.5;
  text-align: center;
  white-space: normal;
}

.new-hero .gater-device.fan-matching {
  --device-width: clamp(270px, 27vw, 350px);
  --device-tilt: 2deg;
  --device-lift: -3px;
}

.story-device-wrap .gater-device.story-shot {
  --device-width: min(340px, 86%);
  --device-tilt: 2deg;
}

.feature-split .gater-device.matching-showcase-wrap {
  --device-width: min(350px, 90%);
  --device-tilt: -2deg;
  justify-self: center;
}

.lobby-devices .gater-device.lobby-device-create {
  --device-width: clamp(215px, 21vw, 270px);
  --device-tilt: -4deg;
  --device-lift: 20px;
  --device-layer: 1;
  margin-right: 30px;
}

.lobby-devices .gater-device.lobby-device-detail {
  --device-width: clamp(240px, 25vw, 320px);
  --device-tilt: 3deg;
  --device-layer: 2;
}

/* The supplied lobby capture has excess empty safe-area pixels below its bottom tab bar.
   Crop only that blank tail in the presentation; keep the screenshot pixels and proportions intact. */
.lobby-devices .gater-device.lobby-device-detail .device-display {
  aspect-ratio: 851 / 1748;
}
.lobby-devices .gater-device.lobby-device-detail .device-display img {
  object-fit: cover;
  object-position: center top;
}

@media (max-width: 900px) {
  .new-hero .gater-device.fan-matching { --device-width: min(39vw, 330px); }
  .lobby-devices { padding-bottom: 42px; }
}

@media (max-width: 760px) {
  .new-hero .gater-device.fan-matching {
    --device-width: min(80vw, 344px);
    --device-tilt: 1deg;
    --device-lift: 0px;
  }
  .story-device-wrap .gater-device.story-shot {
    --device-width: min(80vw, 340px);
    --device-tilt: 1deg;
  }
  .feature-split .gater-device.matching-showcase-wrap {
    --device-width: min(80vw, 340px);
    --device-tilt: -1deg;
  }
  .lobby-devices .gater-device.lobby-device-create { --device-width: min(60vw, 255px); }
  .lobby-devices .gater-device.lobby-device-detail { --device-width: min(74vw, 310px); }
}

@media (max-width: 520px) {
  .gater-device,
  .new-hero .gater-device,
  .story-device-wrap .gater-device,
  .feature-split .gater-device,
  .lobby-devices .gater-device { border-radius: 33px; }
  .gater-device .device-display,
  .new-hero .gater-device .device-display { border-radius: 27px; }
  .new-hero .gater-device::after,
  .story-device-wrap .gater-device::after,
  .feature-split .gater-device::after,
  .lobby-devices .gater-device::after { border-radius: 31px; }
  .lobby-devices { gap: 44px; }
  .lobby-devices .gater-device.lobby-device-create,
  .lobby-devices .gater-device.lobby-device-detail {
    --device-width: min(82vw, 320px);
    --device-tilt: 0deg;
    --device-lift: 0px;
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gater-device { transition: none; }
}
