:root {
            --fh-black: #1A1A1A;
            --fh-dark: #2A2A2A;
            --fh-mid: #6B6B6B;
            --fh-light: #9A9A9A;
            --fh-faint: #D4D4D4;
            --fh-bg: #F8F8F6;
            --fh-warm: #F0EFEB;
            --fh-amber: #D4A849;
            --space: #070708;
        }
        * { margin: 0; padding: 0; box-sizing: border-box; }
        html, body {
            width: 100%; height: 100%;
            overflow: hidden;
            background: var(--space);
            color: var(--fh-bg);
            font-family: Inter, sans-serif;
            -webkit-font-smoothing: antialiased;
        }
        #globeViz {
            position: fixed; inset: 0;
            z-index: 1;
        }
        #globeViz canvas { outline: none; }

        header {
            position: fixed; top: 0; left: 0; right: 0; z-index: 20;
            display: flex; justify-content: space-between; align-items: flex-start;
            padding: 20px 36px 16px;
            background: linear-gradient(180deg, rgba(7,7,8,0.88) 0%, rgba(7,7,8,0.35) 70%, transparent 100%);
            pointer-events: none;
            flex-wrap: wrap; gap: 16px;
        }
        header > * { pointer-events: auto; }
        .brand {
            font-size: 15px; font-weight: 900; letter-spacing: -0.02em;
            color: var(--fh-bg);
            text-decoration: none;
        }
        .brand span { font-weight: 400; color: rgba(248,248,246,0.55); }
        .back-home {
            display: inline-flex; align-items: center; gap: 8px;
            margin-top: 10px;
            font-size: 10px; font-weight: 700;
            letter-spacing: 0.18em; text-transform: uppercase;
            color: rgba(248,248,246,0.4);
            text-decoration: none;
            transition: color 0.2s ease;
        }
        .back-home:hover { color: var(--fh-amber); }
        .header-left h1 {
            font-family: 'Playfair Display', serif;
            font-size: clamp(1.35rem, 2.5vw, 1.85rem);
            font-weight: 500;
            letter-spacing: -0.02em;
            line-height: 1.25;
            margin-top: 6px;
            color: #fff;
        }
        .header-left p {
            font-size: 13px; font-weight: 300;
            color: rgba(248,248,246,0.5); margin-top: 4px; line-height: 1.5;
        }
        .header-stats { display: flex; gap: 28px; align-items: center; padding-top: 8px; }
        .stat-item { text-align: right; }
        .stat-value {
            font-size: 18px; font-weight: 600;
            letter-spacing: -0.02em; color: #fff;
        }
        .stat-label {
            font-size: 10px; font-weight: 700;
            color: rgba(248,248,246,0.4);
            text-transform: uppercase; letter-spacing: 0.2em; margin-top: 3px;
        }

        .globe-hint {
            position: fixed; bottom: 22px; right: 22px; z-index: 20;
            font-size: 10px; font-weight: 600;
            letter-spacing: 0.18em; text-transform: uppercase;
            color: rgba(248,248,246,0.35);
            pointer-events: none;
        }

        .tooltip {
            position: fixed; z-index: 1000;
            background: rgba(248,248,246,0.97);
            border: 1px solid var(--fh-faint);
            border-radius: 12px;
            padding: 14px 18px;
            pointer-events: none;
            opacity: 0; transform: translateY(5px);
            transition: opacity 0.2s ease, transform 0.2s ease;
            box-shadow: 0 16px 48px rgba(0,0,0,0.35);
            min-width: 200px;
            color: var(--fh-black);
        }
        .tooltip.visible { opacity: 1; transform: translateY(0); }
        .tooltip-name {
            font-weight: 600; font-size: 14px;
            display: flex; align-items: center; gap: 8px;
            margin-bottom: 8px;
        }
        .tooltip-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
        .tooltip-row {
            display: flex; justify-content: space-between; align-items: center;
            font-size: 12px; padding: 3px 0; gap: 20px;
        }
        .tooltip-row-label { color: var(--fh-light); font-weight: 500; white-space: nowrap; }
        .tooltip-row-value { font-weight: 500; font-size: 12px; text-align: right; }
        .tooltip-hint {
            font-size: 10px; color: var(--fh-light);
            text-align: center; margin-top: 10px;
            letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
        }

        .modal-overlay {
            position: fixed; inset: 0; z-index: 2000;
            background: rgba(7,7,8,0.72);
            backdrop-filter: blur(6px);
            display: flex; align-items: center; justify-content: center;
            opacity: 0; pointer-events: none;
            transition: opacity 0.28s ease;
            padding: 24px;
        }
        .modal-overlay.active { opacity: 1; pointer-events: auto; }
        .modal {
            background: var(--fh-bg);
            border: 1px solid var(--fh-faint);
            border-radius: 16px;
            max-width: 600px; width: 100%;
            max-height: 85vh; overflow-y: auto;
            transform: translateY(16px) scale(0.98);
            transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
            box-shadow: 0 24px 80px rgba(0,0,0,0.45);
            color: var(--fh-black);
        }
        .modal-overlay.active .modal { transform: translateY(0) scale(1); }
        .modal::-webkit-scrollbar { width: 5px; }
        .modal::-webkit-scrollbar-track { background: transparent; }
        .modal::-webkit-scrollbar-thumb { background: var(--fh-faint); border-radius: 4px; }
        .modal-header {
            padding: 22px 26px 14px;
            border-bottom: 1px solid var(--fh-faint);
            display: flex; justify-content: space-between; align-items: flex-start;
            position: sticky; top: 0; background: var(--fh-bg);
            z-index: 2; border-radius: 16px 16px 0 0;
        }
        .modal-header-left { display: flex; align-items: center; gap: 14px; }
        .modal-color-bar { width: 3px; height: 42px; border-radius: 2px; flex-shrink: 0; }
        .modal-title {
            font-family: 'Playfair Display', serif;
            font-size: 22px; font-weight: 500; letter-spacing: -0.02em;
        }
        .modal-subtitle { font-size: 12px; color: var(--fh-mid); margin-top: 3px; font-weight: 300; }
        .modal-close {
            background: none; border: 1px solid var(--fh-faint);
            color: var(--fh-light); width: 32px; height: 32px;
            border-radius: 8px; cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            font-size: 18px; line-height: 1; transition: all 0.2s ease; flex-shrink: 0;
        }
        .modal-close:hover {
            background: var(--fh-warm);
            color: var(--fh-black); border-color: var(--fh-amber);
        }
        .modal-body { padding: 18px 26px 26px; }
        .modal-section { margin-bottom: 18px; }
        .modal-section:last-child { margin-bottom: 0; }
        .modal-section-title {
            font-size: 10px; font-weight: 700;
            text-transform: uppercase; letter-spacing: 0.2em;
            color: var(--fh-light); margin-bottom: 8px;
        }
        .modal-section-content {
            font-size: 13px; font-weight: 300;
            line-height: 1.7; color: var(--fh-mid);
        }
        .modal-section-content ul { list-style: none; padding: 0; }
        .modal-section-content li { padding: 4px 0 4px 14px; position: relative; }
        .modal-section-content li::before {
            content: ''; position: absolute; left: 0; top: 12px;
            width: 5px; height: 5px; border-radius: 50%; background: var(--fh-faint);
        }
        .modal-section-content strong { font-weight: 600; color: var(--fh-black); }
        .modal-flag {
            background: rgba(212,168,73,0.08);
            border: 1px solid rgba(212,168,73,0.22);
            border-radius: 8px; padding: 10px 13px;
            font-size: 12px; line-height: 1.6;
            color: #8a6f2e; margin-top: 6px;
        }
        .modal-legal-badge {
            display: inline-flex; align-items: center; gap: 6px;
            padding: 4px 11px; border-radius: 6px;
            font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
            text-transform: uppercase;
        }
        .modal-legal-badge.yes {
            background: rgba(26,26,26,0.05); color: var(--fh-black);
            border: 1px solid var(--fh-faint);
        }
        .modal-legal-badge.no {
            background: rgba(180,60,60,0.06); color: #a33;
            border: 1px solid rgba(180,60,60,0.15);
        }
        .modal-legal-badge.pending {
            background: rgba(212,168,73,0.1); color: #8a6f2e;
            border: 1px solid rgba(212,168,73,0.25);
        }

        .legend {
            position: fixed; bottom: 22px; left: 22px; z-index: 20;
            background: rgba(248,248,246,0.94);
            border: 1px solid rgba(212,212,212,0.5);
            border-radius: 12px; padding: 14px 18px;
            backdrop-filter: blur(14px);
            max-width: 245px;
            box-shadow: 0 12px 40px rgba(0,0,0,0.35);
            color: var(--fh-black);
            max-height: calc(100vh - 140px);
            overflow-y: auto;
        }
        .legend-title {
            font-size: 10px; font-weight: 700;
            text-transform: uppercase; letter-spacing: 0.2em;
            color: var(--fh-light); margin-bottom: 10px;
        }
        .legend-item {
            display: flex; align-items: center; gap: 9px;
            padding: 4px 0; cursor: pointer;
            transition: opacity 0.2s ease;
        }
        .legend-item:hover { opacity: 0.7; }
        .legend-item.dimmed { opacity: 0.2; }
        .legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 6px currentColor; }
        .legend-name { font-size: 12px; font-weight: 500; flex: 1; }
        .legend-volume { font-size: 10px; color: var(--fh-light); font-weight: 500; }
        .legend-size-guide { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--fh-faint); }
        .legend-size-title {
            font-size: 9px; font-weight: 700;
            text-transform: uppercase; letter-spacing: 0.18em;
            color: var(--fh-light); margin-bottom: 7px;
        }
        .legend-size-row { display: flex; align-items: center; gap: 7px; padding: 1.5px 0; }
        .legend-size-circle { border-radius: 50%; background: rgba(26,26,26,0.2); flex-shrink: 0; }
        .legend-size-label { font-size: 10.5px; color: var(--fh-mid); font-weight: 300; }

        .loading-overlay {
            position: fixed; inset: 0; z-index: 5000;
            background: var(--space);
            display: flex; flex-direction: column;
            align-items: center; justify-content: center;
            transition: opacity 0.6s ease;
        }
        .loading-overlay.hidden { opacity: 0; pointer-events: none; }
        .loading-spinner {
            width: 28px; height: 28px;
            border: 2px solid rgba(248,248,246,0.12);
            border-top-color: var(--fh-amber);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }
        .loading-text {
            margin-top: 14px; font-size: 12px; font-weight: 500;
            color: rgba(248,248,246,0.4); letter-spacing: 0.12em; text-transform: uppercase;
        }
        @keyframes spin { to { transform: rotate(360deg); } }

        .unlock-overlay {
            position: fixed; inset: 0; z-index: 6000;
            background: var(--space);
            display: flex; align-items: center; justify-content: center;
            padding: 24px;
        }
        .unlock-overlay.hidden { display: none; }
        .unlock-card {
            width: 100%; max-width: 400px;
            background: rgba(248,248,246,0.97);
            border: 1px solid var(--fh-faint);
            border-radius: 16px;
            padding: 32px 28px 28px;
            color: var(--fh-black);
            box-shadow: 0 24px 80px rgba(0,0,0,0.45);
        }
        .unlock-brand {
            font-size: 14px; font-weight: 900; letter-spacing: -0.02em;
        }
        .unlock-brand span { font-weight: 400; }
        .unlock-title {
            font-family: 'Playfair Display', serif;
            font-size: 26px; font-weight: 500;
            letter-spacing: -0.02em; margin-top: 14px;
        }
        .unlock-copy {
            margin-top: 8px; font-size: 13px; font-weight: 300;
            line-height: 1.6; color: var(--fh-mid);
        }
        .unlock-form { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
        .unlock-form label {
            font-size: 10px; font-weight: 700;
            letter-spacing: 0.18em; text-transform: uppercase;
            color: var(--fh-light);
        }
        .unlock-password-field {
            position: relative;
            display: flex;
            align-items: center;
        }
        .unlock-password-field input {
            width: 100%;
            border: 1px solid var(--fh-faint);
            border-radius: 10px;
            padding: 12px 44px 12px 14px;
            font-family: Inter, sans-serif;
            font-size: 14px;
            background: #fff;
            color: var(--fh-black);
            outline: none;
        }
        .unlock-password-field input:focus { border-color: var(--fh-amber); }
        .unlock-visibility {
            position: absolute;
            right: 6px;
            top: 50%;
            transform: translateY(-50%);
            width: 36px;
            height: 36px;
            border: none;
            border-radius: 8px;
            background: transparent;
            color: var(--fh-light);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            padding: 0;
            transition: color 0.2s ease, background 0.2s ease;
        }
        .unlock-visibility:hover {
            color: var(--fh-black);
            background: var(--fh-warm);
        }
        .unlock-visibility[aria-pressed="true"] { color: var(--fh-black); }
        .unlock-visibility .icon-eye-off { display: none; }
        .unlock-visibility[aria-pressed="true"] .icon-eye { display: none; }
        .unlock-visibility[aria-pressed="true"] .icon-eye-off { display: block; }
        .unlock-submit {
            border: none; border-radius: 999px;
            padding: 12px 18px;
            background: var(--fh-black);
            color: var(--fh-bg);
            font-size: 11px; font-weight: 700;
            letter-spacing: 0.14em; text-transform: uppercase;
            cursor: pointer;
            transition: background 0.2s ease, color 0.2s ease;
        }
        .unlock-submit:hover { background: var(--fh-dark); color: var(--fh-amber); }
        .unlock-error {
            min-height: 18px;
            font-size: 12px; color: #a33;
            margin-top: 4px;
        }
        .unlock-back {
            display: inline-block; margin-top: 18px;
            font-size: 10px; font-weight: 700;
            letter-spacing: 0.16em; text-transform: uppercase;
            color: var(--fh-light); text-decoration: none;
        }
        .unlock-back:hover { color: var(--fh-amber); }

        @media (max-width: 768px) {
            header { padding: 14px 18px 12px; }
            .header-left h1 { font-size: 1.25rem; }
            .header-stats { gap: 14px; }
            .stat-value { font-size: 15px; }
            .legend { bottom: 10px; left: 10px; right: 10px; max-width: none; max-height: 38vh; }
            .globe-hint { display: none; }
            .modal { max-height: 92vh; }
        }
        @media (prefers-reduced-motion: reduce) {
            .tooltip, .modal-overlay, .modal, .loading-overlay { transition: none !important; }
            .loading-spinner { animation: none !important; }
        }

