:root {
  --bg0: #14171c;
  --bg1: #1f232a;
  --panel: rgba(255, 255, 255, 0.06);
  --text: rgba(255, 255, 255, 0.92);
  --textDim: rgba(255, 255, 255, 0.65);
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

.stage {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 900px;
  touch-action: none;
}

.boar-wrap {
  position: relative;
  width: min(900px, 96vw);
  height: min(900px, 96vh);
}

.boar-host {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  user-select: none;
  -webkit-user-select: none;

  background: transparent;
  box-shadow: none;
  border-radius: 0;

  overflow: visible;
}

#boar-host svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  background: transparent;
}

#boar-host svg * {
  transform-box: fill-box;
  transform-origin: center;
}

.hint {
  position: absolute;
  left: 16px;
  bottom: 14px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--textDim);
  font-size: 13px;
  line-height: 1;
  pointer-events: none;
}

.motion-btn {
  position: absolute;
  right: 16px;
  bottom: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.motion-btn:hover {
  background: rgba(0, 0, 0, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  .hint {
    display: none;
  }
}

/* если в SVG есть белый фон-rect первым элементом */
#boar-host svg > rect:first-child {
  fill: transparent !important;
}
