/* SKY.TUTI.LT — Retro Sky strip (round 8, adopted from ADS-Bit, MIT).
   Docked above the map as a full-width strip; hidden until enabled.
   Pixel rendering: nearest-neighbour upscaling keeps the sprite edges crisp. */

#retroStrip {
  position: absolute;         /* overlay inside #main — #map is absolute too,
                                 so a static strip would sit UNDER the map */
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;               /* above basemap panes; below side panels */
  background: #10131b;
  border-bottom: 2px solid #2a3242;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  user-select: none;
}
#retroStrip.hidden { display: none; }

/* While retro is on, the map starts BELOW the strip (js sets --retro-h to
   the measured strip height, so breakpoints stay exact) */
#main.retro-on #map { top: var(--retro-h, 220px); }

/* The map legend lives at #main top-right (z-index 900) — without this
   it paints over the strip bar's rotate/close buttons. */
#main.retro-on .legend { top: calc(var(--retro-h, 220px) + 12px); }

.retro-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  background: linear-gradient(180deg, #1a2030, #12161f);
  border-bottom: 1px solid #2a3242;
  color: #9fb4d8;
  font-size: 11px;
  letter-spacing: .04em;
}
.retro-t {
  font-weight: 700;
  color: #ffd75c;
  text-shadow: 1px 1px 0 #000;
  letter-spacing: .12em;
}
.retro-view {
  min-width: 18px;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  background: #233047;
  border: 1px solid #3b4a63;
  border-radius: 3px;
  padding: 1px 4px;
}
.retro-hint { flex: 1; text-align: right; opacity: .75; font-size: 10px; }
.retro-hint b { color: #cfe0ff; }

.rbtn {
  background: #233047;
  color: #cfe0ff;
  border: 1px solid #3b4a63;
  border-radius: 4px;
  font: inherit;
  font-size: 12px;
  line-height: 1;
  padding: 3px 8px;
  cursor: pointer;
}
.rbtn:hover { background: #2d3d5c; }
.rbtn:active { transform: translateY(1px); }
.retro-x { margin-left: 4px; }

#retroCv {
  display: block;
  width: 100%;
  height: 190px;              /* overridden on small screens below */
  image-rendering: pixelated;
  cursor: crosshair;
}

/* Mobile: shorter strip so the map keeps the majority of the viewport */
@media (max-width: 860px) {
  #retroCv { height: 132px; }
  .retro-hint { display: none; }
}
