body {
  padding: 0;
  margin: 0;
  overflow-x: hidden;  /* 가로 스크롤 방지 */
  overflow-y: auto;    /* 세로 스크롤 가능 */
  display: flex;
  flex-direction: column;
  align-items: center; /* 게임 화면을 가운데 정렬 */
}

#unity-container {
  position: relative;   /* absolute → relative */
  margin: 20px auto;
  width: 960px;         /* 빌드 해상도에 맞춤 */
  height: auto;
}

#unity-container.unity-desktop {
  left: auto;   /* 중앙 고정 해제 */
  top: auto;
  transform: none;
}

#unity-container.unity-mobile {
  position: relative;   /* fixed → relative */
  width: 100%;
  height: auto;
}

#unity-canvas {
  background: #231F20;
}

.unity-mobile #unity-canvas {
  width: 100%;
  height: auto;
}

#unity-loading-bar {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
}

#unity-logo {
  width: 154px;
  height: 130px;
  background: url('unity-logo-dark.png') no-repeat center;
}

#unity-progress-bar-empty {
  width: 141px;
  height: 18px;
  margin-top: 10px;
  margin-left: 6.5px;
  background: url('progress-bar-empty-dark.png') no-repeat center;
}

#unity-progress-bar-full {
  width: 0%;
  height: 18px;
  margin-top: 10px;
  background: url('progress-bar-full-dark.png') no-repeat center;
}

#unity-footer {
  position: relative;
}

.unity-mobile #unity-footer {
  display: none;
}

#unity-logo-title-footer {
  float: left;
  width: 102px;
  height: 38px;
  background: url('unity-logo-title-footer.png') no-repeat center;
}

#unity-build-title {
  float: right;
  margin-right: 10px;
  line-height: 38px;
  font-family: arial;
  font-size: 18px;
}

#unity-fullscreen-button {
  cursor: pointer;
  float: right;
  width: 38px;
  height: 38px;
  background: url('fullscreen-button.png') no-repeat center;
}

#unity-warning {
  position: absolute;
  left: 50%;
  top: 5%;
  transform: translate(-50%);
  background: white;
  padding: 10px;
  display: none;
}

#game-instructions {
  max-width: 960px;
  width: 100%;
  margin: 20px auto;
  padding: 20px;
  background: #f8f8f8;
  color: #333;
  font-family: sans-serif;
  border-radius: 10px;
  line-height: 1.6;
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#game-instructions h2 {
  margin-top: 0;
  font-size: 18px;
  text-align: center;
}
