* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #0d1117;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

#main-container {
    flex: 1;
    position: relative;
    width: 100%;
    overflow: hidden;
}

#globeViz {
    width: 100%;
    height: 100%;
    cursor: grab;
}

#globeViz:active {
    cursor: grabbing;
}

#footer {
    height: 40px;
    background-color: #010409;
    color: #8b949e;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 24px;
    font-size: 13px;
    border-top: 1px solid #30363d;
    flex-shrink: 0;
    z-index: 100;
}

#footer a {
    color: #58a6ff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 5px;
}

#footer a:hover {
    text-decoration: underline;
}

.title-overlay {
    position: absolute;
    top: 24px;
    left: 24px;
    color: #ffffff;
    z-index: 10;
    pointer-events: none;
    background: rgba(13, 17, 23, 0.75);
    padding: 16px;
    border-radius: 8px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.title-overlay h2 {
    margin: 0 0 6px 0;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.title-overlay p {
    margin: 0;
    font-size: 13px;
    color: #8b949e;
}

#info-panel {
    position: absolute;
    top: 24px;
    right: 24px;
    display: none; 
    flex-direction: column;
    background: rgba(13, 17, 23, 0.95);
    border: 1px solid #30363d;
    border-radius: 8px;
    width: 300px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.9);
    z-index: 9999999;
    overflow: hidden;
    color: #c9d1d9;
}

#close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.6);
    border: none;
    color: white;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

#close-btn:hover {
    background: #ff4d4f;
}

#tt-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    background-color: #0d1117;
    border-bottom: 1px solid #30363d;
}

.tt-content {
    padding: 16px;
}

#tt-title {
    font-size: 16px;
    font-weight: 600;
    color: #f0f6fc;
    margin-bottom: 6px;
    line-height: 1.4;
}

#tt-cost {
    font-size: 14px;
    color: #58a6ff;
    margin-bottom: 10px;
    font-weight: 600;
}

#tt-desc {
    font-size: 13px;
    line-height: 1.6;
    color: #8b949e;
    margin: 0;
}

@media (max-width: 768px) {
    .title-overlay {
        top: 12px;
        left: 12px;
        padding: 10px;
    }
    .title-overlay h2 { font-size: 16px; }
    .title-overlay p { font-size: 11px; }
    
    #info-panel { 
        top: auto;
        bottom: 24px;
        right: 50%;
        transform: translateX(50%);
        width: 90%;
        max-width: 340px;
    }
    #tt-img { height: 140px; }
    #footer { padding: 0 12px; font-size: 12px; }
}