/* App taster embed (lib/tasters.mjs). The app draws the whole card; this file only frames it and covers it with a
   wordless Bello while the player loads. 430 x 568 and the 28px corner are the app card's own geometry
   (gutsphere_app web_taster.css); on a phone the card runs the full width and keeps its height. */
.gs-taster { --gs-taster-width: 430px; --gs-taster-height: 568px; --gs-taster-radius: 1.75rem;
  position: relative; box-sizing: border-box; width: min(100%, var(--gs-taster-width)); height: var(--gs-taster-height);
  justify-self: center; margin-inline: auto; overflow: hidden; border: var(--gs-border-width) solid var(--gs-color-border);
  border-radius: var(--gs-taster-radius); background: var(--gs-color-surface); scroll-margin-top: var(--gs-anchor-offset); }
.gs-taster__frame { display: block; width: 100%; height: 100%; border: 0; }

/* Added by taster.js, so a page without script shows the frame as it loads. Decorative: the frame keeps its title. */
.gs-taster__cover { position: absolute; inset: 0; display: grid; place-items: center; background: var(--gs-color-surface); transition: opacity 200ms ease; }
.gs-taster__cover[data-ready] { opacity: 0; }
.gs-taster__bello { position: relative; width: 160px; height: 223px; }
.gs-taster__bello img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; animation: 4000ms step-end infinite; }

/* Until the app serves /demo: Bello waves over "Coming soon" in the card's own space, so the page does not move later. */
.gs-taster--soon { display: grid; place-content: center; justify-items: center; gap: var(--gs-space-3); padding: var(--gs-space-6); text-align: center; }
.gs-taster__soon { margin: var(--gs-space-4) 0 0; font-family: var(--gs-font-heading); font-size: var(--gs-text-xl); font-weight: var(--gs-weight-bold); color: var(--gs-color-text); }
.gs-taster__soon-text { max-width: 28ch; margin: 0; font-size: var(--gs-text-md); color: var(--gs-color-text-muted); }

/* Bello's hello loop, frame for frame as in the app: sit 3-2-1, wave 1-2-3-2-1-2-3-2-1, sit 1-2-3, rest, blink, rest. */
@keyframes gs-bello-sit-1 { 0% { opacity: 0 } 6% { opacity: 1 } 9.5% { opacity: 0 } 52.25% { opacity: 1 } 55.75% { opacity: 0 } }
@keyframes gs-bello-sit-2 { 0% { opacity: 0 } 3% { opacity: 1 } 6% { opacity: 0 } 55.75% { opacity: 1 } 59.25% { opacity: 0 } }
@keyframes gs-bello-sit-3 { 0% { opacity: 1 } 3% { opacity: 0 } 59.25% { opacity: 1 } 64.25% { opacity: 0 } }
@keyframes gs-bello-wave-1 { 0% { opacity: 0 } 9.5% { opacity: 1 } 14.25% { opacity: 0 } 28.5% { opacity: 1 } 33.25% { opacity: 0 } 47.5% { opacity: 1 } 52.25% { opacity: 0 } }
@keyframes gs-bello-wave-2 { 0% { opacity: 0 } 14.25% { opacity: 1 } 19% { opacity: 0 } 23.75% { opacity: 1 } 28.5% { opacity: 0 } 33.25% { opacity: 1 } 38% { opacity: 0 } 42.75% { opacity: 1 } 47.5% { opacity: 0 } }
@keyframes gs-bello-wave-3 { 0% { opacity: 0 } 19% { opacity: 1 } 23.75% { opacity: 0 } 38% { opacity: 1 } 42.75% { opacity: 0 } }
@keyframes gs-bello-rest { 0% { opacity: 0 } 64.25% { opacity: 1 } 81.75% { opacity: 0 } 85.5% { opacity: 1 } 100% { opacity: 0 } }
@keyframes gs-bello-blink { 0% { opacity: 0 } 81.75% { opacity: 1 } 85.5% { opacity: 0 } }
.gs-taster__bello [data-frame="sit-1"] { animation-name: gs-bello-sit-1; }
.gs-taster__bello [data-frame="sit-2"] { animation-name: gs-bello-sit-2; }
.gs-taster__bello [data-frame="sit-3"] { animation-name: gs-bello-sit-3; }
.gs-taster__bello [data-frame="wave-1"] { animation-name: gs-bello-wave-1; }
.gs-taster__bello [data-frame="wave-2"] { animation-name: gs-bello-wave-2; }
.gs-taster__bello [data-frame="wave-3"] { animation-name: gs-bello-wave-3; }
.gs-taster__bello [data-frame="rest"] { animation-name: gs-bello-rest; }
.gs-taster__bello [data-frame="blink"] { animation-name: gs-bello-blink; }
@media (prefers-reduced-motion: reduce) {
  .gs-taster__cover { transition: none; }
  .gs-taster__bello img { animation: none; }
  .gs-taster__bello [data-frame="rest"] { opacity: 1; }
}
