body {
  margin: 0;
  background: #202923;
  color: #fff;
}

.globe-wallpaper {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.57);
  pointer-events: none;
}

.globe {
  position: relative;
  max-width: 1100px;
  margin-inline: auto;
  padding: clamp(24px, 6vw, 65px) clamp(14px, 4vw, 40px);
}

.globe-place {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: 15px 24px;
  align-items: start;
  margin-bottom: clamp(22px, 4vw, 42px);
}

.globe h1 { margin: 0; font-size: clamp(22px, 4vw, 34px); font-weight: 520; overflow-wrap: anywhere; }
.globe h2 { margin: 0; font-size: 16px; font-weight: 600; }
.globe p { margin: 0; }
.globe :is(h1, h2, p, label) { text-shadow: 0 2px 6px #141b18dc; }
#globe-date, #globe-search-status, #sun-horizon-status { margin-top: 5px; color: #e1e9e4; font-size: 13px; }
#globe-search-status:empty, #sun-horizon-status:empty { display: none; }

#globe-search { width: min(100%, 300px); justify-self: end; }
.globe-search-row { display: flex; gap: 4px; align-items: center; border-bottom: 1px solid #ffffff65; }
#globe-search :is(input, select) {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #ffffff65;
  border-radius: 8px;
  background: #192421;
  color: #fff;
  font: inherit;
}
#globe-search input { background: transparent; border: 0; padding-inline: 0; }
#globe-search input::placeholder { color: #e3e9e5; text-shadow: 0 1px 4px #141b18; }
#globe-search select { margin-top: 6px; }
#globe-search button { flex: 0 0 44px; color: #fff; }
#globe-search button:hover { background: #ffffff20; }
#globe-search :focus-visible { outline: 2px solid #ffe0a2; outline-offset: 2px; }

.globe-instruments { display: grid; gap: clamp(16px, 3vw, 28px); }
.globe-card { min-width: 0; padding-block: 8px; text-align: center; }
.globe-instrument-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(90px, 35%) minmax(0, 1fr);
  align-items: center;
  gap: clamp(6px, 2vw, 22px);
  max-width: 690px;
  margin-inline: auto;
}
.globe-instrument-row > svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 178px;
  filter: drop-shadow(0 2px 3px #111b);
}
.globe-instrument-row > :first-child { text-align: right; }
.globe-instrument-row > :last-child { text-align: left; }
.globe-card svg text { fill: #f1f5f2; font-size: 12px; text-anchor: middle; }
.globe-guide { fill: none; stroke: #ffffffe0; stroke-width: 1.6; }
.globe-guide.dashed { stroke: #ffffffab; stroke-dasharray: 3 4; }
.globe-sun-fill { fill: #ffe0a2; }
.globe-origin { fill: #fff; }
.globe-sun-stroke, .globe-moon-stroke { fill: none; stroke: #ffe8b8; stroke-width: 2.4; stroke-linecap: round; }
.globe-moon-stroke { stroke: #e3f1ff; }
.globe-moon-dark { fill: #101b19; }
.globe-moon-fill { fill: #fff; fill-opacity: .2; }
.globe-reading { display: grid; gap: 4px; overflow-wrap: anywhere; }
.globe-reading strong { font-weight: 560; font-size: clamp(18px, 2.3vw, 24px); font-variant-numeric: tabular-nums; }
.globe-reading span, .globe-reading time { font-size: 13px; color: #e1e9e4; }

.globe .globe-weather-source { margin-top: 8px; font-size: 11px; line-height: 1.35; }
.globe-weather-source a { color: #e1e9e4; text-underline-offset: 2px; }

@media (max-width: 560px) {
  .globe-place { grid-template-columns: 1fr; }
  #globe-search { justify-self: start; }
}

.globe-week { margin-top: clamp(18px, 5vw, 44px); }
.globe-week h2 { margin-bottom: 12px; }
#globe-week-status:empty { display: none; }
.globe-week table { width: 100%; border-collapse: collapse; font-size: clamp(12px, 2.7vw, 15px); }
.globe-week :is(th, td) { padding: 7px clamp(4px, 1.5vw, 14px); border-bottom: 1px solid #ffffff55; text-align: left; }
.globe-week th { font-weight: 600; }
.globe-week :is(th, td):nth-child(n+3) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.globe-week td svg { width: 23px; height: 23px; vertical-align: middle; margin-right: 4px; color: #ffe0a2; }
@media (max-width: 440px) {
  .globe-week td svg { display: none; }
}
