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

body {
  min-width: 0;
}

.responsive-room {
  --design-width: 2560px;
  --design-height: 1440px;
  --room-scale: 1;
}

.responsive-room #space {
  position: fixed;
  left: 50%;
  top: 50%;
  width: var(--design-width);
  height: var(--design-height);
  transform: translate(-50%, -50%) scale(var(--room-scale));
  transform-origin: center center;
}

.orientationNotice {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: #000;
  color: #ddd;
  font-family: Helvetica, Arial, sans-serif;
  text-align: center;
}

.orientationNoticeInner {
  max-width: 520px;
  line-height: 1.6;
  letter-spacing: 1px;
}

.orientationNoticeTitle {
  margin-bottom: 18px;
  color: #f0f0f0;
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 4px;
}

@media (orientation: portrait) {
  .orientationNotice {
    display: flex;
  }
}

@media (max-width: 1400px) {
  .responsive-room h1 {
    top: 16px;
    left: 60px;
    font-size: 18px;
  }

  .responsive-room #room-indicator {
    top: 14px;
    max-width: calc(100vw - 180px);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 12px;
  }

  .responsive-room #room-hint {
    top: 56px;
    font-size: 11px;
  }

  .responsive-room .navArrow.left {
    left: 18px;
  }

  .responsive-room .navArrow.right {
    right: 18px;
  }

  .responsive-room #lightToggle {
    right: 14px;
    bottom: 14px;
  }
}

@media (max-height: 820px) {
  .responsive-room .buttonGroup {
    bottom: 12px;
  }

  .responsive-room #room-phrase {
    bottom: 78px;
  }
}

@media (max-width: 1200px) and (orientation: landscape) {
  .responsive-room .controlButton,
  .responsive-room #lightToggle {
    min-height: 42px;
    padding: 10px 14px;
    font-size: 13px;
  }

  .responsive-room #room-phrase {
    max-width: 74vw;
    text-align: center;
    font-size: 17px;
  }
}
