/* Minimal navigation around a full, continuously animated sky. */
#landscape-enter {
  color: var(--gold);
}
#landscape-enter:disabled {
  opacity: 0.65;
}
.landscape-active {
  overflow: hidden;
}
.landscape-active > .site-header,
.landscape-active > main,
.landscape-active > .site-footer,
.landscape-active #painting-controls,
.landscape-active #painting-touch {
  visibility: hidden;
}
#landscape {
  position: fixed;
  inset: 0;
  z-index: 20;
  isolation: isolate;
  background: #142944;
}
#landscape canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}
#landscape canvas:active {
  cursor: grabbing;
}
#landscape canvas:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -4px;
}
.landscape-top,
.landscape-bottom {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
}
.landscape-top {
  top: 0;
  padding: max(24px, env(safe-area-inset-top)) 3.5vw 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(#07172b82, transparent);
}
#landscape button {
  pointer-events: auto;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #e9d8ac35;
  border-radius: 24px;
  background: #091a2cca;
  color: #f5eedc;
  font-size: 12px;
  line-height: 1.4;
  box-shadow: 0 3px 20px #05122220;
  transition:
    background 0.2s,
    border-color 0.2s;
}
#landscape button:hover {
  background: #253c4df0;
  border-color: #edcf89a0;
}
.landscape-location {
  font: 26px var(--serif);
  text-shadow: 0 2px 8px #0009;
}
.landscape-bottom {
  bottom: 0;
  padding: 60px 24px max(22px, env(safe-area-inset-bottom));
  text-align: center;
  background: linear-gradient(transparent, #061626c4);
}
.landscape-hint {
  margin: 0 0 12px;
  color: #ede6d7;
  font-size: 11px;
  text-shadow: 0 1px 6px #000;
}
.landscape-destinations,
.landscape-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
#landscape .landscape-destinations button {
  min-width: 120px;
  font: 21px var(--serif);
}
#landscape .landscape-destinations button[aria-pressed="true"] {
  color: #f1d38e;
  border-color: #edcf899c;
  background: #172d3cdd;
}
.landscape-actions {
  margin-top: 8px;
}
#landscape .landscape-actions button {
  border-color: transparent;
  background: transparent;
  color: #e1e8e7;
  font-size: 11px;
}
#landscape [data-landscape-topic] {
  color: var(--gold);
}
.landscape-steering {
  position: absolute;
  bottom: max(28px, env(safe-area-inset-bottom));
  right: 3.5vw;
  display: flex;
  gap: 6px;
}
#landscape .landscape-steering button {
  width: 44px;
  padding: 8px;
  font-size: 19px;
}
/* Reading never replaces the sky; even the tallest panel leaves its upper third open. */
.landscape-active.immersive-ready dialog {
  max-height: 62svh;
  max-width: min(560px, calc(100vw - 32px));
  margin-top: 34svh;
  margin-bottom: 4svh;
  overflow: auto;
}
.landscape-active dialog::backdrop {
  background: #08192722;
  backdrop-filter: none;
}
@media (max-width: 900px) {
  .landscape-steering {
    position: static;
    justify-content: center;
    margin-top: 6px;
  }
  .landscape-bottom {
    padding-top: 35px;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }
}
@media (max-width: 600px) {
  .landscape-top {
    padding: max(12px, env(safe-area-inset-top)) 12px 32px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .landscape-location {
    display: none;
  }
  #landscape .landscape-top button {
    padding: 10px 12px;
    font-size: 11px;
  }
  .landscape-bottom {
    padding-left: 10px;
    padding-right: 10px;
  }
  .landscape-destinations {
    gap: 6px;
  }
  #landscape .landscape-destinations button {
    min-width: 0;
    flex: 1;
    max-width: 130px;
    font-size: 20px;
    padding: 8px;
  }
  .landscape-actions {
    gap: 0;
    margin-top: 2px;
  }
  #landscape .landscape-actions button {
    padding: 8px 10px;
  }
  .scene-tools {
    flex-wrap: wrap;
  }
}
@media (max-height: 520px) and (min-width: 601px) {
  .landscape-hint,
  .landscape-actions {
    display: none;
  }
  .landscape-bottom {
    padding-top: 15px;
    padding-bottom: 10px;
  }
  .landscape-steering {
    position: absolute;
    bottom: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #landscape button {
    transition: none;
  }
}
