/* RoomEscape WebGL 템플릿(SD). haylab CSP: 인라인 style 금지 → 모든 스타일은 이 파일에 둔다. */
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0d0e12;
}

/* 데스크톱: 세로 비율(9:19.5) 레터박스. 모바일: 화면 전체. */
#unity-canvas {
  display: block;
  margin: 0 auto;
  height: 100%;
  width: min(100vw, calc(100vh * 9 / 19.5));
  outline: none;
  touch-action: none;
  background: #1f1f20;
}

body.mobile #unity-canvas {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

#re-loading,
#re-error {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  width: min(80vw, 280px);
  text-align: center;
  color: #d7dae2;
  font: 14px/1.5 -apple-system, system-ui, sans-serif;
}

#re-loading p {
  margin: 0 0 8px;
}

#re-progress {
  width: 100%;
  height: 8px;
}

#re-error {
  color: #ff9b9b;
  overflow-wrap: anywhere;
}

#re-loading[hidden],
#re-error[hidden] {
  display: none;
}
