/* home.html's page styles, moved out of its <head> unchanged (seo.md M3, 2026-10-15) so browsers cache them.
   Loaded at the same place in the head, so the cascade order is the same. Bump ?v= in home.html on every edit. */
        /* Design tokens — one accent, neutral surface ramp, hairline borders.
           Elevation on dark = lighter surface + border, never colored glow. */
        :root {
            --v-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            --v-font-display: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            --v-title: #d7ecf4; /* icy, faintly cyan-tinted white — themed without neon */
            --v-surface-0: #0e1116;
            --v-surface-1: #151a21;
            --v-surface-2: #1b212a;
            --v-surface-3: #222933;
            --v-border: rgba(255, 255, 255, 0.08);
            --v-border-strong: rgba(255, 255, 255, 0.16);
            --v-text: rgba(255, 255, 255, 0.92);
            --v-text-2: rgba(255, 255, 255, 0.65);
            --v-text-3: rgba(255, 255, 255, 0.45);
            --v-accent: #67e8f9;
            --v-accent-strong: #22d3ee;
            --v-accent-soft: rgba(103, 232, 249, 0.12);
            --v-danger: #f87171;
            --v-shadow-overlay: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.45);
        }

        body {
            margin: 0;
            padding: 0;
            font-family: var(--v-font);
            overflow: hidden;
            overflow-x: hidden;
            background: #000408;
            touch-action: pan-y pinch-zoom;
            -webkit-tap-highlight-color: transparent;
        }

        html {
            overflow-x: hidden;
            width: 100%;
            height: 100%;
        }

        * {
            -webkit-tap-highlight-color: transparent;
        }

        .nav-button {
            background: rgba(0, 0, 0, 0.7);
            color: #00ffff;
            border: 2px solid rgba(0, 255, 255, 0.5);
            border-radius: 2px;
            padding: 8px 12px;
            margin: 4px;
            font-size: 13px;
            font-family: 'Arial', sans-serif;
            font-weight: 700;
            backdrop-filter: blur(10px);
            transition: all 0.3s cubic-bezier(0.17, 0.67, 0.83, 0.67);
            cursor: pointer;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            text-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff, 0 0 20px #ff00de;
            box-shadow: 0 0 20px rgba(0, 255, 255, 0.4), 0 0 40px rgba(255, 0, 222, 0.1), inset 0 0 10px rgba(0, 255, 255, 0.3);
            width: calc(50% - 12px);
            max-width: 180px;
            min-width: 140px;
            height: 60px;
            text-align: center;
            position: relative;
            overflow: hidden;
            clip-path: polygon( 0 0, 100% 0, 100% 70%, 95% 100%, 0 100% );
            z-index: 10000;
            flex-basis: calc(50% - 12px);
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 1.2;
            white-space: normal;
            word-wrap: break-word;
            -webkit-tap-highlight-color: transparent;
            user-select: none;
            -webkit-user-select: none;
        }

            .nav-button.initially-hidden {
                display: none;
            }

        .toggle-downloads-btn {
            position: fixed;
            top: 15px;
            left: 15px;
            background: rgba(0, 0, 0, 0.7);
            color: #00ffff;
            border: 2px solid rgba(0, 255, 255, 0.5);
            border-radius: 8px;
            padding: 8px 16px;
            font-size: 14px;
            font-weight: 700;
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
            cursor: pointer;
            text-transform: uppercase;
            letter-spacing: 1px;
            text-shadow: 0 0 5px #00ffff;
            box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
            z-index: 100002;
            -webkit-tap-highlight-color: transparent;
            user-select: none;
            -webkit-user-select: none;
        }

            .toggle-downloads-btn:hover {
                background: rgba(0, 50, 50, 0.8);
                border-color: #ff00de;
                box-shadow: 0 0 25px rgba(0, 255, 255, 0.6), 0 0 10px rgba(255, 0, 222, 0.4);
            }

        .downloads-container {
            position: fixed;
            left: 50%;
            transform: translateX(-50%);
            display: none;
            flex-direction: column;
            align-items: center;
            width: 100%;
            max-width: 800px;
            top: auto;
            bottom: 15%;
            max-height: 70vh;
            overflow-y: auto;
            overflow-x: hidden;
            text-align: center;
            z-index: 9999;
            padding: 20px;
            box-sizing: border-box;
        }

        /* Apple-style scrollbar for downloads container */
        .downloads-container::-webkit-scrollbar {
            width: 8px;
        }

        .downloads-container::-webkit-scrollbar-track {
            background: transparent;
        }

        .downloads-container::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 10px;
            border: 2px solid transparent;
            background-clip: padding-box;
        }

        .downloads-container::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.35);
            border-radius: 10px;
            border: 2px solid transparent;
            background-clip: padding-box;
        }

        /* Firefox scrollbar styling for downloads */
        .downloads-container {
            scrollbar-width: thin;
            scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
        }

        .downloads-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            width: 100%;
        }

        .download-card {
            background: rgba(0, 0, 0, 0.8);
            border: 2px solid rgba(0, 255, 255, 0.5);
            border-radius: 10px;
            padding: 20px;
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            box-shadow: 0 0 20px rgba(0, 255, 255, 0.3), inset 0 0 10px rgba(255, 0, 222, 0.2);
        }

            .download-card::before {
                content: '';
                position: absolute;
                top: 0;
                left: -100%;
                width: 100%;
                height: 100%;
                background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.3), transparent);
                transition: left 0.7s ease;
            }

            .download-card:hover::before {
                left: 100%;
            }

            .download-card:hover {
                transform: translateY(-5px);
                border-color: #ff00de;
                box-shadow: 0 0 30px rgba(0, 255, 255, 0.5), 0 0 20px rgba(255, 0, 222, 0.4);
            }

        .download-icon {
            width: 80px;
            height: 80px;
            margin: 0 auto 15px;
            background: rgba(0, 255, 255, 0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid rgba(0, 255, 255, 0.3);
        }

            .download-icon img {
                width: 50px;
                height: 50px;
                filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5));
            }

            .download-icon svg {
                width: 50px;
                height: 50px;
                fill: #00ffff;
                filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5));
            }

        #myAssistant {
            margin-bottom: 50px;
            width: 100% !important;
            height: 100% !important;
        }

        .download-title {
            color: #00ffff;
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 10px;
            text-transform: uppercase;
            letter-spacing: 2px;
            text-shadow: 0 0 10px #00ffff;
        }

        .download-description {
            color: #ffffff;
            font-size: 14px;
            margin-bottom: 15px;
            line-height: 1.4;
            opacity: 0.9;
        }

        .download-platforms {
            display: flex;
            gap: 10px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .platform-badge {
            background: rgba(0, 255, 255, 0.2);
            border: 1px solid rgba(0, 255, 255, 0.4);
            border-radius: 4px;
            padding: 4px 8px;
            font-size: 12px;
            color: #00ffff;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .download-button {
            background: linear-gradient(45deg, rgba(0, 255, 255, 0.3), rgba(255, 0, 222, 0.3));
            border: 2px solid #00ffff;
            color: #ffffff;
            padding: 10px 20px;
            margin-top: 15px;
            border-radius: 5px;
            font-weight: bold;
            text-transform: uppercase;
            letter-spacing: 2px;
            transition: all 0.3s ease;
            cursor: pointer;
            width: 100%;
            text-shadow: 0 0 5px rgba(0, 255, 255, 0.8);
        }

            .download-button:hover {
                background: linear-gradient(45deg, rgba(0, 255, 255, 0.5), rgba(255, 0, 222, 0.5));
                box-shadow: 0 0 20px rgba(0, 255, 255, 0.6), inset 0 0 10px rgba(255, 255, 255, 0.3);
                transform: scale(1.05);
            }

        .download-size {
            font-size: 12px;
            color: #888;
            margin-top: 5px;
        }

        @media (max-width: 768px) {
            .downloads-container {
                bottom: 10%;
                padding: 10px;
            }

            .downloads-grid {
                grid-template-columns: 1fr;
                gap: 15px;
            }

            .download-card {
                padding: 15px;
            }

            .download-icon {
                width: 60px;
                height: 60px;
            }

                .download-icon img,
                .download-icon svg {
                    width: 40px;
                    height: 40px;
                }

            .download-title {
                font-size: 16px;
            }

            .toggle-downloads-btn {
                padding: 6px 12px;
                font-size: 12px;
            }
        }

        .news-modal {
            display: none;
            position: fixed;
            z-index: 100001;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(10px);
            transition: opacity 0.3s ease;
            opacity: 0;
        }

            .news-modal.active {
                opacity: 1;
            }

        .news-modal-content {
            position: relative;
            background: rgba(8, 10, 16, 0.95);
            margin: 6vh auto;
            padding: clamp(22px, 4vw, 40px);
            width: min(760px, 92vw);
            max-width: 760px;
            border: 1px solid var(--v-border-strong);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
            animation: modal-appear 0.5s ease-out;
            transform: translateY(0);
            border-radius: 18px;
        }

        @keyframes modal-appear {
            from {
                opacity: 0;
                transform: translateY(-50px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .news-modal-close {
            color: var(--v-text-2);
            float: right;
            font-size: 26px;
            font-weight: bold;
            cursor: pointer;
            transition: background 0.2s ease, color 0.2s ease;
            width: 40px;
            height: 40px;
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: 50%;
            border: 1px solid var(--v-border-strong);
            background: var(--v-surface-3);
            -webkit-tap-highlight-color: transparent;
            user-select: none;
            -webkit-user-select: none;
        }

            .news-modal-close:hover {
                color: #ffffff;
                background: #2a323d;
            }

        .news-modal-header {
            margin-bottom: 20px;
            border-bottom: 1px solid var(--v-border);
            padding-bottom: 10px;
        }

        .news-modal-date {
            color: #888;
            font-size: 14px;
            margin-top: 5px;
        }

        .news-modal-body {
            color: #ffffff;
            font-size: 16px;
        }

        .news-modal-image {
            width: 100%;
            max-height: 300px;
            object-fit: cover;
            margin-bottom: 20px;
            border: 1px solid var(--v-border);
            border-radius: 8px;
            display: block;
        }

            .news-modal-image[src=""], .news-modal-image:not([src]) {
                display: none;
            }

        .news-modal-text {
            line-height: 1.75;
            font-size: 1.02rem;
            color: #e6ecf3;
        }

            .news-modal-text p {
                margin-bottom: 16px;
            }
            .news-modal-text p:last-child {
                margin-bottom: 0;
            }

        /* Retired: scanline texture removed in the visual refresh. */
        .scanlines-effect {
            display: none;
        }

        .nav-button::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient( 90deg, transparent, rgba(0, 255, 255, 0.2), transparent );
            transition: left 0.7s ease;
            z-index: 9999;
        }

        .nav-button::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: repeating-linear-gradient( 0deg, transparent, transparent 2px, rgba(0, 255, 255, 0.05) 2px, rgba(0, 255, 255, 0.05) 4px );
            pointer-events: none;
            opacity: 0.3;
            z-index: 10001;
        }

        .nav-button:hover {
            background: rgba(0, 10, 40, 0.7);
            color: #fff;
            border-color: #ff00de;
            transform: translateY(-5px) scale(1.05);
            box-shadow: 0 0 30px rgba(0, 255, 255, 0.6), 0 0 60px rgba(255, 0, 222, 0.3), inset 0 0 15px rgba(0, 255, 255, 0.5);
            text-shadow: 0 0 5px #ffffff, 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 40px #ff00de;
            letter-spacing: 4px;
        }

            .nav-button:hover::before {
                left: 100%;
            }

        .nav-button:active {
            transform: translateY(2px) scale(0.98);
            box-shadow: 0 0 15px rgba(0, 255, 255, 0.4), inset 0 0 10px rgba(0, 255, 255, 0.6);
        }

        /* Enhanced touch feedback for mobile devices */
        @media (hover: none) and (pointer: coarse) {
            .nav-button:active {
                transform: scale(0.95);
                box-shadow: 0 0 25px rgba(0, 255, 255, 0.6), 0 0 50px rgba(255, 0, 222, 0.2);
                transition: all 0.1s ease;
            }

            #startBtn:active {
                transform: translateX(-50%) scale(0.95);
            }

            .app-item:active {
                transform: scale(0.95);
            }

            .download-button:active {
                transform: scale(0.95);
            }

            .close-btn:active {
                transform: scale(0.9);
            }

            .account-btn:active,
            .logout-btn:active {
                transform: scale(0.95);
            }
        }

        @keyframes glitch-anim {
            0% {
                clip: rect(39px, 9999px, 40px, 0);
                transform: skew(0.2deg);
            }

            5% {
                clip: rect(36px, 9999px, 10px, 0);
                transform: skew(0.1deg);
            }

            10% {
                clip: rect(94px, 9999px, 90px, 0);
                transform: skew(0.2deg);
            }

            15% {
                clip: rect(35px, 9999px, 26px, 0);
                transform: skew(0.3deg);
            }

            20% {
                clip: rect(89px, 9999px, 75px, 0);
                transform: skew(0.1deg);
            }

            25% {
                clip: rect(14px, 9999px, 34px, 0);
                transform: skew(0.2deg);
            }

            30% {
                clip: rect(46px, 9999px, 62px, 0);
                transform: skew(0.1deg);
            }

            35% {
                clip: rect(5px, 9999px, 2px, 0);
                transform: skew(0.3deg);
            }

            40% {
                clip: rect(2px, 9999px, 23px, 0);
                transform: skew(0.2deg);
            }

            45% {
                clip: rect(19px, 9999px, 32px, 0);
                transform: skew(0.1deg);
            }

            50% {
                clip: rect(41px, 9999px, 64px, 0);
                transform: skew(0.2deg);
            }

            55% {
                clip: rect(23px, 9999px, 72px, 0);
                transform: skew(0.1deg);
            }

            60% {
                clip: rect(48px, 9999px, 27px, 0);
                transform: skew(0.3deg);
            }

            65% {
                clip: rect(35px, 9999px, 25px, 0);
                transform: skew(0.2deg);
            }

            70% {
                clip: rect(39px, 9999px, 43px, 0);
                transform: skew(0.1deg);
            }

            75% {
                clip: rect(86px, 9999px, 12px, 0);
                transform: skew(0.3deg);
            }

            80% {
                clip: rect(25px, 9999px, 7px, 0);
                transform: skew(0.2deg);
            }

            85% {
                clip: rect(81px, 9999px, 92px, 0);
                transform: skew(0.1deg);
            }

            90% {
                clip: rect(14px, 9999px, 38px, 0);
                transform: skew(0.2deg);
            }

            95% {
                clip: rect(69px, 9999px, 56px, 0);
                transform: skew(0.1deg);
            }

            100% {
                clip: rect(57px, 9999px, 98px, 0);
                transform: skew(0.3deg);
            }
        }

        .nav-button:hover:after {
            content: attr(id);
            position: absolute;
            left: 0;
            top: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.2);
            color: #00ffff;
            display: flex;
            align-items: center;
            justify-content: center;
            animation: glitch-anim 0.3s infinite;
            text-shadow: 3px 0 #ff00de, -3px 0 #00ffff;
            pointer-events: none;
            z-index: 10002;
        }

        #startBtn {
            background: linear-gradient(45deg, rgba(0, 0, 20, 0.7), rgba(40, 0, 40, 0.7));
            border: 2px solid rgba(255, 0, 222, 0.6);
            box-shadow: 0 0 30px rgba(255, 0, 222, 0.6), 0 0 60px rgba(0, 255, 255, 0.2), inset 0 0 15px rgba(255, 0, 222, 0.4);
            animation: pulse-glow 2s infinite alternate;
            z-index: 100003;
            position: fixed;
            bottom: 100px;
            left: 50%;
            transform: translateX(-50%);
            width: 200px;
            height: 60px;
            font-size: 18px;
            letter-spacing: 4px;
            padding: 12px 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            line-height: 1.2;
            white-space: normal;
            word-wrap: break-word;
        }

        @keyframes pulse-glow {
            0% {
                box-shadow: 0 0 30px rgba(255, 0, 222, 0.6), 0 0 60px rgba(0, 255, 255, 0.2), inset 0 0 15px rgba(255, 0, 222, 0.4);
                text-shadow: 0 0 5px #ffffff, 0 0 10px #ff00de, 0 0 20px #ff00de;
            }

            100% {
                box-shadow: 0 0 50px rgba(255, 0, 222, 0.8), 0 0 80px rgba(0, 255, 255, 0.4), inset 0 0 20px rgba(255, 0, 222, 0.6);
                text-shadow: 0 0 5px #ffffff, 0 0 15px #ff00de, 0 0 30px #ff00de, 0 0 45px #ff00de;
            }
        }

        .navigation {
            background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.3), rgba(0,0,0,0));
            padding: 20px 10px 20px 10px;
            max-width: 400px;
            z-index: 9999;
            position: fixed;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
            width: 100%;
            top: auto;
            bottom: 15%;
            overflow-y: auto;
            overflow-x: hidden;
            max-height: 50vh;
            text-align: center;
            margin: 0 auto;
            box-sizing: border-box;
            gap: 8px;
            right: auto;
            padding-bottom: 30px;
        }

        /* Apple-style scrollbar for navigation */
        .navigation::-webkit-scrollbar {
            width: 8px;
        }

        .navigation::-webkit-scrollbar-track {
            background: transparent;
        }

        .navigation::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 10px;
            border: 2px solid transparent;
            background-clip: padding-box;
        }

        .navigation::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.35);
            border-radius: 10px;
            border: 2px solid transparent;
            background-clip: padding-box;
        }

        /* Firefox scrollbar styling */
        .navigation {
            scrollbar-width: thin;
            scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
        }

        @keyframes digital-noise {
            0%, 100% {
                opacity: 0.99;
            }

            50% {
                opacity: 1;
            }

            76%, 77% {
                opacity: 0.93;
            }

            94%, 95% {
                opacity: 0.95;
            }
        }

        .nav-button {
            animation: digital-noise 4s steps(1) infinite;
        }

        #video-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: black;
            z-index: 100000000;
            display: none;
        }

        #transition-video {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        #skip-hint {
            position: absolute;
            bottom: 20px;
            right: 20px;
            color: white;
            background: rgba(0, 0, 0, 0.5);
            padding: 10px 15px;
            border-radius: 5px;
            font-size: 14px;
            opacity: 0.8;
        }

        .social-container {
            display: flex !important;
            justify-content: center;
            align-items: center;
            gap: 1rem;
            padding: 0.75rem;
            position: fixed;
            bottom: 0;
            right: 0;
            left: 0;
            background: rgba(12, 15, 20, 0.75);
            backdrop-filter: blur(5px);
            border-top: 1px solid var(--v-border);
            flex-wrap: wrap;
            z-index: 100000;
            transition: background 0.3s ease;
        }

            .social-container:hover {
                background: rgba(12, 15, 20, 0.85);
            }

        .icon-wrapper {
            position: relative;
            transform-style: preserve-3d;
            transform: perspective(1000px);
            transition: transform 0.3s ease, opacity 0.3s ease;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 100000;
            -webkit-tap-highlight-color: transparent;
            user-select: none;
            -webkit-user-select: none;
        }

        .icon {
            width: 36px;
            height: 36px;
            background: var(--v-surface-2);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
            border: 1px solid var(--v-border);
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 100000;
            -webkit-tap-highlight-color: transparent;
            user-select: none;
            -webkit-user-select: none;
        }

            .icon:hover, .icon:active {
                transform: scale(1.1);
            }

            .icon svg {
                width: 20px;
                height: 20px;
                fill: currentColor;
            }

        .facebook {
            color: #1877f2;
        }

        .linkedin {
            color: #0077b5;
        }

        .twitter {
            color: #1da1f2;
        }

        .youtube {
            color: #ff0000;
        }

        .twitch {
            color: #6441a5;
        }

        .icon-wrapper:hover .icon, .icon-wrapper:active .icon {
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
            border-color: var(--v-border-strong);
        }

        @keyframes subtle-pulse {
            0% {
                transform: scale(1);
                opacity: 0.9;
            }

            50% {
                transform: scale(1.05);
                opacity: 1;
            }

            100% {
                transform: scale(1);
                opacity: 0.9;
            }
        }

        /* Retired: constant idle pulse on the social icons removed — motion is
           reserved for interaction feedback. */

        .icon::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            border-radius: 12px;
            z-index: -1;
            background: radial-gradient(circle at center, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 70%);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .icon:hover::before {
            opacity: 1;
        }

        @keyframes glitch {
            0% {
                text-shadow: 0.05em 0 0 rgba(255, 0, 255, 0.75), -0.05em -0.025em 0 rgba(0, 255, 255, 0.75), -0.025em 0.05em 0 rgba(0, 255, 0, 0.75);
            }

            14% {
                text-shadow: 0.05em 0 0 rgba(255, 0, 255, 0.75), -0.05em -0.025em 0 rgba(0, 255, 255, 0.75), -0.025em 0.05em 0 rgba(0, 255, 0, 0.75);
            }

            15% {
                text-shadow: -0.05em -0.025em 0 rgba(255, 0, 255, 0.75), 0.025em 0.025em 0 rgba(0, 255, 255, 0.75), -0.05em -0.05em 0 rgba(0, 255, 0, 0.75);
            }

            49% {
                text-shadow: -0.05em -0.025em 0 rgba(255, 0, 255, 0.75), 0.025em 0.025em 0 rgba(0, 255, 255, 0.75), -0.05em -0.05em 0 rgba(0, 255, 0, 0.75);
            }

            50% {
                text-shadow: 0.025em 0.05em 0 rgba(255, 0, 255, 0.75), 0.05em 0 0 rgba(0, 255, 255, 0.75), 0 -0.05em 0 rgba(0, 255, 0, 0.75);
            }

            99% {
                text-shadow: 0.025em 0.05em 0 rgba(255, 0, 255, 0.75), 0.05em 0 0 rgba(0, 255, 255, 0.75), 0 -0.05em 0 rgba(0, 255, 0, 0.75);
            }

            100% {
                text-shadow: -0.025em 0 0 rgba(255, 0, 255, 0.75), -0.025em -0.025em 0 rgba(0, 255, 255, 0.75), -0.025em -0.05em 0 rgba(0, 255, 0, 0.75);
            }
        }

        @keyframes scanlines {
            0% {
                background-position: 0 0;
            }

            100% {
                background-position: 0 100%;
            }
        }

        .cyberpunk-text {
            color: #00ffff;
            text-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 40px #ff00de, 0 0 80px #ff00de;
            animation: glitch 3s infinite alternate-reverse;
            letter-spacing: 0.2em;
            font-weight: bold;
            filter: drop-shadow(0 0 0.75rem #00ffff);
        }

        .content-panel {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0);
            width: 90%;
            max-width: 800px;
            height: 80vh;
            max-height: 600px;
            background: var(--v-surface-1);
            border: 1px solid var(--v-border-strong);
            box-shadow: var(--v-shadow-overlay);
            z-index: 100005;
            transition: transform 0.5s ease, opacity 0.5s ease;
            opacity: 0;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            border-radius: 14px;
            /* Closed panel must never hit-test: several mobile overrides replace
               the base transform and lose the scale(0), leaving an invisible
               full-screen layer at z 100005 that swallowed every tap on phones. */
            pointer-events: none;
        }

            .content-panel.active {
                transform: translate(-50%, -50%) scale(1);
                opacity: 1;
                pointer-events: auto;
            }

            .content-panel.fullscreen {
                width: 100%;
                max-width: 100%;
                height: 100vh;
                max-height: 100%;
                border-radius: 0;
            }

        .panel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 20px;
            background: var(--v-surface-2);
            border-bottom: 1px solid var(--v-border);
            flex-shrink: 0;
        }

            .panel-header h2 {
                color: var(--v-text);
                margin: 0;
                font-size: 18px;
                font-weight: 600;
                letter-spacing: -0.01em;
            }

        .panel-content {
            padding: 25px;
            color: #ffffff;
            flex-grow: 1;
            overflow-y: auto;
            overflow-x: hidden;
        }

            .panel-content::-webkit-scrollbar {
                width: 8px;
            }

            .panel-content::-webkit-scrollbar-track {
                background: transparent;
            }

            .panel-content::-webkit-scrollbar-thumb {
                background: rgba(255, 255, 255, 0.2);
                border-radius: 10px;
                border: 2px solid transparent;
                background-clip: padding-box;
            }

                .panel-content::-webkit-scrollbar-thumb:hover {
                    background: rgba(255, 255, 255, 0.35);
                    border-radius: 10px;
                    border: 2px solid transparent;
                    background-clip: padding-box;
                }

        /* Firefox scrollbar styling for panel content */
        .panel-content {
            scrollbar-width: thin;
            scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
        }

        .close-btn {
            background: var(--v-surface-3);
            border: 1px solid var(--v-border-strong);
            color: var(--v-text-2);
            font-size: 22px;
            cursor: pointer;
            transition: background 0.2s ease, color 0.2s ease;
            width: 35px;
            height: 35px;
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: 50%;
            -webkit-tap-highlight-color: transparent;
            user-select: none;
            -webkit-user-select: none;
        }

            .close-btn:hover {
                background: #2a323d;
                color: #ffffff;
            }

        .news-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            padding: 10px 0;
        }

        .news-item {
            padding: 20px;
            background: var(--v-surface-2);
            border: 1px solid var(--v-border);
            border-radius: 10px;
            transition: background 0.2s ease, border-color 0.2s ease;
        }

            .news-item:hover {
                background: var(--v-surface-3);
                border-color: var(--v-border-strong);
            }

        @media (max-width: 768px) {
            .content-panel {
                width: 95%;
                max-width: none;
                height: 90vh;
                max-height: none;
                top: 50%;
            }

            .news-container {
                grid-template-columns: 1fr;
            }

            .panel-content {
                padding: 15px;
            }
        }

        @media (max-width: 480px) {
            .content-panel {
                width: 100%;
                height: 100vh;
                border-radius: 0;
            }

            .panel-header h2 {
                font-size: 16px;
            }
        }

        /* Retired: the looping neon "panel-glow" animation removed — the panel
           holds a static elevated surface instead. */

        .controls-overlay {
            position: fixed;
            bottom: 15px;
            left: 15px;
            z-index: 100;
            pointer-events: auto;
            display: flex;
            gap: 15px;
            align-items: center;
            padding: 8px;
            border-radius: 16px;
            background: rgba(14, 17, 22, 0.6);
            backdrop-filter: blur(5px);
            border: 1px solid var(--v-border);
            transition: all 0.3s ease;
        }

        @media (min-width: 768px) {
            .controls-overlay {
                background: transparent;
                border: none;
                box-shadow: none;
                padding: 0;
            }

                .controls-overlay:hover {
                    background: rgba(14, 17, 22, 0.6);
                    backdrop-filter: blur(5px);
                    border: 1px solid var(--v-border);
                    padding: 10px;
                }

            /* Make 3D model smaller and better positioned on desktop.
               pointer-events MUST be none: this 100%×100% scaled host is an
               invisible box over the middle of the page, and with auto it eats
               clicks on whichever cc-grid icons reflow under it (dead icons
               shifted with window width). Same fix as every mobile breakpoint —
               the shadow #versona-helper-container re-enables its own
               pointer-events, so the avatar box itself stays clickable. */
            #myAssistant {
                transform: scale(0.7) !important;
                transform-origin: bottom center !important;
                width: 100% !important;
                height: 100% !important;
                pointer-events: none !important;
            }
        }

        /* Verse Applications grid: fixed-width tracks (not stretched 1fr columns) so the
           tiles sit close together, and the artwork fills the whole tile like an app icon. */
        .app-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, 108px);
            justify-content: center;
            gap: 16px 10px;
            margin-top: 20px;
        }

        .app-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
            width: 108px;
            transition: transform 0.3s ease;
        }

            .app-item:hover, .app-item:active {
                transform: translateY(-4px);
            }

        .app-icon-container {
            position: relative;
            width: 92px;
            height: 92px;
            margin-bottom: 6px;
            display: flex;
            justify-content: center;
            align-items: center;
            background: var(--v-surface-2);
            border-radius: 22%;
            border: 1px solid var(--v-border);
            transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
            overflow: hidden;
        }

        .app-item:hover .app-icon-container, .app-item:active .app-icon-container {
            border-color: var(--v-border-strong);
            background: var(--v-surface-3);
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
        }

        .app-icon {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 0;
            display: block;
            transition: transform 0.3s ease;
        }

        .app-item:hover .app-icon, .app-item:active .app-icon {
            transform: scale(1.06);
        }

        .app-title {
            font-size: 12px;
            line-height: 1.25;
            color: var(--v-text);
            text-align: center;
            margin-top: 4px;
            max-width: 108px;
            overflow-wrap: anywhere;
            transition: color 0.3s ease;
        }

        .app-item:hover .app-title, .app-item:active .app-title {
            color: #ffffff;
        }

        .app-tooltip {
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%) translateY(-10px);
            width: 200px;
            background: var(--v-surface-3);
            border: 1px solid var(--v-border-strong);
            border-radius: 8px;
            padding: 10px;
            box-shadow: var(--v-shadow-overlay);
            z-index: 1000;
            visibility: hidden;
            opacity: 0;
            transition: all 0.3s ease;
            pointer-events: none;
        }

        .app-icon-container:hover .app-tooltip, .app-icon-container:active .app-tooltip {
            visibility: visible;
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }

        .app-tooltip h4 {
            color: var(--v-text);
            font-weight: 600;
            margin: 0 0 5px 0;
            font-size: 14px;
            text-align: center;
        }

        .app-tooltip p {
            color: var(--v-text-2);
            margin: 0;
            font-size: 12px;
            line-height: 1.4;
            text-align: center;
        }

        .tooltip-arrow {
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 0;
            border-left: 8px solid transparent;
            border-right: 8px solid transparent;
            border-top: 8px solid rgba(255, 255, 255, 0.16);
        }

            .tooltip-arrow::after {
                content: '';
                position: absolute;
                top: -9px;
                left: -7px;
                width: 0;
                height: 0;
                border-left: 7px solid transparent;
                border-right: 7px solid transparent;
                border-top: 7px solid #222933;
            }

        .app-icon[src*="app-icons"]::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, #00ffff 0%, #ff00de 100%);
            opacity: 0.2;
            border-radius: 8px;
        }

        .app-launch-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 999999;
            transition: all 0.5s ease;
        }

        .app-launch-icon {
            transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
            z-index: 10000000000;
        }

        .app-launch-text {
            position: fixed;
            bottom: 30%;
            left: 50%;
            transform: translateX(-50%);
            color: var(--v-text);
            font-size: 16px;
            font-family: var(--v-font);
            z-index: 10000000;
            opacity: 0;
            transition: opacity 0.5s ease;
        }

        .loading-dots::after {
            content: '';
            animation: loading 1.5s infinite;
        }

        @keyframes loading {
            0% {
                content: '';
            }

            25% {
                content: '.';
            }

            50% {
                content: '..';
            }

            75% {
                content: '...';
            }
        }

        .glitch-effect {
            animation: glitch 0.3s infinite;
        }

        @keyframes glitch {
            0% {
                transform: translate(-50%, -50%) scale(3) translate(2px, 0);
            }

            20% {
                transform: translate(-50%, -50%) scale(3) translate(-2px, 2px);
            }

            40% {
                transform: translate(-50%, -50%) scale(3) translate(2px, -2px);
            }

            60% {
                transform: translate(-50%, -50%) scale(3) translate(-2px, 0);
            }

            80% {
                transform: translate(-50%, -50%) scale(3) translate(0, 2px);
            }

            100% {
                transform: translate(-50%, -50%) scale(3) translate(0, 0);
            }
        }

        .cyberpunk-title {
            color: var(--v-text);
            font-family: var(--v-font);
            font-size: 1.25rem;
            font-weight: 600;
            letter-spacing: -0.01em;
            margin-bottom: 20px;
            border-bottom: 1px solid var(--v-border);
            padding-bottom: 10px;
        }

        .service-item {
            margin-bottom: 25px;
            padding: 15px;
            background: var(--v-surface-2);
            border: 1px solid var(--v-border);
            border-radius: 10px;
            transition: background 0.2s ease, border-color 0.2s ease;
        }

            .service-item:hover, .service-item:active {
                background: var(--v-surface-3);
                border-color: var(--v-border-strong);
            }

            .service-item h4 {
                color: var(--v-text);
                font-weight: 600;
                margin-top: 0;
                margin-bottom: 10px;
            }

        .panel-button {
            background: var(--v-surface-3);
            border: 1px solid var(--v-border-strong);
            color: var(--v-text);
            border-radius: 8px;
            padding: 6px 15px;
            margin-top: 10px;
            cursor: pointer;
            transition: background 0.2s ease, border-color 0.2s ease;
            font-size: 13px;
            font-family: var(--v-font);
            font-weight: 600;
        }

            .panel-button:hover, .panel-button:active {
                background: #2a323d;
                border-color: rgba(255, 255, 255, 0.24);
            }

        .info-item {
            margin-bottom: 20px;
            padding: 15px;
            background: var(--v-surface-2);
            border: 1px solid var(--v-border);
            border-radius: 10px;
        }

            .info-item h4 {
                color: var(--v-text);
                font-weight: 600;
                margin-top: 0;
            }

        .settings-form {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .setting-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 15px;
            background: rgba(0, 0, 0, 0.5);
            border-radius: 5px;
        }

        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 40px;
            height: 22px;
        }

            .toggle-switch input {
                opacity: 0;
                width: 0;
                height: 0;
            }

        .toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: var(--v-surface-3);
            transition: .4s;
            border-radius: 24px;
            border: 1px solid var(--v-border-strong);
        }

            .toggle-slider:before {
                position: absolute;
                content: "";
                height: 14px;
                width: 14px;
                left: 4px;
                bottom: 3px;
                background-color: #ccc;
                transition: .4s;
                border-radius: 50%;
            }

        input:checked + .toggle-slider {
            background-color: rgba(34, 211, 238, 0.35);
        }

            input:checked + .toggle-slider:before {
                transform: translateX(16px);
                background-color: var(--v-accent-strong);
            }

        .news-date {
            color: #888;
            font-size: 12px;
            margin-bottom: 5px;
        }

        .news-title {
            color: var(--v-text);
            font-weight: 600;
            margin: 0 0 10px 0;
        }

        .news-read-more {
            display: inline-block;
            color: var(--v-accent);
            text-decoration: none;
            font-size: 13px;
            font-weight: 600;
            margin-top: 10px;
        }

            .news-read-more:hover, .news-read-more:active {
                text-decoration: underline;
            }

        .profile-container {
            position: fixed;
            top: 15px;
            right: 15px;
            display: flex;
            align-items: center;
            z-index: 10000;
        }

        .profile-image img {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: 2px solid rgba(255, 255, 255, 0.15);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
        }

        .speech-bubble {
            margin-left: 10px;
            padding: 8px 12px;
            background: var(--v-surface-2);
            border-radius: 12px;
            border: 1px solid var(--v-border);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
            color: var(--v-text);
            max-width: calc(100vw - 80px);
        }

            .speech-bubble p {
                margin: 0 0 8px 0;
            }

        .account-btn, .logout-btn {
            background: var(--v-surface-3);
            border: 1px solid var(--v-border-strong);
            color: var(--v-text);
            border-radius: 6px;
            padding: 4px 8px;
            margin-right: 5px;
            cursor: pointer;
            font-size: 11px;
            font-family: var(--v-font);
            transition: background 0.2s ease, border-color 0.2s ease;
        }

            .account-btn:hover, .logout-btn:hover, .account-btn:active, .logout-btn:active {
                background: #2a323d;
                border-color: rgba(255, 255, 255, 0.24);
            }

        .mobile-loading {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            z-index: 100003;
            align-items: center;
            justify-content: center;
            flex-direction: column;
        }

        .loading-spinner {
            width: 60px;
            height: 60px;
            border: 3px solid rgba(255, 255, 255, 0.12);
            border-top-color: var(--v-accent-strong);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        .loading-text {
            margin-top: 20px;
            color: var(--v-text-2);
            font-size: 15px;
            animation: pulse 1.5s infinite alternate;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        @keyframes pulse {
            0% {
                opacity: 0.7;
            }

            100% {
                opacity: 1;
            }
        }

        .social-icons-wrapper {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .profile-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
            margin-top: 5px;
        }

        .profile-tokens {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            margin: 0 0 8px 0;
            padding: 3px 9px;
            background: var(--v-accent-soft);
            border: 1px solid rgba(103, 232, 249, 0.3);
            border-radius: 12px;
            color: var(--v-accent);
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s ease;
        }

            .profile-tokens:hover {
                background: rgba(103, 232, 249, 0.2);
            }

            .profile-tokens__icon {
                font-size: 13px;
                line-height: 1;
            }

            .profile-tokens__unit {
                opacity: 0.8;
                font-size: 10px;
                letter-spacing: 1px;
            }

        @media (max-width: 768px) {
            body {
                overflow-x: hidden;
            }

            .navigation {
                bottom: 38%;
                max-height: 45vh;
                padding: 15px 5px 25px 5px;
                max-width: calc(100% - 180px);
                gap: 8px;
                display: grid;
                grid-template-columns: 1fr 1fr;
                justify-content: center;
                align-items: center;
                left: 10px;
                transform: none;
            }

            .nav-button {
                width: 100%;
                max-width: none;
                min-width: auto;
                height: 55px;
                font-size: 11px;
                padding: 8px 10px;
                letter-spacing: 1px;
                flex-basis: auto;
                flex-shrink: 0;
                box-sizing: border-box;
            }

            .profile-container {
                top: 10px;
                right: 10px;
                left: auto;
                max-width: calc(100% - 20px);
                z-index: 100001;
                display: flex;
                align-items: center;
                gap: 10px;
            }

            .speech-bubble {
                max-width: calc(100vw - 100px);
                padding: 8px 12px;
                font-size: 12px;
            }

            .account-btn, .logout-btn {
                padding: 4px 8px;
                font-size: 10px;
                white-space: nowrap;
            }

            #startBtn {
                width: 80%;
                max-width: 200px;
                height: 55px;
                font-size: 16px;
                padding: 12px 20px;
                bottom: 30%;
                left: 10px;
                transform: none;
                right: auto;
            }

            #verse-container {
                transform: scale(0.8);
            }

            .social-container {
                padding: 8px 0;
                bottom: 0;
                right: 5px;
                gap: 10px;
            }

            .app-grid {
                grid-template-columns: repeat(auto-fill, 100px);
                gap: 14px 8px;
                padding: 10px;
            }
            .app-item { width: 100px; }
            .app-icon-container { width: 84px; height: 84px; }

            .news-modal-content {
                width: 90%;
                margin: 20% auto;
                padding: 15px;
            }

            .content-panel {
                width: 95%;
                max-width: none;
                height: 85vh;
                max-height: none;
                top: 50%;
                left: 50%;
                /* keep scale(0) — dropping it left an invisible tap-eating layer */
                transform: translate(-50%, -50%) scale(0);
            }

            .panel-content {
                padding: 15px;
                overflow-y: auto;
            }
        }

        /* Tablet landscape and small desktops (769px - 1024px) */
        @media (min-width: 769px) and (max-width: 1024px) {
            .navigation {
                max-width: 70%;
                gap: 10px;
            }

            .nav-button {
                width: calc(50% - 12px);
                max-width: 200px;
                min-width: 150px;
                height: 60px;
                font-size: 13px;
                padding: 10px 15px;
            }

            #startBtn {
                width: 60%;
                max-width: 250px;
                height: 60px;
                font-size: 18px;
                padding: 14px 24px;
            }

            .content-panel {
                width: 85%;
                height: 80vh;
            }

            .app-grid {
                grid-template-columns: repeat(auto-fill, 104px);
                gap: 14px 8px;
            }
            .app-item { width: 104px; }
            .app-icon-container { width: 88px; height: 88px; }

            .social-container {
                scale: 0.95;
            }
        }

        @media (max-width: 480px) {
            .navigation {
                max-width: calc(100% - 160px);
                gap: 6px;
                bottom: 37%;
                padding: 10px 5px 20px 5px;
                max-height: 40vh;
                left: 10px;
                transform: none;
                display: grid;
                grid-template-columns: 1fr 1fr;
            }

            .nav-button {
                width: 100%;
                max-width: none;
                min-width: auto;
                height: 50px;
                font-size: 10px;
                padding: 6px 8px;
                letter-spacing: 0.5px;
                flex-basis: auto;
            }

            #startBtn {
                width: 75%;
                max-width: 170px;
                height: 50px;
                font-size: 14px;
                padding: 10px 16px;
                bottom: 29%;
                left: 10px;
                transform: none;
            }

            .app-grid {
                grid-template-columns: repeat(auto-fill, 84px);
                gap: 12px 6px;
            }

            .news-modal-content {
                margin: 30% auto;
                padding: 10px;
                width: 95%;
            }

            .app-item { width: 84px; }

            .app-icon-container {
                width: 74px;
                height: 74px;
            }

            .app-icon {
                width: 100%;
                height: 100%;
            }

            .app-title {
                font-size: 11px;
                max-width: 84px;
            }

            .social-container {
                gap: 8px;
                scale: 0.85;
                bottom: 0;
            }

            .icon-wrapper {
                width: 38px;
                height: 38px;
            }

            .icon {
                width: 34px;
                height: 34px;
            }

            .icon svg {
                width: 20px;
                height: 20px;
            }

            .profile-container {
                gap: 8px;
            }

            .profile-image img {
                width: 50px;
                height: 50px;
            }

            .speech-bubble {
                max-width: calc(100vw - 90px);
                padding: 6px 10px;
                font-size: 11px;
            }

            .content-panel {
                width: 98%;
                height: 90vh;
                border-radius: 10px;
            }

            .panel-header h2 {
                font-size: 16px;
            }
        }

        @media (max-height: 600px) and (orientation: landscape) {
            .navigation {
                bottom: 30%;
                max-height: 50vh;
                max-width: calc(100% - 170px);
                padding: 8px 10px 20px 10px;
                gap: 6px;
                left: 10px;
                transform: none;
                display: grid;
                grid-template-columns: 1fr 1fr;
            }

            .nav-button {
                height: 45px;
                font-size: 10px;
                padding: 6px 10px;
                width: 100%;
                max-width: none;
                min-width: auto;
            }

            .social-container {
                padding: 5px 0;
                bottom: 0;
                scale: 0.8;
            }

            .controls-overlay {
                bottom: 5px;
                left: 5px;
                scale: 0.9;
            }

            #startBtn {
                bottom: 27%;
                height: 45px;
                font-size: 14px;
                padding: 10px 18px;
                left: 10px;
                transform: none;
            }

            .content-panel {
                height: calc(100vh - 40px);
                width: 92%;
                top: 50%;
                transform: translate(-50%, -50%) scale(0);
            }

            .profile-container {
                top: 5px;
                right: 5px;
            }

            .speech-bubble {
                padding: 5px 8px;
                font-size: 11px;
            }
        }

        @media (max-width: 360px) {
            .navigation {
                max-width: calc(100% - 140px);
                bottom: 35%;
                gap: 5px;
                padding: 8px 4px 18px 4px;
                max-height: 38vh;
                left: 8px;
                transform: none;
                display: grid;
                grid-template-columns: 1fr 1fr;
            }

            .nav-button {
                width: 100%;
                max-width: none;
                min-width: auto;
                height: 45px;
                font-size: 9px;
                padding: 4px 6px;
                letter-spacing: 0.5px;
                flex-basis: auto;
            }

            #startBtn {
                width: 70%;
                max-width: 150px;
                height: 45px;
                font-size: 13px;
                padding: 8px 14px;
                bottom: 28%;
                left: 8px;
                transform: none;
            }

            .profile-container {
                max-width: calc(100% - 10px);
                right: 5px;
                top: 5px;
            }

            .profile-image img {
                width: 45px;
                height: 45px;
            }

            .speech-bubble {
                max-width: calc(100vw - 70px);
                padding: 5px 8px;
                font-size: 10px;
            }

            .account-btn, .logout-btn {
                padding: 3px 6px;
                font-size: 9px;
            }

            .loading-text {
                font-size: 14px;
            }

            .app-grid {
                grid-template-columns: repeat(auto-fill, 76px);
                gap: 10px 6px;
            }

            .app-item { width: 76px; }

            .app-icon-container {
                width: 66px;
                height: 66px;
            }

            .app-title {
                font-size: 10px;
                max-width: 76px;
            }

            .social-container {
                scale: 0.8;
                bottom: 0;
            }

            .content-panel {
                width: 100%;
                height: 95vh;
                border-radius: 5px;
            }

            .panel-header {
                padding: 10px;
            }

            .panel-header h2 {
                font-size: 14px;
            }

            .close-btn {
                font-size: 20px;
                width: 28px;
                height: 28px;
            }
        }

        @supports (padding: max(0px)) {
            .navigation, .controls-overlay {
                padding-left: max(10px, env(safe-area-inset-left));
                padding-right: max(10px, env(safe-area-inset-right));
            }

            .social-container {
                padding-bottom: max(10px, env(safe-area-inset-bottom));
            }
        }

        /* NOTE: .content-panel must stay out of this list — on real iOS this
           @supports matches and translateZ(0) would replace the panel's
           translate(-50%,-50%) scale(0), un-hiding an invisible click shield. */
        @supports (-webkit-touch-callout: none) {
            .navigation, .social-container, .controls-overlay, #startBtn {
                transform: translateZ(0);
            }
        }

        /* Responsive sizing for versona-helper component */
        versona-helper {
            --versona-scale: 2;
        }

        /* Mobile phones - smaller versona.
           pointer-events on the HOST must be none: as a fixed block the host's
           box grows to viewport size, and with auto it silently ate every tap
           on the page. The shadow #versona-helper-container re-enables its own
           pointer-events, so the avatar box itself stays interactive. */
        @media (max-width: 480px) {
            versona-helper {
                --versona-scale: 0.8;
                transform: scale(0.8);
                transform-origin: bottom right;
                position: fixed;
                bottom: 45px;
                right: 10px;
                left: auto;
                z-index: 100001;
                pointer-events: none;
            }
        }

        /* Small tablets and large phones */
        @media (min-width: 481px) and (max-width: 768px) {
            versona-helper {
                --versona-scale: 1.2;
                transform: scale(1.2);
                transform-origin: bottom right;
                position: fixed;
                bottom: 50px;
                right: 15px;
                left: auto;
                z-index: 100001;
                pointer-events: none;
            }
        }

        /* Tablets */
        @media (min-width: 769px) and (max-width: 1024px) {
            versona-helper {
                --versona-scale: 1.5;
                transform: scale(1.5);
                transform-origin: bottom right;
                position: fixed;
                bottom: 50px;
                right: 15px;
                left: auto;
                z-index: 100001;
                pointer-events: none;
            }
        }

        /* Desktop - reduce model size significantly and adjust position.
           pointer-events: none for the same reason as every breakpoint above —
           the host box is an invisible click shield; the shadow container
           re-enables its own pointer-events. */
        @media (min-width: 1025px) {
            versona-helper {
                --versona-scale: 0.3;
                transform: scale(0.3);
                transform-origin: bottom right;
                bottom: 160px;
                pointer-events: none;
            }
        }

        /* Mobile help button */
        #mobile-help-btn {
            display: none;
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: var(--v-surface-3);
            border: 1px solid var(--v-border-strong);
            color: var(--v-text);
            font-size: 24px;
            font-weight: bold;
            cursor: pointer;
            z-index: 100004;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
            transition: transform 0.2s ease, background 0.2s ease;
            -webkit-user-select: none;
            user-select: none;
        }

        #mobile-help-btn:hover,
        #mobile-help-btn:active {
            transform: scale(1.06);
            background: #2a323d;
        }

        #mobile-help-btn.hidden {
            display: none !important;
        }

        /* Mobile assistant - visible by default, no toggle button needed.
           bottom clears the collapsed profile chip (bottom:60px + 50px avatar)
           so the helper box never stacks on top of it. */
        @media (max-width: 768px) {
            versona-helper {
                display: block !important;
                visibility: visible !important;
                opacity: 1 !important;
                transform: scale(0.98);
                transform-origin: bottom right;
                bottom: 115px;
                pointer-events: none;
                z-index: 9998;
                position: fixed;
                right: 10px;
            }

            /* Ensure A-Frame canvas is visible on mobile */
            versona-helper canvas {
                display: block !important;
                visibility: visible !important;
                opacity: 1 !important;
            }

            /* Hide the mobile help button - not needed */
            #mobile-help-btn {
                display: none !important;
            }
        }

        /* Extra small mobile devices */
        @media (max-width: 480px) {
            versona-helper {
                transform: scale(0.82);
                bottom: 120px;
                right: 5px;
            }
        }

        /* Click here text overlay for assistant */
        .versona-click-text {
            position: absolute;
            bottom: -30px;
            left: 50%;
            transform: translateX(-50%);
            color: var(--v-text-2);
            font-size: 13px;
            font-weight: 600;
            animation: pulse-text 2s infinite ease-in-out;
            pointer-events: none;
            white-space: nowrap;
            z-index: 10;
        }

        @keyframes pulse-text {
            0%, 100% {
                opacity: 1;
                transform: translateX(-50%) scale(1);
            }
            50% {
                opacity: 0.7;
                transform: translateX(-50%) scale(1.1);
            }
        }

        @media (max-width: 768px) {
            .versona-click-text {
                font-size: 12px;
                bottom: -25px;
            }
        }

        @media (min-width: 1025px) {
            .versona-click-text {
                font-size: 10px;
                bottom: -20px;
                letter-spacing: 1px;
            }
        }

        /* ================================================================
           COMMAND CENTER OVERRIDES
           ================================================================ */
        body {
            background: linear-gradient(170deg, #060b14 0%, #0c1525 35%, #0a1a20 60%, #0d1118 100%) !important;
            overflow-x: hidden;
            -webkit-overflow-scrolling: touch;
        }

        space-background { display: none !important; }
        .navigation { display: none !important; }
        #startBtn { display: none !important; }
        #mobile-help-btn { z-index: 10; }

        /* ================================================================
           SPLASH / LANDING PAGE OVERLAY
           ================================================================ */
        .splash-overlay {
            position: fixed;
            inset: 0;
            z-index: 99999;
            background: #000408;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 20px;
            box-sizing: border-box;
            transition: opacity 0.8s ease, visibility 0.8s ease;
        }

        .splash-overlay.hidden {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }

        .splash-logo {
            width: 256px;
            height: 256px;
            margin-bottom: 28px;
            animation: splash-float 4s ease-in-out infinite;
        }

        .splash-logo img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            display: block;
            mix-blend-mode: screen;
        }

        @keyframes splash-float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-8px); }
        }

        .splash-title {
            font-family: var(--v-font-display);
            font-size: 42px;
            font-weight: 300;
            letter-spacing: 18px;
            color: var(--v-title);
            text-transform: uppercase;
            margin-bottom: 10px;
            text-indent: 18px;
        }

        .splash-subtitle {
            font-family: var(--v-font-display);
            font-size: 11px;
            font-weight: 300;
            letter-spacing: 6px;
            color: rgba(255, 255, 255, 0.35);
            text-transform: uppercase;
            margin-bottom: 80px;
            text-indent: 6px;
        }

        .splash-enter-btn {
            background: transparent;
            border: 1px solid rgba(255, 255, 255, 0.15);
            color: rgba(255, 255, 255, 0.55);
            font-family: var(--v-font-display);
            font-size: 12px;
            font-weight: 400;
            letter-spacing: 5px;
            text-transform: uppercase;
            padding: 14px 48px;
            border-radius: 30px;
            cursor: pointer;
            transition: border-color 0.4s ease, color 0.4s ease;
            display: flex;
            align-items: center;
            gap: 10px;
            text-indent: 5px;
        }

        .splash-enter-btn:hover {
            border-color: rgba(103, 232, 249, 0.45);
            color: var(--v-accent);
        }

        .splash-enter-btn svg {
            width: 16px;
            height: 16px;
            fill: currentColor;
            opacity: 0.6;
        }

        /* --- Splash: Tablet (max 768px) --- */
        @media (max-width: 768px) {
            .splash-title {
                font-size: 34px;
                letter-spacing: 14px;
                text-indent: 14px;
            }
            .splash-subtitle {
                font-size: 10px;
                letter-spacing: 5px;
                text-indent: 5px;
                margin-bottom: 60px;
            }
            .splash-enter-btn {
                font-size: 11px;
                padding: 13px 42px;
            }
            .splash-logo {
                width: 56px;
                height: 56px;
            }
        }

        /* --- Splash: Phone (max 480px) --- */
        @media (max-width: 480px) {
            .splash-title {
                font-size: 28px;
                letter-spacing: 10px;
                text-indent: 10px;
            }
            .splash-subtitle {
                font-size: 9px;
                letter-spacing: 4px;
                text-indent: 4px;
                margin-bottom: 50px;
            }
            .splash-enter-btn {
                font-size: 10px;
                padding: 12px 36px;
                letter-spacing: 4px;
            }
            .splash-logo {
                width: 48px;
                height: 48px;
                margin-bottom: 20px;
            }
        }

        /* --- Splash: Small phone (max 360px) --- */
        @media (max-width: 360px) {
            .splash-title {
                font-size: 22px;
                letter-spacing: 8px;
                text-indent: 8px;
            }
            .splash-subtitle {
                font-size: 8px;
                letter-spacing: 3px;
                text-indent: 3px;
                margin-bottom: 40px;
            }
            .splash-enter-btn {
                font-size: 9px;
                padding: 10px 28px;
                letter-spacing: 3px;
            }
            .splash-logo {
                width: 40px;
                height: 40px;
                margin-bottom: 16px;
            }
        }

        /* --- Splash: Landscape phones --- */
        @media (max-height: 500px) and (orientation: landscape) {
            .splash-logo {
                width: 36px;
                height: 36px;
                margin-bottom: 12px;
            }
            .splash-title {
                font-size: 24px;
                letter-spacing: 10px;
                margin-bottom: 4px;
            }
            .splash-subtitle {
                margin-bottom: 24px;
            }
            .splash-enter-btn {
                padding: 10px 32px;
            }
        }

        /* --- Splash footer (2026-10-08): what Verse Realm is and the legal links, readable before anyone signs in
           (Google's app verification needs both on the public homepage) --- */
        .splash-foot {
            position: absolute;
            left: 16px;
            right: 16px;
            bottom: 18px;
            text-align: center;
            font-family: var(--v-font);
            font-size: 12.5px;
            line-height: 1.5;
            color: var(--v-text-3);
        }
        .splash-foot p { margin: 0 auto 6px; max-width: 46em; }
        .splash-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
        /* The site links (seo.md H9) share the About links' row while it has room, so the footer grows only where the row wraps. */
        .splash-foot { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 18px; row-gap: 4px; }
        .splash-foot p { flex: 0 0 100%; }
        .splash-foot nav.site-nav { margin: 0; }
        .splash-foot .site-nav a { color: var(--v-text-2); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.22); text-underline-offset: 3px; }
        .splash-foot .site-nav a:hover { color: var(--v-accent); text-decoration-color: currentColor; }
        /* Short windows (the 320 x 568 phone): smaller site links, so the footer keeps clear of the Enter button. */
        @media (max-height: 600px) { .splash-foot .site-nav { font-size: 11px; column-gap: 12px; } }
        .splash-foot a, .hub-about a {
            color: var(--v-text-2);
            text-decoration: underline;
            text-decoration-color: rgba(255, 255, 255, 0.22);
            text-underline-offset: 3px;
        }
        .splash-foot a:hover, .hub-about a:hover { color: var(--v-accent); text-decoration-color: currentColor; }
        .splash-foot a:focus-visible, .hub-about a:focus-visible { outline: 2px solid var(--v-accent); outline-offset: 3px; border-radius: 2px; }
        @media (max-height: 500px) and (orientation: landscape) {
            .splash-foot { bottom: 8px; font-size: 11.5px; }
            .splash-foot p { display: none; }
        }

        /* ================================================================
           HUB / GATEWAY PAGE (second screen)
           ================================================================ */
        .hub-overlay {
            position: fixed;
            inset: 0;
            z-index: 99998;
            background: linear-gradient(170deg, #060b14 0%, #0c1525 35%, #0a1a20 60%, #0d1118 100%);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            padding-top: 40px;
            padding-bottom: 30px;
            box-sizing: border-box;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 0.6s ease, visibility 0.6s ease;
        }

        .hub-overlay.visible {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        .hub-overlay.hidden {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }

        .hub-brand {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 6px;
        }

        .hub-brand svg {
            width: 22px;
            height: 22px;
        }

        .hub-brand-text {
            font-family: var(--v-font-display);
            font-size: 13px;
            font-weight: 300;
            letter-spacing: 6px;
            color: rgba(255, 255, 255, 0.45);
            text-transform: uppercase;
            text-indent: 6px;
        }

        .hub-main-title {
            font-family: var(--v-font-display);
            font-size: 38px;
            font-weight: 300;
            letter-spacing: 8px;
            color: var(--v-title);
            text-transform: uppercase;
            margin-bottom: 6px;
            text-indent: 8px;
        }

        .hub-tagline {
            font-family: var(--v-font-display);
            font-size: 10px;
            font-weight: 300;
            letter-spacing: 5px;
            color: var(--v-text-3);
            text-transform: uppercase;
            margin-bottom: 40px;
            text-indent: 5px;
        }

        .hub-nav-grid {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 24px;
            margin-bottom: 30px;
            max-width: 560px;
        }

        .hub-nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            transition: transform 0.3s ease;
            min-width: 100px;
        }

        .hub-nav-item:hover {
            transform: translateY(-4px);
        }

        .hub-nav-icon {
            width: 56px;
            height: 56px;
            border-radius: 14px;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.08);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .hub-nav-item:hover .hub-nav-icon {
            border-color: rgba(255, 255, 255, 0.25);
            background: rgba(255, 255, 255, 0.07);
        }

        .hub-nav-icon svg {
            width: 24px;
            height: 24px;
            stroke: rgba(255, 255, 255, 0.5);
            fill: none;
            stroke-width: 1.5;
            transition: stroke 0.3s ease;
        }

        .hub-nav-item:hover .hub-nav-icon svg {
            stroke: rgba(255, 255, 255, 0.85);
        }

        .hub-nav-label {
            font-family: 'Arial', sans-serif;
            font-size: 9px;
            letter-spacing: 2px;
            color: rgba(255, 255, 255, 0.4);
            text-transform: uppercase;
            text-align: center;
        }

        .hub-nav-sublabel {
            font-family: 'Arial', sans-serif;
            font-size: 7px;
            letter-spacing: 1px;
            color: rgba(255, 255, 255, 0.2);
            text-transform: uppercase;
            text-align: center;
            margin-top: -4px;
        }

        .hub-divider {
            width: 200px;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
            margin: 10px 0 30px;
        }

        /* --- About Verse Realm: what it is, how it uses Google data, and its content-safety rules. Fine print at the
           very bottom of the hub since 2026-10-09 (owner's request): columns of very small type. The size is one
           number, --hub-fine. The legal links under it keep an ordinary small size on purpose: the way to report
           an intimate image has to be easy to see. The splash footer's About link opens the hub here --- */
        .hub-about {
            --hub-fine: 9px;
            width: 100%;
            max-width: 860px;
            padding: 12px 20px 0;
            margin: 28px 0 18px;
            box-sizing: border-box;
            flex-shrink: 0;
            border-top: 1px solid var(--v-border);
            columns: 3 220px;
            column-gap: 26px;
            text-align: left;
            font-family: var(--v-font);
            font-size: var(--hub-fine);
            line-height: 1.55;
            color: var(--v-text-3);
            -webkit-text-size-adjust: 100%;
            text-size-adjust: 100%;
            scroll-margin-top: 24px;
        }
        .hub-about-title {
            column-span: all;
            font-family: var(--v-font);
            font-size: var(--hub-fine);
            font-weight: 600;
            letter-spacing: 0.04em;
            text-transform: none;
            text-align: left;
            color: var(--v-text-2);
            margin: 0 0 6px;
            outline: none;
        }
        .hub-about-block { margin: 0; padding: 0; border: 0; }
        .hub-about-block + .hub-about-block h3 { margin-top: 4px; }
        .hub-about h3 { font-family: var(--v-font); font-size: var(--hub-fine); font-weight: 600; line-height: 1.55; color: var(--v-text-2); margin: 0 0 2px; letter-spacing: 0; text-transform: none; break-after: avoid; }
        .hub-about p, .hub-about li { font-size: var(--hub-fine); line-height: 1.55; color: inherit; margin: 0 0 6px; break-inside: avoid; }
        .hub-about ul { margin: 0 0 6px; padding-left: 12px; }
        .hub-about li { margin-bottom: 2px; }
        .hub-about strong { color: inherit; font-weight: 600; }
        .hub-about-links { column-span: all; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; margin-top: 8px; font-size: 11px; line-height: 1.5; }
        @media (max-width: 480px) {
            .hub-about { padding: 12px 18px 0; }
        }

        .hub-status-badge {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 20px;
            border-radius: 20px;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid var(--v-border);
            margin-bottom: 30px;
        }

        .hub-status-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #34d399;
        }

        .hub-status-text {
            font-family: var(--v-font);
            font-size: 9px;
            letter-spacing: 3px;
            color: var(--v-text-3);
            text-transform: uppercase;
        }

        .hub-avatar-area {
            width: 220px;
            height: 220px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(30, 41, 59, 0.4) 0%, transparent 70%);
            border: 1px solid var(--v-border);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-top: -26px;
            margin-bottom: 30px;
            overflow: hidden;
            position: relative;
            /* The hub is a column of fixed height that scrolls. A column squeezes whatever is allowed to shrink
               when its content is taller than the window, and this circle was the only such thing (overflow:
               hidden lets it shrink to nothing), so it alone was flattened to a sliver with the avatar cut off:
               ever since the About text made the hub taller than most windows. It keeps its size now, and the
               hub scrolls instead, as it already did for the text. */
            flex: 0 0 auto;
            aspect-ratio: 1 / 1;
        }

        /* The avatar always fills its circle, whatever size the 3D view was first drawn at (the circle is
           smaller on narrow windows, and three.js writes the size it started with onto the canvas). */
        .hub-avatar-area canvas {
            display: block;
            border-radius: 50%;
            width: 100% !important;
            height: 100% !important;
        }

        .hub-avatar-area img {
            width: 140px;
            height: 140px;
            border-radius: 50%;
            object-fit: cover;
        }

        .hub-bottom-pill {
            width: 60px;
            height: 5px;
            border-radius: 3px;
            background: rgba(255, 255, 255, 0.12);
            margin-bottom: 20px;
        }

        .hub-auth-notice {
            font-family: 'Arial', sans-serif;
            font-size: 9px;
            letter-spacing: 2px;
            color: rgba(255, 255, 255, 0.25);
            text-transform: uppercase;
            margin-top: 10px;
        }

        /* Hub AI Chat */
        .hub-ai-section {
            width: 100%;
            max-width: 480px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
        }

        .hub-ai-label {
            font-family: var(--v-font);
            font-size: 9px;
            letter-spacing: 3px;
            color: var(--v-text-3);
            text-transform: uppercase;
        }

        .hub-ai-chat-box {
            width: 100%;
            max-height: 200px;
            min-height: 80px;
            overflow-y: auto;
            padding: 12px 16px;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid var(--v-border);
            border-radius: 12px;
            display: flex;
            flex-direction: column;
            gap: 10px;
            scrollbar-width: thin;
            scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
        }

        .hub-ai-chat-box::-webkit-scrollbar { width: 4px; }
        .hub-ai-chat-box::-webkit-scrollbar-track { background: transparent; }
        .hub-ai-chat-box::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 2px; }

        .hub-ai-msg {
            font-family: 'Arial', sans-serif;
            font-size: 13px;
            line-height: 1.5;
            padding: 8px 12px;
            border-radius: 10px;
            max-width: 85%;
            word-wrap: break-word;
        }

        .hub-ai-msg.ai {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--v-border);
            color: rgba(255, 255, 255, 0.75);
            align-self: flex-start;
        }

        .hub-ai-msg.user {
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.08);
            color: rgba(255, 255, 255, 0.6);
            align-self: flex-end;
        }

        .hub-ai-msg.typing {
            color: var(--v-text-3);
            font-style: italic;
        }

        .hub-ai-msg code {
            background: rgba(255, 255, 255, 0.08);
            padding: 1px 5px;
            border-radius: 4px;
            font-family: 'Consolas', monospace;
            font-size: 12px;
        }

        .hub-ai-msg pre {
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid var(--v-border);
            border-radius: 6px;
            padding: 8px 10px;
            overflow-x: auto;
            margin: 6px 0;
        }

        .hub-ai-msg pre code {
            background: none;
            padding: 0;
        }

        .hub-ai-msg strong {
            color: var(--v-accent);
        }

        .hub-ai-msg ul {
            margin: 4px 0;
            padding-left: 18px;
        }

        .hub-ai-msg li {
            margin-bottom: 2px;
        }

        .hub-ai-input-row {
            width: 100%;
            display: flex;
            gap: 8px;
        }

        .hub-ai-input {
            flex: 1;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 20px;
            padding: 10px 16px;
            color: rgba(255, 255, 255, 0.8);
            font-family: 'Arial', sans-serif;
            font-size: 13px;
            outline: none;
            transition: border-color 0.3s ease;
        }

        .hub-ai-input::placeholder {
            color: rgba(255, 255, 255, 0.2);
            letter-spacing: 1px;
        }

        .hub-ai-input:focus {
            border-color: rgba(255, 255, 255, 0.3);
        }

        .hub-ai-send {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid var(--v-border-strong);
            color: var(--v-text-2);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            flex-shrink: 0;
        }

        .hub-ai-send:hover {
            background: rgba(255, 255, 255, 0.12);
            border-color: rgba(255, 255, 255, 0.28);
            color: var(--v-text);
        }

        .hub-ai-send:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }

        .hub-ai-send svg {
            width: 18px;
            height: 18px;
            fill: currentColor;
        }

        /* --- Hub: Tablet (max 768px) --- */
        @media (max-width: 768px) {
            .hub-overlay {
                padding-top: 30px;
                padding-left: 16px;
                padding-right: 16px;
            }
            .hub-main-title {
                font-size: 30px;
                letter-spacing: 6px;
                text-indent: 6px;
            }
            .hub-tagline {
                font-size: 9px;
                letter-spacing: 4px;
                margin-bottom: 28px;
            }
            .hub-nav-grid {
                gap: 18px;
                max-width: 420px;
            }
            .hub-avatar-area {
                width: 180px;
                height: 180px;
                margin-top: -20px;
                margin-bottom: 24px;
            }
            .hub-ai-section {
                max-width: 90%;
            }
        }

        /* --- Hub: Phone (max 480px) --- */
        @media (max-width: 480px) {
            .hub-overlay {
                padding-top: 24px;
                padding-left: 12px;
                padding-right: 12px;
            }
            .hub-brand-text {
                font-size: 11px;
                letter-spacing: 5px;
            }
            .hub-main-title {
                font-size: 24px;
                letter-spacing: 5px;
                text-indent: 5px;
            }
            .hub-tagline {
                font-size: 8px;
                letter-spacing: 3px;
                margin-bottom: 22px;
            }
            .hub-nav-grid {
                gap: 14px;
                max-width: 300px;
            }
            .hub-nav-icon {
                width: 48px;
                height: 48px;
                border-radius: 12px;
            }
            .hub-nav-icon svg {
                width: 20px;
                height: 20px;
            }
            .hub-nav-label {
                font-size: 8px;
            }
            .hub-nav-sublabel {
                font-size: 6px;
            }
            .hub-avatar-area {
                width: 150px;
                height: 150px;
                margin-top: -16px;
                margin-bottom: 20px;
            }
            .hub-divider {
                width: 140px;
                margin: 8px 0 20px;
            }
            .hub-status-badge {
                padding: 6px 14px;
                margin-bottom: 20px;
            }
            .hub-status-text {
                font-size: 8px;
                letter-spacing: 2px;
            }
            .hub-ai-section {
                max-width: 95%;
            }
            .hub-ai-chat-box {
                max-height: 150px;
                min-height: 60px;
                padding: 10px 12px;
            }
            .hub-ai-msg {
                font-size: 12px;
                padding: 6px 10px;
            }
            .hub-ai-input {
                padding: 8px 14px;
                font-size: 12px;
            }
            .hub-ai-send {
                width: 36px;
                height: 36px;
            }
            .hub-ai-send svg {
                width: 16px;
                height: 16px;
            }
            .hub-auth-notice {
                font-size: 8px;
            }
        }

        /* --- Hub: Small phone (max 360px) --- */
        @media (max-width: 360px) {
            .hub-overlay {
                padding-top: 16px;
            }
            .hub-brand svg {
                width: 18px;
                height: 18px;
            }
            .hub-brand-text {
                font-size: 10px;
                letter-spacing: 4px;
            }
            .hub-main-title {
                font-size: 20px;
                letter-spacing: 4px;
                text-indent: 4px;
            }
            .hub-tagline {
                font-size: 7px;
                letter-spacing: 2px;
                margin-bottom: 16px;
            }
            .hub-nav-grid {
                gap: 10px;
                max-width: 260px;
            }
            .hub-nav-icon {
                width: 42px;
                height: 42px;
                border-radius: 10px;
            }
            .hub-nav-icon svg {
                width: 18px;
                height: 18px;
            }
            .hub-nav-label {
                font-size: 7px;
                letter-spacing: 1px;
            }
            .hub-avatar-area {
                width: 120px;
                height: 120px;
                margin-top: -12px;
                margin-bottom: 16px;
            }
            .hub-divider {
                width: 100px;
            }
            .hub-ai-chat-box {
                max-height: 120px;
            }
        }

        /* --- Hub: Landscape phones --- */
        @media (max-height: 500px) and (orientation: landscape) {
            .hub-overlay {
                padding-top: 12px;
                flex-direction: column;
            }
            .hub-brand {
                margin-bottom: 2px;
            }
            .hub-main-title {
                font-size: 22px;
                margin-bottom: 2px;
            }
            .hub-tagline {
                margin-bottom: 10px;
            }
            .hub-nav-grid {
                gap: 10px;
                margin-bottom: 10px;
            }
            .hub-nav-icon {
                width: 40px;
                height: 40px;
            }
            .hub-nav-icon svg {
                width: 18px;
                height: 18px;
            }
            .hub-avatar-area {
                width: 100px;
                height: 100px;
                margin-top: -8px;
                margin-bottom: 10px;
            }
            .hub-divider {
                margin: 4px 0 10px;
            }
            .hub-status-badge {
                padding: 4px 12px;
                margin-bottom: 10px;
            }
            .hub-ai-section {
                max-width: 70%;
            }
            .hub-ai-chat-box {
                max-height: 80px;
                min-height: 40px;
            }
        }

        /* ---- The hub's circle: the light that goes round it, and the way into the guide's world (2026-10-13) ---- */
        /* A light travels the rim while a question is out, and while the guide's world is being fetched. */
        .hub-avatar-ring {
            position: absolute;
            inset: 0;
            z-index: 2;
            border-radius: 50%;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.25s ease;
            background: conic-gradient(from 0deg, rgba(47, 224, 198, 0) 0deg, rgba(47, 224, 198, 0) 190deg, rgba(47, 224, 198, 0.9) 330deg, #EFFFFC 357deg, rgba(47, 224, 198, 0) 360deg);
            -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
            mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
        }
        .hub-avatar-area.is-asking .hub-avatar-ring,
        .hub-avatar-area.is-opening .hub-avatar-ring {
            opacity: 1;
            animation: hubRingTurn 1.5s linear infinite;
        }
        @keyframes hubRingTurn { to { transform: rotate(360deg); } }
        /* On the way into the guide's world the picture in the circle goes black first; js/hub-world.js then grows
           that black to the whole window, and draws it back into the circle on the way out. */
        .hub-avatar-area::after {
            content: '';
            position: absolute;
            inset: 0;
            z-index: 1;
            border-radius: 50%;
            background: #000;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.16s linear;
        }
        .hub-avatar-area.is-leaving::after { opacity: 1; }
        .hub-avatar-area.can-open { cursor: pointer; }
        /* "Click me": small, but a real button and a full tap target. The circle's own bottom margin is kept (the
           harness measures the circle), so the button is pulled up into it instead. */
        .hub-enter-world {
            flex: 0 0 auto;
            display: inline-flex;
            align-items: center;
            gap: 9px;
            min-height: 44px;
            margin: -27px 0 3px;
            padding: 0 16px;
            border: 0;
            border-radius: 22px;
            background: none;
            color: rgba(255, 255, 255, 0.9);
            font-family: var(--v-font);
            font-size: 14px;
            font-weight: 500;
            line-height: 1;
            cursor: pointer;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }
        .hub-enter-world::before {
            content: '';
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: #2FE0C6;
            animation: hubEnterPulse 2.6s ease-out infinite;
        }
        @keyframes hubEnterPulse { 0% { box-shadow: 0 0 0 0 rgba(47, 224, 198, 0.55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(47, 224, 198, 0); } }
        .hub-enter-world:hover { color: #fff; }
        .hub-enter-world:focus { outline: none; }
        .hub-enter-world:focus-visible { outline: 2px solid #2FE0C6; outline-offset: 2px; }
        .hub-enter-note {
            flex: 0 0 auto;
            margin: 0 0 10px;
            max-width: 300px;
            font-family: var(--v-font);
            font-size: 13px;
            line-height: 1.4;
            color: #FFC9B8;
            text-align: center;
        }
        .hub-enter-note:empty { display: none; }
        /* What the visitor or the AI wrote reads in its own direction, also on a page laid out right to left (where the
           site keeps text it never translates left to right). */
        .hub-ai-chat-box .hub-ai-msg[translate="no"] { unicode-bidi: plaintext; text-align: start; }
        @media (max-width: 768px) { .hub-enter-world { margin-top: -21px; } }
        @media (max-width: 480px) { .hub-enter-world { margin-top: -17px; } }
        @media (max-width: 360px) { .hub-enter-world { margin-top: -13px; } }
        @media (max-height: 500px) and (orientation: landscape) { .hub-enter-world { margin-top: -8px; margin-bottom: 0; } }
        @media (prefers-reduced-motion: reduce) {
            .hub-avatar-area.is-asking .hub-avatar-ring,
            .hub-avatar-area.is-opening .hub-avatar-ring { animation: none; background: rgba(47, 224, 198, 0.9); }
            .hub-enter-world::before { animation: none; }
        }
        /* ================================================================
           COMMAND CENTER LAYOUT
           ================================================================ */
        .cc-container {
            position: relative;
            z-index: 1;
            padding: 40px 50px 60px;
        }

        .cc-logo-wrap {
            display: flex;
            justify-content: center;
            margin-bottom: 12px;
        }

        .cc-logo {
            width: clamp(72px, 10vw, 118px);
            height: auto;
            display: block;
            object-fit: contain;
            mix-blend-mode: screen;
        }

        .cc-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 30px;
            flex-wrap: wrap;
            gap: 24px;
        }

        .cc-title-area { flex: 1; min-width: 250px; }

        .cc-title {
            font-family: var(--v-font-display);
            font-size: clamp(2.1rem, 4.5vw, 3.4rem);
            color: var(--v-title);
            margin: 0 0 8px 0;
            letter-spacing: -0.02em;
            line-height: 1.05;
            font-weight: 700;
        }

        .cc-subtitle {
            font-family: var(--v-font);
            font-size: clamp(0.85rem, 1.3vw, 1rem);
            color: var(--v-text-2);
            margin: 0;
        }

        .cc-search-area { display: flex; align-items: center; gap: 12px; padding-top: 10px; }

        .cc-search-box {
            display: flex;
            align-items: center;
            background: var(--v-surface-1);
            border: 1px solid var(--v-border);
            border-radius: 8px;
            padding: 11px 16px;
            min-width: 280px;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }

        .cc-search-box:focus-within {
            border-color: rgba(103, 232, 249, 0.45);
            box-shadow: 0 0 0 3px rgba(103, 232, 249, 0.12);
        }

        .cc-search-icon { color: var(--v-text-3); margin-right: 10px; flex-shrink: 0; }

        .cc-search-input {
            background: transparent;
            border: none;
            outline: none;
            color: var(--v-text);
            font-family: var(--v-font);
            font-size: 14px;
            width: 100%;
        }

        .cc-search-input::placeholder { color: var(--v-text-3); }

        .cc-no-results {
            text-align: center;
            color: var(--v-text-3);
            font-family: var(--v-font);
            font-size: 0.95rem;
            padding: 60px 20px;
        }

        /* ── iPad-style springboard ──────────────────────────────
           The launcher replicates an iPadOS home screen (no dock):
           bare squircle icons (~22.4% corner radius, per Apple's icon
           geometry) on ONE evenly-tracked grid — no category sections,
           a true home screen. A thin label sits beneath each icon.
           Icon size is var-driven so breakpoints only retune --cc-icon. */
        .cc-container { --cc-icon: 78px; }

        .cc-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(calc(var(--cc-icon) + 34px), 1fr));
            gap: 30px 14px;
            align-content: start;
            justify-items: center;
            max-width: 1180px;
            margin: 0 auto;
        }

        /* ── Hero: what Verse is (5-second rule — one line + subline,
           the grid stays the centerpiece right below it) ─────────── */
        .cc-hero {
            text-align: center;
            max-width: 780px;
            margin: -6px auto 34px;
        }

        .cc-hero-hello {
            display: block;
            font-family: var(--v-font);
            font-size: 0.9rem;
            color: var(--v-text-2);
            margin-bottom: 10px;
        }

        .cc-hero-lede {
            font-family: var(--v-font-display);
            font-size: clamp(1.25rem, 2.6vw, 1.7rem);
            font-weight: 600;
            letter-spacing: -0.015em;
            color: var(--v-title);
            margin: 0 0 8px;
        }

        .cc-hero-sub {
            font-size: 0.95rem;
            line-height: 1.55;
            color: var(--v-text-2);
            margin: 0 0 16px;
        }

        .cc-hero-pill {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: var(--v-surface-1);
            border: 1px solid var(--v-border-strong);
            border-radius: 999px;
            color: var(--v-accent);
            font-family: var(--v-font);
            font-size: 0.85rem;
            font-weight: 600;
            padding: 9px 18px;
            cursor: pointer;
            transition: background 0.2s ease, border-color 0.2s ease;
        }

        .cc-hero-pill:hover {
            background: var(--v-surface-2);
            border-color: rgba(103, 232, 249, 0.4);
        }

        /* ── Versona product tour: spotlight + bubble ────────────
           While touring, everything but the featured icon dims; the
           featured icon gets a breathing cyan halo. The tour bubble
           is anchored bottom-right, above the Versona avatar. */
        .cc-container.cc-touring .cc-card:not(.cc-tour-spot) {
            opacity: 0.25;
            filter: saturate(0.4);
            transition: opacity 0.4s ease, filter 0.4s ease;
        }

        .cc-card.cc-tour-spot { position: relative; z-index: 3; }

        .cc-card.cc-tour-spot .cc-card-icon {
            box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.9), 0 8px 24px rgba(0, 0, 0, 0.5);
            animation: ccTourPulse 1.8s ease-in-out infinite;
        }

        @keyframes ccTourPulse {
            0%, 100% { box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.9), 0 8px 24px rgba(0, 0, 0, 0.5); }
            50% { box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.5), 0 8px 24px rgba(0, 0, 0, 0.5); }
        }

        .verse-tour-bubble {
            position: fixed;
            right: 24px;
            bottom: 235px;
            width: min(360px, calc(100vw - 32px));
            background: var(--v-surface-3);
            border: 1px solid var(--v-border-strong);
            border-radius: 14px 14px 2px 14px;
            box-shadow: var(--v-shadow-overlay);
            padding: 16px 18px 13px;
            z-index: 10005;
            color: var(--v-text);
            font-family: var(--v-font);
            animation: ccTourBubbleIn 0.3s ease both;
        }

        @keyframes ccTourBubbleIn {
            from { opacity: 0; transform: translateY(14px) scale(0.96); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }

        .verse-tour-bubble .vt-step {
            font-family: var(--v-font);
            font-size: 0.7rem;
            font-weight: 600;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: var(--v-text-3);
            margin: 0 0 7px;
        }

        .verse-tour-bubble .vt-text {
            font-size: 0.88rem;
            line-height: 1.55;
            margin: 0 0 12px;
            color: var(--v-text);
        }

        .verse-tour-bubble .vt-text b { color: var(--v-accent); }

        .verse-tour-bubble .vt-actions {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .verse-tour-bubble .vt-btn {
            border: 1px solid var(--v-border-strong);
            background: var(--v-surface-2);
            color: var(--v-text);
            border-radius: 8px;
            font-family: var(--v-font);
            font-size: 0.8rem;
            font-weight: 600;
            padding: 7px 14px;
            cursor: pointer;
            transition: background 0.2s ease, border-color 0.2s ease;
        }

        .verse-tour-bubble .vt-btn:hover { background: var(--v-surface-3); border-color: rgba(255, 255, 255, 0.24); }

        .verse-tour-bubble .vt-btn.vt-primary {
            background: var(--v-accent-strong);
            border-color: transparent;
            color: #06202a;
            font-weight: 700;
        }

        .verse-tour-bubble .vt-btn.vt-primary:hover { background: var(--v-accent); }

        .verse-tour-bubble .vt-skip {
            margin-left: auto;
            background: none;
            border: none;
            color: var(--v-text-3);
            font-size: 0.78rem;
            cursor: pointer;
            font-family: var(--v-font);
        }

        .verse-tour-bubble .vt-skip:hover { color: var(--v-text-2); }

        @media (max-width: 640px) {
            .verse-tour-bubble { bottom: 170px; right: 16px; }
        }

        /* An "app" is just icon + label — no card box, like a real
           home screen. Hover lifts; press squashes (iOS spring feel). */
        .cc-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            text-align: center;
            gap: 8px;
            background: transparent;
            border: none;
            border-radius: 0;
            padding: 0;
            width: 100%;
            max-width: calc(var(--cc-icon) + 26px);
            cursor: pointer;
            transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
            position: relative;
            overflow: visible;
            text-decoration: none;
            color: inherit;
        }

        .cc-card::before {
            content: none;
            position: absolute;
            top: 0; left: -100%;
            width: 100%; height: 100%;
            background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.05), transparent);
            transition: left 0.6s ease;
        }

        .cc-card:hover::before { left: 100%; }

        .cc-card:hover {
            transform: translateY(-2px);
        }

        .cc-card:active { transform: scale(0.88); transition: transform 0.1s ease; }

        /* Touch-friendly: prevent accidental hover on mobile */
        @media (hover: none) and (pointer: coarse) {
            .cc-card { -webkit-tap-highlight-color: transparent; }
            .cc-card:hover { transform: none; }
            .cc-card:active { transform: scale(0.88); }
        }

        .cc-card.cc-hidden { display: none !important; }
        /* Hidden by the directory search (kept separate from permission hiding,
           so clearing the box always restores the user's full app set). */
        .cc-card.cc-filtered-out { display: none !important; }

        /* The squircle. Apple's icon geometry rounds corners at ~22.37% of
           the icon's width; corner-shape smooths them further where the
           browser supports it. */
        .cc-card-icon {
            width: var(--cc-icon); height: var(--cc-icon);
            display: flex; align-items: center; justify-content: center;
            background: var(--v-surface-2);
            border: 1px solid rgba(255, 255, 255, 0.10);
            border-radius: 22.4%;
            corner-shape: squircle;
            flex-shrink: 0;
            color: var(--v-accent);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
            will-change: transform; /* preserve-3d removed - see .ccx-frame note */
            transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.18s ease-out;
        }

        /* Keyboard selection cue — mirrors the pointer hover state */
        .cc-card:focus-visible {
            outline: none;
        }

        .cc-card:focus-visible .cc-card-icon {
            border-color: rgba(103, 232, 249, 0.55);
            box-shadow: 0 0 0 3px rgba(103, 232, 249, 0.18), 0 6px 18px rgba(0, 0, 0, 0.45);
        }

        .cc-card:hover .cc-card-icon {
            border-color: var(--v-border-strong);
            background: var(--v-surface-3);
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
        }

        .cc-card.card-danger .cc-card-icon { border-color: rgba(248, 113, 113, 0.35); color: var(--v-danger); }
        .cc-card.card-danger:hover .cc-card-icon { border-color: rgba(248, 113, 113, 0.55); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45); }

        .cc-card-icon svg { width: 44%; height: 44%; fill: currentColor; }
        .cc-card-icon { overflow: hidden; }
        .cc-card-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }

        /* "Containers" (cards that open a panel of more apps) read as iPad
           folders: a frosted tray instead of a solid app tile. */
        .cc-card.cc-folder .cc-card-icon {
            background: rgba(255, 255, 255, 0.07);
            border-color: rgba(255, 255, 255, 0.16);
        }

        /* ── Springboard pop-in ─────────────────────────────────
           Fires when the Command Center becomes visible: each icon
           springs from small→overshoot→rest (transform/opacity only),
           staggered ~40ms apart via --cc-i set by ccPlayIntro(). */
        @keyframes ccPopIn {
            0%   { opacity: 0; transform: scale(0.25) translateY(16px); }
            62%  { opacity: 1; transform: scale(1.07) translateY(-2px); }
            100% { opacity: 1; transform: scale(1) translateY(0); }
        }
        @keyframes ccLabelIn {
            from { opacity: 0; }
            to   { opacity: 1; }
        }
        .cc-container.cc-animate-in .cc-card {
            animation: ccPopIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
            animation-delay: calc(var(--cc-i, 0) * 40ms);
        }
        .cc-container.cc-animate-in .cc-hero,
        .cc-container.cc-animate-in .cc-header,
        .cc-container.cc-animate-in .cc-logo-wrap {
            animation: ccLabelIn 0.6s ease both;
        }
        @media (prefers-reduced-motion: reduce) {
            .cc-container.cc-animate-in .cc-card,
            .cc-container.cc-animate-in .cc-hero,
            .cc-container.cc-animate-in .cc-header,
            .cc-container.cc-animate-in .cc-logo-wrap { animation: none; }
        }

        /* COSMOS icon: same art, same colors — just framed on the planet
           mark, since the full logo with its tiny wordmark reads as scribble
           at tile size. (Image file itself is untouched.) */
        .cc-card-icon img[alt^="COSMOS"] {
            transform: scale(2.05);
            transform-origin: 50% 44%;
        }

        .cc-card-info { min-width: 0; width: 100%; }

        /* iPad-style label: small, quiet, one line under the icon */
        .cc-card-info h3 {
            font-family: var(--v-font);
            font-size: 0.73rem;
            font-weight: 400;
            letter-spacing: 0.2px;
            color: var(--v-text);
            margin: 0;
            line-height: 1.25;
            text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .cc-card:hover .cc-card-info h3 { color: #ffffff; }

        .cc-card.card-danger .cc-card-info h3 { color: var(--v-danger); }

        /* iOS homescreen shows only the app name; the descriptive subtitle is hidden
           visually but stays in the DOM so the directory search can still match it. */
        .cc-card-info p {
            display: none;
        }

        /* Retired: decorative scanline overlay removed in the visual refresh. */
        .cc-scanlines {
            display: none;
        }

        /* Command Center responsive */

        /* Large tablets / small laptops (769px – 1024px) */
        @media (max-width: 1024px) {
            .cc-container { --cc-icon: 72px; padding: 40px 25px 50px; }
            .cc-grid { gap: 26px 12px; }
            .cc-header { margin-bottom: 26px; }
            .cc-search-box { min-width: 220px; }
        }

        /* Tablets portrait & large phones (481px – 768px).
           Bottom padding must clear the fixed chrome stack (social row +
           profile chip + versona helper box ≈ 330px) so the last grid rows
           can always scroll into a tappable position. */
        @media (max-width: 768px) {
            /* Top padding clears the fixed top-right account badge (avatar +
               expanded bubble ≈ 100px) so the logo/title never sit under it. */
            .cc-container { --cc-icon: 62px; padding: 112px 16px 380px; }
            .cc-logo-wrap { margin-bottom: 12px; }
            .cc-header { flex-direction: column; margin-bottom: 22px; gap: 14px; }
            .cc-title-area { min-width: 0; width: 100%; }
            .cc-grid { gap: 22px 8px; }
            .cc-card-info h3 { font-size: 0.7rem; }
            .cc-search-box { min-width: 100%; }
            .cc-search-area { width: 100%; }
            .cc-scanlines { display: none; }
            .social-container { bottom: 8px !important; }
            /* Phones: account badge lives in the TOP-right (matches desktop),
               with the login/logout bubble expanded so the buttons are visible.
               It previously sat above the bottom chrome collapsed to just the
               avatar, which hid Login/Logout entirely. */
            .profile-container {
                position: fixed !important;
                top: max(10px, env(safe-area-inset-top)) !important;
                bottom: auto !important;
                right: 10px !important;
                left: auto !important;
                transform: none !important;
                flex-direction: row !important;
                align-items: flex-start !important;
                max-width: calc(100% - 20px) !important;
                z-index: 10001 !important;
            }
            /* Tapping the avatar can still collapse/expand the bubble. */
            .profile-container.vp-collapsed .speech-bubble { display: none !important; }
            .profile-container .profile-image { cursor: pointer; }
        }

        /* Standard phones (361px – 480px) */
        @media (max-width: 480px) {
            .cc-container { --cc-icon: 56px; padding: 108px 12px 340px; }
            .cc-logo { width: 64px; }
            .cc-title { font-size: 1.9rem; }
            .cc-subtitle { font-size: 0.85rem; }
            .cc-header { margin-bottom: 18px; gap: 10px; }
            .cc-grid { gap: 18px 6px; }
            .cc-card-info h3 { font-size: 0.66rem; }
            .cc-search-input { font-size: 13px; }
            .cc-search-box { padding: 10px 14px; }
        }

        /* Small phones (≤360px, e.g. iPhone SE, Galaxy S) */
        @media (max-width: 360px) {
            .cc-container { --cc-icon: 50px; padding: 104px 10px 340px; }
            .cc-title { font-size: 1.65rem; }
            .cc-subtitle { font-size: 0.8rem; }
            .cc-header { margin-bottom: 14px; gap: 8px; }
            .cc-grid { gap: 16px 5px; }
            .cc-card-info h3 { font-size: 0.62rem; }
            .cc-search-input { font-size: 11px; }
            .cc-search-box { padding: 9px 12px; }
        }

        /* Landscape phones — compact springboard on small heights */
        @media (max-height: 500px) and (orientation: landscape) {
            .cc-container { --cc-icon: 48px; padding: 16px 20px 30px; }
            .cc-header { margin-bottom: 16px; flex-direction: row; align-items: center; gap: 16px; }
            .cc-title { font-size: 1.8rem; }
            .cc-subtitle { font-size: 0.5rem; }
            .cc-grid { gap: 14px 6px; }
            .cc-card-info h3 { font-size: 0.62rem; }
            .profile-container {
                top: 5px !important;
                right: 5px !important;
                bottom: auto !important;
                position: fixed !important;
            }
        }

        /* Panel must sit above ALL fixed chrome (profile bubble z 10001, versona
           helper z 9998–100001, social row) — matches its base z-index. A previous
           "above scanlines" override set this to 10, which dropped the open panel
           UNDER the chrome; on phones the chrome covered the panel's lower half and
           swallowed taps on the app icons inside it. */
        .content-panel { z-index: 100005; }

        /* Safe area insets for notched devices.
           NOTE: this rule is later in the sheet than the responsive padding
           rules above, so its padding-bottom WINS — on phones it must keep the
           big chrome-clearing value, not clamp back down to 60px (that bug
           buried the last grid rows under the fixed account chip / social row). */
        @supports (padding: max(0px)) {
            .cc-container {
                padding-left: max(12px, env(safe-area-inset-left));
                padding-right: max(12px, env(safe-area-inset-right));
                padding-bottom: max(60px, env(safe-area-inset-bottom));
            }

            @media (max-width: 768px) {
                .cc-container {
                    padding-bottom: max(380px, calc(env(safe-area-inset-bottom) + 340px));
                }
            }

            @media (max-width: 480px) {
                .cc-container {
                    padding-bottom: max(340px, calc(env(safe-area-inset-bottom) + 300px));
                }
            }
        }
