:root,
html,
body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  height: var(--app-height, 100dvh);
  margin: 0;
  padding: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background-color: #0B0F17;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans JP", sans-serif;
  touch-action: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

#unity-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  height: var(--app-height, 100dvh);
  overflow: hidden;
  background-color: #0B0F17;
  touch-action: none;
}

#unity-fullscreen-container {
  position: relative;
  width: 100%;
  height: 100%;
  touch-action: none;
}

#unity-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  background: #231F20;
  -webkit-user-select: none;
  user-select: none;
  outline: none;
}

#unity-loading-container {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 42%, #172338 0%, #0B0F17 72%);
  z-index: 20;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  transition: opacity 0.25s ease;
}

#unity-loading-card {
  width: min(360px, 78vw);
  padding: 24px 28px;
  border-radius: 16px;
  background: rgba(15, 20, 30, 0.92);
  border: 1px solid rgba(235, 198, 72, 0.35);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55);
  text-align: center;
}

#unity-brand-title {
  color: #F2CE5B;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

#unity-progress-bar-empty {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

#unity-progress-bar-full {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2B9B54 0%, #F2CE5B 100%);
  transition: width 0.08s linear;
}

#unity-progress-label {
  margin-top: 10px;
  color: #CBD5E1;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

#unity-warning {
  position: fixed;
  left: 50%;
  top: max(12px, env(safe-area-inset-top));
  transform: translateX(-50%);
  z-index: 30;
  display: none;
  max-width: 90vw;
  font-size: 13px;
  color: #FFFFFF;
}

#unity-footer {
  display: none;
}

#diagnostics-icon {
  position: fixed;
  right: max(10px, env(safe-area-inset-right));
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 25;
  cursor: pointer;
}
