/* The page around the game: the same ink as the game's own stage. */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: #131A24;
  color: #F6EEDD;
  font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  overscroll-behavior: none;
}

#unity-container {
  position: fixed;
  inset: 0;
}

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

#unity-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: radial-gradient(circle at 50% 40%, #232E40 0%, #131A24 70%);
}

#unity-loading-name {
  font-size: clamp(38px, 9vw, 96px);
  font-weight: bold;
  letter-spacing: 0.08em;
  color: #F6EEDD;
}

#unity-loading-tag {
  font-size: clamp(13px, 2.2vw, 20px);
  color: #A8B0BC;
}

#unity-progress-bar-empty {
  width: min(52vw, 420px);
  height: 10px;
  margin-top: 10px;
  border-radius: 999px;
  background: #2A3550;
}

#unity-progress-bar-full {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #A87A28, #D9A441);
  transition: width 0.15s ease-out;
}

#unity-warning {
  position: absolute;
  left: 0;
  right: 0;
  top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.banner-warning, .banner-error {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  background: #2A3550;
  color: #F0BE5A;
}

.banner-error {
  background: #4a1d1d;
  color: #ffd0d0;
}

/* Landscape-only gameplay is a design call (stations are stage-shaped).
   Portrait on a touch device gets a clear ask, not a broken layout. */
#rotate-overlay {
  display: none;
}

@media (orientation: portrait) and (pointer: coarse) {
  #rotate-overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 28px;
    text-align: center;
    background: #1B2430;
  }
}

#rotate-phone {
  width: 48px;
  height: 86px;
  border: 4px solid #D9A441;
  border-radius: 12px;
  animation: rotate-hint 2s ease-in-out infinite;
}

@keyframes rotate-hint {
  0%, 18% { transform: rotate(0deg); }
  50%, 85% { transform: rotate(-90deg); }
  100% { transform: rotate(0deg); }
}

#rotate-title {
  font-size: 24px;
  font-weight: bold;
  color: #F6EEDD;
}

#rotate-sub {
  font-size: 15px;
  color: #A8B0BC;
}
