/* The embedded app sizes to its content; its verse is never clipped into a
   second scrolling surface. The outer project page owns vertical scrolling. */
.portal-shell .gum-player-host.gum-embed {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 0;
  background: #000;
}
.portal-shell .gum-player-host.gum-embed > iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  border: 0;
  background: #000;
  opacity: 0;
  transition: opacity .16s ease;
}
.portal-shell .gum-player-host.gum-embed.is-ready > iframe { opacity: 1; }
.portal-shell .gum-embed-status {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 30px;
  text-align: center;
  background: radial-gradient(ellipse at center, #22262b50, transparent 65%), #000;
  color: #d9dde3;
}
.portal-shell .gum-embed-status[hidden] { display: none; }
.portal-shell .gum-embed-status p { margin: 0; font: 12px var(--mono); letter-spacing: .04em; }
.portal-shell .gum-loading-light { width: 9px; height: 9px; background: #efb9df; box-shadow: 0 0 18px #efb9df66; animation: gum-loading-light 1.4s ease-in-out infinite; }
.portal-shell .gum-embed-status .text-link { margin-top: 8px; font-size: 10px; }
.portal-shell .gum-embed-status a[hidden], .portal-shell .gum-loading-light[hidden] { display: none; }
@keyframes gum-loading-light { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
  .portal-shell .gum-loading-light { animation: none; }
  .portal-shell .gum-player-host.gum-embed > iframe { transition: none; }
}
