* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000;
    color: #fff;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

#globe-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

canvas {
    display: block;
}

/* Crosshair */
.crosshair {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
}

.crosshair-v,
.crosshair-h {
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
}

.crosshair-v {
    width: 1px;
    height: 40px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.crosshair-h {
    width: 40px;
    height: 1px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.crosshair-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Header */
.site-header {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-header h1 {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.toggle-facts-btn {
    padding: 6px 12px;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.toggle-facts-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
}

.toggle-facts-btn.facts-hidden {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Instructions */
.instructions {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    text-align: center;
    transition: opacity 0.5s;
}

.instructions p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
}

.instructions.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Info Card */
.info-card {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    z-index: 30;
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 32px;
    max-width: 500px;
    width: calc(100% - 48px);
    backdrop-filter: blur(20px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s;
}

.info-card.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.info-card h2 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 24px;
    color: #fff;
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #fff;
}

.fact-section {
    margin-bottom: 24px;
}

.fact-section p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

.spin-btn {
    width: 100%;
    padding: 14px 24px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.spin-btn:hover {
    background: #e0e0e0;
}

.spin-btn:active {
    transform: scale(0.98);
}

/* Loading */
.loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 25;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.loading.visible {
    opacity: 1;
}

.loading p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 16px;
    letter-spacing: 1px;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: #fff;
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile */
@media (max-width: 600px) {
    .info-card {
        padding: 24px;
        border-radius: 12px 12px 0 0;
        bottom: 0;
        max-width: 100%;
        width: 100%;
    }

    .info-card h2 {
        font-size: 20px;
    }
}
