/* LUMBRA, version navigateur : plein écran, nuit violette, logo doré. */
html, body {
  margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden;
  background: #0b0618; color: #fff3d0;
  font-family: -apple-system, "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  touch-action: none; overscroll-behavior: none;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
/* V2 : jeu vertical. Sur téléphone, plein écran ; sur ordinateur, une colonne 9:16 centrée. */
#unity-canvas { position: fixed; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); height: 100%;
  width: min(100vw, 56.25vh); display: block; background: #0b0618; outline: none; }
@media (orientation: portrait) { #unity-canvas { width: 100vw; } }

#loading {
  position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 50% 42%, #3a2470 0%, #170c35 55%, #0b0618 100%); z-index: 5;
}
#loading-logo { width: min(70vw, 620px); height: auto; filter: drop-shadow(0 0 24px rgba(255, 200, 74, 0.45)); }
#bar { width: min(60vw, 520px); height: 22px; margin-top: 22px; border-radius: 11px; background: #1b1238;
  border: 3px solid #160b26; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35); overflow: hidden; }
#bar-fill { width: 0%; height: 100%; border-radius: 8px; background: linear-gradient(180deg, #fff1a0 0%, #ffc84a 55%, #e8901a 100%);
  transition: width 0.2s ease-out; }
#loading-text { margin-top: 14px; font-size: 20px; font-weight: 800; letter-spacing: 0.5px; text-shadow: 0 2px 0 #160b26; }
#loading-hint { margin-top: 6px; font-size: 14px; color: #c9bff0; text-align: center; padding: 0 20px; }

#rotate {
  position: fixed; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center;
  background: #0b0618; z-index: 10; text-align: center; padding: 24px;
}
#rotate-phone {
  width: 70px; height: 120px; border: 6px solid #ffc84a; border-radius: 16px; box-shadow: 0 0 22px rgba(255, 200, 74, 0.5);
  animation: turn 2.2s ease-in-out infinite;
}
#rotate-title { margin-top: 30px; font-size: 26px; font-weight: 900; color: #ffc84a; text-shadow: 0 3px 0 #160b26; }
#rotate-text { margin-top: 8px; font-size: 16px; color: #c9bff0; }
@keyframes turn { 0%, 30% { transform: rotate(-90deg); } 60%, 100% { transform: rotate(0deg); } }
/* Téléphone tenu à l'horizontale : on demande de le redresser. */
@media (orientation: landscape) and (max-height: 600px) { #rotate { display: flex; } }

#install-tip {
  display: none; position: fixed; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(86vw, 560px); padding: 10px 40px 10px 14px; border-radius: 14px; z-index: 8;
  background: rgba(22, 11, 38, 0.92); border: 2px solid #ffc84a; font-size: 14px; line-height: 1.35;
}
#install-close { position: absolute; right: 10px; top: 4px; font-size: 26px; color: #ffc84a; cursor: pointer; }
