:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  background: #0d1422;
  color: #f4f0e7;
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  background: #0d1422;
  overscroll-behavior: none;
}

#unity-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #0d1422;
}

#unity-canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
  background: #0d1422;
  touch-action: none;
}

#unity-loading-bar {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: none;
  justify-items: center;
  gap: 10px;
  width: min(88vw, 360px);
  padding: 24px;
  transform: translate(-50%, -50%);
  border: 1px solid #35445a;
  border-radius: 16px;
  background: #172338;
  box-shadow: 0 16px 48px #0008;
  text-align: center;
}

.loading-title { color: #ffe5a0; font-size: 20px; font-weight: 750; }
.loading-copy { color: #c5d0df; font-size: 14px; }

#unity-progress-bar-empty {
  width: 100%;
  height: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: #35445a;
}

#unity-progress-bar-full {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #59d0a4;
  transition: width 120ms linear;
}

#unity-warning {
  position: absolute;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 3;
  display: none;
  width: min(92vw, 560px);
  padding: 12px 16px;
  transform: translateX(-50%);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

#unity-warning.warning { background: #76551c; }
#unity-warning.error { background: #8c3434; }

#unity-fullscreen-button {
  position: absolute;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 1;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #ffffff35;
  border-radius: 9px;
  background: #172338cc;
  color: #e7edf5;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  opacity: 0.68;
}

#unity-fullscreen-button:hover,
#unity-fullscreen-button:focus-visible { opacity: 1; }

@media (max-width: 480px) {
  #unity-fullscreen-button {
    top: max(112px, calc(env(safe-area-inset-top) + 112px));
    bottom: auto;
    min-height: 44px;
    padding-inline: 14px;
  }
}
