.screen-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.75rem);
}
.screen-intro p { margin-top: .9rem; max-width: 60ch; color: var(--glass-muted); }
.screen-intro .text-link { color: #e2cbff; }
#first-stream a[href^="#prism-screen-"] { color: #deccff; text-decoration: underline; text-underline-offset: .2em; }

.product-screens {
  container-type: inline-size;
  position: relative;
  isolation: isolate;
  min-width: 0;
  padding: clamp(.6rem, 1.3vw, 1.15rem);
  border: 1px solid #b7b6e9b8;
  border-radius: 1.45rem;
  background:
    radial-gradient(ellipse at 0 0, #ab64ed42, transparent 49%),
    radial-gradient(ellipse at 100% 100%, #42cbd939, transparent 51%),
    linear-gradient(130deg, #35324cdb, #121429f2 44%, #1f2a3cd9);
  box-shadow:
    inset 0 1px 1px #fff9, inset 0 -2px 1px #9de2ff61,
    -14px 1px 50px -20px #a15bfb8a, 16px 15px 55px -22px #33d6e173,
    0 26px 50px -28px #02020f;
}

.product-hero-grid:has(.screen-picker[hidden]) { align-items: start; }

.screen-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem;
  width: fit-content;
  max-width: 100%;
  padding: .2rem;
  margin: 0 0 .85rem;
  border: 1px solid #c6bbff4f;
  border-radius: .85rem;
  background: linear-gradient(145deg, #171227ee, #081320f2);
  box-shadow: inset 0 1px 5px #02040eaa, 0 1px 0 #e5d9ff22;
}
.screen-picker button {
  min-height: 44px;
  padding: .4rem clamp(.55rem, 1.3vw, 1.15rem);
  border: 1px solid #9389c24d;
  border-radius: .62rem;
  background: linear-gradient(155deg, #38304ae6, #1c1c32e8 48%, #172b39e6);
  color: #e4e1f7;
  box-shadow: inset 0 1px 0 #f3e4ff29;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
}
.screen-picker button:hover {
  background: linear-gradient(140deg, #49385f, #28273e 50%, #20404e);
  border-color: #ad9cd7;
  color: #fff;
}
.screen-picker button[aria-pressed="true"] {
  background:
    linear-gradient(to bottom, #f3e6ff26, transparent 42%),
    linear-gradient(112deg, #573285, #2d285c 55%, #174b5c);
  border-color: #dbbaff #9be5fa #76d8f0 #bc93f5;
  color: #fff;
  box-shadow:
    inset 0 1px 1px #f5dbff99, inset 0 -2px 5px #4dddf459,
    -3px 0 10px #b166fc66, 3px 1px 10px #55d9f34d;
}
.screen-picker button[aria-pressed="true"]:hover { border-color: #f0e5ff; }
.screen-picker button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}
.screen-figure { position: relative; margin: 0; }
.screen-figure + .screen-figure { margin-top: 1.4rem; }
.screen-picker:not([hidden]) ~ .screen-figure { margin-top: 0; }
.screen-image {
  display: grid;
  place-items: center;
  aspect-ratio: 1.83;
  overflow: hidden;
  min-width: 0;
  border: 1px solid #9ca7d84a;
  border-radius: .75rem;
  background: #060917;
}
.screen-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}
.screen-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .4rem 1rem;
  padding: 1rem .5rem .4rem;
  color: #f5f4ff;
}
.screen-caption > div { flex: 1 1 18rem; }
.screen-caption strong { display: block; font-size: 1.05rem; line-height: 1.35; }
.screen-caption p { margin: .25rem 0 0; color: #d3d2e7; font-size: .9rem; line-height: 1.6; }
.screen-zoom {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 44px;
  color: #d6eaff;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .25rem;
}
.screen-zoom::after { content: ""; position: absolute; inset: 0 0 auto; aspect-ratio: 1.83; cursor: zoom-in; border-radius: .75rem; }
.screen-zoom:focus-visible::after { outline: 2px solid #afecff; outline-offset: 2px; }
.screen-zoom:hover { color: white; }

@container (max-width: 40rem) {
  #prism-screen-event-setup .screen-image,
  #prism-screen-event-setup .screen-zoom::after { aspect-ratio: 1.2; }

  .screen-picker { width: 100%; align-items: stretch; }
  .screen-picker button {
    flex: 1 1 max(5.25rem, 28%);
    min-width: min-content;
    padding-inline: .25rem;
    font-size: .875rem;
    line-height: 1.3;
  }
}

@media (max-width: 600px) {
  .screen-caption { padding: .85rem .25rem .2rem; }
  .screen-caption > div { flex-basis: 100%; }
  .screen-zoom { min-height: 44px; }
}
@media (prefers-reduced-transparency: reduce) {
  .product-screens { background: #202338; box-shadow: none; }
  .screen-picker, .screen-picker button { background: #15192c; box-shadow: none; }
  .screen-picker button:hover { background: #333046; }
  .screen-picker button[aria-pressed="true"] { background: #43325f; box-shadow: none; }
}
@media (forced-colors: active) {
  .screen-picker button { border-color: ButtonText; }
  .screen-picker button[aria-pressed="true"] {
    border: 2px solid Highlight;
    text-decoration: underline;
  }
  .screen-picker button:focus-visible { outline-color: Highlight; }
  .product-screens, .screen-image { border-color: CanvasText; }
}
