/* === Reset === */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: #1a1a2e;
}

/* === Loading Cover === */
#loading-cover {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #1a1a2e;
  z-index: 100;
  transition: opacity 0.5s ease;
}
#loading-cover.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* === Title Logo === */
#loading-logo {
  max-width: 480px;
  width: 60%;
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  margin-bottom: 24px;
}

/* === Tama Canvas === */
#loading-canvas {
  width: 144px;
  height: 220px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  margin-bottom: 24px;
}

/* === Progress Bar === */
#progress-container {
  width: 300px;
  max-width: 80%;
}
#progress-bar-bg {
  width: 100%;
  height: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
}
#progress-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #B8860B 0%, #DAA520 100%);
  transition: width 0.15s ease-out;
}
#loading-text {
  text-align: center;
  color: #DAA520;
  font-family: -apple-system, 'Segoe UI', sans-serif;
  font-size: 14px;
  margin-top: 12px;
  letter-spacing: 0.05em;
}

/* === Unity Canvas === */
#unity-container {
  width: 100%;
  height: 100%;
}
#unity-canvas {
  width: 100%;
  height: 100%;
  background: #1a1a2e;
}

/* === Fullscreen Button === */
#fullscreen-btn {
  position: fixed;
  bottom: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  transition: background 0.2s ease, opacity 0.2s ease;
  opacity: 0.5;
}
#fullscreen-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  opacity: 1;
}
#fullscreen-btn svg {
  width: 20px;
  height: 20px;
  fill: rgba(255, 255, 255, 0.8);
}

/* === Error Message === */
#error-message {
  display: none;
  text-align: center;
  color: #ff6b6b;
  font-family: -apple-system, 'Segoe UI', sans-serif;
  font-size: 14px;
  margin-top: 16px;
  max-width: 400px;
  line-height: 1.5;
}

/* === Warning Banner === */
#unity-warning {
  position: fixed;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  max-width: 600px;
  width: 90%;
}
#unity-warning div {
  background: rgba(255, 200, 50, 0.9);
  color: #1a1a2e;
  padding: 8px 16px;
  margin-bottom: 4px;
  font-family: -apple-system, 'Segoe UI', sans-serif;
  font-size: 13px;
  border-radius: 4px;
}
