.minimap-container {
  display: flex;
  margin: 8px;
  justify-content: center;
  align-items: center;
  padding-right: 40px;
  /* Space for buttons */
}

.minimap-wrapper {
  width: 160px;
  height: 160px;
  display: block;
  position: relative;
}

/* The square map area: a dark stone frame, the Hub look (owner 2026-10-01, after the overall desktop UI review; it was
   the red Minibia theme's three red rings) */
.minimap-wrapper canvas {
  background-color: #0a0a0a;
  border-radius: 8px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.95),
    0 0 0 3px #2b2823,
    0 0 0 4px rgba(255, 255, 255, 0.09),
    0 0 0 6px rgba(0, 0, 0, 0.85),
    0 4px 14px rgba(0, 0, 0, 0.6);
}

.minimap-wrapper .crosshair {
  position: absolute;
  left: 76px;
  top: 72px;
  color: #efe9da;
  opacity: 0.85;
  z-index: 5;
  text-shadow: 1px 1px 2px black;
}

#clock-time {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 5, 5, 0.85);
  color: #ff9999;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: bold;
  z-index: 15;
  border: 1px solid rgba(139, 32, 32, 0.6);
  /* Way more transparent — fades the whole chip (bg + text + border) so the
     clock reads as a faint overlay rather than a solid box on the map. */
  opacity: 0.4;
}

/* Button stack - positioned outside the map */
.minimap-wrapper .button-stack {
  position: absolute;
  width: 22px;
  top: 0;
  right: -30px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 20;
}

.minimap-wrapper .button-stack .symbol-button {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.28)), url("/png/bg3.png");
  border: 1px solid rgba(0, 0, 0, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #efe9da;
  cursor: pointer;
  font-weight: bold;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0;
}

#minimap-current-layer {
  color: #efe9da;
}

.minimap-wrapper .button-stack .symbol-button:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(0, 0, 0, 0.2)), url("/png/bg2.png");
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.minimap-wrapper .button-stack .symbol-button:active {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.35)), url("/png/bg3.png");
}
/* Wide minimap (PO 17/10/2026): with the second right column on screen the minimap is a
   rectangle as wide as both columns. Interface.__updateWideMinimap moves .minimap-wrapper
   here and sets the box (left/top/width/height) and the wrapper width in pixels. The
   padding is the margin (8) and the button gutter (40) of the normal .minimap-container. */
#game-wrapper {
  position: relative;
}

#minimap-wide-host {
  position: absolute;
  z-index: 8;
  box-sizing: border-box;
  justify-content: center;
  align-items: center;
  padding: 8px 48px 8px 8px;
  pointer-events: none;
}

#minimap-wide-host .minimap-wrapper {
  pointer-events: auto;
}
