/* =====================================================================
   DERIVA — opmaak van de app (stond eerst in index.html)
   ===================================================================== */
        * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
        
        :root {
            --font-mono: "SF Mono", "Roboto Mono", monospace;
            --font-editorial: "Impact", "Arial Black", sans-serif;
            --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            
            --bg-paper: #f7f3ea;
            --riso-blue: #0f35be;
            --riso-blue-light: #e8ecfc;
            --riso-yellow: #fed156;
            --text-main: #0f35be;
            --text-muted: rgba(15, 53, 190, 0.65);
            
            --card-bg: #ffffff;
            --ink-border: 2px solid #0f35be;
            --sticker-shadow: 3px 3px 0px #0f35be;
            --sticker-shadow-lg: 5px 5px 0px #0f35be;
        }

        html, body {
            margin: 0; padding: 0;
            width: 100%; height: 100%;
            font-family: var(--font-body);
            background: var(--bg-paper);
            color: var(--text-main);
            overflow: hidden;
            overscroll-behavior-y: none;
            user-select: none;
            -webkit-user-select: none;
        }

        body::before {
            content: "";
            position: fixed; inset: 0;
            background-size: 26px 26px;
            background-image: 
                linear-gradient(to right, rgba(15, 53, 190, 0.04) 1px, transparent 1px),
                linear-gradient(to bottom, rgba(15, 53, 190, 0.04) 1px, transparent 1px);
            pointer-events: none;
            z-index: 0;
        }

        /* ----------------------------------------------------
           SPLASH / LOADING SCREEN (EXACT VOLGENS JE AFBEELDING)
           ---------------------------------------------------- */
        #splashScreen {
            position: fixed; inset: 0;
            background: var(--bg-paper);
            z-index: 99999;
            display: flex; flex-direction: column;
            align-items: center; justify-content: space-between;
            padding: calc(30px + env(safe-area-inset-top)) 24px calc(24px + env(safe-area-inset-bottom)) 24px;
            transition: opacity 0.5s ease, visibility 0.5s ease;
        }
        #splashScreen.hide {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }
        .splash-main-art {
            width: 100%;
            max-width: 330px;
            margin-top: auto;
            margin-bottom: 20px;
        }
        .splash-loader-block {
            width: 100%;
            max-width: 270px;
            display: flex; flex-direction: column;
            align-items: center; gap: 8px;
            margin-bottom: auto;
        }
        .splash-loader-text {
            font-family: "Courier New", monospace;
            font-size: 14px;
            font-weight: 800;
            color: var(--riso-blue);
            letter-spacing: 0.5px;
        }
        .splash-progress-track {
            width: 100%; height: 18px;
            border-radius: 9999px;
            border: 2px solid var(--riso-blue);
            background: #ffffff;
            padding: 2px;
            box-shadow: 2px 2px 0px var(--riso-blue);
            overflow: hidden;
        }
        .splash-progress-bar {
            height: 100%; width: 0%;
            background: var(--riso-blue);
            border-radius: 9999px;
            transition: width 0.3s ease-out;
        }
        .splash-footer-doodles {
            width: 100%;
            max-width: 320px;
            display: flex; align-items: center;
            justify-content: space-between;
            padding-bottom: 6px;
        }

        .mono-tag {
            font-family: var(--font-mono); font-size: 9.5px;
            letter-spacing: 1.5px; text-transform: uppercase; font-weight: 800; color: var(--riso-blue);
        }

        .editorial-title {
            font-family: var(--font-editorial); text-transform: uppercase; letter-spacing: 0.5px; color: var(--riso-blue);
        }

        .app-header {
            position: fixed; top: 0; left: 0; width: 100%;
            height: calc(64px + env(safe-area-inset-top));
            padding-top: env(safe-area-inset-top);
            z-index: 1000; display: flex; align-items: center; justify-content: space-between;
            padding-left: 12px; padding-right: 12px; gap: 8px;
            background: rgba(247, 243, 234, 0.95);
            backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
            border-bottom: var(--ink-border);
        }

        .header-brand {
            display: flex; align-items: center; gap: 8px; flex-shrink: 0; cursor: pointer;
        }
        .header-logo-badge {
            width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
        }
        .header-title-block { display: flex; flex-direction: column; justify-content: center; }
        .header-brand h1 { 
            font-size: 19px; margin: 0; font-family: var(--font-editorial);
            letter-spacing: 1.5px; text-transform: uppercase; color: var(--riso-blue); line-height: 1;
        }
        .brand-subtitle { font-family: var(--font-mono); font-size: 8.5px; font-weight: 800; color: var(--riso-blue); margin-top: 2px; }

        .search-wrapper { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; }
        .search-box { 
            display: flex; align-items: center; background: #ffffff; border: var(--ink-border);
            border-radius: 9999px; padding: 3px 8px; min-width: 0; width: 100%;
            box-shadow: 2px 2px 0px var(--riso-blue);
        }
        .search-mode-pill {
            background: var(--riso-blue); border: none; border-radius: 9999px;
            color: #ffffff; font-family: var(--font-mono); font-size: 8.5px; font-weight: 800;
            padding: 4px 8px; cursor: pointer; text-transform: uppercase; white-space: nowrap;
            flex-shrink: 0; display: flex; align-items: center; gap: 4px;
        }
        .search-input {
            flex: 1; min-width: 0; background: transparent; border: none;
            color: var(--riso-blue); font-size: 11px; font-weight: 700; outline: none;
            font-family: var(--font-mono); padding: 4px 6px;
        }
        .search-input::placeholder { color: rgba(15, 53, 190, 0.45); font-size: 10px; }
        
        .search-results {
            position: absolute; top: 42px; left: 0; width: 100%;
            border-radius: 14px; max-height: 220px; overflow-y: auto;
            display: none; z-index: 2000; background: #ffffff;
            border: var(--ink-border); box-shadow: var(--sticker-shadow-lg);
        }
        .search-item { padding: 10px 12px; font-size: 11px; border-bottom: 1px dashed rgba(15, 53, 190, 0.2); cursor: pointer; color: var(--riso-blue); font-weight: 600; }
        .search-item:hover { background: var(--riso-blue-light); }

        .header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
        .riso-btn {
            width: 38px; height: 38px; border-radius: 50%; background: #ffffff;
            border: var(--ink-border); box-shadow: 2px 2px 0px var(--riso-blue);
            display: flex; align-items: center; justify-content: center;
            cursor: pointer; position: relative; padding: 0;
            transition: transform 0.1s ease, box-shadow 0.1s ease;
        }
        .riso-btn:active { transform: translate(2px, 2px); box-shadow: none; }
        .badge-dot { position: absolute; top: 3px; right: 3px; width: 8px; height: 8px; background: var(--riso-yellow); border: 1.5px solid var(--riso-blue); border-radius: 50%; display: none; }

        .filter-bar {
            position: absolute; top: calc(72px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%);
            z-index: 1000; display: flex; gap: 6px; padding: 6px 10px;
            border-radius: 9999px; width: 94%; overflow-x: auto; scrollbar-width: none;
            background: rgba(255, 255, 255, 0.94); border: var(--ink-border);
            box-shadow: var(--sticker-shadow);
        }
        .filter-bar::-webkit-scrollbar { display: none; }
        .filter-chip {
            background: #ffffff; color: var(--riso-blue); border: 1.5px solid var(--riso-blue);
            padding: 5px 12px; border-radius: 9999px; font-size: 9.5px; font-weight: 900;
            text-transform: uppercase; letter-spacing: 0.6px; cursor: pointer; white-space: nowrap;
            transition: all 0.15s ease;
        }
        .filter-chip.active { background: var(--riso-blue); color: #ffffff; }

        .view-section {
            position: absolute; top: 0; bottom: 0; left: 0; right: 0;
            opacity: 0; pointer-events: none; transition: opacity 0.25s ease; display: block; z-index: 2;
        }
        .view-section.active { opacity: 1; pointer-events: auto; }
        #map { width: 100%; height: 100%; }

        .scrollable-view { 
            padding: calc(84px + env(safe-area-inset-top)) 14px calc(105px + env(safe-area-inset-bottom)) 14px; 
            overflow-y: auto; height: 100%; background: transparent; 
        }

        .feed-card { 
            background: #ffffff; border-radius: 18px; padding: 18px; margin-bottom: 18px; 
            border: var(--ink-border); box-shadow: var(--sticker-shadow-lg); position: relative;
        }
        .feed-photo-container { position: relative; overflow: hidden; border-radius: 12px; margin-top: 10px; cursor: pointer; border: 1.5px solid var(--riso-blue); }
        .feed-photo-img { width: 100%; max-height: 260px; object-fit: cover; display: block; }
        
        .heart-burst {
            position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0);
            font-size: 64px; pointer-events: none; opacity: 0;
            transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s ease;
            z-index: 10;
        }
        .heart-burst.active { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }

        .checkin-row { display: flex; align-items: center; gap: 6px; margin: 10px 0 6px 0; font-size: 11px; color: var(--text-muted); font-weight: 700; }
        .avatar-stack { display: flex; align-items: center; margin-right: 4px; }
        .stacked-avatar { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--riso-blue); margin-left: -6px; object-fit: cover; background: #fff; }
        .stacked-avatar:first-child { margin-left: 0; }

        .custom-pill-marker {
            display: inline-flex; align-items: center; gap: 6px;
            background: #ffffff; border: var(--ink-border);
            border-radius: 9999px; padding: 4px 10px; color: var(--riso-blue); font-size: 10.5px;
            font-weight: 900; white-space: nowrap; box-shadow: 2px 2px 0px var(--riso-blue);
        }
        .custom-pill-marker svg { width: 15px; height: 15px; flex-shrink: 0; }
        .marker-wishlist { border-style: dashed; }
        .marker-fav { background: var(--riso-yellow); }
        .marker-secret { border-style: dotted; background: var(--riso-blue-light); }

        .custom-cluster-icon {
            background: #ffffff; border: var(--ink-border);
            border-radius: 50%; color: var(--riso-blue); font-family: var(--font-editorial);
            font-size: 13px; font-weight: 900; display: flex; align-items: center; justify-content: center;
            box-shadow: 3px 3px 0px var(--riso-blue);
        }

        .live-gps-marker {
            background: var(--riso-yellow); border: 3px solid var(--riso-blue);
            border-radius: 50%; box-shadow: 0 0 10px rgba(15, 53, 190, 0.4);
        }
        .gps-btn {
            position: absolute; bottom: calc(96px + env(safe-area-inset-bottom)); right: 16px; z-index: 1000;
            width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            background: #ffffff; border: var(--ink-border); box-shadow: var(--sticker-shadow);
        }

        .compass-hud-btn {
            position: absolute; bottom: calc(96px + env(safe-area-inset-bottom)); left: 16px; z-index: 1000;
            height: 46px; border-radius: 9999px; font-size: 11px; font-family: var(--font-editorial); font-weight: 900;
            cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 16px;
            background: #ffffff; border: var(--ink-border); color: var(--riso-blue); box-shadow: var(--sticker-shadow);
            text-transform: uppercase;
        }

        .drift-overlay {
            position: fixed; inset: 0; background: rgba(247, 243, 234, 0.96); backdrop-filter: blur(8px);
            z-index: 3000; display: none; flex-direction: column; align-items: center; justify-content: center;
            text-align: center; padding: 24px;
        }
        .drift-overlay.open { display: flex; }
        .drift-needle-dial {
            width: 240px; height: 240px; border-radius: 50%; border: 3px dashed var(--riso-blue);
            background: #ffffff; box-shadow: var(--sticker-shadow-lg);
            display: flex; align-items: center; justify-content: center; position: relative; margin: 24px 0;
        }
        .drift-pointer { width: 140px; height: 140px; transform-origin: center; transition: transform 0.4s ease; }

        .fullscreen-chat-view {
            position: fixed; inset: 0; background: var(--bg-paper);
            z-index: 2500; display: none; flex-direction: column;
            padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom);
        }
        .fullscreen-chat-view.active { display: flex; }
        .chat-top-header {
            height: 58px; display: flex; align-items: center; justify-content: space-between;
            padding: 0 16px; border-bottom: var(--ink-border); background: #ffffff;
        }
        .chat-scroll-container { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; }
        .chat-input-bar {
            padding: 10px 14px; display: flex; gap: 8px; align-items: center;
            border-top: var(--ink-border); background: #ffffff;
        }
        .chat-bubble {
            padding: 10px 14px; border-radius: 16px; margin-bottom: 8px; max-width: 78%;
            font-size: 12.5px; line-height: 1.4; word-wrap: break-word; font-weight: 600;
        }
        .chat-bubble.mine { background: var(--riso-blue); color: #ffffff; margin-left: auto; border-bottom-right-radius: 2px; }
        .chat-bubble.theirs { background: #ffffff; border: 1.5px solid var(--riso-blue); color: var(--riso-blue); margin-right: auto; border-bottom-left-radius: 2px; }

        .insta-profile-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 6px 16px 6px; gap: 14px; }
        .insta-avatar-container { position: relative; width: 84px; height: 84px; flex-shrink: 0; }
        .insta-avatar-ring {
            width: 100%; height: 100%; border-radius: 50%; padding: 2px; background: var(--riso-blue);
            display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 2px 2px 0px var(--riso-yellow);
        }
        .insta-avatar-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #ffffff; background: #fff; }
        .default-avatar-silhouette {
            width: 100%; height: 100%; border-radius: 50%; background: #ffffff;
            display: flex; align-items: center; justify-content: center; border: 2px solid #ffffff;
        }

        .insta-stats-row { display: flex; flex: 1; justify-content: space-around; text-align: center; }
        .insta-stat-col { display: flex; flex-direction: column; cursor: pointer; }
        .insta-stat-number { font-size: 17px; font-weight: 900; font-family: var(--font-editorial); color: var(--riso-blue); }
        .insta-stat-label { font-size: 9.5px; color: var(--text-muted); text-transform: uppercase; font-weight: 800; }

        .insta-bio-block { padding: 0 6px 12px 6px; }
        .insta-bio-name { font-size: 17px; font-family: var(--font-editorial); margin: 0; color: var(--riso-blue); }
        .insta-bio-text { 
            font-size: 12px; margin: 6px 0 4px 0; line-height: 1.5; color: var(--riso-blue); 
            cursor: pointer; border-left: 2px solid var(--riso-blue); padding-left: 8px; font-weight: 600;
        }

        .insta-tabs { display: flex; border-top: var(--ink-border); border-bottom: var(--ink-border); margin-bottom: 12px; background: #ffffff; }
        .insta-tab-btn {
            flex: 1; padding: 10px 0; background: none; border: none; color: var(--text-muted);
            font-size: 10px; font-weight: 900; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 4px;
            text-transform: uppercase; font-family: var(--font-mono);
        }
        .insta-tab-btn.active { color: var(--riso-blue); border-bottom: 3px solid var(--riso-blue); }

        .insta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
        .insta-grid-item {
            position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden;
            background: #ffffff; cursor: pointer; border-radius: 8px; border: 1.5px solid var(--riso-blue);
        }
        .insta-grid-img { width: 100%; height: 100%; object-fit: cover; }
        .insta-grid-placeholder {
            width: 100%; height: 100%; display: flex; flex-direction: column;
            align-items: center; justify-content: center; background: var(--riso-blue-light); padding: 4px; text-align: center;
        }

        .bottom-nav {
            position: fixed; bottom: calc(14px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
            width: calc(100% - 24px); max-width: 440px; height: 62px; border-radius: 9999px;
            display: flex; justify-content: space-between; align-items: center; z-index: 1000; padding: 0 10px;
            background: #ffffff; border: var(--ink-border); box-shadow: var(--sticker-shadow-lg);
        }
        .nav-item {
            background: none; border: none; display: flex; flex-direction: column; align-items: center;
            font-size: 8.5px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted);
            cursor: pointer; font-weight: 900; flex: 1; gap: 3px;
        }
        .nav-item svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }
        .nav-item.active { color: var(--riso-blue); }

        .nav-fab-btn {
            width: 48px; height: 48px; border-radius: 50%; background: var(--riso-blue);
            color: #ffffff; border: 2px solid #ffffff; cursor: pointer; display: flex; align-items: center; justify-content: center;
            box-shadow: 2px 2px 0px var(--riso-blue); margin: 0 4px; flex-shrink: 0;
        }
        .nav-fab-btn svg { width: 24px; height: 24px; stroke: #ffffff; fill: none; stroke-width: 2.6; }

        .spot-sheet {
            position: fixed; left: 50%; transform: translateX(-50%) translateY(var(--drag, 0px)); bottom: 0; width: 100%; max-width: 480px;
            border-radius: 24px 24px 0 0; z-index: 1100; display: none; flex-direction: column;
            transition: transform 0.28s cubic-bezier(.2,.8,.2,1);
            padding: 14px 18px calc(26px + env(safe-area-inset-bottom)) 18px; max-height: 85vh; overflow-y: auto;
            background: #ffffff; border: var(--ink-border); border-bottom: none; box-shadow: 0 -4px 18px rgba(15, 53, 190, 0.15);
        }
        .spot-sheet.open { display: flex; }
        .sheet-handle { width: 38px; height: 5px; border-radius: 9999px; background: var(--riso-blue); margin: 0 auto 14px auto; cursor: grab; }

        .modal-overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(15, 53, 190, 0.35); backdrop-filter: blur(6px); z-index: 2000;
            display: none; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity 0.25s ease;
        }
        .modal-sheet {
            width: 100%; max-width: 500px; border-radius: 26px 26px 0 0;
            padding: 22px 20px calc(30px + env(safe-area-inset-bottom)) 20px; max-height: 86vh; overflow-y: auto;
            background: #ffffff; border: var(--ink-border); border-bottom: none;
            transform: translateY(100%); transition: transform 0.3s ease; position: relative;
        }
        .modal-overlay.open { display: flex; opacity: 1; }
        .modal-overlay.open .modal-sheet { transform: translateY(var(--drag, 0px)); }
        .spot-sheet.dragging, .modal-sheet.dragging { transition: none !important; }

        .user-list-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed rgba(15, 53, 190, 0.2); }
        .settings-menu-item {
            display: flex; align-items: center; justify-content: space-between;
            padding: 12px 14px; margin-bottom: 8px; border-radius: 12px;
            background: var(--riso-blue-light); border: 1.5px solid var(--riso-blue);
            cursor: pointer; font-size: 13px; font-weight: 700; color: var(--riso-blue);
        }

        .polaroid-interactive {
            background: #ffffff; padding: 10px 10px 22px 10px; border-radius: 8px;
            border: var(--ink-border); box-shadow: var(--sticker-shadow);
            transform: rotate(-1.5deg); max-width: 220px; margin: 12px auto; text-align: center;
        }
        .polaroid-img-box {
            width: 100%; height: 140px; background: var(--riso-blue-light); border-radius: 4px;
            display: flex; align-items: center; justify-content: center; overflow: hidden;
            cursor: pointer; border: 1.5px dashed var(--riso-blue);
        }
        .polaroid-img-preview { width: 100%; height: 100%; object-fit: cover; }
        .polaroid-hand-text { font-family: var(--font-editorial); color: var(--riso-blue); font-size: 14px; margin-top: 10px; }

        .selectable-bubble {
            padding: 6px 12px; border-radius: 9999px; font-size: 10.5px; font-weight: 800;
            background: #ffffff; border: 1.5px solid var(--riso-blue);
            color: var(--riso-blue); cursor: pointer; box-shadow: 1.5px 1.5px 0px var(--riso-blue);
        }
        .selectable-bubble.selected { background: var(--riso-blue); color: #ffffff; }

        input, select, textarea {
            width: 100%; padding: 11px; margin: 5px 0 12px 0; background: #ffffff;
            border: var(--ink-border); color: var(--riso-blue); border-radius: 12px;
            font-size: 12px; font-weight: 600; outline: none; font-family: inherit;
            box-shadow: 2px 2px 0px var(--riso-blue);
        }

        .btn-primary {
            width: 100%; background: var(--riso-blue); color: #ffffff; border: 2px solid var(--riso-blue);
            padding: 12px; border-radius: 9999px; font-weight: 900; font-family: var(--font-editorial);
            text-transform: uppercase; letter-spacing: 1.2px; cursor: pointer; margin-top: 6px; font-size: 13px;
            box-shadow: 3px 3px 0px var(--riso-yellow);
        }
        .btn-primary:active { transform: translate(2px, 2px); box-shadow: none; }
        .btn-secondary { background: #ffffff; color: var(--riso-blue); border: 2px solid var(--riso-blue); box-shadow: 2px 2px 0px var(--riso-blue); }

        .popup-btn {
            background: #ffffff; color: var(--riso-blue); border: 1.5px solid var(--riso-blue);
            padding: 7px 12px; border-radius: 9999px; font-size: 10px; cursor: pointer;
            text-transform: uppercase; font-weight: 900; text-decoration: none;
            display: inline-flex; align-items: center; justify-content: center; gap: 4px;
            box-shadow: 2px 2px 0px var(--riso-blue);
        }
        .popup-btn:active { transform: translate(1px, 1px); box-shadow: none; }
        .popup-btn.route { background: var(--riso-blue); color: #ffffff; }
        .popup-btn.active-action { background: var(--riso-yellow); color: var(--riso-blue); }
        .popup-btn.danger { background: #ffebeb; color: #d00000; border-color: #d00000; }

        /* ====================================================
           ORIGINELE DERIVA ARTWORK (Josh) — transparante PNG's
           ==================================================== */
        :root {
        }

        /* --- Splash: exact het getekende laadscherm + werkende balk --- */
        #splashScreen {
            align-items: center; justify-content: center;
            padding: calc(10px + env(safe-area-inset-top)) 10px calc(10px + env(safe-area-inset-bottom)) 10px;
        }
        .splash-art-wrap {
            position: relative;
            width: min(100%, 53vh);      /* kunstwerk is 941 x 1672 -> past altijd in beeld */
            max-width: 100%;
            background-image: var(--img-splash);
            background-size: 100% 100%;
            background-repeat: no-repeat;
        }
        .splash-art-wrap::before { content: ""; display: block; padding-top: 177.68%; }
        /* de getekende balk zit op 24.0%-77.8% breed, 76.0%-79.4% hoog */
        .splash-live-track {
            position: absolute;
            left: 25.7%; top: 76.9%; width: 50.4%; height: 1.75%;
            border-radius: 9999px; overflow: hidden;
        }
        .splash-live-fill {
            height: 100%; width: 10%;
            background: var(--riso-blue);
            border-radius: 9999px;
            transition: width 0.3s ease-out;
        }

        /* --- Getekende iconen --- */
        .ico {
            display: block; width: 24px; height: 24px;
            background-repeat: no-repeat; background-position: center; background-size: contain;
        }
        .ico-map { background-image: var(--img-ico-map); }
        .ico-feed { background-image: var(--img-ico-feed); }
        .ico-profile { background-image: var(--img-ico-profile); }
        .ico-chat { background-image: var(--img-ico-chat); }
        .ico-compass { background-image: var(--img-ico-compass); }

        .nav-item .ico { opacity: 0.42; transition: opacity 0.15s ease, transform 0.15s ease; }
        .nav-item.active .ico { opacity: 1; transform: translateY(-1px) scale(1.08); }

        .header-logo-mark {
            height: 46px; width: 62px; flex-shrink: 0;
            background-image: var(--img-logo);
            background-size: contain; background-repeat: no-repeat; background-position: center;
        }

        .cat-stamp {
            background-image: var(--img-cat);
            background-size: contain; background-repeat: no-repeat; background-position: center;
        }

        /* --- Add Spot sheet in de stijl van de getekende kaart --- */
        #addModal .modal-sheet {
            background: var(--bg-paper);
            border: 3px solid var(--riso-blue); border-bottom: none;
            border-radius: 26px 26px 0 0;
        }
        .add-sheet-top {
            position: relative;
            display: flex; align-items: center; gap: 10px;
            background: #ffffff; border: var(--ink-border); border-radius: 18px;
            box-shadow: var(--sticker-shadow); padding: 12px 14px; margin-bottom: 16px;
        }
        .add-sheet-top .cat-stamp { width: 74px; height: 36px; flex-shrink: 0; }
        .add-sheet-title {
            font-family: var(--font-editorial); font-size: 24px; color: var(--riso-blue);
            margin: 2px 0 0 0; letter-spacing: 0.5px; text-transform: uppercase; line-height: 1;
        }
        .good-spot-burst {
            position: absolute; top: -18px; right: -6px;
            width: 62px; height: 62px; background: var(--riso-blue); color: #ffffff;
            clip-path: polygon(50.0% 0.0%, 58.5% 18.1%, 75.0% 6.7%, 73.3% 26.7%, 93.3% 25.0%, 81.9% 41.5%, 100.0% 50.0%, 81.9% 58.5%, 93.3% 75.0%, 73.3% 73.3%, 75.0% 93.3%, 58.5% 81.9%, 50.0% 100.0%, 41.5% 81.9%, 25.0% 93.3%, 26.7% 73.3%, 6.7% 75.0%, 18.1% 58.5%, 0.0% 50.0%, 18.1% 41.5%, 6.7% 25.0%, 26.7% 26.7%, 25.0% 6.7%, 41.5% 18.1%);
            display: flex; align-items: center; justify-content: center; text-align: center;
            font-family: var(--font-editorial); font-size: 10px; line-height: 1.1;
            transform: rotate(-8deg); letter-spacing: 0.5px;
        }
        .step-indicator-row .step-dot-wrap {
            flex: 1; text-align: center; padding: 6px 4px; border-radius: 9999px;
            border: 1.5px solid var(--riso-blue); background: #ffffff;
            color: var(--riso-blue); margin: 0 3px; transition: all 0.15s ease;
        }
        .step-indicator-row .step-dot-wrap.active {
            background: var(--riso-blue); color: #ffffff; box-shadow: 2px 2px 0px var(--riso-yellow);
        }
        .feed-cat-stamp { width: 68px; height: 33px; flex-shrink: 0; opacity: 0.9; }

        /* ====================================================
           GETEKENDE KAART-STIJL (deriva-card + deriva-detail-card)
           ==================================================== */
        :root {
            --font-hand: "Permanent Marker", "Impact", "Arial Black", sans-serif;
        }

        .hand-title {
            font-family: var(--font-hand); color: var(--riso-blue);
            font-size: 30px; line-height: 1.02; margin: 2px 0 6px 0; letter-spacing: 0.3px;
        }
        .card-kicker {
            font-family: var(--font-hand); font-size: 15px; color: var(--riso-blue);
            display: block; margin-bottom: -2px; opacity: 0.85;
        }

        /* Kaart met blauwe slagschaduw, precies als de tekening */
        .draw-card {
            position: relative;
            background: #fffdf6;
            border: 2.5px solid var(--riso-blue);
            border-radius: 22px;
            padding: 18px 16px;
            box-shadow: 7px 7px 0px var(--riso-blue);
            margin-bottom: 18px;
        }
        .draw-card-quote {
            position: absolute; top: 14px; right: 14px;
            width: 66px; height: 88px;
            background-image: var(--img-quote2);
            background-size: contain; background-repeat: no-repeat; background-position: top right;
            pointer-events: none;
        }
        .draw-divider { height: 0; border-top: 1.5px solid rgba(15, 53, 190, 0.45); margin: 12px 0; }

        .draw-row { display: flex; align-items: center; gap: 14px; padding: 4px 0; }
        .draw-row-ico { width: 30px; height: 30px; flex-shrink: 0; }
        .draw-row-value {
            display: block; font-family: var(--font-mono); font-size: 13px;
            font-weight: 800; color: var(--riso-blue); line-height: 1.25;
        }
        .draw-row-label {
            display: block; font-family: var(--font-mono); font-size: 10px;
            color: var(--text-muted); font-weight: 700; margin-top: 1px;
        }

        .ico-cup { background-image: var(--img-ico-cup); }
        .ico-clock { background-image: var(--img-ico-clock); }
        .ico-tag { background-image: var(--img-ico-tag); }
        .ico-pin { background-image: var(--img-ico-pin); }
        .ico-bookmark { background-image: var(--img-ico-bookmark); }
        .ico-back { background-image: var(--img-ico-back); }
        .ico-share { background-image: var(--img-ico-share); }
        .ico-heart { background-image: var(--img-ico-heart); }

        /* Kopbalk van de sheet: terugpijl links, deel/hart rechts */
        .draw-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
        .draw-ico-btn {
            background: none; border: none; padding: 0; cursor: pointer;
            display: flex; align-items: center; justify-content: center;
        }
        .draw-topbar .ico { width: 22px; height: 22px; }

        /* Naam invullen in handschrift, zoals "Koffie Lokaal" */
        .hand-input {
            font-family: var(--font-hand) !important;
            font-size: 28px !important;
            line-height: 1.1;
            color: var(--riso-blue);
            background: transparent !important;
            border: none !important;
            border-bottom: 2.5px dashed rgba(15, 53, 190, 0.35) !important;
            border-radius: 0 !important;
            box-shadow: none !important;
            padding: 2px 0 6px 0 !important;
            margin: 2px 0 6px 0 !important;
        }
        .hand-input::placeholder { color: rgba(15, 53, 190, 0.3); font-family: var(--font-hand); }
        /* de tekening rechtsboven vrijhouden */
        .draw-card .hand-input { width: calc(100% - 78px) !important; }
        .draw-card .hand-title, .draw-card .card-kicker { padding-right: 86px; }

        /* Pillen zoals "Coffee  Café  Chill" op de tekening */
        .pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 2px 0; }
        #addModal .selectable-bubble {
            box-shadow: none; border: 2px solid var(--riso-blue);
            padding: 7px 16px; font-family: var(--font-mono); font-size: 11px; font-weight: 800;
            background: transparent;
        }
        #addModal .selectable-bubble.selected { background: var(--riso-blue); color: #ffffff; }

        /* Polaroid met GOOD SPOT! sticker */
        .polaroid-stage { position: relative; width: 240px; margin: 8px auto 4px auto; }
        .polaroid-stage .polaroid-interactive { margin: 0; max-width: 100%; }
        .goodspot-sticker {
            position: absolute; top: -26px; right: -22px;
            width: 92px; height: 88px;
            background-image: var(--img-sticker-goodspot);
            background-size: contain; background-repeat: no-repeat;
            transform: rotate(8deg); pointer-events: none;
        }
        .goodspot-sticker.small { width: 62px; height: 60px; top: -16px; right: -12px; }

        /* Getekende sterren als beoordeling */
        .hand-star {
            width: 30px; height: 30px; display: inline-block; cursor: pointer;
            background-image: var(--img-star-empty);
            background-size: contain; background-repeat: no-repeat; background-position: center;
            transition: transform 0.12s ease;
        }
        .hand-star.on { background-image: var(--img-star-full); }
        .hand-star:active { transform: scale(1.2); }
        .hand-star.mini { width: 17px; height: 17px; cursor: default; }

        /* Live voorbeeld van de spot-kaart */
        .preview-card { padding-bottom: 14px; }
        .preview-card .cat-stamp { position: absolute; top: 10px; right: 84px; width: 78px; height: 38px; }
        .pv-note {
            font-family: var(--font-mono); font-size: 12px; font-weight: 700;
            line-height: 1.5; color: var(--riso-blue); margin: 12px 0 0 0;
            white-space: pre-line;
        }
        .pv-photo-wrap {
            position: relative; margin: 14px 6px 4px 6px;
            background: #ffffff; padding: 8px 8px 8px 8px;
            border: 2px solid var(--riso-blue); border-radius: 4px;
            transform: rotate(-1.2deg);
        }
        .pv-photo-wrap img { width: 100%; max-height: 260px; object-fit: cover; display: block; }

        /* Save to Archive knop zoals op de detailkaart */
        .btn-archive {
            display: flex; align-items: center; justify-content: center; gap: 12px;
            font-family: var(--font-hand); text-transform: none; letter-spacing: 0.5px;
            font-size: 17px; padding: 14px; box-shadow: 4px 4px 0px var(--riso-blue);
        }
        .btn-archive .ico { width: 20px; height: 26px; filter: brightness(0) invert(1); }

        /* ---- Flâneur kompas: de kat ligt en wijst ---- */
        .drift-rotor {
            position: absolute; inset: 0;
            transition: transform 0.6s cubic-bezier(0.22, 0.75, 0.3, 1);
        }
        .drift-pointer {
            position: absolute; left: 50%; top: 50%;
            width: 150px; height: 150px;
            transform: translate(-50%, -50%);
            transform-origin: center;
            transition: transform 0.3s ease;
        }
        .drift-ray {
            position: absolute; top: 50%; left: 50%;
            width: 24px; height: 0;
            border-top: 3px dashed var(--riso-blue);
            transform: translate(74px, -50%); opacity: 0.5;
        }
        .drift-arrow {
            position: absolute; top: 50%; left: 50%;
            width: 0; height: 0;
            border-left: 15px solid var(--riso-blue);
            border-top: 9px solid transparent;
            border-bottom: 9px solid transparent;
            transform: translate(100px, -50%);
        }
        .dial-mark {
            position: absolute; font-family: var(--font-mono); font-size: 10px;
            font-weight: 900; color: var(--text-muted);
        }
        .dial-n { top: 7px; left: 50%; transform: translateX(-50%); }
        .dial-s { bottom: 7px; left: 50%; transform: translateX(-50%); }
        .dial-e { right: 10px; top: 50%; transform: translateY(-50%); }
        .dial-w { left: 10px; top: 50%; transform: translateY(-50%); }

        /* ====================================================
           SPOT-KAART v2, GALERIJ EN WAT MEER KARAKTER
           ==================================================== */

        /* --- De spot-kaart, opgebouwd als de tekening --- */
        .spot-card {
            position: relative; background: #fffdf6;
            border: 2.5px solid var(--riso-blue); border-radius: 22px;
            box-shadow: 7px 7px 0px var(--riso-blue);
            padding: 15px 15px 11px 15px; margin: 0 7px 26px 0;
        }
        .spot-card:nth-child(odd) { transform: rotate(-0.35deg); }
        .spot-card:nth-child(even) { transform: rotate(0.4deg); }

        .sc-head {
            display: flex; align-items: center; justify-content: space-between;
            gap: 8px; margin-bottom: 6px;
        }
        .sc-body { display: grid; grid-template-columns: 1fr 45%; gap: 12px; align-items: start; }
        .sc-body.no-photo { grid-template-columns: 1fr; }
        .sc-title {
            font-family: var(--font-hand); font-size: 26px; line-height: 1.04;
            color: var(--riso-blue); margin: 0 0 8px 0; cursor: pointer; word-break: break-word;
        }
        .sc-note {
            font-family: var(--font-mono); font-size: 11.5px; font-weight: 700;
            line-height: 1.5; color: var(--riso-blue); margin: 10px 0 10px 0;
        }
        .sc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
        .sc-tags span {
            border: 2px solid var(--riso-blue); border-radius: 9999px;
            padding: 5px 12px; font-family: var(--font-mono); font-size: 10px; font-weight: 800;
            color: var(--riso-blue);
        }
        .sc-right { position: relative; }
        .sc-polaroid {
            position: relative; background: #ffffff; border: 2px solid var(--riso-blue);
            padding: 7px 7px 9px 7px; border-radius: 3px; transform: rotate(1.3deg);
            cursor: pointer; overflow: hidden;
        }
        .sc-polaroid img { width: 100%; aspect-ratio: 1 / 1.08; object-fit: cover; display: block; }
        .sc-count {
            position: absolute; left: 11px; bottom: 13px;
            background: var(--riso-blue); color: #ffffff;
            font-family: var(--font-mono); font-size: 9px; font-weight: 900;
            padding: 3px 8px; border-radius: 9999px;
        }
        .sc-sticker {
            position: absolute; top: -20px; right: -16px; width: 74px; height: 71px;
            background-image: var(--img-sticker-goodspot);
            background-size: contain; background-repeat: no-repeat;
            transform: rotate(9deg); pointer-events: none;
        }
        .sc-catrow {
            display: flex; flex-direction: column; align-items: flex-end;
            margin-top: -14px; position: relative; z-index: 2; pointer-events: none;
        }
        .sc-cat { width: 104px; height: 50px; }
        .sc-stars { display: flex; gap: 1px; margin-top: -4px; }
        .sc-actions {
            display: flex; align-items: center; justify-content: space-between; gap: 6px;
            margin-top: 12px; border-top: 1.5px dashed rgba(15, 53, 190, 0.3); padding-top: 10px;
            flex-wrap: wrap;
        }

        @media (max-width: 359px) {
            .sc-body { grid-template-columns: 1fr; }
            .sc-right { max-width: 230px; margin: 4px auto 0 auto; }
        }
        @media (max-width: 430px) {
            .sc-title { font-size: 22px; }
            .sc-cat { width: 84px; height: 40px; }
            .sc-note { font-size: 11px; }
            .spot-card { padding: 13px 12px 10px 12px; margin-right: 6px; }
        }

        /* --- Detailkaart in de bottom sheet --- */
        #spotBottomSheet { background: var(--bg-paper); }
        .detail-card { margin-bottom: 4px; }
        .dc-top { display: flex; align-items: center; justify-content: space-between; margin: -4px 0 8px 0; }
        .dc-top .ico { width: 22px; height: 22px; }
        .dc-art {
            position: absolute; top: 10px; right: 12px; width: 108px;
            display: flex; flex-direction: column; align-items: flex-end; gap: 4px; pointer-events: none;
        }
        .dc-art .dc-quote { width: 66px; height: 84px; background-image: var(--img-quote2);
            background-size: contain; background-repeat: no-repeat; background-position: top right; }
        .dc-art .cat-stamp { width: 104px; height: 50px; }
        .detail-card .hand-title, .detail-card .card-kicker { padding-right: 118px; }
        .detail-card .draw-row:first-of-type { padding-right: 118px; }
        .dc-photo {
            position: relative; background: #ffffff; border: 2px solid var(--riso-blue);
            padding: 8px 8px 10px 8px; margin: 16px 4px 6px 4px; transform: rotate(-1deg); cursor: pointer;
        }
        .dc-photo img { width: 100%; max-height: 420px; object-fit: cover; display: block; }
        .dc-expand {
            width: 100%; margin-top: 12px; background: transparent;
            border: 2px dashed var(--riso-blue); border-radius: 14px; padding: 10px;
            font-family: var(--font-mono); font-size: 11px; font-weight: 900; color: var(--riso-blue);
            text-transform: uppercase; letter-spacing: 0.6px; cursor: pointer;
        }
        .dc-gallery { display: none; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
        .dc-gallery.open { display: grid; }
        .dc-gallery img {
            width: 100%; aspect-ratio: 1; object-fit: cover; cursor: pointer;
            border: 2px solid var(--riso-blue); border-radius: 5px; background: #ffffff;
        }

        /* --- Foto's op volle schermgrootte --- */
        .photo-viewer {
            position: fixed; inset: 0; z-index: 5000; display: none;
            background: rgba(15, 53, 190, 0.94);
            align-items: center; justify-content: center; flex-direction: column; gap: 14px;
            padding: calc(20px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom)) 16px;
        }
        .photo-viewer.open { display: flex; }
        .photo-viewer img {
            max-width: 100%; max-height: 74vh; object-fit: contain;
            background: #fffdf6; border: 4px solid #fffdf6; border-radius: 3px;
        }
        .pv-bar { display: flex; align-items: center; gap: 16px; }
        .pv-btn {
            background: #fffdf6; color: var(--riso-blue); border: 2px solid #fffdf6;
            border-radius: 9999px; min-width: 46px; height: 46px; padding: 0 16px;
            font-family: var(--font-mono); font-weight: 900; font-size: 15px; cursor: pointer;
        }
        .pv-counter { color: #fffdf6; font-family: var(--font-mono); font-size: 12px; font-weight: 800; }

        /* --- Meerdere foto's in de add-flow --- */
        .thumb-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
        .thumb {
            position: relative; width: 62px; height: 62px; border: 2px solid var(--riso-blue);
            border-radius: 7px; overflow: hidden; background: #ffffff; cursor: pointer; flex-shrink: 0;
        }
        .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
        .thumb.main { box-shadow: 0 0 0 3px var(--riso-yellow); }
        .thumb-badge {
            position: absolute; left: 0; right: 0; bottom: 0; background: var(--riso-blue);
            color: #ffffff; font-family: var(--font-mono); font-size: 7px; font-weight: 900;
            text-align: center; padding: 2px 0; letter-spacing: 0.5px;
        }
        .thumb-x {
            position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%;
            background: #fffdf6; border: 1.5px solid var(--riso-blue); color: var(--riso-blue);
            font-size: 12px; line-height: 1; display: flex; align-items: center; justify-content: center;
        }
        .thumb-add {
            display: flex; align-items: center; justify-content: center;
            border-style: dashed; font-size: 22px; color: var(--riso-blue); font-weight: 700;
        }

        /* --- Toast met de kat erbij --- */
        .toast-wrap {
            position: fixed; left: 50%; transform: translateX(-50%);
            bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 4000;
            display: flex; flex-direction: column; align-items: center; gap: 8px;
            width: calc(100% - 32px); max-width: 420px; pointer-events: none;
        }
        .toast {
            display: flex; align-items: center; gap: 10px; background: #fffdf6;
            border: 2.5px solid var(--riso-blue); border-radius: 16px;
            box-shadow: 4px 4px 0px var(--riso-blue); padding: 10px 14px;
            font-family: var(--font-mono); font-size: 12px; font-weight: 800; color: var(--riso-blue);
            opacity: 0; transform: translateY(10px) rotate(-0.6deg); transition: opacity 0.22s ease, transform 0.22s ease;
        }
        .toast.in { opacity: 1; transform: translateY(0) rotate(-0.6deg); }
        .toast .cat-stamp { width: 44px; height: 21px; flex-shrink: 0; }

        /* --- Kleine karaktertjes --- */
        .paper-quip {
            font-family: var(--font-hand); font-size: 15px; color: var(--riso-blue);
            opacity: 0.75; transform: rotate(-1deg); display: inline-block; margin: 2px 0 10px 0;
        }
        .nav-item.active span:last-child { position: relative; }
        .nav-item.active span:last-child::after {
            content: ""; position: absolute; left: -3px; right: -3px; bottom: -3px;
            height: 2px; background: var(--riso-blue); border-radius: 2px;
        }
        .btn-primary:active, .popup-btn:active, .nav-fab-btn:active { transform: translate(1px, 2px) rotate(-0.6deg); }
        @keyframes stampIn {
            0% { transform: scale(0.4) rotate(-14deg); opacity: 0; }
            60% { transform: scale(1.12) rotate(4deg); opacity: 1; }
            100% { transform: scale(1) rotate(0deg); opacity: 1; }
        }
        .stamp-in { animation: stampIn 0.45s cubic-bezier(0.2, 0.8, 0.3, 1); }

        /* --- Onderbalk: recht, gecentreerd, zonder Flâneur --- */
        .bottom-nav { transform: translateX(-50%) rotate(0deg); justify-content: space-around; }
        .nav-item { min-height: 46px; justify-content: center; }

        /* --- Telefoon & toegankelijkheid --- */
        input, select, textarea { font-size: 16px; }           /* voorkomt inzoomen op iOS */
        .search-input { font-size: 16px; }
        .search-input::placeholder { font-size: 13px; }
        button, a, .popup-btn, .filter-chip, .selectable-bubble { touch-action: manipulation; }
        .popup-btn { min-height: 38px; }
        .filter-chip { min-height: 34px; }
        .modal-sheet, .spot-sheet { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
        .scrollable-view { -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; }
        :focus-visible { outline: 3px solid var(--riso-yellow); outline-offset: 2px; }
        @supports (height: 100dvh) {
            .modal-sheet { max-height: 86dvh; }
            .spot-sheet { max-height: 85dvh; }
        }
        @media (prefers-reduced-motion: reduce) {
            * { transition: none !important; animation: none !important; }
            .spot-card { transform: none !important; }
        }
        @media (min-width: 720px) {
            .scrollable-view { max-width: 620px; margin: 0 auto; }
        }

        /* ====================================================
           DE KAT GROOT OVER DE RAND, ZONDER QUOTE-TEKENING
           ==================================================== */
        .draw-card-quote, .dc-art { display: none; }
        .draw-card .hand-input { width: 100% !important; }

        /* Live voorbeeld in stap 3 */
        .preview-card .cat-stamp {
            position: absolute; top: -28px; right: -14px;
            width: 158px; height: 76px; transform: rotate(-4deg);
            pointer-events: none; z-index: 3;
        }
        .preview-card .hand-title, .preview-card .card-kicker { padding-right: 96px; }

        /* Detailkaart in de bottom sheet */
        .dc-cat {
            position: absolute; top: -34px; right: -12px;
            width: 176px; height: 85px; transform: rotate(-5deg);
            pointer-events: none; z-index: 3;
        }
        .detail-card { margin-top: 10px; }
        .detail-card .hand-title, .detail-card .card-kicker { padding-right: 104px; }
        .detail-card .draw-row:first-of-type { padding-right: 104px; }

        /* Kat op de spot-kaart in de feed */
        .sc-cat { width: 126px; height: 61px; }
        .sc-catrow { margin-top: -20px; margin-right: -14px; }
        @media (max-width: 430px) {
            .sc-cat { width: 104px; height: 50px; }
            .preview-card .cat-stamp { width: 132px; height: 64px; top: -24px; }
            .dc-cat { width: 146px; height: 70px; top: -28px; }
            .detail-card .hand-title, .detail-card .card-kicker { padding-right: 86px; }
            .detail-card .draw-row:first-of-type { padding-right: 86px; }
        }

        /* Sterren en iconen staan vrij op het papier, zonder vlak eromheen */
        .hand-star, .ico, .cat-stamp { background-color: transparent; }

        /* ====================================================
           DE KAT PASSEND, PLUS WAT LOSSE KRABBELS
           ==================================================== */

        /* De liggende kat signeert de kaart rechtsonder, net als op je tekening */
        .preview-card .cat-stamp, .dc-cat { position: static; }
        .card-signoff {
            display: flex; flex-direction: column; align-items: flex-end;
            gap: 0; margin: 12px -8px -2px 0;
        }
        .card-signoff .cat-stamp { width: 152px; height: 73px; transform: rotate(-2deg); }
        .card-signoff .sc-stars { margin-top: -6px; }
        .preview-card .hand-title, .preview-card .card-kicker,
        .detail-card .hand-title, .detail-card .card-kicker,
        .detail-card .draw-row:first-of-type { padding-right: 0; }
        .detail-card { margin-top: 4px; }
        @media (max-width: 430px) {
            .card-signoff .cat-stamp { width: 124px; height: 60px; }
        }

        /* Losse krabbels uit je eigen tekeningen */
        .doodle {
            display: inline-block; background-repeat: no-repeat;
            background-position: center; background-size: contain;
        }
        .d-sparkle { background-image: var(--img-sparkle); width: 16px; height: 18px; }
        .d-cathead { background-image: var(--img-cat-head); width: 34px; height: 20px; }
        .d-cup { background-image: var(--img-ico-cup); width: 24px; height: 26px; }
        .d-star { background-image: var(--img-star-full); width: 20px; height: 22px; }
        .d-tag { background-image: var(--img-ico-tag); width: 24px; height: 24px; }
        .d-pin { background-image: var(--img-ico-pin); width: 20px; height: 22px; }
        .d-bookmark { background-image: var(--img-ico-bookmark); width: 17px; height: 24px; }

        .sticker-strip {
            display: flex; align-items: center; justify-content: center;
            gap: 20px; margin: 26px 0 8px 0; opacity: 0.75; flex-wrap: wrap;
        }
        .sticker-strip .doodle:nth-child(1) { transform: rotate(-12deg); }
        .sticker-strip .doodle:nth-child(2) { transform: rotate(7deg); }
        .sticker-strip .doodle:nth-child(3) { transform: rotate(-5deg); }
        .sticker-strip .doodle:nth-child(4) { transform: rotate(9deg); }
        .sticker-strip .doodle:nth-child(5) { transform: rotate(-8deg); }
        .sticker-strip .doodle:nth-child(6) { transform: rotate(4deg); }
        .sticker-strip .doodle:nth-child(7) { transform: rotate(-3deg); }

        .title-spark { margin-left: 6px; vertical-align: super; opacity: 0.8; }
        .toast .doodle { flex-shrink: 0; }

        /* Een koppie dat over de rand van de sheet gluurt */
        .peek-cat {
            width: 52px; height: 30px; background-image: var(--img-cat-head);
            background-size: contain; background-repeat: no-repeat; background-position: bottom center;
            transform: rotate(-6deg); flex-shrink: 0;
        }

        /* Lege staat met wat meer ziel */
        .empty-stage { text-align: center; padding: 34px 16px 10px 16px; }
        .empty-stage .cat-stamp { width: 168px; height: 81px; margin: 0 auto 6px auto; }
        .empty-stage p { font-family: var(--font-mono); font-size: 12px; font-weight: 700; margin: 6px 0; }

        /* Prijs hoort bij de naam, niet onder de sticker */
        .sc-price { font-family: var(--font-mono); font-size: 12px; font-weight: 900; margin-left: 8px; }
        .sc-head { position: relative; z-index: 4; }
        .sc-sticker { z-index: 5; }
        .stacked-avatar.cat-stamp { background-image: var(--img-cat-head); background-size: 80%; }

        /* ====================================================
           FEEDKAART: ALLES RECHT, KAT ONDER DE FOTO
           ==================================================== */
        .spot-card, .spot-card:nth-child(odd), .spot-card:nth-child(even) { transform: none; }
        .sc-catrow { margin-top: 10px; margin-right: -4px; transform: none; }
        .sc-cat, .sc-catrow .cat-stamp { transform: none; }
        .sc-stars { margin-top: 0; }

        /* ====================================================
           SPOT PLAATSEN, MELDINGEN, CHAT, STORY-KAART
           ==================================================== */

        /* --- Speld staat stil, jij schuift de kaart --- */
        .place-mode { position: fixed; inset: 0; z-index: 1200; display: none; pointer-events: none; }
        .place-mode.on { display: block; }
        .place-pin {
            position: absolute; left: 50%; top: 50%;
            transform: translate(-50%, -100%); text-align: center;
        }
        .place-pin .ico {
            width: 42px; height: 44px; background-image: var(--img-ico-pin);
            filter: drop-shadow(0 3px 0 rgba(15, 53, 190, 0.25));
            animation: pinHover 1.6s ease-in-out infinite;
        }
        .place-pin::after {
            content: ""; display: block; width: 12px; height: 5px; margin: 2px auto 0 auto;
            border-radius: 50%; background: rgba(15, 53, 190, 0.35);
        }
        @keyframes pinHover {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-6px); }
        }
        .place-bar {
            position: absolute; left: 50%; transform: translateX(-50%);
            bottom: calc(96px + env(safe-area-inset-bottom));
            width: calc(100% - 28px); max-width: 430px; pointer-events: auto;
            background: #fffdf6; border: 2.5px solid var(--riso-blue); border-radius: 20px;
            box-shadow: 5px 5px 0px var(--riso-blue); padding: 12px 14px;
        }
        .place-bar .draw-row-value { font-size: 13px; }
        .place-actions { display: flex; gap: 8px; margin-top: 10px; }
        .place-actions .btn-primary { margin: 0; flex: 1; }
        .place-actions .popup-btn { flex-shrink: 0; }

        /* --- Badges voor ongelezen dingen --- */
        .count-badge {
            position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px;
            border-radius: 9999px; background: #e2342d; color: #fff;
            font-family: var(--font-mono); font-size: 9px; font-weight: 900;
            display: none; align-items: center; justify-content: center; padding: 0 4px;
            border: 1.5px solid #fffdf6;
        }
        .count-badge.on { display: flex; }
        .nav-item { position: relative; }
        .nav-item .count-badge { top: 2px; right: 22%; }
        .riso-btn { position: relative; }

        /* --- Wat is er nieuw --- */
        .whats-new-list { margin: 0; padding: 0; list-style: none; }
        .whats-new-list li {
            display: flex; gap: 10px; align-items: flex-start;
            font-family: var(--font-mono); font-size: 12px; font-weight: 700;
            line-height: 1.5; color: var(--riso-blue);
            padding: 9px 0; border-bottom: 1.5px dashed rgba(15, 53, 190, 0.25);
        }
        .whats-new-list li:last-child { border-bottom: none; }
        .whats-new-list .doodle { margin-top: 1px; flex-shrink: 0; }
        .new-chip {
            background: var(--riso-yellow); border: 1.5px solid var(--riso-blue);
            border-radius: 9999px; padding: 1px 7px; font-size: 8px; font-weight: 900;
            font-family: var(--font-mono); margin-left: 6px; white-space: nowrap;
        }

        /* --- Chat --- */
        .chat-day {
            text-align: center; font-family: var(--font-mono); font-size: 9px; font-weight: 900;
            color: var(--text-muted); margin: 14px 0 8px 0; letter-spacing: 1px;
        }
        .chat-line { display: flex; align-items: flex-end; gap: 7px; margin-bottom: 8px; }
        .chat-line.mine { flex-direction: row-reverse; }
        .chat-line .chat-ava {
            width: 26px; height: 26px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
            border: 1.5px solid var(--riso-blue); background: #fff;
            display: flex; align-items: center; justify-content: center;
        }
        .chat-line .chat-ava img { width: 100%; height: 100%; object-fit: cover; }
        .chat-meta {
            font-family: var(--font-mono); font-size: 8.5px; font-weight: 800;
            color: var(--text-muted); margin: 0 4px 2px 4px; align-self: flex-end;
        }
        .chat-bubble.pending { opacity: 0.55; }
        .chat-scroll-container { scroll-behavior: smooth; }

        /* --- Profiel sluit nu netjes aan op het scherm --- */
        #profileView #instaGridContainer { margin: 0 -14px; gap: 3px; padding-bottom: 8px; }
        #profileView .insta-grid-item { border-radius: 0; }

        /* --- Meer tags, netjes ingepakt --- */
        .interactive-tag-cloud {
            max-height: 168px; overflow-y: auto; overscroll-behavior: contain;
            padding: 2px; margin-bottom: 4px;
        }

        /* --- Story-kaart voor Instagram --- */
        .story-preview {
            width: 100%; max-width: 260px; margin: 0 auto; display: block;
            border: 2.5px solid var(--riso-blue); border-radius: 12px;
            box-shadow: 5px 5px 0px var(--riso-blue); background: #fffdf6;
        }
        .story-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
        .story-actions .btn-primary { margin: 0; }

        /* --- Knop die bezig is --- */
        .btn-primary.busy { opacity: 0.6; pointer-events: none; }
        .photo-btn-row { display: flex; gap: 8px; margin: 10px 0 2px 0; }
        .photo-btn-row .popup-btn { flex: 1; justify-content: center; }

        /* Kort changelog-overzicht in de instellingen */
        .settings-changelog {
            border: 2px dashed rgba(15, 53, 190, 0.4); border-radius: 14px;
            padding: 10px 12px; margin: -4px 0 12px 0; background: rgba(255, 253, 246, 0.6);
        }
        .settings-changelog p {
            display: flex; gap: 8px; align-items: flex-start; margin: 5px 0;
            font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
            line-height: 1.45; color: var(--riso-blue);
        }
        .settings-changelog .doodle { margin-top: 1px; flex-shrink: 0; }
        .settings-changelog .more-link {
            display: block; margin-top: 8px; font-family: var(--font-mono); font-size: 10px;
            font-weight: 900; text-decoration: underline; cursor: pointer; color: var(--riso-blue);
        }
        #settingsNewTag.unseen {
            background: var(--riso-yellow); border: 1.5px solid var(--riso-blue);
            border-radius: 9999px; padding: 2px 8px;
        }

        /* ====================================================
           DUIDELIJK MAKEN DAT JE EEN ACCOUNT NODIG HEBT
           ==================================================== */
        .guest-banner {
            display: none; align-items: center; gap: 10px;
            background: #fffdf6; border: 2.5px solid var(--riso-blue); border-radius: 16px;
            box-shadow: 4px 4px 0px var(--riso-blue);
            padding: 10px 12px; margin: 0 14px 10px 14px;
        }
        body.guest .guest-banner { display: flex; }
        .guest-banner .peek-cat { width: 46px; height: 26px; }
        .guest-banner .txt {
            flex: 1; font-family: var(--font-mono); font-size: 10.5px; font-weight: 800;
            line-height: 1.4; color: var(--riso-blue);
        }
        .guest-banner .popup-btn { flex-shrink: 0; }

        #guestProfileStage { display: none; }
        body.guest #profileView .insta-profile-header,
        body.guest #profileView .insta-bio-block,
        body.guest #profileView .insta-tabs,
        body.guest #profileView #instaGridContainer { display: none; }
        body.guest #guestProfileStage { display: block; }

        .guest-card { text-align: center; }
        .guest-card .cat-stamp { width: 172px; height: 83px; margin: 4px auto 10px auto; }
        .guest-perks { margin: 14px 0 4px 0; padding: 0; list-style: none; text-align: left; }
        .guest-perks li {
            display: flex; gap: 10px; align-items: flex-start; padding: 7px 0;
            font-family: var(--font-mono); font-size: 11.5px; font-weight: 700;
            line-height: 1.45; color: var(--riso-blue);
        }
        .guest-perks .doodle { margin-top: 1px; flex-shrink: 0; }

        .auth-switch { display: flex; gap: 8px; margin: 4px 0 12px 0; }
        .auth-switch button {
            flex: 1; padding: 9px; border-radius: 9999px; cursor: pointer;
            border: 2px solid var(--riso-blue); background: transparent; color: var(--riso-blue);
            font-family: var(--font-mono); font-size: 11px; font-weight: 900;
        }
        .auth-switch button.on { background: var(--riso-blue); color: #fffdf6; }
        #authModal .modal-sheet .draw-card { margin-bottom: 12px; }

        /* ====================================================
           ZWEVENDE KAARTKNOPPEN: VAST AAN HET SCHERM, NET
           BOVEN DE ONDERBALK
           ==================================================== */
        .compass-hud-btn, .gps-btn {
            position: fixed;
            bottom: calc(88px + env(safe-area-inset-bottom));
        }
        .compass-hud-btn { left: 16px; }
        .gps-btn { right: 16px; }

        /* filterbalk net onder de kop in plaats van er half achter */
        .filter-bar { top: calc(80px + env(safe-area-inset-top)); }
        body.guest .guest-banner { margin-top: calc(128px + env(safe-area-inset-top)); }

        /* ====================================================
           PROFIEL, PASPOORT EN HERSTELDE CONCEPTEN
           ==================================================== */
        #profileView .insta-tabs { margin: 0 -14px 10px -14px; border-radius: 0; }
        #profileView #instaGridContainer { margin: 0 -14px; gap: 2px; padding-bottom: 10px; }
        #profileView .insta-grid-item { border-radius: 0; border-width: 1px; }
        .insta-grid { grid-auto-rows: 1fr; }

        .draft-bar {
            display: none; align-items: center; gap: 10px;
            background: var(--riso-yellow); border: 2.5px solid var(--riso-blue);
            border-radius: 16px; box-shadow: 4px 4px 0px var(--riso-blue);
            padding: 10px 12px; margin: 0 14px 10px 14px;
        }
        body.has-draft .draft-bar { display: flex; }
        .draft-bar .txt {
            flex: 1; font-family: var(--font-mono); font-size: 10.5px; font-weight: 800;
            line-height: 1.4; color: var(--riso-blue);
        }

        .passport-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 12px 0; }
        .passport-stat {
            border: 2px solid var(--riso-blue); border-radius: 16px; padding: 12px;
            background: #ffffff; text-align: center;
        }
        .passport-stat .num {
            display: block; font-family: var(--font-hand); font-size: 30px;
            color: var(--riso-blue); line-height: 1;
        }
        .passport-stat .lbl {
            display: block; font-family: var(--font-mono); font-size: 9px; font-weight: 900;
            color: var(--text-muted); margin-top: 4px; letter-spacing: 0.5px;
        }
        .stamp-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
        .stamp {
            border: 2px dashed var(--riso-blue); border-radius: 9999px; padding: 6px 12px;
            font-family: var(--font-mono); font-size: 10px; font-weight: 900; color: var(--riso-blue);
            transform: rotate(-1.5deg);
        }
        .stamp:nth-child(even) { transform: rotate(1.8deg); }

        /* ====================================================
           LIJSTJES EN OPENBAAR PROFIEL
           ==================================================== */
        .list-card {
            display: flex; align-items: center; gap: 12px;
            background: #fffdf6; border: 2.5px solid var(--riso-blue); border-radius: 18px;
            box-shadow: 4px 4px 0px var(--riso-blue); padding: 12px 14px; margin-bottom: 12px;
            cursor: pointer;
        }
        .list-card .emoji { font-size: 26px; flex-shrink: 0; }
        .list-card .body { flex: 1; min-width: 0; }
        .list-card .title {
            font-family: var(--font-hand); font-size: 22px; color: var(--riso-blue); line-height: 1.1;
        }
        .list-card .sub {
            font-family: var(--font-mono); font-size: 10px; font-weight: 800; color: var(--text-muted);
        }
        .list-spot-row {
            display: flex; align-items: center; gap: 10px; padding: 9px 0;
            border-bottom: 1.5px dashed rgba(15, 53, 190, 0.25);
        }
        .list-spot-row img {
            width: 48px; height: 48px; object-fit: cover; border-radius: 8px;
            border: 2px solid var(--riso-blue); flex-shrink: 0;
        }
        .list-spot-row .nm {
            flex: 1; font-family: var(--font-mono); font-size: 12px; font-weight: 800; color: var(--riso-blue);
        }
        .emoji-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 10px 0; }
        .emoji-pick {
            width: 40px; height: 40px; border-radius: 10px; border: 2px solid var(--riso-blue);
            background: #fff; font-size: 20px; cursor: pointer; line-height: 1;
        }
        .emoji-pick.on { background: var(--riso-blue); }
        .public-note {
            font-family: var(--font-mono); font-size: 10px; font-weight: 700;
            color: var(--text-muted); text-align: center; margin-top: 10px; line-height: 1.5;
        }

        /* ====================================================
           ONBOARDING, DISCOVER, REACTIES, FOTOCARROUSEL
           ==================================================== */

        /* --- Welkomstkaartjes --- */
        #onboarding { z-index: 9000; }
        .onb-card { text-align: center; }
        .onb-art { width: 190px; height: 92px; margin: 6px auto 10px auto; }
        .onb-art.map { width: 110px; height: 100px; background-image: var(--img-ico-map); }
        .onb-art.feed { width: 110px; height: 108px; background-image: var(--img-ico-feed); }
        .onb-art.cat { background-image: var(--img-cat); }
        .onb-art { background-size: contain; background-repeat: no-repeat; background-position: center; }
        .onb-dots { display: flex; justify-content: center; gap: 7px; margin: 14px 0 4px 0; }
        .onb-dot {
            width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--riso-blue);
            background: transparent;
        }
        .onb-dot.on { background: var(--riso-blue); }

        /* --- Discover --- */
        .disc-section { margin-bottom: 22px; }
        .disc-head {
            display: flex; align-items: baseline; justify-content: space-between;
            margin: 0 0 8px 2px;
        }
        .disc-head h3 {
            font-family: var(--font-hand); font-size: 23px; color: var(--riso-blue); margin: 0;
        }
        .disc-rail {
            display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px 2px;
            scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
        }
        .disc-tile {
            flex: 0 0 150px; scroll-snap-align: start; cursor: pointer;
            background: #fffdf6; border: 2.5px solid var(--riso-blue); border-radius: 16px;
            box-shadow: 4px 4px 0px var(--riso-blue); overflow: hidden;
        }
        .disc-tile img { width: 100%; height: 108px; object-fit: cover; display: block; }
        .disc-tile .no-img {
            height: 108px; display: flex; align-items: center; justify-content: center;
            background: var(--riso-blue-light);
        }
        .disc-tile .info { padding: 8px 10px 10px 10px; }
        .disc-tile .nm {
            font-family: var(--font-hand); font-size: 17px; color: var(--riso-blue);
            line-height: 1.1; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        }
        .disc-tile .mt {
            font-family: var(--font-mono); font-size: 9px; font-weight: 800; color: var(--text-muted);
        }
        .curator-row {
            display: flex; align-items: center; gap: 10px; padding: 9px 0;
            border-bottom: 1.5px dashed rgba(15, 53, 190, 0.25);
        }
        .curator-row .ava {
            width: 42px; height: 42px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
            border: 2px solid var(--riso-blue); background: #fff;
            display: flex; align-items: center; justify-content: center;
        }
        .curator-row .ava img { width: 100%; height: 100%; object-fit: cover; }
        .curator-row .who { flex: 1; min-width: 0; }
        .curator-row .who b {
            font-family: var(--font-mono); font-size: 12px; font-weight: 900; color: var(--riso-blue);
        }
        .curator-row .who span {
            display: block; font-family: var(--font-mono); font-size: 9.5px; color: var(--text-muted); font-weight: 700;
        }

        /* --- Reacties --- */
        .comment-row { display: flex; gap: 9px; padding: 9px 0; align-items: flex-start; }
        .comment-row .ava {
            width: 30px; height: 30px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
            border: 1.5px solid var(--riso-blue); background: #fff;
            display: flex; align-items: center; justify-content: center;
        }
        .comment-row .ava img { width: 100%; height: 100%; object-fit: cover; }
        .comment-row .bubble {
            flex: 1; background: #ffffff; border: 2px solid var(--riso-blue); border-radius: 14px;
            padding: 8px 11px;
        }
        .comment-row .who {
            font-family: var(--font-mono); font-size: 9.5px; font-weight: 900; color: var(--text-muted);
            display: flex; justify-content: space-between; gap: 8px;
        }
        .comment-row .txt {
            font-family: var(--font-mono); font-size: 12px; font-weight: 700;
            color: var(--riso-blue); line-height: 1.45; margin-top: 3px; word-break: break-word;
        }
        .comment-box { display: flex; gap: 8px; margin-top: 10px; }
        .comment-box input { margin: 0 !important; flex: 1; }
        .comment-box button { flex-shrink: 0; margin: 0; width: auto; padding: 0 18px; }

        /* --- Fotocarrousel op de kaart --- */
        .sc-rail {
            display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
            -webkit-overflow-scrolling: touch; scrollbar-width: none;
        }
        .sc-rail::-webkit-scrollbar { display: none; }
        .sc-rail img { flex: 0 0 100%; scroll-snap-align: center; }
        .sc-dots {
            display: flex; justify-content: center; gap: 5px; margin-top: 6px;
        }
        .sc-dots i {
            width: 6px; height: 6px; border-radius: 50%; background: rgba(15, 53, 190, 0.3);
        }
        .sc-dots i.on { background: var(--riso-blue); }

        /* --- Offline --- */
        .offline-bar {
            display: none; align-items: center; gap: 10px;
            background: #ffe9c7; border: 2.5px solid var(--riso-blue); border-radius: 16px;
            box-shadow: 4px 4px 0px var(--riso-blue);
            padding: 10px 12px; margin: 0 14px 10px 14px;
        }
        body.has-outbox .offline-bar { display: flex; }
        .offline-bar .txt {
            flex: 1; font-family: var(--font-mono); font-size: 10.5px; font-weight: 800;
            line-height: 1.4; color: var(--riso-blue);
        }

        /* ====================================================
           ONBOARDING OP VOL SCHERM + BEZOEKLOGBOEK
           ==================================================== */
        .onb-screen {
            position: fixed; inset: 0; z-index: 9500; display: none;
            background: var(--bg-paper); overflow: hidden;
        }
        .onb-screen.on { display: block; }
        .onb-track {
            display: flex; height: 100%; width: 100%;
            overflow-x: auto; scroll-snap-type: x mandatory;
            -webkit-overflow-scrolling: touch; scrollbar-width: none;
        }
        .onb-track::-webkit-scrollbar { display: none; }
        .onb-slide {
            flex: 0 0 100%; scroll-snap-align: center;
            display: flex; flex-direction: column; align-items: center; justify-content: center;
            padding: calc(70px + env(safe-area-inset-top)) 28px calc(190px + env(safe-area-inset-bottom)) 28px;
            text-align: center; position: relative;
        }
        .onb-slide.blue { background: var(--riso-blue); }
        .onb-slide.blue .onb-h { color: #fffdf6; }
        .onb-slide.blue .onb-p { color: rgba(255, 253, 246, 0.9); }
        .onb-slide.blue .onb-k { color: var(--riso-yellow); }
        .onb-big {
            width: min(78vw, 320px); height: min(40vw, 165px);
            background-size: contain; background-repeat: no-repeat; background-position: center;
            margin-bottom: 26px;
        }
        .onb-big.square { width: min(52vw, 210px); height: min(52vw, 210px); }
        .onb-k {
            font-family: var(--font-mono); font-size: 11px; font-weight: 900;
            letter-spacing: 2px; color: var(--riso-blue); margin-bottom: 6px;
        }
        .onb-h {
            font-family: var(--font-hand); font-size: clamp(38px, 11vw, 58px);
            line-height: 1; color: var(--riso-blue); margin: 0 0 16px 0;
        }
        .onb-p {
            font-family: var(--font-mono); font-size: 13.5px; font-weight: 700;
            line-height: 1.65; color: var(--riso-blue); max-width: 330px; margin: 0;
        }
        .onb-doodle { position: absolute; opacity: 0.9; }
        .onb-foot {
            position: absolute; left: 0; right: 0;
            bottom: calc(26px + env(safe-area-inset-bottom));
            padding: 0 28px; z-index: 2;
        }
        .onb-bar {
            display: flex; gap: 6px; justify-content: center; margin-bottom: 16px;
        }
        .onb-bar i {
            height: 5px; width: 34px; border-radius: 9999px;
            background: rgba(15, 53, 190, 0.25); transition: background 0.25s ease;
        }
        .onb-bar i.on { background: var(--riso-blue); }
        .onb-screen.dark .onb-bar i { background: rgba(255, 253, 246, 0.3); }
        .onb-screen.dark .onb-bar i.on { background: #fffdf6; }
        .onb-skip {
            position: absolute; top: calc(18px + env(safe-area-inset-top)); right: 20px;
            background: none; border: none; cursor: pointer; z-index: 3;
            font-family: var(--font-mono); font-size: 11px; font-weight: 900;
            color: var(--riso-blue); opacity: 0.6;
        }
        .onb-screen.dark .onb-skip { color: #fffdf6; }
        .onb-screen.dark .onb-foot .btn-primary {
            background: #fffdf6; color: var(--riso-blue); box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.25);
        }

        /* --- Bezoeklogboek --- */
        .visit-row {
            display: flex; align-items: center; gap: 10px; padding: 8px 0;
            border-bottom: 1.5px dashed rgba(15, 53, 190, 0.25);
        }
        .visit-row .when {
            font-family: var(--font-hand); font-size: 19px; color: var(--riso-blue);
            min-width: 62px; line-height: 1;
        }
        .visit-row .what {
            flex: 1; font-family: var(--font-mono); font-size: 11.5px; font-weight: 800; color: var(--riso-blue);
        }
        .visit-row .what span { display: block; font-weight: 700; opacity: 0.6; font-size: 10px; }
        .visit-row .cost { font-family: var(--font-mono); font-size: 11px; font-weight: 900; }
        .visit-form { display: grid; grid-template-columns: 1fr 90px; gap: 8px; margin-top: 10px; }
        .visit-form input { margin: 0 !important; }
        .visit-form button { grid-column: 1 / -1; margin: 0; }

        /* ====================================================
           DE REST VAN JOSH' TEKENINGEN, DOOR DE HELE APP
           ==================================================== */
        :root {
        }

        .d-beans { background-image: var(--img-beans); width: 30px; height: 30px; }
        .d-togo { background-image: var(--img-togo); width: 24px; height: 29px; }
        .d-minimap { background-image: var(--img-minimap); width: 34px; height: 27px; }
        .d-dashes { background-image: var(--img-dashes); width: 20px; height: 21px; }
        .d-books { background-image: var(--img-books); width: 44px; height: 24px; }
        .d-steam { background-image: var(--img-steam); width: 14px; height: 34px; }
        .d-speed { background-image: var(--img-speedlines); width: 18px; height: 29px; }

        /* handgeschreven regels uit het laadscherm */
        .hand-note {
            background-size: contain; background-repeat: no-repeat; background-position: center;
            display: block;
        }
        .hand-note.explore { background-image: var(--img-explore); width: 96px; height: 90px; }
        .hand-note.better { background-image: var(--img-quote2); width: 104px; height: 102px; }

        .sticker-strip { gap: 18px; }
        .sticker-strip .doodle { opacity: 0.95; }

        /* losse krabbels in de hoeken van een kaart */
        .corner-doodle { position: absolute; pointer-events: none; opacity: 0.9; }

        .disc-head .doodle { margin-right: 6px; vertical-align: -4px; }

        .empty-stage .hand-note { margin: 10px auto 0 auto; transform: rotate(-3deg); }

        .onb-slide .onb-doodle.big { width: 54px; height: 54px; }
        .onb-slide.blue .onb-doodle { filter: brightness(0) invert(1); }
        .onb-slide.blue .hand-note { filter: brightness(0) invert(1); }

        .step-art {
            position: absolute; top: -10px; right: 14px; opacity: 0.85; pointer-events: none;
        }
        .draw-card { overflow: visible; }

        /* ====================================================
           DE GEKOCHTE ILLUSTRATIES
           ==================================================== */
        .d-pot { background-image: var(--img-pot); width: 34px; height: 36px; }
        .d-iced { background-image: var(--img-iced); width: 26px; height: 36px; }
        .d-cupsteam { background-image: var(--img-cupsteam); width: 36px; height: 31px; }
        .d-bag { background-image: var(--img-bag); width: 30px; height: 37px; }
        .d-croissant { background-image: var(--img-croissant); width: 40px; height: 31px; }
        .d-machine { background-image: var(--img-machine); width: 38px; height: 45px; }
        .d-lattetop { background-image: var(--img-lattetop); width: 38px; height: 36px; }
        .d-jug { background-image: var(--img-jug); width: 36px; height: 29px; }
        .d-togocup { background-image: var(--img-togocup); width: 24px; height: 40px; }
        .d-cinnamon { background-image: var(--img-cinnamon); width: 36px; height: 29px; }
        .d-moka { background-image: var(--img-moka); width: 30px; height: 40px; }
        .d-lattglass { background-image: var(--img-lattglass); width: 26px; height: 37px; }
        .d-roll { background-image: var(--img-roll); width: 30px; height: 40px; }
        .d-pudding { background-image: var(--img-pudding); width: 32px; height: 34px; }

        .scene {
            background-size: contain; background-repeat: no-repeat; background-position: center;
            display: block; margin: 0 auto;
        }
        .scene.cheers { background-image: var(--img-cheers); width: min(80vw, 330px); height: min(68vw, 282px); }

        .empty-stage .scene { margin-bottom: 8px; }
        .sticker-strip .doodle { width: 34px; height: 36px; }

        /* ====================================================
           QUALITY OF LIFE
           ==================================================== */

        /* --- Snelle voorproef als je een speld aantikt --- */
        .spot-peek {
            position: fixed; left: 50%; transform: translateX(-50%) translateY(20px);
            bottom: calc(150px + env(safe-area-inset-bottom));
            width: calc(100% - 28px); max-width: 430px; z-index: 1150;
            background: #fffdf6; border: 2.5px solid var(--riso-blue); border-radius: 18px;
            box-shadow: 5px 5px 0px var(--riso-blue);
            display: flex; gap: 12px; align-items: center; padding: 10px 12px 10px 10px;
            opacity: 0; pointer-events: none; transition: opacity 0.18s ease, transform 0.18s ease;
        }
        .spot-peek.on { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
        .spot-peek .pk-img {
            width: 66px; height: 66px; border-radius: 10px; object-fit: cover; flex-shrink: 0;
            border: 2px solid var(--riso-blue); background: #fff;
        }
        .spot-peek .pk-none {
            width: 66px; height: 66px; border-radius: 10px; flex-shrink: 0;
            border: 2px solid var(--riso-blue); background: var(--riso-blue-light);
            display: flex; align-items: center; justify-content: center;
        }
        .spot-peek .pk-body { flex: 1; min-width: 0; }
        .spot-peek .pk-name {
            font-family: var(--font-hand); font-size: 21px; color: var(--riso-blue); line-height: 1.05;
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block;
        }
        .spot-peek .pk-sub {
            font-family: var(--font-mono); font-size: 10px; font-weight: 800; color: var(--text-muted);
            display: block; margin: 2px 0 4px 0;
        }
        .spot-peek .pk-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
        .spot-peek .pk-actions .popup-btn { min-height: 32px; padding: 4px 12px; font-size: 10px; }
        .spot-peek .pk-x {
            position: absolute; top: -10px; right: -8px; width: 26px; height: 26px; border-radius: 50%;
            background: #fffdf6; border: 2px solid var(--riso-blue); color: var(--riso-blue);
            font-size: 14px; line-height: 1; display: flex; align-items: center; justify-content: center;
            cursor: pointer;
        }

        /* --- Zoeken in je archief --- */
        .feed-search {
            display: flex; align-items: center; gap: 8px; margin: 0 0 12px 0;
            background: #fffdf6; border: 2px solid var(--riso-blue); border-radius: 9999px;
            padding: 4px 6px 4px 14px;
        }
        .feed-search input {
            flex: 1; border: none !important; background: transparent !important; box-shadow: none !important;
            margin: 0 !important; padding: 8px 0 !important; font-size: 16px;
        }
        .feed-search .doodle { flex-shrink: 0; }
        .feed-search .clear {
            display: none; width: 30px; height: 30px; border-radius: 50%; border: none;
            background: var(--riso-blue); color: #fff; font-size: 14px; cursor: pointer;
        }
        .feed-search.has .clear { display: block; }

        /* --- Trek omlaag om te verversen --- */
        .ptr {
            height: 0; overflow: hidden; text-align: center; transition: height 0.2s ease;
            font-family: var(--font-mono); font-size: 10px; font-weight: 900; color: var(--riso-blue);
            display: flex; align-items: center; justify-content: center; gap: 8px;
        }
        .ptr.armed, .ptr.busy { height: 44px; }
        .ptr .cat-stamp { width: 46px; height: 22px; }
        @keyframes ptrWobble { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
        .ptr.busy .cat-stamp { animation: ptrWobble 0.6s ease-in-out infinite; }

        /* --- Uitdagingen in het paspoort --- */
        .challenge { padding: 9px 0; border-bottom: 1.5px dashed rgba(15, 53, 190, 0.25); }
        .challenge .ch-head {
            display: flex; justify-content: space-between; align-items: baseline;
            font-family: var(--font-mono); font-size: 11px; font-weight: 900; color: var(--riso-blue);
        }
        .challenge .ch-head span:last-child { font-size: 10px; color: var(--text-muted); }
        .challenge .ch-bar {
            height: 8px; border-radius: 9999px; border: 1.5px solid var(--riso-blue);
            margin-top: 6px; overflow: hidden; background: #fff;
        }
        .challenge .ch-bar i { display: block; height: 100%; background: var(--riso-blue); border-radius: 9999px; }
        .challenge.done .ch-head span:first-child::after { content: " \2713"; }
        .challenge.done .ch-bar i { background: var(--riso-yellow); border-right: 2px solid var(--riso-blue); }
        /* ====================================================
           ALLE TEKENINGEN, INGEBAKKEN ZODAT HET BESTAND OP ZICHZELF STAAT
           ==================================================== */
        :root {
        }

        /* Onboarding: krabbels in een rij boven de tekening, nooit erover */
        .onb-doodles {
            display: flex; align-items: flex-end; justify-content: space-between;
            width: min(84vw, 360px); margin: 0 auto 6px auto; padding: 0 6px;
            min-height: 64px;
        }
        .onb-doodles .doodle { width: 58px; height: 62px; opacity: 0.92; }
        .onb-doodles .doodle.small { width: 26px; height: 30px; margin-bottom: 10px; }
        .onb-slide.blue .onb-doodles .doodle,
        .onb-slide.blue .onb-big { filter: brightness(0) invert(1) drop-shadow(0 0 0.6px #fffdf6); }
        .onb-slide .onb-doodle { display: none; }
        .onb-big.logo { background-image: var(--img-logo); width: min(70vw, 290px); height: min(56vw, 232px); }
        .onb-big.square { width: min(48vw, 190px); height: min(48vw, 190px); }
        .scene.cheers { width: min(66vw, 270px); height: min(66vw, 270px); }
        @media (max-height: 700px) {
            .onb-doodles { min-height: 48px; }
            .onb-doodles .doodle { width: 44px; height: 48px; }
            .onb-big.logo { height: min(44vw, 180px); }
            .onb-big.square { width: min(38vw, 150px); height: min(38vw, 150px); }
            .scene.cheers { width: min(54vw, 220px); height: min(54vw, 220px); }
            .onb-h { font-size: clamp(32px, 9vw, 46px); }
        }

        /* Stap-krabbels op de rand van de kaart, niet over de invoer */
        .step-art { top: -30px; right: 8px; }
        .preview-card .step-art { display: none; }

        /* ====================================================
           QOL RONDE 2: GEBAREN, UNDO, SORTEREN, SUGGESTIES
           ==================================================== */
        /* Stapkrabbels: netjes in een koprij, niet meer los over de kaart */
        .step-art { display: none; }
        .card-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
        .card-head-row .doodle { flex-shrink: 0; margin-top: -4px; }

        /* Sorteren in de feed */
        .feed-sort { display: flex; gap: 6px; margin: -4px 0 12px 0; }
        .feed-sort button {
            flex: 1; border: 1.5px solid var(--riso-blue); border-radius: 9999px; background: transparent;
            padding: 6px 4px; font-family: var(--font-mono); font-size: 10px; font-weight: 900;
            color: var(--riso-blue); cursor: pointer;
        }
        .feed-sort button.on { background: var(--riso-blue); color: #fffdf6; }

        /* Vorige keer-chip in het toevoegvenster */
        .last-chip {
            display: none; align-items: center; gap: 8px; margin: 6px 0 4px 0;
            border: 1.5px dashed var(--riso-blue); border-radius: 9999px; padding: 6px 12px;
            font-family: var(--font-mono); font-size: 10px; font-weight: 800; color: var(--riso-blue); cursor: pointer;
        }
        .last-chip.on { display: inline-flex; }

        /* Voorgestelde curators tussen de kaarten */
        .suggest-card { padding: 14px 16px; }
        .suggest-card .sc-title { font-size: 22px; margin-bottom: 4px; }
        .suggest-row { display: flex; gap: 10px; overflow-x: auto; padding: 6px 0 4px 0; scrollbar-width: none; }
        .suggest-row::-webkit-scrollbar { display: none; }
        .suggest-tile {
            flex: 0 0 132px; text-align: center; border: 2px solid var(--riso-blue); border-radius: 16px;
            padding: 12px 8px 10px 8px; background: #fff;
        }
        .suggest-tile .ava {
            width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 8px auto; overflow: hidden;
            border: 2px solid var(--riso-blue); display: flex; align-items: center; justify-content: center;
        }
        .suggest-tile .ava img { width: 100%; height: 100%; object-fit: cover; }
        .suggest-tile b { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--riso-blue); }
        .suggest-tile span { display: block; font-family: var(--font-mono); font-size: 9px; color: var(--text-muted); margin: 2px 0 8px 0; }
        .suggest-tile .popup-btn { width: 100%; justify-content: center; min-height: 32px; padding: 4px; font-size: 10px; }

        /* Undo-toast met knop */
        .toast .undo {
            margin-left: 6px; border: 1.5px solid var(--riso-blue); background: var(--riso-yellow);
            border-radius: 9999px; padding: 4px 10px; font-family: var(--font-mono); font-size: 10px;
            font-weight: 900; color: var(--riso-blue); cursor: pointer; pointer-events: auto;
        }
        .toast.with-undo { pointer-events: auto; }

        /* Fotoviewer: knijpen om te zoomen */
        #photoViewerImg { touch-action: none; transform-origin: center center; transition: transform 0.08s linear; }

        /* Installatiegids */
        .install-step { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1.5px dashed rgba(15, 53, 190, 0.25); }
        .install-step:last-child { border-bottom: none; }
        .install-step .num {
            width: 30px; height: 30px; border-radius: 50%; background: var(--riso-blue); color: #fffdf6;
            font-family: var(--font-hand); font-size: 17px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
        }
        .install-step p { margin: 0; font-family: var(--font-mono); font-size: 12px; font-weight: 700; line-height: 1.5; color: var(--riso-blue); }
        .install-step p span { display: block; font-weight: 700; opacity: 0.6; font-size: 10.5px; margin-top: 2px; }
        .platform-switch { display: flex; gap: 8px; margin: 4px 0 10px 0; }
        .platform-switch button {
            flex: 1; padding: 8px; border-radius: 9999px; border: 2px solid var(--riso-blue); background: transparent;
            font-family: var(--font-mono); font-size: 11px; font-weight: 900; color: var(--riso-blue); cursor: pointer;
        }
        .platform-switch button.on { background: var(--riso-blue); color: #fffdf6; }



        /* ====================================================
           PRESTATIES
           ==================================================== */
        .spot-card, .suggest-card { content-visibility: auto; contain-intrinsic-size: 1px 520px; }
        .sc-polaroid img, .disc-tile img, .insta-grid-item img { content-visibility: auto; }
        .load-more {
            width: 100%; margin: 4px 0 20px 0; background: transparent;
            border: 2px dashed var(--riso-blue); border-radius: 14px; padding: 12px;
            font-family: var(--font-mono); font-size: 11px; font-weight: 900; color: var(--riso-blue);
            text-transform: uppercase; letter-spacing: 0.6px; cursor: pointer;
        }

        /* Datumveld: iOS centreert en maakt hem hoger; hier gelijk aan de andere velden */
        input[type="date"] {
            -webkit-appearance: none; appearance: none;
            display: block; width: 100%; min-height: 46px;
            text-align: left; font-family: var(--font-body); font-weight: 700;
            color: var(--riso-blue); background: #ffffff;
            padding: 10px 14px !important; line-height: 1.2;
        }
        input[type="date"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
        input[type="date"]::-webkit-calendar-picker-indicator { opacity: 0.7; filter: invert(20%) sepia(60%) saturate(500%) hue-rotate(200deg); }

        /* Bewerkknopje op je eigen tegels in het profiel */
        .insta-grid-item { position: relative; }
        .tile-edit {
            position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%;
            background: #fffdf6; border: 2px solid var(--riso-blue); color: var(--riso-blue);
            font-size: 14px; line-height: 1; display: flex; align-items: center; justify-content: center;
            cursor: pointer; z-index: 2;
        }

        /* ====================================================
           DE KAT IN ANDERE HOUDINGEN
           ==================================================== */
        .pose {
            display: block; background-size: contain; background-repeat: no-repeat; background-position: center;
            margin: 0 auto;
        }
        .pose.sm { width: 92px; height: 70px; }
        .pose.md { width: 150px; height: 112px; }
        .pose.lg { width: 210px; height: 158px; }
        .pose-coffee { background-image: var(--img-pose-coffee); }
        .pose-tote { background-image: var(--img-pose-tote); }
        .pose-reading { background-image: var(--img-pose-reading); }
        .pose-headphones { background-image: var(--img-pose-headphones); }
        .pose-sleeping { background-image: var(--img-pose-sleeping); }
        .pose-stretch { background-image: var(--img-pose-stretch); }
        .pose-laptop { background-image: var(--img-pose-laptop); }
        .pose-backpack { background-image: var(--img-pose-backpack); }
        .pose-peek { background-image: var(--img-pose-peek); }
        .pose-cupup { background-image: var(--img-pose-cupup); }
        .pose-books { background-image: var(--img-pose-books); }
        .pose-map { background-image: var(--img-pose-map); }
        .pose-terrace { background-image: var(--img-pose-terrace); }
        .pose-skate { background-image: var(--img-pose-skate); }
        .pose-incup { background-image: var(--img-pose-incup); }
        .pose-lying { background-image: var(--img-pose-lying); }
        .pose-heart { background-image: var(--img-pose-heart); }
        .pose-walking { background-image: var(--img-pose-walking); }
        .pose-lamppost { background-image: var(--img-pose-lamppost); }
        .pose-bench { background-image: var(--img-pose-bench); }
        .pose-yoga { background-image: var(--img-pose-yoga); }
        .pose-balloon { background-image: var(--img-pose-balloon); }
        .pose-signpost { background-image: var(--img-pose-signpost); }
        .pose-bag { background-image: var(--img-pose-bag); }
        .pose-camera { background-image: var(--img-pose-camera); }
        .pose-rain { background-image: var(--img-pose-rain); }
        .pose-bookshelf { background-image: var(--img-pose-bookshelf); }
        .empty-stage .pose { margin-bottom: 8px; }
        .bar-pose { width: 56px; height: 42px; flex-shrink: 0; margin: 0; }

        /* Profielfoto: nette dubbele ring, geen gele schaduw meer */
        .insta-avatar-ring {
            padding: 3px; background: var(--riso-blue); box-shadow: none;
            border: 2px solid #fffdf6; outline: 2.5px solid var(--riso-blue);
        }
        .insta-avatar-img { border: 3px solid #fffdf6; }

        /* ====================================================
           SUGGESTIES OP LOCATIE + RONDLEIDING
           ==================================================== */
        .place-suggest { display: none; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
        .place-suggest.on { display: flex; }
        .place-suggest .lbl {
            width: 100%; font-family: var(--font-mono); font-size: 9.5px; font-weight: 900;
            color: var(--text-muted); letter-spacing: 0.5px;
        }
        .place-suggest button {
            border: 1.5px solid var(--riso-blue); border-radius: 9999px; background: #fff;
            padding: 6px 12px; font-family: var(--font-mono); font-size: 11px; font-weight: 800;
            color: var(--riso-blue); cursor: pointer; max-width: 100%; white-space: nowrap;
            overflow: hidden; text-overflow: ellipsis;
        }
        .place-suggest button.on { background: var(--riso-blue); color: #fffdf6; }

        /* Rondleiding: een gat in een donkere laag rond het onderdeel, met een kaartje ernaast */
        .tour { position: fixed; inset: 0; z-index: 9400; display: none; }
        .tour.on { display: block; }
        .tour-hole {
            position: absolute; border-radius: 18px;
            box-shadow: 0 0 0 9999px rgba(15, 53, 190, 0.62);
            border: 3px solid var(--riso-yellow);
            transition: all 0.25s ease; pointer-events: none;
        }
        .tour-card {
            position: absolute; left: 16px; right: 16px; max-width: 420px; margin: 0 auto;
            background: #fffdf6; border: 2.5px solid var(--riso-blue); border-radius: 20px;
            box-shadow: 5px 5px 0px var(--riso-blue); padding: 14px 16px 14px 16px;
            transition: top 0.25s ease, bottom 0.25s ease;
        }
        .tour-card .pose { width: 128px; height: 92px; margin: 2px auto 8px auto; }
        .tour-card .tk { font-family: var(--font-mono); font-size: 9.5px; font-weight: 900; color: var(--text-muted); letter-spacing: 1px; }
        .tour-card h3 { font-family: var(--font-hand); font-size: 24px; color: var(--riso-blue); margin: 2px 0 6px 0; line-height: 1.05; }
        .tour-card p { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--riso-blue); line-height: 1.5; margin: 0 0 12px 0; }
        .tour-card .row { display: flex; gap: 8px; align-items: center; }
        .tour-card .btn-primary { margin: 0; flex: 1; padding: 10px; font-size: 11px; }
        .tour-card .skip { background: none; border: none; font-family: var(--font-mono); font-size: 10px; font-weight: 900; color: var(--text-muted); cursor: pointer; padding: 8px; }
        .tour-dots { display: flex; gap: 5px; justify-content: center; margin-bottom: 10px; }
        .tour-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(15, 53, 190, 0.25); }
        .tour-dots i.on { background: var(--riso-blue); }

        /* ====================================================
           MELDINGSBEL, ZOEKRESULTATEN MET FOTO, CHATLIJST
           ==================================================== */
        @keyframes bellRing { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-12deg); } 40% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(4deg); } }
        .riso-btn.has-alert svg { animation: bellRing 0.6s ease; }
        .badge-dot {
            position: absolute; top: 4px; right: 4px; width: 11px; height: 11px; border-radius: 50%;
            background: var(--riso-yellow); border: 2px solid var(--bg-paper); display: none;
        }
        .badge-dot.pulse { animation: badgePulse 1.4s ease-in-out infinite; }
        @keyframes badgePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 209, 102, 0.7); } 70% { box-shadow: 0 0 0 6px rgba(255, 209, 102, 0); } }

        /* Zoekresultaten: kleine avatar in plaats van alleen een pootje */
        .search-item .sr-ava {
            width: 26px; height: 26px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
            border: 1.5px solid var(--riso-blue); background: #fff; display: flex; align-items: center; justify-content: center;
        }
        .search-item .sr-ava img { width: 100%; height: 100%; object-fit: cover; }
        .search-item .sr-row { display: flex; align-items: center; gap: 8px; }

        /* Chatlijst: laatste bericht + tijd + ongelezen-stip */
        .chat-list-item {
            display: flex; align-items: center; gap: 10px; padding: 10px 0;
            border-bottom: 1px dashed rgba(15, 53, 190, 0.2); cursor: pointer;
        }
        .chat-list-item .cl-ava {
            width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
            border: 2px solid var(--riso-blue); background: #fff; display: flex; align-items: center; justify-content: center;
        }
        .chat-list-item .cl-ava img { width: 100%; height: 100%; object-fit: cover; }
        .chat-list-item .cl-body { flex: 1; min-width: 0; }
        .chat-list-item .cl-top { display: flex; justify-content: space-between; gap: 8px; }
        .chat-list-item .cl-name { font-weight: 900; font-size: 14px; color: var(--riso-blue); }
        .chat-list-item .cl-time { font-family: var(--font-mono); font-size: 9.5px; color: var(--text-muted); flex-shrink: 0; }
        .chat-list-item .cl-preview {
            font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted);
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px;
        }
        .chat-list-item.unread .cl-name { color: var(--riso-blue); }
        .chat-list-item.unread .cl-preview { color: var(--riso-blue); font-weight: 800; }
        .chat-list-item .cl-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--riso-yellow); flex-shrink: 0; display: none; }
        .chat-list-item.unread .cl-dot { display: block; }

        /* Het ⋯-menu op een profiel, zoals Instagram: blokkeren zit erachter */
        .profile-menu {
            display: none; position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 190px;
            background: #fffdf6; border: 2px solid var(--riso-blue); border-radius: 14px;
            box-shadow: 4px 4px 0px var(--riso-blue); padding: 6px; text-align: left;
        }
        .profile-menu.on { display: block; }
        .profile-menu button {
            display: block; width: 100%; text-align: left; background: none; border: none; cursor: pointer;
            padding: 10px 12px; border-radius: 10px; font-family: var(--font-mono); font-size: 12px; font-weight: 800;
            color: var(--riso-blue);
        }
        .profile-menu button:active { background: var(--riso-blue-light); }

        /* ====================================================
           STARTSTAP: eerste spots en eerste curators
           ==================================================== */
        .starter { position: fixed; inset: 0; z-index: 9450; background: var(--bg-paper); display: none; overflow-y: auto; }
        .starter.on { display: block; }
        .starter-inner { padding: calc(56px + env(safe-area-inset-top)) 22px calc(120px + env(safe-area-inset-bottom)) 22px; max-width: 480px; margin: 0 auto; }
        .starter .pose { margin-bottom: 6px; }
        .starter h2 { font-family: var(--font-hand); font-size: 34px; color: var(--riso-blue); line-height: 1; margin: 0 0 6px 0; text-align: center; }
        .starter .sub { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--riso-blue); text-align: center; margin: 0 0 18px 0; line-height: 1.5; }
        .starter .mono-tag { display: block; margin: 18px 0 8px 0; }
        .pick-list { display: flex; flex-direction: column; gap: 8px; }
        .pick {
            display: flex; align-items: center; gap: 10px; padding: 11px 12px;
            background: #fffdf6; border: 2px solid var(--riso-blue); border-radius: 14px;
            box-shadow: 3px 3px 0px var(--riso-blue); cursor: pointer;
        }
        .pick .nm { flex: 1; font-family: var(--font-mono); font-size: 12.5px; font-weight: 900; color: var(--riso-blue); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .pick .nm span { display: block; font-weight: 700; font-size: 10px; opacity: 0.6; }
        .pick .chk {
            width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--riso-blue); flex-shrink: 0;
            display: flex; align-items: center; justify-content: center; font-size: 14px; color: #fffdf6;
        }
        .pick.on { background: var(--riso-blue-light); }
        .pick.on .chk { background: var(--riso-blue); }
        .pick .ava { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; border: 2px solid var(--riso-blue); background: #fff; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
        .pick .ava img { width: 100%; height: 100%; object-fit: cover; }
        .starter-foot {
            position: fixed; left: 0; right: 0; bottom: calc(20px + env(safe-area-inset-bottom)); padding: 0 22px; max-width: 480px; margin: 0 auto;
        }
        .starter-foot .btn-primary { margin: 0; }
        .starter .skip { display: block; margin: 10px auto 0 auto; background: none; border: none; font-family: var(--font-mono); font-size: 10px; font-weight: 900; color: var(--text-muted); cursor: pointer; }
        .onb-hint { font-family: var(--font-mono); font-size: 10px; font-weight: 700; color: var(--text-muted); margin-top: 18px; }

        /* ====================================================
           INLOGGEN IN ÉÉN TIK
           ==================================================== */
        .oauth-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
        .oauth-btn {
            display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
            padding: 12px; border-radius: 9999px; border: 2px solid var(--riso-blue); background: #ffffff;
            font-family: var(--font-body); font-weight: 900; font-size: 13px; color: var(--riso-blue); cursor: pointer;
            box-shadow: 3px 3px 0px var(--riso-blue);
        }
        .oauth-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0px var(--riso-blue); }
        .oauth-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
        .oauth-btn.apple { background: #111; color: #fff; border-color: #111; box-shadow: 3px 3px 0px var(--riso-blue); }
        .oauth-or {
            display: flex; align-items: center; gap: 10px; margin: 4px 0 12px 0;
            font-family: var(--font-mono); font-size: 10px; font-weight: 900; color: var(--text-muted);
        }
        .oauth-or::before, .oauth-or::after { content: ""; flex: 1; border-top: 1.5px dashed rgba(15, 53, 190, 0.3); }
        #usernameModal .draw-card input { margin-bottom: 8px; }

        /* ====================================================
           QOL RONDE 3
           ==================================================== */
        @keyframes btnBounce { 0% { transform: scale(1); } 40% { transform: scale(1.14); } 100% { transform: scale(1); } }
        .bounce { animation: btnBounce 0.32s cubic-bezier(.3,1.6,.5,1); }

        /* Geen foto? Een duidelijk vak om er een toe te voegen (alleen op je eigen spots) */
        .sc-addphoto {
            display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
            width: 100%; aspect-ratio: 4 / 3; border: 2.5px dashed var(--riso-blue); border-radius: 14px;
            background: var(--riso-blue-light); cursor: pointer; font-family: var(--font-mono); font-size: 11px;
            font-weight: 900; color: var(--riso-blue); text-transform: uppercase; letter-spacing: 0.5px;
        }
        .sc-addphoto .big { font-size: 28px; line-height: 1; }

        /* Skeletkaarten tijdens het laden */
        @keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
        .skel {
            background: #fffdf6; border: 2.5px solid rgba(15, 53, 190, 0.35); border-radius: 20px; padding: 16px; margin-bottom: 14px;
            box-shadow: 4px 4px 0px rgba(15, 53, 190, 0.35);
        }
        .skel i {
            display: block; border-radius: 8px; margin-bottom: 10px;
            background: linear-gradient(90deg, rgba(15,53,190,0.08) 25%, rgba(15,53,190,0.16) 50%, rgba(15,53,190,0.08) 75%);
            background-size: 800px 100%; animation: shimmer 1.3s linear infinite;
        }
        .skel .ph { height: 150px; border-radius: 12px; }

        /* Banner: je zit in de browser van WhatsApp/Instagram */
        .inapp-bar {
            display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 9600;
            background: var(--riso-yellow); border-bottom: 2.5px solid var(--riso-blue);
            padding: calc(10px + env(safe-area-inset-top)) 14px 10px 14px;
            font-family: var(--font-mono); font-size: 11px; font-weight: 800; color: var(--riso-blue);
            align-items: center; gap: 10px;
        }
        .inapp-bar.on { display: flex; }
        .inapp-bar .txt { flex: 1; line-height: 1.4; }
        .inapp-bar .popup-btn { min-height: 32px; padding: 4px 12px; font-size: 10px; flex-shrink: 0; }
        .inapp-bar .x { background: none; border: none; font-size: 18px; color: var(--riso-blue); cursor: pointer; padding: 0 4px; }
        body.inapp .app-header { margin-top: 56px; }

        .insta-tab-btn small { font-weight: 700; opacity: 0.6; margin-left: 3px; }

        /* koptelefoon-stand: de kat in de kop zet zijn koptelefoon op */
        body.headphones .header-logo-mark { background-image: var(--img-pose-headphones) !important; }
        body.headphones .splash-art-wrap { filter: hue-rotate(8deg); }
        /* ====================================================
           UITSTRALING v2 — rustiger, meer papier en inkt
           ==================================================== */

        /* 1. De kaart in blauwe inkt op papier (filter #riso-map staat bovenaan de body) */
        #map { background: var(--bg-paper); }
        /* (de kaarttegels worden in de code zelf ingekleurd, zie RisoTileLayer) */

        /* 2. Minder randen en schaduwen: de stickerstijl alleen waar hij telt */
        .popup-btn { box-shadow: none; border-width: 1.5px; }
        .popup-btn.route { box-shadow: 2px 2px 0 var(--riso-yellow); }
        .search-box, .riso-btn, input, select, textarea { box-shadow: none; }
        .search-box { border-width: 1.5px; }
        .filter-bar {
            box-shadow: none; border: 1.5px solid rgba(15, 53, 190, 0.35);
            background: rgba(247, 243, 234, 0.92); padding: 5px 8px;
            backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
        }
        .filter-chip { border-width: 1px; padding: 4px 11px; font-size: 9px; }
        .guest-banner { box-shadow: none; border-width: 1.5px; }
        .guest-banner .gb-close {
            background: none; border: none; color: var(--riso-blue); font-size: 20px; line-height: 1;
            padding: 0 2px 0 4px; cursor: pointer; flex-shrink: 0; opacity: 0.6;
        }
        body.guest-banner-off .guest-banner { display: none !important; }
        body.guest-banner-off .filter-bar ~ .guest-banner { display: none !important; }
        .sc-tags span { border-width: 1.5px; padding: 3px 10px; font-size: 9.5px; }

        /* 3. Rustigere spotkaart: één dunne actieregel */
        .sc-actions-v2 {
            display: flex; align-items: center; gap: 2px; flex-wrap: nowrap;
            margin-top: 12px; padding-top: 8px;
            border-top: 1.5px dashed rgba(15, 53, 190, 0.3);
        }
        .sc-act {
            background: none; border: none; box-shadow: none; cursor: pointer;
            font-family: var(--font-mono); font-size: 11px; font-weight: 800;
            color: var(--riso-blue); padding: 8px 8px; border-radius: 9999px;
            display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
            text-decoration: none; text-transform: none; min-height: 36px;
        }
        .sc-act:active { background: var(--riso-blue-light); }
        .sc-act.active-action { background: var(--riso-blue-light); }
        .sc-act.sc-route {
            margin-left: auto; border: 1.5px solid var(--riso-blue); padding: 6px 12px; min-height: 0;
        }
        .checkin-row { margin: 8px 0 0 0; }
        #feedView .sc-note { margin: 8px 0; }
        #feedView .sc-note + .sc-order { margin-top: -4px; }
        #feedView .draw-row { align-items: flex-start; }

        /* 4. Een tekening als er geen (werkende) foto is */
        .sc-illo-wrap {
            position: relative; cursor: pointer;
            background: #ffffff; border: 2px solid var(--riso-blue); border-radius: 3px;
            padding: 7px 7px 9px 7px; transform: rotate(1.3deg);
        }
        .sc-illo {
            width: 100%; aspect-ratio: 1 / 1.08;
            background-color: var(--riso-blue-light);
            background-size: 62% auto; background-repeat: no-repeat; background-position: center;
        }
        .sc-polaroid .sc-illo { display: block; }
        .sc-illo-add {
            position: absolute; left: 11px; bottom: 13px;
            background: var(--riso-blue); color: #ffffff;
            font-family: var(--font-mono); font-size: 9px; font-weight: 900; text-transform: uppercase;
            padding: 3px 8px; border-radius: 9999px;
        }

        /* 5. Rustiger bovenkant van de feed: titel, dan de keuze eronder */
        #txtFeedTag, #txtFeedIntro { display: none; }
        #feedView .scrollable-view > div:first-child {
            flex-direction: column; align-items: flex-start !important; gap: 10px;
        }

        /* 6. Twee lettertypes: handschrift voor koppen, mono voor de rest */
        :root { --font-editorial: var(--font-hand); }
        .btn-primary { letter-spacing: 0.4px; }

        /* ====================================================
           UITSTRALING v3 — iconen, risodruk, spelden, beweging
           ==================================================== */

        /* 1. Getekende iconen in de actieregel */
        .sc-act .ico { width: 18px; height: 18px; display: inline-block; }
        .sc-act.active-action .ico { filter: drop-shadow(0 0 0 var(--riso-blue)); }

        /* 2. Rustiger spotpagina */
        #spotBottomSheet { border: none; box-shadow: 0 -8px 28px rgba(15, 53, 190, 0.18); }
        .dc-photo img { max-height: 300px; }
        .dc-signin {
            display: block; width: 100%; margin: 10px 0 4px 0; padding: 12px 14px;
            background: var(--riso-blue-light); border: 1.5px dashed var(--riso-blue); border-radius: 14px;
            color: var(--riso-blue); font-family: var(--font-mono); font-size: 11.5px; font-weight: 800;
            text-align: left; cursor: pointer;
        }

        /* 3. Risodruk: lichte korrel over het papier en een verschoven gele drukgang */
        body::after {
            content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 99990;
            opacity: 0.07;
            background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.06  0 0 0 0 0.2  0 0 0 0 0.75  0 0 0 1.6 -0.35'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
        }
        .hand-title, .sc-title, .add-sheet-title { text-shadow: 1.6px 1.4px 0 rgba(254, 209, 86, 0.95); }

        /* 4. Getekende spelden: ver weg alleen het kattenkopje */
        .pill-icon { display: flex; align-items: center; justify-content: center; }
        .custom-pill-marker { border-radius: 9999px 9999px 9999px 9999px / 9999px 9999px 9999px 9999px; transition: padding .2s ease; }
        .map-far .custom-pill-marker { padding: 5px; gap: 0; border-radius: 52% 48% 55% 45% / 47% 55% 45% 53%; }
        .map-far .custom-pill-marker .pm-name, .map-far .custom-pill-marker .pm-rate { display: none; }
        .map-far .custom-pill-marker svg { width: 18px; height: 18px; }
        .custom-cluster-icon {
            background: var(--bg-paper); font-family: var(--font-hand); font-size: 15px;
            border-radius: 52% 48% 55% 45% / 47% 55% 45% 53%;
            box-shadow: 2px 2px 0 var(--riso-blue);
        }

        /* 6. Filters onder één knop */
        .filter-bar { left: 14px; transform: none; width: auto; max-width: calc(100% - 28px); }
        .filter-bar:not(.open) .filter-chip:not(.active):not(.filter-toggle) { display: none; }
        .filter-bar.open { flex-wrap: wrap; border-radius: 18px; overflow: visible; }
        .filter-toggle { display: inline-flex; align-items: center; gap: 4px; }
        .filter-toggle .ft-ico { width: 14px; height: 14px; }
        .filter-bar.open { background: var(--bg-paper); box-shadow: 0 8px 22px rgba(15, 53, 190, 0.15); }
        .filter-bar.open .filter-toggle { background: var(--riso-blue); color: #fff; }

        /* 8. Zachte beweging */
        .modal-sheet { transition: transform 0.42s cubic-bezier(0.2, 1.15, 0.35, 1); }
        .spot-sheet { transition: transform 0.38s cubic-bezier(0.2, 1.12, 0.35, 1); }
        .view-section { transform: translateY(8px); transition: opacity 0.25s ease, transform 0.32s cubic-bezier(0.2, 0.9, 0.3, 1); }
        .view-section.active { transform: none; }
        #mapView { transform: none !important; }   /* de kaart zelf niet verschuiven */
        @media (prefers-reduced-motion: reduce) {
            .modal-sheet, .spot-sheet, .view-section { transition: none !important; transform: none !important; }
        }

        /* 9. Inzoomen mag, dubbeltik-zoom niet; ruimere tikvlakken */
        html { touch-action: manipulation; }
        .filter-chip { min-height: 30px; }
        .sc-act { min-height: 40px; }
        .draw-ico-btn { min-width: 40px; min-height: 40px; }

        /* 10. Snel opslaan */
        .quick-save {
            display: block; width: 100%; margin-top: 10px; padding: 10px; background: none;
            border: none; color: var(--riso-blue); font-family: var(--font-mono); font-size: 11px;
            font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
        }

        /* ====================================================
           UITSTRALING v4 — menu-iconen en wisselende stickers
           ==================================================== */
        .settings-menu-item { justify-content: flex-start; gap: 12px; }
        .settings-menu-item > span:last-child:not(:first-child) { margin-left: auto; }
        .menu-ico {
            width: 30px; height: 30px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
            background: #ffffff; border: 1.5px solid var(--riso-blue); border-radius: 52% 48% 55% 45% / 47% 55% 45% 53%;
        }
        .menu-ico svg {
            width: 19px; height: 19px; fill: none; stroke: var(--riso-blue);
            stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
        }
        .menu-ico .ico { width: 20px; height: 20px; }

        /* Stickers: starburst, ronde stempel of een plakbriefje */
        .sc-sticker.sk {
            background-image: none; display: flex; align-items: center; justify-content: center; text-align: center;
            font-family: var(--font-hand); line-height: 1.02; letter-spacing: 0.2px;
        }
        .sc-sticker.sk span { display: block; padding: 0 6px; }
        .sc-sticker.sk-burst {
            width: 80px; height: 80px; background: var(--riso-blue); color: #ffffff; font-size: 13px;
            clip-path: polygon(50% 0%, 59% 15%, 75% 6%, 76% 24%, 94% 25%, 85% 41%, 100% 50%, 85% 59%, 94% 75%, 76% 76%, 75% 94%, 59% 85%, 50% 100%, 41% 85%, 25% 94%, 24% 76%, 6% 75%, 15% 59%, 0% 50%, 15% 41%, 6% 25%, 24% 24%, 25% 6%, 41% 15%);
            transform: rotate(9deg); top: -24px; right: -18px;
        }
        .sc-sticker.sk-stamp {
            width: 76px; height: 76px; border-radius: 50%; background: var(--riso-yellow); color: var(--riso-blue);
            border: 2.5px solid var(--riso-blue); box-shadow: inset 0 0 0 4px var(--riso-yellow), inset 0 0 0 5.5px var(--riso-blue);
            font-size: 12.5px; transform: rotate(-10deg); top: -22px; right: -16px;
        }
        .sc-sticker.sk-tag {
            width: auto; height: auto; max-width: 112px; padding: 7px 8px 6px 8px;
            background: #fffdf6; color: var(--riso-blue); border: 2px solid var(--riso-blue); border-radius: 4px;
            box-shadow: 3px 3px 0 var(--riso-blue); font-size: 14px; transform: rotate(6deg); top: -16px; right: -12px;
        }
        .sc-sticker.sk-tag::before {
            content: ""; position: absolute; top: -9px; left: 50%; width: 42px; height: 14px; margin-left: -21px;
            background: rgba(254, 209, 86, 0.85); transform: rotate(-4deg);
        }

        /* Profiel: getekende iconen in plaats van emoji */
        .insta-tab-btn { gap: 6px; }
        .tab-ico { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
        .tab-ico-png { width: 15px; height: 15px; display: inline-block; opacity: 0.55; }
        .insta-tab-btn.active .tab-ico-png { opacity: 1; }
        #btnArchiveMenu::after, #btnSettingsToggle::after {
            content: ""; display: inline-block; width: 15px; height: 15px; margin-left: 8px; vertical-align: -3px;
            background-size: contain; background-repeat: no-repeat; background-position: center;
        }
        #btnArchiveMenu::after {
            background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 4.4h10.6c1.3 0 2.3 1 2.3 2.3v13H7.3c-1.3 0-2.3-1-2.3-2.3z'/><path d='M5 17.4c0-1.3 1-2.3 2.3-2.3h10.6'/><path d='M9 8.4h5.4'/></svg>");
        }
        #btnSettingsToggle::after {
            background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f35be' stroke-width='2.2' stroke-linecap='round'><path d='M4 7h9.4M17.6 7H20M4 17h2.6M10.8 17H20'/><circle cx='15.5' cy='7' r='2.1'/><circle cx='8.7' cy='17' r='2.1'/></svg>");
        }

        /* ====================================================
           UITSTRALING v5 — iconen overal, vandaag, offline, momenten
           ==================================================== */
        .i-ico { width: 15px; height: 15px; display: inline-block; vertical-align: -3px; flex-shrink: 0;
                 fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-right: 5px; }
        .i-img { background-size: contain; background-repeat: no-repeat; background-position: center; }
        .filter-chip .i-ico { width: 13px; height: 13px; margin-right: 4px; }
        .filter-chip.active .i-img { filter: brightness(0) invert(1); }
        .selectable-bubble .i-ico { width: 17px; height: 17px; margin-right: 6px; vertical-align: -4px; }
        .selectable-bubble.selected .i-img { filter: brightness(0) invert(1); }
        .emoji-pick .i-ico { width: 22px; height: 22px; margin: 0; }
        .emoji-pick.on .i-img { filter: brightness(0) invert(1); }
        .emoji-pick.on svg.i-ico { stroke: #ffffff; }
        .list-ico { width: 22px; height: 22px; margin: 0; }
        .pm-name .i-ico { width: 11px; height: 11px; margin-right: 3px; }
        .heart-burst svg { width: 76px; height: 76px; fill: var(--riso-blue); stroke: #ffffff; stroke-width: 1.4; }
        .tile-edit .i-ico { margin: 0; }

        /* Vandaag in je buurt */
        .today-card {
            display: flex; gap: 12px; align-items: center; margin: 0 7px 22px 0; padding: 14px 14px 14px 10px;
            background: var(--riso-yellow); border: 2.5px solid var(--riso-blue); border-radius: 20px;
            box-shadow: 5px 5px 0 var(--riso-blue); transform: rotate(-0.4deg);
        }
        .today-card .pose { width: 86px; height: 96px; flex-shrink: 0; margin: 0; }
        .today-card .tc-body { min-width: 0; flex: 1; }
        .today-card .sc-title { font-size: 24px; margin: 2px 0 4px 0; text-shadow: none; }
        .today-card .tc-where { display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 800; color: var(--riso-blue); }
        .today-card .tc-actions { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }

        /* Offline */
        .offline-pill {
            display: none; position: absolute; z-index: 1000; left: 14px; right: 14px;
            bottom: calc(156px + env(safe-area-inset-bottom));
            align-items: center; gap: 10px; padding: 8px 12px;
            background: #fffdf6; border: 1.5px dashed var(--riso-blue); border-radius: 14px;
            font-family: var(--font-mono); font-size: 10.5px; font-weight: 800; color: var(--riso-blue);
        }
        .offline-pill .pose { width: 54px; height: 32px; margin: 0; flex-shrink: 0; }
        body.is-offline .offline-pill { display: flex; }

        /* Momenten */
        .toast.moment { align-items: center; }
        .toast.moment .pose { width: 64px; height: 58px; margin: 0; flex-shrink: 0; }
        .toast.moment .m-body b { font-family: var(--font-hand); font-size: 17px; }

        /* Drift-opdrachtjes */
        .drift-prompt {
            max-width: 320px; margin: 0 auto 18px auto; padding: 12px 14px; text-align: center;
            background: #fffdf6; border: 2px solid var(--riso-blue); border-radius: 16px; box-shadow: 4px 4px 0 var(--riso-blue);
        }
        .drift-prompt .pose { display: block; width: 90px; height: 80px; margin: 0 auto 4px auto; }
        .drift-prompt p { font-family: var(--font-hand); font-size: 18px; line-height: 1.25; color: var(--riso-blue); margin: 4px 0 10px 0; }
        .drift-overlay.drift-free .drift-needle-dial, .drift-overlay.drift-free #driftDistanceText { display: none; }

        /* Profiel: laatst bezocht / wil ik heen */
        #profileRails { padding: 0 6px; }
        .pr-rail { margin: 4px 0 12px 0; }
        .pr-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 6px 2px 4px 2px; }
        .pr-row::-webkit-scrollbar { display: none; }
        .pr-chip {
            flex: 0 0 auto; width: 84px; background: #fffdf6; border: 1.5px solid var(--riso-blue); border-radius: 12px;
            padding: 5px; cursor: pointer; text-align: left; color: var(--riso-blue);
        }
        .pr-chip img, .pr-chip .pr-illo { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
        .pr-chip .pr-illo { background-color: var(--riso-blue-light); background-size: 64% auto; background-repeat: no-repeat; background-position: center; }
        .pr-chip > span:last-child {
            display: block; margin-top: 4px; font-family: var(--font-mono); font-size: 9.5px; font-weight: 800;
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        }

        /* ====================================================
           RONDE 3 — melden, account, admin, lijst voor gasten
           ==================================================== */
        .dc-report {
            display: inline-flex; align-items: center; margin: 14px 0 0 0; padding: 6px 0; background: none; border: none;
            color: var(--text-muted); font-family: var(--font-mono); font-size: 10.5px; font-weight: 800; cursor: pointer;
            text-decoration: underline; text-underline-offset: 3px;
        }
        #reportReasons { margin: 8px 0 12px 0; }
        #reportReasons .selectable-bubble { font-family: var(--font-mono); }
        .settings-menu-item.danger-item { color: #b00000; border-color: #d00000; background: #fff3f3; }
        .settings-menu-item.danger-item .menu-ico { border-color: #d00000; }
        .settings-menu-item.danger-item .menu-ico svg { stroke: #d00000; }
        .adm-row {
            display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 9px 0;
            border-bottom: 1px dashed rgba(15, 53, 190, 0.25); font-family: var(--font-mono); font-size: 11px; color: var(--riso-blue);
        }
        .adm-row span { flex-basis: 100%; opacity: 0.7; font-size: 10px; }
        .adm-row.open b::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--riso-yellow); border: 1.5px solid var(--riso-blue); margin-right: 6px; }
        .adm-row .popup-btn { padding: 4px 10px; font-size: 9px; min-height: 0; }
        .list-guest-cta {
            display: none; gap: 12px; align-items: center; flex-wrap: wrap; margin: 4px 0 14px 0; padding: 14px;
            background: var(--riso-yellow); border: 2.5px solid var(--riso-blue); border-radius: 18px; box-shadow: 5px 5px 0 var(--riso-blue);
        }
        .list-guest-cta .pose { width: 80px; height: 90px; margin: 0; flex-shrink: 0; }
        .list-guest-cta p { flex: 1; min-width: 160px; margin: 0; font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--riso-blue); }
        .list-guest-cta p b { font-family: var(--font-hand); font-size: 18px; font-weight: 400; }
        .list-guest-cta .btn-primary { flex-basis: 100%; margin-top: 0; }
