        :root {
            --bg: #fafafa;
            --bg-surface: #ffffff;
            --accent: #1a1a1a;
            --accent-dim: rgba(26, 26, 26, 0.5);
            --text: #1a1a1a;
            --text-muted: #6b7280;
            --border: #e5e5e5;
        }

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

        body {
            background: var(--bg);
            color: var(--text);
            font-family: 'Inter', sans-serif;
            min-height: 100vh;
            overflow: hidden;
        }

        .container {
            position: relative;
            width: 100vw;
            height: 100vh;
        }

        /* Header */
        .header {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            z-index: 10;
            padding: 1.5rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            pointer-events: none;
        }

        .title {
            font-size: 1.25rem;
            font-weight: 600;
            color: var(--text);
        }

        .stats-panel {
            display: flex;
            gap: 2rem;
            pointer-events: auto;
        }

        .stat {
            text-align: right;
        }

        .stat-value {
            font-size: 1.5rem;
            font-weight: 500;
            color: var(--accent);
        }

        .stat-label {
            font-size: 0.7rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        /* Map */
        .map-container {
            width: 100%;
            height: 100%;
        }

        #map {
            width: 100%;
            height: 100%;
            cursor: grab;
        }

        #map:active {
            cursor: grabbing;
        }

        .land {
            fill: #f0f0f0;
            stroke: #d4d4d4;
            stroke-width: 0.5px;
        }

        .graticule {
            fill: none;
            stroke: #e5e5e5;
            stroke-width: 0.3px;
        }

        .connection {
            fill: none;
            stroke: var(--accent);
            stroke-linecap: round;
        }

        .marker-core {
            fill: var(--accent);
            cursor: pointer;
        }

        .marker-core:hover {
            fill: #404040;
        }

        .marker-core.selected {
            stroke: var(--accent);
            stroke-width: 2px;
        }

        /* Tooltip */
        .tooltip {
            position: absolute;
            pointer-events: none;
            background: var(--bg-surface);
            border: 1px solid var(--border);
            border-radius: 6px;
            padding: 0.75rem 1rem;
            opacity: 0;
            transition: opacity 0.2s;
            z-index: 100;
            font-size: 0.875rem;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }

        .tooltip.visible {
            opacity: 1;
        }

        .tooltip-name {
            font-weight: 500;
            margin-bottom: 0.25rem;
        }

        .tooltip-stats {
            color: var(--text-muted);
            font-size: 0.75rem;
        }

        /* Controls */
        .controls {
            position: absolute;
            bottom: 2rem;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            align-items: center;
            gap: 1.5rem;
            background: var(--bg-surface);
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            border: 1px solid var(--border);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        }

        .play-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: none;
            background: var(--accent);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s;
        }

        .play-btn:hover {
            background: #404040;
        }

        .play-icon {
            width: 0;
            height: 0;
            border-top: 6px solid transparent;
            border-bottom: 6px solid transparent;
            border-left: 10px solid white;
            margin-left: 2px;
        }

        .pause-icon {
            display: none;
            gap: 3px;
        }

        .pause-icon span {
            width: 3px;
            height: 12px;
            background: white;
        }

        .play-btn.playing .play-icon { display: none; }
        .play-btn.playing .pause-icon { display: flex; }

        .timeline {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .year-display {
            font-size: 1.25rem;
            font-weight: 600;
            color: var(--accent);
            min-width: 60px;
        }

        .timeline-track {
            width: 250px;
            height: 4px;
            background: #e5e5e5;
            border-radius: 2px;
            position: relative;
            cursor: pointer;
        }

        .timeline-progress {
            height: 100%;
            background: var(--accent);
            border-radius: 2px;
            width: 0%;
            transition: width 0.2s;
        }

        .timeline-thumb {
            position: absolute;
            top: 50%;
            transform: translate(-50%, -50%);
            width: 12px;
            height: 12px;
            background: var(--accent);
            border-radius: 50%;
            cursor: grab;
        }

        .timeline-thumb:active,
        .timeline-thumb.dragging {
            cursor: grabbing;
        }

        .year-range {
            font-size: 0.75rem;
            color: var(--text-muted);
        }

        .speed-control {
            display: flex;
            gap: 0.25rem;
        }

        .speed-btn {
            padding: 0.25rem 0.5rem;
            background: transparent;
            border: 1px solid var(--border);
            color: var(--text-muted);
            font-family: inherit;
            font-size: 0.7rem;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .speed-btn:hover,
        .speed-btn.active {
            border-color: var(--accent);
            color: var(--accent);
        }

        /* Zoom controls */
        .zoom-controls {
            position: absolute;
            bottom: 6rem;
            left: 2rem;
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
        }

        .zoom-btn {
            width: 32px;
            height: 32px;
            background: var(--bg-surface);
            border: 1px solid var(--border);
            border-radius: 4px;
            color: var(--text-muted);
            font-size: 1rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
        }

        .zoom-btn:hover {
            color: var(--accent);
            border-color: var(--accent);
        }

        /* Loading */
        .loading {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: var(--text-muted);
        }
