* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: #000;
  color: #ccc;
  font-family: ui-monospace, "SF Mono", "Courier New", Courier, monospace;
  overflow: hidden;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100dvh;
}

.topbar {
  flex: 0 0 auto;
  background: #1a1a1a;
  padding: 1rem 0;
  display: flex;
  justify-content: center;
}

.wordmark {
  letter-spacing: 0.15em;
  font-size: 1rem;
  color: #ddd;
}

.sky {
  flex: 1 1 auto;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deimos-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  transition: top 0.15s linear, left 0.15s linear, opacity 0.2s linear;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.15));
  cursor: pointer;
}

.deimos-marker img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.deimos-marker:focus-visible {
  outline: 1px solid #666;
  outline-offset: 4px;
}

.deimos-marker.hidden {
  opacity: 0;
}

.arrow-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  font-size: 2.5rem;
  color: #ddd;
  opacity: 0;
  transition: opacity 0.2s linear;
  pointer-events: none;
}

.arrow-indicator.visible {
  opacity: 0.85;
}

.status-message {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 0.8rem;
  color: #888;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 90%;
}

.mode-picker {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1.5rem 0 2rem;
}

.mode-picker.hidden {
  display: none;
}

.mode-link {
  background: none;
  border: none;
  color: #666;
  font-family: inherit;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  padding: 0.5rem 0.25rem;
}

.mode-link.active {
  color: #eee;
  border-bottom: 1px solid #eee;
}

.mode-link:disabled {
  color: #333;
  cursor: default;
}

.mode-link:focus-visible {
  outline: 1px solid #666;
}

.about-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.2s linear;
}

.about-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.about-overlay-text {
  max-width: 26rem;
  margin: 0;
  color: #ddd;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
  cursor: default;
}
