/* Bold comic speech cards. Their layer starts behind the character. */
.edge-balloons-stage {
  position: fixed;
  inset: 0 auto auto 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2147482900;
  contain: layout style paint;
  isolation: isolate;
}
.edge-balloon {
  --birth-opacity: 0;
  --pop: 0;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  transform-origin: center;
  opacity: calc(var(--birth-opacity) * (1 - var(--pop)));
  will-change: transform;
}
.edge-balloon-surface {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .07));
}
.edge-balloon-link { pointer-events: auto; cursor: pointer; }
.edge-balloon-link.is-popping { pointer-events: none; }
.edge-balloon-link:focus-visible {
  outline: 2px solid var(--page-accent, #39ff14);
  outline-offset: 4px;
  border-radius: 12%;
}
.edge-balloon-card > .edge-balloon-surface {
  animation: edge-card-lifetime var(--card-lifetime, 5000ms) linear both;
}
@keyframes edge-card-lifetime {
  0%, 94.8% { opacity: 1; }
  100% { opacity: 0; }
}
.edge-balloon-surface path {
  fill: #fff;
  stroke: var(--page-accent, #39ff14);
  stroke-width: var(--stroke-width, 4.5px);
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.edge-balloon-surface .edge-balloon-border { fill: none; }
.edge-balloon-surface .edge-balloon-fill { stroke: none; }
.edge-balloon-tail { opacity: var(--tail-opacity, 1); }
.edge-tail-seam { opacity: calc(1 - var(--tail-opacity, 1)); }
.edge-balloon-surface .edge-tail-edge { fill: none; stroke-linecap: round; }
.edge-balloon-image {
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.edge-balloon.is-popping .edge-balloon-surface {
  transform: scale(calc(1 + var(--pop) * .16));
  filter: none;
}
.edge-balloon.is-popping .edge-balloon-surface path {
  fill-opacity: calc(1 - var(--pop));
  stroke-dasharray: 5 4;
}
.edge-balloon.is-popping .edge-balloon-image { opacity: calc(1 - var(--pop) * 1.5); }
.edge-balloon-image[hidden] { display: none; }
.edge-balloon-hint {
  --birth-opacity: 1;
  transform-origin: 72% 100%;
  animation: edge-hint-float var(--hint-duration, 3400ms) cubic-bezier(.2,.6,.25,1) both;
}
.edge-balloon-hint .edge-balloon-tail {
  animation: edge-hint-tail var(--hint-duration, 3400ms) linear both;
}
.edge-balloon-hint .edge-tail-seam {
  animation: edge-hint-seam var(--hint-duration, 3400ms) linear both;
}
@keyframes edge-hint-tail { 0%,20% { opacity: 1; } 40%,100% { opacity: 0; } }
@keyframes edge-hint-seam { 0%,20% { opacity: 0; } 40%,100% { opacity: 1; } }
.edge-balloon-surface .edge-hint-text {
  fill: #17201b;
  stroke: none;
  font: 600 10px system-ui, sans-serif;
  letter-spacing: -.12px;
}
@keyframes edge-hint-float {
  0% { opacity: 0; transform: translate3d(0,10px,0) scale(.3); }
  14% { opacity: 1; transform: translate3d(0,-8px,0) scale(1); }
  66% { opacity: 1; transform: translate3d(-8px,-66px,0) scale(1); }
  100% { opacity: 0; transform: translate3d(-15px,-112px,0) scale(.98); }
}
.edge-balloons-stage[data-reduced-motion="true"] .edge-balloon { will-change: auto; }
.edge-balloons-stage[data-reduced-motion="true"] .edge-balloon-hint { animation-name: edge-hint-fade; }
@keyframes edge-hint-fade { 0%,100% { opacity: 0; } 14%,75% { opacity: 1; } }
