.live2d-mascot {
  position: fixed;
  left: max(8px, env(safe-area-inset-left));
  bottom: max(8px, env(safe-area-inset-bottom));
  z-index: 30;
  pointer-events: none;
  max-width: calc(100vw - 16px);
  background: transparent !important;
}
.live2d-mascot[data-position="right"] { left: auto; right: max(8px, env(safe-area-inset-right)); }
.live2d-mascot-stage { width: var(--mascot-width); height: var(--mascot-height); background: transparent !important; }
.live2d-mascot-stage[hidden] { display: none; }
.live2d-mascot canvas { display: block; width: 100%; height: 100%; background: transparent !important; transform: scaleX(-1); }
.side-tools-container .tool-live2d-toggle,
.side-tools-container .tool-live2d-credits { min-width: 44px; min-height: 44px; }
.tool-live2d-toggle button, .tool-live2d-credits a {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  border-radius: inherit;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  line-height: 1.5;
  cursor: pointer;
  text-decoration: none;
}
.tool-live2d-toggle button:focus-visible, .tool-live2d-credits a:focus-visible { outline: 2px solid var(--primary-color, #52853e); outline-offset: 2px; }
.side-tools-container .tool-live2d-toggle.is-active { background: var(--primary-color); color: var(--background-color); }
.side-tools-container .tool-live2d-toggle.is-active i { color: inherit; }
.live2d-mascot-status { display: block; max-width: 200px; background: #f6fff2; color: #284124; font-size: 12px; }
.live2d-mascot-status:empty { display: none; }
@media (max-width: 767px) {
  .live2d-mascot-stage { width: 120px; height: 180px; }
}
