/* Only the desktop version loads this file. */

/* The notice that this computer has no sensors or camera */
#desktop-banner {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 20px;
  background: rgba(14, 19, 36, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: #dfe4f5;
  font-size: 14px;
  line-height: 1.45;
}
#desktop-banner[hidden] { display: none; }
#desktop-banner strong { color: #ffffff; margin-right: 4px; }
.desktop-banner-links { display: flex; align-items: center; gap: 18px; flex: none; }
.desktop-banner-links a { color: #6db3ff; text-decoration: underline; white-space: nowrap; }
.desktop-banner-links button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #dfe4f5;
  font-size: 20px;
  cursor: pointer;
}

/* Keeps the header clear of the notice while it is showing */
.desktop-mode #header { margin-top: var(--banner-h, 0px); }

/* The settings menu button for phone calibration means nothing here */
.desktop-mode #sensorConfigButton { display: none; }
.desktop-mode #answer-snapshot,
.desktop-mode #answer-me { cursor: pointer; }

/* Pitch and heading are always typed here, so there is no sensor to switch back to */
.desktop-mode #pitchFixed, .desktop-mode label[for="pitchFixed"],
.desktop-mode #directionFixed, .desktop-mode label[for="directionFixed"] { display: none; }

/* The mark in the middle of the globe, where the line comes out */
#desktop-crosshair {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 2px solid #ff4fa3;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 5;
}
#desktop-crosshair::before, #desktop-crosshair::after {
  content: "";
  position: absolute;
  background: #ff4fa3;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45);
}
#desktop-crosshair::before { left: 50%; top: -9px; bottom: -9px; width: 2px; margin-left: -1px; }
#desktop-crosshair::after { top: 50%; left: -9px; right: -9px; height: 2px; margin-top: -1px; }

#desktop-mouse-hint {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(14, 19, 36, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #dfe4f5;
  font-size: 13px;
  pointer-events: none;
  z-index: 5;
  white-space: nowrap;
}
#desktop-mouse-hint[hidden] { display: none; }

/* The answer card sits at the left, so the middle of the globe stays free for the mouse */
.desktop-mode .globe-overlays { right: auto; width: min(430px, 38%); }
.desktop-mode #desktop-mouse-hint { left: auto; right: 16px; transform: none; bottom: 100px; white-space: normal; max-width: 280px; text-align: center; border-radius: 14px; }

/* The switch for aiming with the mouse or with numbers */
#aim-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(14, 19, 36, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.18);
  position: absolute;
  right: 16px;
  bottom: 44px;
  z-index: 120;
}
#aim-switch .aim-switch-label { color: #aeb6d3; font-size: 13px; padding: 0 6px 0 8px; }
#aim-switch button {
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #dfe4f5;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
#aim-switch button[aria-pressed="true"] { background: #ff4fa3; color: #14101c; font-weight: 600; }

/* The native spinner arrows are not used. The + and - buttons do that job. */
.desktop-mode input[type="number"]::-webkit-inner-spin-button,
.desktop-mode input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.desktop-mode input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

/* The cross in the middle of the globe shows where the target or the position will go. It is not used in View. */
html[data-aim-mode="view"] #desktop-crosshair { display: none; }
