/* Shared, decorative welcome mascot. Scoped to avoid changing page styles. */
.igloo-welcome {
  width: 220px;
  max-width: 100%;
  margin: 18px auto 0;
  color: var(--ink, #23232e);
  text-align: center;
}

.igloo-welcome__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #fff;
}

.igloo-welcome__poster,
.igloo-welcome__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.igloo-welcome__poster {
  position: relative;
}

.igloo-welcome__video {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.igloo-welcome[data-frame="visible"] .igloo-welcome__video {
  opacity: 1;
}

.igloo-welcome__controls {
  min-height: 44px;
  margin-top: 2px;
}

.igloo-welcome__toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 7px 11px;
  border: 0;
  border-radius: 8px;
  color: inherit;
  background: transparent;
  font: 600 14px/1.3 var(--body, "Titillium Web", system-ui, sans-serif);
  cursor: pointer;
  touch-action: manipulation;
}

.igloo-welcome__toggle[hidden] {
  display: none;
}

.igloo-welcome__toggle:hover {
  background: var(--wash, #f7f7fa);
}

.igloo-welcome__toggle:focus-visible {
  outline: 3px solid var(--cyan, #34d9e9);
  outline-offset: 3px;
}

.igloo-welcome__icon {
  display: none;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.igloo-welcome__toggle[data-action="play"] .igloo-welcome__icon--play,
.igloo-welcome__toggle[data-action="pause"] .igloo-welcome__icon--pause,
.igloo-welcome__toggle[data-action="replay"] .igloo-welcome__icon--replay {
  display: block;
}

@media (max-width: 560px) {
  .igloo-welcome {
    width: 180px;
    margin-top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .igloo-welcome *,
  .igloo-welcome *::before,
  .igloo-welcome *::after {
    animation: none !important;
    transition: none !important;
  }
}
