body { padding: 0; margin: 0 }
#unity-container { position: absolute }
#unity-container { width: 100%; height: 100% }
#unity-canvas { background: #231F20 }
#unity-loading-bar { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none }
#unity-logo { width: 130px; height: 130px; background: url('unity-logo-dark.png') no-repeat center; background-size: contain; border-radius: 16px; }
#unity-progress-bar-empty { width: 141px; height: 18px; margin-top: 10px; margin-left: 6.5px; background: url('progress-bar-empty-dark.png') no-repeat center }
#unity-progress-bar-full { width: 0%; height: 18px; margin-top: 10px; background: url('progress-bar-full-dark.png') no-repeat center }
#unity-footer { position: fixed; width: 100%; bottom: 0; margin-top: 5px; line-height: 38px; }
#unity-webgl-logo { float:left; width: 204px; height: 38px; background: url('webgl-logo.png') no-repeat center }
#unity-build-title { float: right; margin-right: 10px; line-height: 38px; font-family: arial; font-size: 18px }
#unity-fullscreen-button { cursor:pointer; float: right; width: 38px; height: 38px; background: url('fullscreen-button.png') no-repeat center }
#unity-webxr-link { float: left; margin-right: 10px; line-height: 38px; font-family: arial; font-size: 18px }
#entervr:enabled { float: right; width: 38px; height: 38px; background-color: #1eaed3; display: inline-block; border: 0; }
#enterar:enabled { float: right; width: 38px; height: 38px; background-color: #1eaed3; display: inline-block; border: 0; }
#entervr:disabled { float: right; width: 38px; height: 38px; background-color: #dddddd; display: inline-block; border: 0; }
#enterar:disabled { float: right; width: 38px; height: 38px; background-color: #dddddd; display: inline-block; border: 0; }

/* Password gate (covers the page until valid credentials entered) */
#password-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: linear-gradient(135deg, #0f1115 0%, #1a1d24 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #fff;
}
.gate-box {
  width: 90%;
  max-width: 380px;
  padding: 48px 40px;
  background: rgba(20, 22, 28, 0.65);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.gate-logo {
  width: 96px; height: 96px;
  margin: 0 auto 24px;
  background: url('grounded-icon.png') no-repeat center;
  background-size: contain;
  border-radius: 18px;
}
.gate-title {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: 0.02em;
}
.gate-subtitle {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  margin: 0 0 28px;
  line-height: 1.5;
}
.gate-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 6px;
  margin-bottom: 12px;
  box-sizing: border-box;
  font-family: inherit;
}
.gate-input:focus {
  outline: none;
  border-color: rgba(255,255,255,0.32);
  background: rgba(255,255,255,0.08);
}
.gate-btn {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  font-weight: 500;
  background: #1eaed3;
  color: #fff;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease;
}
.gate-btn:hover:not(:disabled) { background: #18a3c4; }
.gate-btn:disabled { opacity: 0.5; cursor: wait; }
.gate-error {
  color: #ff6b6b;
  font-size: 13px;
  margin-top: 14px;
  min-height: 16px;
}

/* Safari browser-performance notice */
/* z-index sits ABOVE the password gate (200) so the warning is the very first
   thing a Safari user sees — before they enter the password. After login the
   gate is removed; the notice stays pinned to the top of the viewport. */
#browser-notice {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  background: linear-gradient(180deg, #c2541d, #a04416);
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  padding: 8px 16px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
#browser-notice[hidden] { display: none; }
#browser-notice strong { font-weight: 600; }
#browser-notice-dismiss {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  border-radius: 4px;
  width: 24px; height: 24px;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
#browser-notice-dismiss:hover {
  background: rgba(255,255,255,0.12);
}
/* When the notice is visible, push the scene-nav-bar below it */
#browser-notice:not([hidden]) ~ #scene-nav-bar {
  top: 40px;
}

/* Scene Navigation Top Bar */
#scene-nav-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 48px;
  background: rgba(20, 22, 28, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  user-select: none;
}
#scene-nav-brand {
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-right: 24px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.scene-nav-brand-logo {
  width: 28px;
  height: 28px;
  background: url('grounded-icon.png') no-repeat center;
  background-size: contain;
  border-radius: 5px;
  flex-shrink: 0;
}
#scene-nav-buttons {
  display: flex;
  gap: 8px;
  flex: 1;
}
.scene-nav-btn {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
  font-family: inherit;
}
.scene-nav-btn:hover:not(:disabled) {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.28);
}
.scene-nav-btn.active {
  background: rgba(30, 174, 211, 0.22);
  border-color: rgba(30, 174, 211, 0.65);
  color: #fff;
}
.scene-nav-btn.active:hover:not(:disabled) {
  background: rgba(30, 174, 211, 0.32);
}
.scene-nav-btn:active:not(:disabled) {
  background: rgba(255,255,255,0.22);
}
.scene-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.scene-nav-btn:focus {
  /* No default :focus outline — leaves only the .active highlight as
     "this is the current scene" indicator. Keyboard nav uses 1–5 hotkeys,
     not Tab focus, so accessibility impact is nil. */
  outline: none;
}
#scene-nav-hint {
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  font-style: italic;
  margin-left: 16px;
}
