        :root {
            --bg: #050505;
            --card-bg: rgba(255, 255, 255, 0.03);
            --accent: #fff;
            --neutral-light: rgba(255,255,255,0.15);
            --modal-bg: rgba(0,0,0,0.92);
        }

        body { 
            margin: 0; 
            background: var(--bg); 
            color: white; 
            font-family: var(--navn-font, ui-sans-serif, system-ui, sans-serif); 
            height: 100vh; 
            width: 100vw;
            display: flex; 
            flex-direction: column; 
            overflow: hidden; 
            padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
            box-sizing: border-box;
        }

        .mesh { position: fixed; top:0; left:0; width:100%; height:100%; background: radial-gradient(circle at 0% 0%, #1a1a1a 0%, transparent 50%), radial-gradient(circle at 100% 100%, #111 0%, transparent 50%); z-index: -1; }

        /* ZONAL ARCHITECTURE */
        .zone-top { height: 18vh; display: flex; align-items: center; justify-content: center; position: relative; z-index: 200; }
        .zone-main { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; width: 100%; }
        .zone-bottom { height: 28vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; position: relative; }

        #onboarding, #report-modal { position:fixed; top:0; left:0; width:100%; height:100%; background:var(--modal-bg); z-index:3000; display:none; align-items:center; justify-content:center; backdrop-filter:blur(30px); }
        .modal { background: rgba(255,255,255,0.02); padding:40px; border-radius:40px; border:1px solid rgba(255,255,255,0.1); width:90%; max-width:400px; text-align:center; max-height: 85vh; display: flex; flex-direction: column; }
        .modal-scroll { text-align: left; overflow-y: auto; max-height: 52vh; flex: 1; min-height: 0; }
        .brand-head { text-align: center; margin-bottom: 8px; flex-shrink: 0; }
        .brand-head h1 { margin: 0; font-size: 2.5rem; letter-spacing: -1.5px; font-weight: 800; }
        .brand-tagline { margin: 8px 0 0 0; font-size: 0.82rem; font-weight: 300; opacity: 0.42; letter-spacing: 0.02em; }
        
        select, .search-input { width: 100%; background: #000; color: white; border: 1px solid #333; padding: 15px; border-radius: 15px; font-family: inherit; margin-bottom: 20px; font-size: 1rem; appearance: none; box-sizing: border-box; }
        .toggle-container { display: flex; background: rgba(255,255,255,0.05); border-radius: 15px; padding: 4px; margin-bottom: 10px; border: 1px solid rgba(255,255,255,0.05); }
        .toggle-container.filter-pool { flex-wrap: wrap; gap: 6px; }
        .toggle-container.filter-pool .toggle-btn { flex: 1 1 40%; min-width: 0; font-size: 8px; padding: 8px 6px; letter-spacing: 0.45px; }
        .toggle-btn { flex: 1; padding: 8px; font-size: 10px; font-weight: 800; color: #555; cursor: pointer; border-radius: 12px; transition: all 0.2s; border: none; background: transparent; text-transform: uppercase; letter-spacing: 1px; }
        .toggle-btn.active { background: white; color: black; }

        .btn-action { width: 100%; background: white; border: none; color: black; padding: 18px; border-radius: 40px; font-weight: 800; cursor: pointer; margin-bottom: 10px; font-size: 0.9rem; flex-shrink: 0; }
        .btn-outline { background: transparent; border: 1px solid rgba(255,255,255,0.1); color: white; }
        
        #lang-grid { display:grid; grid-template-columns: 1fr; gap:8px; overflow-y: auto; padding: 10px; margin-top: 10px; border-top: 1px solid rgba(255,255,255,0.05); }
        .lang-item { background: rgba(255,255,255,0.05); border: none; color: #888; padding: 12px; border-radius: 12px; font-size: 0.8rem; cursor: pointer; text-align: left; transition: all 0.2s; }
        .lang-item:hover { background: rgba(255,255,255,0.1); color: white; }
        .lang-item.hidden { display: none; }

        .stack { position: relative; width: min(340px, 90vw); height: min(480px, 60vh); perspective: 1000px; display: none; }
        .card { position: absolute; width: 100%; height: 100%; background: var(--card-bg); backdrop-filter: blur(40px); border: 1px solid rgba(255,255,255,0.1); border-radius: 40px; display: flex; flex-direction: column; align-items: center; box-shadow: 0 30px 60px rgba(0,0,0,0.8); transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s; cursor: grab; user-select: none; z-index: 100; overflow: visible; padding: 40px 0 80px; box-sizing: border-box; will-change: transform; touch-action: none; }
        .card-shadow {
            pointer-events: none;
            opacity: calc(0.22 - (var(--stack-depth, 1) * 0.03));
            transform: translate3d(0, calc(var(--stack-depth, 1) * 8px), 0) scale(calc(1 - (var(--stack-depth, 1) * 0.012)));
            filter: blur(0.4px);
        }
        .card h1 { font-size: clamp(2.5rem, 8vw, 3.8rem); margin-top: auto; font-weight: 800; letter-spacing: -2px; text-align: center; padding: 0 20px; line-height: 1; z-index: 10; position: relative; white-space: nowrap; }

        .card-id-strip {
            width: 88%;
            max-width: 300px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            margin-top: 48px;
            flex-shrink: 0;
            position: relative;
            z-index: 15;
        }
        .id-badge { font-size: 8px; font-weight: 800; color: #666; letter-spacing: 1px; flex-shrink: 0; }
        .vote-count-lbl { font-size: 7px; font-weight: 800; color: #555; letter-spacing: 1px; text-align: right; white-space: nowrap; }

        .card-map-wrap { width: 85%; max-width: 300px; margin-top: 14px; flex-shrink: 0; position: relative; z-index: 1; }
        .card-map { position: relative; width: 100%; height: auto; opacity: 0.4; pointer-events: none; margin-top: 0; display: block; }
        .card-map path { fill: #555; stroke: rgba(255,255,255,0.1); stroke-width: 0.5; }
        .card-map .highlight, .card-map .highlight path { fill: white !important; opacity: 1 !important; stroke: white; stroke-width: 1; }
        .card-map .highlight-alt, .card-map .highlight-alt path { fill: rgba(0, 223, 216, 0.42) !important; opacity: 1 !important; stroke: rgba(0, 223, 216, 0.9); stroke-width: 1; }
        .card-map .map-pulse { fill: white !important; opacity: 1 !important; stroke: white; stroke-width: 2; filter: drop-shadow(0 0 8px white); animation: pulse 0.8s infinite alternate; transform: scale(2); transform-origin: center; transform-box: fill-box; z-index: 50; }
        @keyframes pulse { from { opacity: 0.5; transform: scale(1.8); } to { opacity: 1; transform: scale(2.2); } }
        .origin-badge { position: absolute; top: 30px; right: 30px; max-width: min(240px, 46vw); background: rgba(255,255,255,0.05); color: #888; border: 1px solid rgba(255,255,255,0.05); padding: 5px 12px; border-radius: 20px; font-size: 9px; font-weight: 800; letter-spacing: 1px; z-index: 10; transition: all 0.2s; cursor: help; text-align: right; }
        .origin-badge:hover { background: rgba(255,255,255,0.15); color: white; border-color: rgba(255,255,255,0.2); }
        .origin-badge .also-in-line { margin-top: 5px; font-size: 7px; font-weight: 700; letter-spacing: 0.4px; color: rgba(0, 223, 216, 0.85); line-height: 1.35; }
        .report-btn { position: absolute; top: 30px; left: 30px; background: rgba(255,255,255,0.05); color: #555; border: none; padding: 8px 12px; border-radius: 20px; font-size: 9px; font-weight: 800; cursor: pointer; z-index: 120; }

        /* GHOSTS & Reveal - Smart Positions (clickable = same votes as swipe) */
        .ghost { position: absolute; width: 60px; height: 60px; fill: rgba(255,255,255,0.1); pointer-events: auto; cursor: pointer; z-index: 5; transition: all 0.3s ease-out; touch-action: manipulation; -webkit-tap-highlight-color: transparent; will-change: transform, filter; }
        .ghost:hover { fill: rgba(255,255,255,0.2); }
        .ghost:active { fill: rgba(255,255,255,0.32); }
        #ghost-m { left: 5%; top: 50%; transform: translateY(-50%); }
        #ghost-f { right: 5%; top: 50%; transform: translateY(-50%); }
        #ghost-nb { position: relative; transform: none; margin-bottom: -40px; }
        #ghost-u { position: relative; transform: none; margin-top: -20px; }
        .ghost.active { fill: white; transform: scale(1.2); filter: drop-shadow(0 0 10px white); }
        #ghost-m.active, #ghost-f.active { transform: translateY(-50%) scale(1.2); }

        .reveal {
            position: fixed;
            inset: 0;
            z-index: 12000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: max(20px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
            background: rgba(0, 0, 0, 0.58);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.35s ease, visibility 0.35s ease;
            pointer-events: none;
            text-align: center;
        }
        .reveal.active { opacity: 1; visibility: visible; pointer-events: auto; }
        .reveal-panel {
            width: min(340px, 92vw);
            padding: 28px 22px 22px;
            border-radius: 28px;
            background: rgba(12, 12, 12, 0.72);
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
        }
        .spectrum-labels { display: flex; justify-content: space-between; margin-bottom: 25px; }
        .s-label { font-size: 6px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: rgba(255, 255, 255, 0.38); }
        .bar-container { position: relative; height: 3px; background: rgba(255,255,255,0.05); border-radius: 10px; width: 100%; }
        .segment-mark { position: absolute; top: -4px; height: 11px; width: 1px; background: rgba(255,255,255,0.1); }
        .dot { position: absolute; top: -14px; width: 2px; height: 30px; background: white; transform: translateX(-50%); transition: left 1s cubic-bezier(0.2, 1, 0.3, 1); }
        .dot::after { content: attr(data-label); position: absolute; top: -14px; left: 50%; transform: translateX(-50%); font-size: 7px; font-weight: 800; white-space: nowrap; }
        #dot-user { background: white; z-index: 10; height: 40px; top: -19px; box-shadow: 0 0 15px rgba(255,255,255,0.3); }
        #dot-avg { background: #888; height: 28px; top: -12px; z-index: 3; }
        #dot-local { background: #6cb8e0; height: 32px; top: -14px; z-index: 4; display: none; }
        #dot-wgnd { background: #333; height: 20px; top: -8px; z-index: 2; }

        .dashboard { width: 95%; max-width: 800px; display: none; flex-direction: column; gap: 8px; margin-bottom: 20px; }
        .dash-lane { display: flex; width: 100%; gap: 8px; justify-content: center; }
        .stat-box { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 18px; padding: 10px 15px; flex: 1; text-align: center; backdrop-filter: blur(15px); transition: all 0.2s; }
        .stat-box.clickable { cursor: pointer; }
        .stat-box.clickable:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.1); transform: translateY(-2px); }
        .lane-dynamic .stat-val { color: #fff; font-size: 13px; font-weight: 800; }
        .lane-dynamic .stat-lbl { color: #555; font-size: 6px; }
        .stat-undo-wrap { padding: 0; overflow: hidden; flex: 1; min-width: 0; }
        .stat-undo-btn {
            width: 100%;
            min-height: 100%;
            margin: 0;
            border: none;
            background: transparent;
            color: inherit;
            font: inherit;
            cursor: pointer;
            padding: 10px 8px;
            border-radius: 18px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 2px;
            -webkit-tap-highlight-color: transparent;
        }
        .stat-undo-btn:disabled {
            cursor: default;
            opacity: 0.38;
        }
        .stat-undo-btn:not(:disabled):hover {
            background: rgba(255,255,255,0.06);
        }
        .stat-undo-btn:not(:disabled):active {
            background: rgba(255,255,255,0.1);
        }
        .lane-static .stat-box { background: rgba(255,255,255,0.01); border-color: rgba(255,255,255,0.03); padding: 8px 15px; }
        .lane-static .stat-val { color: #444; font-size: 10px; font-weight: 600; }
        .lane-static .stat-lbl { color: #222; font-size: 5px; }
        .lane-static { flex-wrap: wrap; }

        .toast {
            position: fixed;
            left: 50%;
            bottom: max(120px, calc(env(safe-area-inset-bottom) + 100px));
            transform: translateX(-50%) translateY(24px) scale(0.96);
            background: rgba(18, 18, 18, 0.88);
            color: #fff;
            border: 1px solid rgba(255, 255, 255, 0.12);
            padding: 12px 24px;
            border-radius: 40px;
            font-weight: 800;
            font-size: 12px;
            letter-spacing: 0.04em;
            opacity: 0;
            transition: opacity 0.35s ease, transform 0.35s ease;
            z-index: 13000;
            pointer-events: none;
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
        }
        .toast.active { transform: translateX(-50%) translateY(0) scale(1); opacity: 1; }
