:root {
  --popup-bg: #ffff99;
  --popup-text: #000000;
}

* {
  box-sizing: border-box;
}

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

body {
  background: #ffffff;
  color: #000000;
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: #003399;
}

.site-stage-page {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.legacy-stage-frame {
  aspect-ratio: 3 / 2;
  background: #ffffff;
  max-width: 750px;
  width: min(100%, 750px);
}

.legacy-stage-frame object,
.legacy-stage-frame embed,
.legacy-stage-frame ruffle-embed,
.legacy-stage-frame ruffle-object,
.legacy-stage-frame ruffle-player {
  display: block;
  height: 100%;
  width: 100%;
}

.fallback-copy {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  padding: 16px;
}

.legacy-popup-page {
  background: var(--popup-bg);
  color: var(--popup-text);
}

.legacy-popup {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  max-width: 720px;
  min-height: 100vh;
  padding: 20px 20px 28px;
  text-align: center;
}

.legacy-popup--small {
  max-width: 420px;
}

.legacy-popup h1 {
  font-size: 32px;
  line-height: 1.1;
  margin: 0 0 16px;
}

.legacy-popup hr {
  border: 0;
  border-top: 1px solid #000000;
  margin: 12px 0 18px;
  width: 100%;
}

.legacy-popup p {
  margin: 0 0 12px;
}

.qtvr-viewer-shell {
  display: flex;
  justify-content: center;
}

.legacy-unavailable {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  font-size: 14px;
  font-weight: bold;
  gap: 6px;
  height: 128px;
  justify-content: center;
  padding: 12px;
  width: 128px;
}

.legacy-unavailable p {
  margin: 0;
}

.qtvr-panorama {
  background: #111111;
  border: 1px solid rgba(0, 0, 0, 0.35);
  cursor: grab;
  overflow: hidden;
  touch-action: none;
  user-select: none;
}

.qtvr-panorama.is-loading {
  align-items: center;
  display: flex;
  justify-content: center;
}

.qtvr-panorama.is-loading::before {
  content: "laden...";
  font-size: 14px;
}

.qtvr-panorama.is-dragging {
  cursor: grabbing;
}

.qtvr-panorama canvas {
  display: block;
  height: 100%;
  width: 100%;
}

.viewer-help,
.legacy-note {
  font-size: 14px;
  line-height: 1.4;
}

.legacy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 4px 0 14px;
}

@media (max-width: 820px) {
  .site-stage-page {
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .legacy-popup {
    padding: 20px 12px 24px;
  }

  .legacy-popup h1 {
    font-size: 28px;
  }
}
