/* The RocSite Quest - Chapter 2: minimap, speedometer, city map, fades */
.minimap {
  position: fixed; right: calc(12px + var(--sr)); top: calc(66px + var(--st)); z-index: 11; width: 110px; height: 110px; padding: 0;
  border-radius: 50%; border: 2px solid rgba(255, 228, 190, 0.55); background: #8fae6a; overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35); opacity: 0; transform: scale(0.8); pointer-events: none; transition: opacity 0.3s, transform 0.3s;
}
.minimap.on { opacity: 1; transform: none; pointer-events: auto; }
.minimap canvas { width: 100%; height: 100%; display: block; }
.mm-n { position: absolute; top: 3px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 800; color: #fff; text-shadow: 0 1px 3px #000; }
.speedo {
  position: fixed; left: 50%; bottom: calc(22px + var(--sb)); transform: translate(-50%, 20px); z-index: 11; min-width: 110px; padding: 6px 16px 8px;
  border-radius: 18px; background: var(--glass2); border: 1px solid var(--line); text-align: center; opacity: 0; transition: opacity 0.3s, transform 0.3s; pointer-events: none;
}
.speedo.on { opacity: 1; transform: translate(-50%, 0); }
.speedo b { display: block; font-size: 34px; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; }
.speedo small { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold2); }
.fade { position: fixed; inset: 0; z-index: 60; background: #140e14; opacity: 0; pointer-events: none; transition: opacity 0.35s ease; }
.fade.on { opacity: 1; }
.citymap {
  position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; padding: calc(12px + var(--st)) 12px calc(12px + var(--sb));
  background: rgba(16, 10, 18, 0.55); opacity: 0; transition: opacity 0.3s; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.citymap.on { opacity: 1; }
.cm-card {
  width: min(560px, 100%); max-height: 100%; overflow-y: auto; padding: 14px; border-radius: 24px;
  background: linear-gradient(180deg, rgba(38, 26, 40, 0.94), rgba(22, 14, 24, 0.97)); border: 1px solid var(--line);
}
.cm-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cm-head b { font: 600 24px var(--serif); }
.cm-x { font-size: 28px; line-height: 1; }
.cm-map { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 210 / 240; max-height: 46vh; margin: 0 auto; }
.cm-map img { width: 100%; height: 100%; display: block; object-fit: fill; }
.cm-me, .cm-pin { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; }
.cm-me { background: #fff; box-shadow: 0 0 0 3px #0f2a30, 0 0 12px #fff; }
.cm-pin { background: rgba(255, 255, 255, 0.35); border: 2px solid rgba(255, 255, 255, 0.6); }
.cm-pin.found { background: var(--gold); border-color: #2a1608; }
.cm-tip { margin: 10px 2px 8px; font-size: 15px; color: var(--muted); }
.cm-places { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cm-place { min-height: 56px; padding: 8px 12px; border-radius: 14px; text-align: left; background: rgba(255, 240, 220, 0.1); border: 1px solid var(--line); }
.cm-place b { display: block; font-size: 16px; }
.cm-place small { display: block; font-size: 13px; color: var(--muted); }
.cm-place:not(.locked) { background: linear-gradient(180deg, rgba(255, 207, 134, 0.25), rgba(245, 165, 74, 0.18)); border-color: rgba(255, 179, 87, 0.5); }
.cm-place.locked { opacity: 0.55; }
.ending .explore { margin-top: 10px; }
@media (min-width: 900px) { .minimap { width: 150px; height: 150px; } }
