html,
body.window-mode {
  font-family: Helvetica, Arial, sans-serif;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body.window-mode {
  background:
    radial-gradient(circle at 18% 16%, rgb(23 147 120 / 9%), transparent 30%),
    radial-gradient(circle at 88% 82%, rgb(76 122 159 / 10%), transparent 34%),
    #f6f5f0;
}

.window-stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 360px;
  overflow: hidden;
}

.window-viewer {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

.window-viewer .scene-wrap {
  width: 100%;
  height: 100%;
}

.window-viewer #scene {
  width: 100%;
  height: 100%;
  cursor: default;
  pointer-events: none;
}

.window-brand {
  position: absolute;
  z-index: 2;
  top: clamp(24px, 4vw, 64px);
  left: clamp(24px, 5vw, 80px);
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 2vw, 30px);
  color: var(--ink);
  pointer-events: none;
}

.window-logo {
  display: block;
  width: clamp(170px, 22vw, 350px);
  height: auto;
}

.window-qr {
  position: absolute;
  z-index: 2;
  top: clamp(24px, 4vw, 64px);
  right: clamp(24px, 5vw, 80px);
  width: clamp(120px, 14vw, 190px);
  background: transparent;
  pointer-events: none;
}

.window-qr img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.window-fullscreen {
  position: absolute;
  z-index: 3;
  right: clamp(18px, 3vw, 44px);
  bottom: clamp(18px, 3vw, 44px);
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgb(253 253 249 / 88%);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.window-fullscreen:hover,
.window-fullscreen:focus-visible { background: #fdfdf9; }
.window-fullscreen[hidden] { display: none; }

@media (max-width: 430px) {
  .window-logo { width: 160px; }
  .window-qr { width: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  .window-stage { scroll-behavior: auto; }
}
