/* Partypeople – Welt, Minimap & Start-Overlay (aus geocraft.css ausgelagert) */
/* Welcome / Start Overlay & Party Landing Design */
#start-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 20% 25%, rgba(112, 0, 255, 0.28) 0%, transparent 50%),
                radial-gradient(circle at 80% 75%, rgba(255, 0, 127, 0.25) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(16, 20, 36, 0.95), rgba(8, 9, 14, 0.98));
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.35s;
}

#start-overlay.overlay-ready {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.landing-footer {
    position: absolute;
    bottom: 14px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
    pointer-events: auto;
}

.landing-footer-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 0 12px;
}

.landing-lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(10, 14, 24, 0.72);
    backdrop-filter: blur(10px);
}

.landing-lang-switch .lang-btn {
    min-width: 36px;
    min-height: 36px;
    padding: 0 7px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    cursor: pointer;
}

.landing-lang-switch .lang-btn:hover,
.landing-lang-switch .lang-btn.active {
    color: #00f0ff;
    border-color: rgba(0, 240, 255, 0.45);
    background: rgba(0, 240, 255, 0.12);
}

.landing-field {
    width: 100%;
    text-align: left;
}

.landing-field-label {
    display: block;
    margin: 0 0 5px 2px;
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.landing-field-hint {
    display: block;
    margin: 4px 2px 0;
    color: #94a3b8;
    font-size: 0.72rem;
    line-height: 1.35;
}

.landing-google-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.landing-google-unavailable {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(255, 170, 0, 0.35);
    border-radius: 9px;
    background: rgba(255, 170, 0, 0.09);
    color: #fde68a;
    font-size: 0.8rem;
    line-height: 1.4;
    text-align: center;
}

.landing-privacy-link {
    color: #64748b;
    font-size: 0.78rem;
    text-decoration: none;
    letter-spacing: 0.3px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
    display: inline-block;
}

.landing-privacy-link:hover {
    color: #cbd5e1;
    text-decoration: underline;
    background: rgba(255, 255, 255, 0.04);
}

.btn-coffee-donate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 7px 18px;
    background: linear-gradient(135deg, rgba(255, 170, 0, 0.18), rgba(255, 106, 0, 0.22));
    border: 1px solid rgba(255, 170, 0, 0.45);
    border-radius: 20px;
    color: #ffdd88;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px rgba(255, 170, 0, 0.15);
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
}

.btn-coffee-donate:hover {
    background: linear-gradient(135deg, rgba(255, 170, 0, 0.32), rgba(255, 106, 0, 0.38));
    border-color: #ffaa00;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.45);
    transform: translateY(-2px) scale(1.02);
}

.btn-coffee-donate .coffee-icon {
    font-size: 1rem;
    filter: drop-shadow(0 0 6px rgba(255, 170, 0, 0.6));
}

@media (max-height: 660px) {
    #start-overlay {
        overflow-y: auto;
        padding: 24px 0;
        justify-content: flex-start;
    }
    .landing-footer {
        position: static;
        margin-top: 14px;
        padding-bottom: 14px;
    }
}

.start-box {
    width: 520px;
    max-width: 92vw;
    padding: 34px 28px;
    text-align: center;
}

.party-start-card {
    border: 1px solid rgba(255, 0, 127, 0.35);
    background: transparent !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 45px rgba(255, 0, 127, 0.25), 0 0 85px rgba(112, 0, 255, 0.18);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
    will-change: transform;
}

/* Animated Border-Beam */
.party-start-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        transparent 65%,
        rgba(255, 0, 127, 0.85) 80%,
        rgba(0, 240, 255, 1) 88%,
        rgba(255, 215, 0, 0.9) 93%,
        transparent 98%
    );
    animation: partyBorderBeamRotate 4.5s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.party-start-card::after {
    content: '';
    position: absolute;
    inset: 1.5px;
    background: radial-gradient(ellipse at top, rgba(32, 20, 50, 0.94), rgba(12, 13, 24, 0.97));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 22.5px;
    pointer-events: none;
    z-index: 1;
}

@keyframes partyBorderBeamRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Card Content Layering */
.party-start-card > * {
    position: relative;
    z-index: 2;
}

/* 3D Spotlight Glow */
.card-spotlight {
    position: absolute !important;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(420px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 0, 127, 0.22), rgba(0, 240, 255, 0.08) 45%, transparent 75%);
    pointer-events: none;
    z-index: 3 !important;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.party-start-card:hover .card-spotlight {
    opacity: 1;
}

.party-logo {
    font-size: 2.75rem !important;
    font-weight: 900 !important;
    letter-spacing: 3px !important;
    background: linear-gradient(135deg, #ff007f 0%, #e024c3 35%, #7000ff 70%, #00f0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 0 22px rgba(255, 0, 127, 0.55));
    animation: partyTitlePulse 3.5s ease-in-out infinite alternate;
}

@keyframes partyTitlePulse {
    0% { filter: drop-shadow(0 0 18px rgba(255, 0, 127, 0.45)); }
    100% { filter: drop-shadow(0 0 30px rgba(0, 240, 255, 0.7)); }
}

.party-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 16px 0 20px 0;
    width: 100%;
}

.party-feature-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    padding: 12px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.party-feature-card:hover {
    background: rgba(255, 0, 127, 0.12);
    border-color: rgba(255, 0, 127, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 0, 127, 0.25);
}

.party-feature-icon {
    font-size: 1.6rem;
    margin-bottom: 4px;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4));
}

.party-feature-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
}

.party-feature-desc {
    font-size: 0.67rem;
    color: var(--text-muted);
    line-height: 1.25;
}

.party-live-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #cbd5e1;
    margin-bottom: 18px;
}

.party-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88;
    animation: partyPulse 1.5s infinite;
}

@keyframes partyPulse {
    0% { transform: scale(0.85); opacity: 0.7; box-shadow: 0 0 4px #00ff88; }
    50% { transform: scale(1.35); opacity: 1; box-shadow: 0 0 14px #00ff88; }
    100% { transform: scale(0.85); opacity: 0.7; box-shadow: 0 0 4px #00ff88; }
}

.btn-party-primary {
    background: linear-gradient(135deg, #ff007f 0%, #c41aff 60%, #7000ff 100%) !important;
    border: 1px solid #ff66ba !important;
    color: #ffffff !important;
    box-shadow: 0 0 25px rgba(255, 0, 127, 0.55), 0 4px 15px rgba(0, 0, 0, 0.4) !important;
    font-weight: 800 !important;
    letter-spacing: 1px !important;
    border-radius: 12px !important;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.btn-party-primary:hover {
    background: linear-gradient(135deg, #ff1a8c 0%, #d533ff 60%, #851aff 100%) !important;
    box-shadow: 0 0 38px rgba(255, 0, 127, 0.85), 0 0 18px rgba(0, 240, 255, 0.45) !important;
    transform: translateY(-2px) scale(1.02) !important;
}

.btn-party-logout {
    border: 1px solid rgba(255, 0, 127, 0.45) !important;
    background: rgba(255, 0, 127, 0.08) !important;
    color: #f8fafc !important;
    padding: 5px 12px !important;
    font-size: 0.78rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.btn-party-logout:hover {
    border-color: #ff007f !important;
    background: rgba(255, 0, 127, 0.22) !important;
    box-shadow: 0 0 14px rgba(255, 0, 127, 0.45) !important;
    color: #ffffff !important;
}

.start-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 10px 14px;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 16px;
    outline: none;
}

.start-input:focus {
    border-color: var(--accent-pink);
    box-shadow: 0 0 12px rgba(255, 0, 127, 0.4);
}



/* Search results in Navi Modal */
.navi-search-item {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.navi-search-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* 360Â° Horizontal Compass Tape Bar (Bottom Screen Edge, Full Width) */
.compass-bar-container {
    position: fixed;
    bottom: 0;
    top: auto !important;
    left: 0;
    width: 100vw;
    height: 22px;
    background: linear-gradient(180deg, rgba(10, 14, 24, 0) 0%, rgba(10, 14, 24, 0.65) 40%, rgba(10, 14, 24, 0.92) 100%);
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 35;
    pointer-events: auto;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.compass-bar-canvas {
    width: 100%;
    height: 100%;
    display: block;
}


/* Real Street Minimap (Top-Right below Top Bar) */
.minimap-panel {
    position: fixed;
    top: calc(var(--top-bar-height, 52px) + 10px);
    right: 18px;
    width: 230px;
    background: rgba(10, 14, 26, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(0, 240, 255, 0.35);
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.65), 0 0 16px rgba(0, 240, 255, 0.18);
    overflow: visible;
    z-index: 85;
    pointer-events: auto;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
}

.minimap-header {
    display: none !important;
}

.minimap-title-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1;
}

.minimap-tag {
    font-size: 0.65rem;
    font-weight: 900;
    color: var(--accent-cyan, #00f0ff);
    letter-spacing: 0.5px;
    background: rgba(0, 240, 255, 0.15);
    padding: 1px 5px;
    border-radius: 4px;
    border: 1px solid rgba(0, 240, 255, 0.3);
    flex-shrink: 0;
}

.minimap-street {
    font-size: 0.72rem;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.minimap-actions {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

.minimap-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: all 0.15s ease;
}

.minimap-btn:hover {
    background: rgba(0, 240, 255, 0.25);
    border-color: rgba(0, 240, 255, 0.6);
    color: #00f0ff;
}

/* Stufe 6: Bildnachweis der Bodenkacheln (Esri World Imagery / OSM) */
.map-imagery-credit {
    position: absolute;
    right: 8px;
    bottom: 6px;
    padding: 2px 6px;
    font-size: 0.6rem;
    line-height: 1.35;
    letter-spacing: 0.02em;
    color: rgba(226, 232, 240, 0.72);
    background: rgba(2, 6, 16, 0.42);
    border-radius: 4px;
    pointer-events: none;
    z-index: 5;
}

.minimap-body {
    position: relative;
    width: 100%;
    height: 185px;
    overflow: hidden;
    background: #111827;
    border-top-left-radius: 13px;
    border-top-right-radius: 13px;
}

.minimap-leaflet {
    width: 100%;
    height: 100%;
    background: #e2e8f0;
}

.minimap-north-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(10, 14, 26, 0.8);
    color: var(--accent-pink, #ff007f);
    font-size: 0.65rem;
    font-weight: 900;
    padding: 1px 5px;
    border-radius: 4px;
    border: 1px solid rgba(255, 0, 127, 0.5);
    pointer-events: none;
    z-index: 500;
    box-shadow: 0 0 6px rgba(255, 0, 127, 0.4);
}

.minimap-player-beacon {
    position: absolute;
    top: 50%;
    left: 50%;
    pointer-events: none;
    z-index: 600;
    width: 32px;
    height: 32px;
    margin: 0;
    transform: translate(-50%, -50%);
    transform-origin: center center;
}

.minimap-radar-cone {
    position: absolute;
    bottom: 16px;
    left: 50%;
    width: 44px;
    height: 30px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at 50% 100%, rgba(0, 240, 255, 0.45) 0%, rgba(0, 240, 255, 0) 75%);
    clip-path: polygon(50% 100%, 0% 0%, 100% 0%);
    pointer-events: none;
}

.minimap-player-arrow {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 10px solid #00f0ff;
    filter: drop-shadow(0 0 4px #00f0ff);
}

.minimap-player-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff007f;
    border: 2px solid #ffffff;
    box-shadow: 0 0 8px #ff007f, 0 0 12px rgba(255, 0, 127, 0.8);
}

.minimap-panel.collapsed .minimap-body,
.minimap-panel.collapsed .minimap-bottom-bar {
    display: none;
}

.minimap-panel.collapsed {
    width: 170px;
    border-color: rgba(0, 240, 255, 0.2);
}

.minimap-leaflet .leaflet-control-attribution,
.minimap-leaflet .leaflet-control-zoom {
    display: none !important;
}

/* =============================================================
   Dynamischer 2D / 3D Umschalter (schaltet Text um: 2D <-> 3D)
   ============================================================= */
.btn-view-switch {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 3px 10px !important;
    height: 30px;
    border-radius: 15px;
    background: rgba(12, 17, 28, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(0, 240, 255, 0.5);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.08);
    cursor: pointer;
    user-select: none;
    touch-action: manipulation;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-view-switch:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 240, 255, 0.8);
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.4);
}

.btn-view-switch.mode-2d {
    border-color: rgba(0, 240, 255, 0.55);
    color: #ffffff;
}

.btn-view-switch.mode-2d .view-switch-label {
    color: #ffffff;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.9);
}

.btn-view-switch.mode-3d {
    border-color: rgba(255, 0, 127, 0.55);
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.25);
    color: #ffffff;
}

.btn-view-switch.mode-3d:hover {
    border-color: rgba(255, 0, 127, 0.8);
    box-shadow: 0 0 14px rgba(255, 0, 127, 0.4);
}

.btn-view-switch.mode-3d .view-switch-label {
    color: #ffffff;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(255, 0, 127, 0.9);
}

.btn-view-switch .view-switch-icon {
    font-size: 0.95rem;
    line-height: 1;
}

.btn-view-switch .view-switch-label {
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.5px;
}

/* =============================================================
   2D Teleport Target & Action Chip (Option 4)
   ============================================================= */
.map-beam-action-chip {
    position: fixed;
    bottom: 84px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10002;
    background: rgba(10, 15, 29, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(0, 240, 255, 0.55);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 240, 255, 0.3);
    border-radius: 14px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    animation: beamChipSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes beamChipSlideUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.beam-chip-header {
    display: flex;
    align-items: center;
    gap: 9px;
}
.beam-chip-icon {
    font-size: 1.4rem;
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.6));
}
.beam-chip-meta {
    display: flex;
    flex-direction: column;
}
.beam-chip-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.2px;
}
.beam-chip-dist {
    font-size: 0.72rem;
    color: #00f0ff;
    font-weight: 700;
    font-family: monospace;
}
.beam-chip-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-beam-confirm {
    padding: 8px 16px;
    font-size: 0.84rem;
    font-weight: 800;
    border-radius: 10px;
    background: linear-gradient(135deg, #00f0ff 0%, #7000ff 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.45) !important;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}
.btn-beam-confirm:hover, .btn-beam-confirm:active {
    transform: translateY(-1px);
    filter: brightness(1.15);
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.65) !important;
}
.btn-beam-cancel {
    padding: 8px 12px;
    font-size: 0.84rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}
.btn-beam-cancel:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
}

/* Target Reticle Pin on Leaflet Map */
.beam-target-pin-wrap {
    position: relative;
    pointer-events: none;
}
.beam-target-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #00f0ff;
    box-shadow: 0 0 15px #00f0ff;
    animation: targetPulse 1.2s infinite ease-out;
}
@keyframes targetPulse {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}
.beam-target-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.35rem;
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.9));
}

/* Fullscreen 2D Mode for Minimap Panel (with Smooth Fade & Camera Transition) */
.minimap-panel.mode-fullscreen-2d {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    z-index: 80 !important;
    background: #0b0f19 !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
}
.minimap-panel.transitioning-view {
    pointer-events: none !important;
}
.minimap-panel.view-fade-out {
    opacity: 0 !important;
    pointer-events: none !important;
}

.minimap-panel.mode-fullscreen-2d .minimap-header {
    display: none !important;
}

.minimap-panel.mode-fullscreen-2d .minimap-body {
    display: block !important;
    height: 100% !important;
    width: 100% !important;
}

.minimap-panel.mode-fullscreen-2d .minimap-leaflet {
    width: 100% !important;
    height: 100% !important;
}

.minimap-panel.mode-fullscreen-2d .minimap-north-badge {
    display: none !important;
}

.minimap-panel.mode-fullscreen-2d .minimap-player-beacon {
    width: 0 !important;
    height: 0 !important;
}

body.mode-2d-active #crosshair {
    display: none !important;
}

body.mode-2d-active .compass-bar-container {
    display: none !important;
}

body.mode-2d-active #mobile-controls {
    display: none !important;
}

body.mode-2d-active .top-bar {
    background: rgba(10, 14, 26, 0.45) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border-bottom: 1px solid rgba(0, 240, 255, 0.15) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

/* ============================================================
   Player Map Plaques (Local & Remote 2D View Badges)
   ============================================================ */

.map-player-pin {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    pointer-events: auto;
}

/* Local pin hidden in 3D minimap mode by default */
.local-player-pin {
    display: none;
}

/* ============================================================
   Person Icon Marker for 2D Map Position
   ============================================================ */

.map-person-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    z-index: 150;
    pointer-events: none;
}

/* Pulsing radar ripple ring */
.person-marker-ripple {
    position: absolute;
    left: -16px;
    top: -16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--player-accent, #00f0ff);
    background: radial-gradient(circle, var(--player-accent-glow, rgba(0, 240, 255, 0.25)) 0%, transparent 70%);
    animation: person-radar-pulse 2.2s ease-out infinite;
    pointer-events: none;
}

@keyframes person-radar-pulse {
    0% {
        transform: scale(0.6);
        opacity: 0.9;
    }
    60% {
        transform: scale(1.4);
        opacity: 0.35;
    }
    100% {
        transform: scale(1.9);
        opacity: 0;
    }
}

/* Circular Neon Person Badge */
.person-marker-badge {
    position: absolute;
    left: -12px;
    top: -12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0e121e;
    border: 2px solid var(--player-accent, #00f0ff);
    box-shadow: 0 0 10px var(--player-accent, #00f0ff), 0 2px 6px rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--player-accent, #00f0ff);
    z-index: 155;
    transition: transform 0.15s ease;
}

.person-marker-svg {
    display: block;
    filter: drop-shadow(0 0 3px var(--player-accent, #00f0ff));
}

/* Precise center GPS anchor dot */
.person-marker-anchor {
    position: absolute;
    left: -2px;
    top: -2px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 4px #ffffff;
    z-index: 156;
    pointer-events: none;
}

/* Fallback for legacy dot */
.map-pin-dot {
    display: none;
}

/* Plaque (Badge with Avatar & Name) - Shifted Up and to the Right */
.player-map-plaque,
.minimap-player-plaque {
    position: absolute;
    bottom: 22px;
    left: -22px;
    transform: none;
    display: none; /* hidden in 3D minimap */
    align-items: center;
    gap: 8px;
    padding: 3px 12px 3px 4px;
    background: rgba(14, 18, 30, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid var(--player-accent, #00f0ff);
    border-radius: 9999px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.75), 0 0 14px var(--player-accent-glow, rgba(0, 240, 255, 0.35));
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    z-index: 200;
    pointer-events: auto;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.player-map-plaque:hover,
.minimap-player-plaque:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8), 0 0 20px var(--player-accent-glow, rgba(0, 240, 255, 0.6));
}

/* Downward Pointer Tip: positioned at left: 22px pointing directly to (0,0) */
.player-map-plaque .map-plaque-tip,
.minimap-player-plaque .map-plaque-tip {
    position: absolute;
    bottom: -7px;
    left: 22px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 7px solid var(--player-accent, #00f0ff);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

/* Avatar Circle */
.map-plaque-avatar-wrap {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 1.5px solid var(--player-accent, #00f0ff);
    box-shadow: 0 0 6px var(--player-accent, #00f0ff);
    background: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-plaque-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.map-plaque-initial {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
}

/* Player Name */
.map-plaque-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.map-plaque-you-tag {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--player-accent, #00f0ff);
    margin-left: 3px;
}

/* In 2D Mode: activate plaques for all players */
body.mode-2d-active .local-player-pin {
    display: block !important;
}

body.mode-2d-active .player-map-plaque,
body.mode-2d-active .minimap-player-plaque {
    display: inline-flex !important;
}

/* In 2D Mode: hide 3D HUD radar cone, arrow and single dot */
body.mode-2d-active .minimap-radar-cone,
body.mode-2d-active .minimap-player-arrow,
body.mode-2d-active .minimap-player-dot {
    display: none !important;
}

/* Leaflet divIcon class override to avoid default box */
.leaflet-div-icon.player-leaflet-marker,
.leaflet-div-icon.poi-leaflet-div-icon,
.leaflet-div-icon.poi-custom-div-icon {
    background: transparent !important;
    border: none !important;
}

/* POI 2D Map Pins & Popups */
.poi-map-pin {
    position: relative;
    width: 34px;
    height: 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.9));
    transition: transform 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    pointer-events: auto;
}

.poi-map-pin:hover {
    transform: scale(1.18) translateY(-4px);
    z-index: 99999 !important;
}

.poi-map-pin:hover .poi-pin-label {
    max-width: 200px;
    z-index: 99999;
}

.poi-marker-badge {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #1c2333 0%, #080c14 100%);
    border: 2.5px solid var(--poi-color, #00f0ff);
    box-shadow: 0 0 14px var(--poi-color, rgba(0, 240, 255, 0.6)), inset 0 0 8px rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    backdrop-filter: blur(10px);
    user-select: none;
    position: relative;
    z-index: 2;
}

.poi-marker-pin-tip {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--poi-color, #00f0ff);
    margin-top: -1px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
    z-index: 1;
}

.poi-pin-label {
    position: absolute;
    top: 43px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 14, 26, 0.95);
    border: 1px solid var(--poi-color, #00f0ff);
    border-radius: 6px;
    padding: 2px 7px;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
    white-space: nowrap;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.9), 0 0 6px rgba(0, 0, 0, 0.6);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
    pointer-events: none;
    z-index: 3;
    transition: max-width 0.2s ease;
}

/* Custom Cyberpunk Leaflet Popup for POIs */
.leaflet-popup.poi-custom-popup .leaflet-popup-content-wrapper {
    background: rgba(10, 14, 26, 0.94) !important;
    border: 1px solid var(--poi-color, #00f0ff) !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85), 0 0 18px var(--poi-color, rgba(0, 240, 255, 0.3)) !important;
    backdrop-filter: blur(16px);
    padding: 0 !important;
    overflow: hidden;
}

.leaflet-popup.poi-custom-popup .leaflet-popup-content {
    margin: 0 !important;
    line-height: 1.4;
}

.leaflet-popup.poi-custom-popup .leaflet-popup-tip {
    background: rgba(10, 14, 26, 0.94) !important;
    border: 1px solid var(--poi-color, #00f0ff) !important;
}

.poi-leaflet-popup {
    padding: 12px 14px;
    min-width: 240px;
    max-width: 290px;
    color: #ffffff;
    font-family: inherit;
    box-sizing: border-box;
}

.poi-popup-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.poi-popup-icon {
    font-size: 1.5rem;
    line-height: 1;
    filter: drop-shadow(0 0 6px var(--poi-color, #00f0ff));
}

.poi-popup-titles {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.poi-popup-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.2px;
}

.poi-popup-category {
    font-size: 0.72rem;
    color: var(--poi-color, #00f0ff);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.poi-popup-info {
    font-size: 0.76rem;
    color: #cbd5e1;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.poi-popup-link {
    color: var(--poi-color, #00f0ff);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.poi-popup-link:hover {
    text-decoration: underline;
    opacity: 0.85;
}

.poi-popup-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
}

.poi-popup-actions:not(.poi-popup-grid-2x2) .btn-beam {
    grid-column: 1 / -1;
}

.poi-popup-btn {
    padding: 8px 6px;
    border-radius: 8px;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    user-select: none;
    min-height: 36px;
    width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.poi-popup-btn.btn-event-details {
    background: linear-gradient(135deg, #00f0ff, #7000ff);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 240, 255, 0.25);
}

.poi-popup-btn.btn-event-details:hover {
    transform: translateY(-1px);
    filter: brightness(1.15);
}

.poi-popup-btn.btn-event-details:active {
    transform: translateY(1px);
}

.poi-popup-btn.btn-beam {
    background: linear-gradient(135deg, var(--poi-color, #00f0ff), #7000ff);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.poi-popup-btn.btn-beam:hover {
    transform: translateY(-1px);
    filter: brightness(1.15);
}

.poi-popup-btn.btn-beam:active {
    transform: translateY(1px);
}

.poi-popup-btn.btn-route {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f1f5f9;
}

.poi-popup-btn.btn-route:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
    color: #ffffff;
}

.poi-popup-btn.btn-route.btn-route-car:hover {
    border-color: #ffb300;
    background: rgba(255, 179, 0, 0.18);
}

.poi-popup-btn.btn-route.btn-route-foot:hover {
    border-color: #00f0ff;
    background: rgba(0, 240, 255, 0.18);
}

.poi-popup-btn.btn-route:active {
    transform: translateY(1px);
}

.view-glow {
    background: rgba(0, 240, 255, 0.15) !important;
    border: 1px solid rgba(0, 240, 255, 0.35) !important;
}

/* Cinematic Street Banner (Disabled per user request) */
#street-banner {
    display: none !important;
}

.street-banner-icon {
    font-size: 1.4rem;
    filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.4));
}

.street-banner-content {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.street-banner-subtitle {
    font-size: 0.65rem;
    color: var(--accent-cyan);
    letter-spacing: 1.6px;
    font-weight: 700;
    text-transform: uppercase;
}

.street-banner-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.4px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* Mobile Touch Controls for Smartphones */
#mobile-controls {
    position: fixed;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    right: 16px;
    left: auto;
    width: auto;
    display: none;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 0;
    pointer-events: none;
    z-index: 90;
}

/* Virtual Joystick Pad & Mobile Sensor Controls */
.mobile-joystick-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    pointer-events: none;
}

.mobile-joystick-wrapper > * {
    pointer-events: auto;
}

.btn-touch-sensor {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(16, 20, 32, 0.82);
    border: 2px solid var(--accent-cyan);
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.35), 0 4px 12px rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    transition: transform 0.15s ease, background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.btn-touch-sensor:active {
    transform: scale(0.92);
}

.btn-touch-sensor.loading {
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    animation: sensorSpin 1s linear infinite;
}

.btn-touch-sensor.active {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.92), rgba(112, 0, 255, 0.9));
    border-color: #ffffff;
    box-shadow: 0 0 22px rgba(0, 240, 255, 0.9), 0 0 36px rgba(112, 0, 255, 0.7);
    animation: sensorPulse 2s infinite alternate;
}

@keyframes sensorPulse {
    0% {
        box-shadow: 0 0 16px rgba(0, 240, 255, 0.6), 0 0 24px rgba(112, 0, 255, 0.4);
    }
    100% {
        box-shadow: 0 0 28px rgba(0, 240, 255, 1), 0 0 45px rgba(112, 0, 255, 0.85);
    }
}

@keyframes sensorSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.joystick-pad {
    position: relative;
    width: 124px;
    height: 124px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 0, 127, 0.08) 0%, rgba(10, 11, 16, 0.8) 70%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 2px solid rgba(255, 0, 127, 0.4);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6), 0 0 16px rgba(255, 0, 127, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.joystick-pad::after {
    content: '';
    position: absolute;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 1px dashed rgba(0, 240, 255, 0.35);
    pointer-events: none;
}

.joystick-knob {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 0, 127, 0.9) 45%, rgba(112, 0, 255, 0.85) 100%);
    border: 2px solid #ffffff;
    box-shadow: 0 0 16px rgba(255, 0, 127, 0.8), 0 4px 12px rgba(0, 0, 0, 0.5);
    transform: translate(0px, 0px);
    pointer-events: none;
    will-change: transform;
}

.btn-touch {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    transition: background 0.15s ease, transform 0.1s ease;
}

.btn-touch:active, .btn-touch.active {
    background: linear-gradient(135deg, #ff007f, #7000ff);
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.6);
    transform: scale(0.92);
}

/* Mobile Thumb-Zone Bottom Dock (Hidden on Desktop) */
.mobile-bottom-dock {
    display: none;
}

/* Smartphone & Tablet Responsive Layouts */
@media (pointer: coarse), (max-width: 860px) {
    #mobile-controls {
        display: flex;
        right: 16px;
        left: auto;
        width: auto;
        justify-content: flex-end;
    }

    /* Floating Glassmorphism Thumb-Zone Dock */
    .mobile-bottom-dock {
        position: fixed;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        align-items: center;
        justify-content: space-around;
        gap: 6px;
        padding: 5px 8px;
        background: rgba(10, 14, 26, 0.92);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border: 1.5px solid rgba(0, 240, 255, 0.35);
        border-radius: 28px;
        box-shadow: 0 10px 32px rgba(0, 0, 0, 0.75), 0 0 22px rgba(0, 240, 255, 0.18);
        z-index: 120;
        pointer-events: auto;
        touch-action: manipulation;
        user-select: none;
        -webkit-user-select: none;
        max-width: calc(100vw - 24px);
        transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* In 3D Mode: joystick occupies bottom-right, dock smoothly parks on bottom-left */
    body:not(.mode-2d-active) .mobile-bottom-dock {
        left: 14px;
        transform: none;
        max-width: calc(100vw - 155px);
        padding: 4px 6px;
        gap: 3px;
    }

    body:not(.mode-2d-active) .mobile-bottom-dock .dock-btn {
        min-width: 38px;
        height: 44px;
        padding: 2px 3px;
    }

    body:not(.mode-2d-active) .mobile-bottom-dock .dock-btn-layer {
        display: none !important;
    }

    /* Build Mode Overlays */

    #build-mode-overlay {
        bottom: 120px !important;
        padding: 10px 14px !important;
    }

    #sign-interaction-prompt {
        bottom: 130px !important;
    }

    .dock-btn {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1px;
        min-width: 52px;
        height: 48px;
        padding: 3px 6px;
        background: transparent;
        border: none;
        border-radius: 18px;
        color: #ffffff;
        cursor: pointer;
        touch-action: manipulation;
        transition: transform 0.12s ease, background 0.15s ease;
    }

    .dock-btn:active {
        transform: scale(0.88);
        background: rgba(0, 240, 255, 0.2);
    }

    .dock-btn-icon {
        font-size: 1.25rem;
        line-height: 1;
        display: block;
    }

    .dock-btn-label {
        font-size: 0.62rem;
        font-weight: 700;
        letter-spacing: 0.2px;
        color: rgba(255, 255, 255, 0.85);
        white-space: nowrap;
        line-height: 1.1;
    }

    .dock-btn-party .dock-btn-icon {
        filter: drop-shadow(0 0 6px #ff007f);
    }

    .dock-btn-party .dock-btn-label {
        color: #ff007f;
        font-weight: 800;
    }

    .dock-btn-view .dock-btn-label {
        color: #00f0ff;
    }

    .dock-btn-build .dock-btn-icon {
        filter: drop-shadow(0 0 6px #00f0ff);
    }

    .dock-btn-build .dock-btn-label {
        color: #00f0ff;
        font-weight: 800;
    }

    .dock-btn-build.active {
        background: rgba(0, 240, 255, 0.25);
        border: 1px solid #00f0ff;
        border-radius: 12px;
    }

    .dock-badge {
        position: absolute;
        top: 2px;
        right: 6px;
        background: #ff007f;
        color: #ffffff;
        font-size: 0.62rem;
        font-weight: 800;
        min-width: 16px;
        height: 16px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 4px;
        box-shadow: 0 0 8px rgba(255, 0, 127, 0.8);
    }

    .chat-container {
        bottom: 140px;
        left: 14px;
        width: 280px;
        max-height: 180px;
    }
    .chat-toggle-btn,
    .build-toggle-btn {
        display: none !important;
    }
    .bottom-toolbar-container {
        margin-bottom: 96px;
    }
    .top-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        padding: 6px 12px;
        gap: 10px;
        width: 100%;
        min-height: 48px;
        background: linear-gradient(180deg, rgba(10, 14, 24, 0.96) 0%, rgba(10, 14, 24, 0.88) 85%, rgba(10, 14, 24, 0) 100%);
        box-sizing: border-box;
    }
    .top-bar-left {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
        flex: 1 1 auto;
        flex-wrap: nowrap !important;
        overflow: hidden;
    }
    .top-bar-right {
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }
    .top-bar-user {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }
    .top-bar-actions {
        display: none !important;
    }
    .hud-brand-title {
        font-size: 0.88rem;
    }
    .stats-panel {
        display: inline-flex;
        align-items: center;
        flex-wrap: nowrap !important;
        font-size: 0.82rem;
        padding: 0;
        gap: 6px;
        white-space: nowrap !important;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
        flex: 1 1 auto;
    }
    .stats-panel .stats-item {
        white-space: nowrap !important;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .stats-panel #hud-street-wrapper {
        display: none !important;
    }
    .btn-profile-chip,
    .top-bar-left .btn-profile-chip,
    .top-bar-user .btn-profile-chip {
        flex: 0 0 auto;
        min-height: 42px;
        padding: 5px 12px 5px 8px !important;
        font-size: 0.85rem;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        border-radius: 10px;
    }
    .btn-profile-chip #hud-profile-img,
    .btn-profile-chip #hud-profile-badge,
    .top-bar-left .btn-profile-chip #hud-profile-img,
    .top-bar-left .btn-profile-chip #hud-profile-badge,
    .top-bar-user .btn-profile-chip #hud-profile-img,
    .top-bar-user .btn-profile-chip #hud-profile-badge {
        width: 24px;
        height: 24px;
        font-size: 1.05rem;
    }
    .top-bar-user .lang-switcher {
        display: none !important;
    }
    .btn-mobile-menu {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 42px !important;
        height: 42px !important;
        min-width: 42px;
        padding: 0 !important;
        border-radius: 10px !important;
        font-size: 1.35rem;
        color: #00f0ff;
        border-color: rgba(0, 240, 255, 0.5) !important;
        background: rgba(0, 240, 255, 0.12) !important;
        box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
        cursor: pointer;
        touch-action: manipulation;
        transition: all 0.2s ease;
    }
    .btn-mobile-menu:active {
        transform: scale(0.92);
        background: rgba(0, 240, 255, 0.25) !important;
        box-shadow: 0 0 16px rgba(0, 240, 255, 0.5);
    }
    .profile-chip-name {
        max-width: 80px;
        font-size: 0.8rem;
    }
    .top-bar-actions,
    .top-bar-actions .btn-view-switch,
    .top-bar-actions #btn-toggle-view,
    .top-bar-actions .hud-segmented-pill,
    .top-bar-actions #btn-toggle-mic,
    .top-bar-actions #btn-install-pwa {
        display: none !important;
    }

    /* Mobile Action Drawer Styles */
    .mobile-action-drawer {
        position: fixed;
        inset: 0;
        z-index: 999;
        pointer-events: auto;
    }
    .mobile-drawer-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.65);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        animation: fadeInDrawerBackdrop 0.25s ease forwards;
    }
    .mobile-drawer-content {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        max-height: 88vh;
        background: rgba(14, 18, 30, 0.96) !important;
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-bottom: 2px solid rgba(255, 0, 127, 0.45) !important;
        border-radius: 0 0 22px 22px !important;
        box-shadow: 0 15px 45px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 0, 127, 0.25) !important;
        padding: 16px 18px 20px 18px;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: 16px;
        z-index: 1000;
        animation: slideDownDrawer 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    @@keyframes slideDownDrawer {
        from {
            transform: translateY(-100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    @@keyframes fadeInDrawerBackdrop {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    .mobile-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .mobile-drawer-brand {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .mobile-drawer-logo {
        width: 26px;
        height: 26px;
        object-fit: contain;
        filter: drop-shadow(0 0 6px rgba(255, 0, 127, 0.6));
    }
    .mobile-drawer-title {
        font-size: 0.95rem;
        font-weight: 900;
        letter-spacing: 1px;
        color: #ffffff;
        background: linear-gradient(135deg, #00f0ff 0%, #ff007f 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    .mobile-drawer-close {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.18);
        background: rgba(255, 255, 255, 0.08);
        color: #ffffff;
        font-size: 1.15rem;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        touch-action: manipulation;
        transition: all 0.2s ease;
    }
    .mobile-drawer-close:active {
        background: rgba(255, 0, 127, 0.3);
        border-color: var(--accent-pink);
        transform: scale(0.92);
    }
    .mobile-drawer-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .mobile-drawer-item {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 12px 14px;
        min-height: 52px;
        border-radius: 14px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.04);
        color: #ffffff;
        text-align: left;
        cursor: pointer;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    }
    .mobile-drawer-item:active {
        transform: scale(0.98);
        background: rgba(255, 0, 127, 0.15);
        border-color: rgba(255, 0, 127, 0.4);
    }
    .drawer-item-icon-wrap {
        width: 42px;
        height: 42px;
        min-width: 42px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.3rem;
    }
    .radar-glow {
        background: rgba(255, 85, 0, 0.15);
        border: 1px solid rgba(255, 85, 0, 0.4);
        box-shadow: 0 0 10px rgba(255, 85, 0, 0.2);
    }
    .beam-glow {
        background: rgba(0, 240, 255, 0.15);
        border: 1px solid rgba(0, 240, 255, 0.4);
        box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
    }
    .navi-glow {
        background: rgba(112, 0, 255, 0.15);
        border: 1px solid rgba(112, 0, 255, 0.4);
        box-shadow: 0 0 10px rgba(112, 0, 255, 0.2);
    }
    .mic-glow {
        background: rgba(0, 255, 136, 0.15);
        border: 1px solid rgba(0, 255, 136, 0.4);
        box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
    }
    .pwa-glow {
        background: rgba(255, 0, 127, 0.15);
        border: 1px solid rgba(255, 0, 127, 0.4);
        box-shadow: 0 0 10px rgba(255, 0, 127, 0.2);
    }
    .drawer-item-info {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    .drawer-item-title-row {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .drawer-item-title {
        font-size: 0.95rem;
        font-weight: 700;
        color: #ffffff;
    }
    .drawer-item-desc {
        font-size: 0.74rem;
        color: #94a3b8;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .drawer-arrow {
        font-size: 1.4rem;
        color: rgba(255, 255, 255, 0.35);
        margin-left: auto;
        flex-shrink: 0;
    }
    .drawer-status-chip {
        font-size: 0.65rem;
        font-weight: 800;
        padding: 2px 7px;
        border-radius: 6px;
        letter-spacing: 0.5px;
    }
    .drawer-status-chip.muted {
        background: rgba(255, 255, 255, 0.1);
        color: #94a3b8;
        border: 1px solid rgba(255, 255, 255, 0.15);
    }
    .drawer-status-chip.live {
        background: rgba(0, 255, 136, 0.2);
        color: #00ff88;
        border: 1px solid rgba(0, 255, 136, 0.4);
        box-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
    }
    .mobile-drawer-footer {
        margin-top: 4px;
        padding-top: 14px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
    .mobile-footer-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }
    .mobile-footer-label {
        font-size: 0.85rem;
        color: #cbd5e1;
        font-weight: 600;
    }
    .mobile-lang-switcher {
        display: inline-flex;
        gap: 6px;
    }
    .mobile-lang-switcher .lang-btn {
        min-height: 40px;
        min-width: 48px;
        padding: 6px 10px;
        touch-action: manipulation;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .mobile-lang-switcher .lang-flag {
        width: 24px;
        height: 17px;
        border-radius: 3px;
    }
    .start-box {
        width: 95vw;
        padding: 24px 14px;
        max-height: 90vh;
        overflow-y: auto;
    }
    .party-logo {
        font-size: 2.1rem !important;
    }
    .party-feature-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    .party-feature-card {
        padding: 8px 4px;
    }
    .party-feature-title {
        font-size: 0.72rem;
    }
    .party-feature-desc {
        font-size: 0.6rem;
    }
    .compass-bar-container {
        bottom: 0;
        top: auto !important;
        height: 20px;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
    }
    #street-banner {
        top: calc(var(--top-bar-height, 52px) + 6px);
        padding: 6px 14px;
    }
    .minimap-panel {
        top: calc(var(--top-bar-height, 52px) + 6px);
        right: 8px;
        width: 155px;
    }
    .minimap-body {
        height: 135px;
    }
    .minimap-bottom-bar {
        height: 28px;
    }
    .minimap-bottom-bar-btn {
        font-size: 0.72rem !important;
        gap: 5px !important;
    }
    .minimap-street {
        max-width: 55px;
        font-size: 0.65rem;
    }
    .minimap-panel.collapsed {
        width: 130px;
    }
    .modal-content {
        max-width: 94vw;
        padding: 16px;
    }
    .segmented-btn .seg-label {
        display: none;
    }
    .segmented-btn {
        padding: 5px 8px;
    }
}

@media (max-width: 480px) {
    .party-feature-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .party-feature-card {
        flex-direction: row;
        gap: 10px;
        text-align: left;
        padding: 6px 12px;
    }
    .top-bar {
        padding: 5px 8px;
        gap: 6px;
        flex-wrap: nowrap;
    }
    .top-bar-left {
        gap: 6px;
        flex-wrap: nowrap !important;
        max-width: none;
    }
    .hud-brand-title {
        font-size: 0.8rem;
    }
    .hud-brand-favicon {
        width: 24px;
        height: 24px;
    }
    .stats-panel {
        font-size: 0.72rem;
        gap: 4px;
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
    }
    .stats-panel #hud-street-wrapper {
        display: none !important;
    }
    .profile-chip-name {
        max-width: 50px;
        font-size: 0.72rem;
    }
}


.poi-popup-btn.btn-poi-checkin {
    grid-column: 1 / -1;
    background: rgba(0, 255, 136, 0.16);
    border: 1px solid rgba(0, 255, 136, 0.5);
    color: #00ff88;
    font-weight: 800;
}

.poi-popup-btn.btn-poi-checkin:hover {
    transform: translateY(-1px);
    filter: brightness(1.15);
    background: rgba(0, 255, 136, 0.24);
}

.poi-popup-btn.btn-poi-checkin:active {
    transform: translateY(1px);
}

/* ============================================================
   World Object Pins on the 2D Map (signs & zombie props)
   ============================================================ */

.world-object-leaflet-div-icon {
    background: none;
    border: none;
}

.world-object-map-pin {
    position: relative;
    width: 30px;
    height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    pointer-events: auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.85));
    transition: transform 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.world-object-map-pin:hover {
    transform: scale(1.15) translateY(-3px);
    z-index: 9000;
}

.world-object-badge {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    background: radial-gradient(circle at 35% 35%, #1c2333 0%, #080c14 100%);
    border: 2px solid var(--poi-color, #00f0ff);
    box-shadow: 0 0 12px var(--poi-glow, rgba(0, 240, 255, 0.5)), inset 0 0 6px rgba(0, 0, 0, 0.9);
    user-select: none;
}

.world-object-pin-tip {
    width: 8px;
    height: 8px;
    margin-top: -3px;
    transform: rotate(45deg);
    background: var(--poi-color, #00f0ff);
    box-shadow: 0 0 8px var(--poi-glow, rgba(0, 240, 255, 0.5));
}

.world-object-label {
    position: absolute;
    top: 34px;
    left: 50%;
    transform: translateX(-50%);
    /* Absolut positioniert mit left:50% bekommt das Label sonst nur die halbe
       Pin-Breite (~15px) als Verfuegbar und bricht zeichenweise um. */
    width: max-content;
    max-width: 148px;
    padding: 3px 7px;
    border-radius: 6px;
    background: rgba(10, 14, 26, 0.94);
    border: 1px solid var(--poi-color, #00f0ff);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2px;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.75);
    pointer-events: none;
    z-index: 3;
}

/* Dichte Cluster: nur der Pin mit Platz zeigt sein Label, der Rest erst beim Hover. */
.world-object-map-pin.is-label-hidden .world-object-label {
    display: none;
}

.world-object-map-pin.is-label-hidden:hover .world-object-label {
    display: block;
    z-index: 9999;
}

.world-object-leaflet-div-icon,
.world-object-map-pin {
    overflow: visible;
}

.world-object-popup-wrap .leaflet-popup-content-wrapper {
    background: rgba(10, 14, 26, 0.97);
    color: #f8fafc;
    border: 1px solid rgba(0, 240, 255, 0.35);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.world-object-popup-wrap .leaflet-popup-tip {
    background: rgba(10, 14, 26, 0.97);
}

.world-object-popup {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 170px;
}

.world-object-popup-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #f8fafc;
}

.world-object-popup-meta {
    font-size: 0.72rem;
    color: rgba(226, 232, 240, 0.75);
}

.world-object-popup-btn {
    margin-top: 2px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(0, 240, 255, 0.45);
    background: rgba(0, 240, 255, 0.12);
    color: #00f0ff;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
}

.world-object-popup-btn:hover {
    background: rgba(0, 240, 255, 0.22);
}
