/* ═══════════════════════════════════════════════
   DryFairy — Galaxy Map (Dark Fantasy)
   ═══════════════════════════════════════════════ */

.sf-galaxy-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    background: #0e0a06;
}
#sf-galaxy-canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: grab;
}
#sf-galaxy-canvas:active { cursor: grabbing; }

/* ── Tooltip (dark parchment) ── */
.sf-galaxy-tooltip {
    display: none;
    position: absolute;
    background: rgba(30, 25, 15, 0.95);
    border: 1px solid rgba(222, 167, 38, 0.35);
    border-radius: 8px;
    padding: 14px 18px;
    pointer-events: none;
    z-index: 10;
    min-width: 180px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.6), inset 0 1px 0 rgba(222,167,38,0.08);
    animation: sf-tooltip-in 0.15s ease-out;
    backdrop-filter: blur(6px);
}
@keyframes sf-tooltip-in { from { opacity: 0; transform: translateY(4px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

.sf-tip-name { font-weight: 700; font-size: 16px; color: #e8d8b8; font-family: 'Cinzel', serif; }
.sf-tip-name.sf-tip-unknown { color: #8a7a6a; font-style: italic; }
.sf-tip-type { font-size: 14px; color: #b8a888; margin-top: 4px; }
.sf-tip-danger { font-size: 13px; color: #d4a020; margin-top: 6px; }
.sf-tip-dist { font-size: 13px; color: #dea726; margin-top: 6px; }
.sf-tip-bodies { font-size: 13px; color: #c8b898; margin-top: 4px; }

/* ── Legend (dark panel, bottom-left) ── */
.sf-galaxy-legend {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(20, 16, 10, 0.88);
    border: 1px solid rgba(222, 167, 38, 0.25);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.sf-legend-item {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #c8b898;
    font-family: 'Inter', sans-serif;
}
.sf-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px currentColor;
}

/* ── Onboarding Hint ── */
.sf-galaxy-wrap > .sf-onboarding-box {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 480px;
    z-index: 20;
    background: rgba(30, 25, 15, 0.92);
    border: 1px solid rgba(222, 167, 38, 0.3);
    text-align: center;
    color: #e8d8b8;
}

/* ── Zoom Controls (dark fantasy buttons) ── */
.sf-galaxy-controls {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sf-btn-zoom {
    width: 40px;
    height: 40px;
    background: rgba(20, 16, 10, 0.88);
    border: 1px solid rgba(222, 167, 38, 0.3);
    color: #dea726;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
}
.sf-btn-zoom:hover {
    border-color: #dea726;
    box-shadow: 0 0 12px rgba(222, 167, 38, 0.3);
    color: #f0c040;
    background: rgba(40, 32, 18, 0.95);
}

/* ── Map Title Overlay ── */
.sf-galaxy-title {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Cinzel', serif;
    font-size: 18px;
    font-weight: 700;
    color: rgba(222, 167, 38, 0.6);
    text-shadow: 0 0 20px rgba(222, 167, 38, 0.2);
    letter-spacing: 3px;
    pointer-events: none;
    text-transform: uppercase;
}

/* ── Compass Rose (decorative) ── */
.sf-galaxy-compass {
    position: absolute;
    bottom: 80px;
    right: 20px;
    width: 48px;
    height: 48px;
    opacity: 0.2;
    pointer-events: none;
    font-size: 36px;
    color: #dea726;
    text-align: center;
    line-height: 48px;
}
