        :root {
            color-scheme: dark;
            --accent: #e94560;
            --text: #f6f6f6;
            --muted: rgba(246, 246, 246, 0.62);
            --transition-speed: 500ms;
            --hover-color: var(--text);
            --particle-color: rgba(246, 246, 246, 0.5);
        }

        body.is-live-mode {
            --hover-color: var(--accent);
            --particle-color: rgba(233, 69, 96, 0.5);
        }

        * {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            min-height: 100vh;
            background: #0A0A0A;
            color: var(--text);
            font-family: "DM Serif Display", serif;
            font-weight: 200;
            font-style: normal;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        /* Loading spinner */
        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #000;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            transition: opacity 400ms ease, visibility 0s linear 400ms;
        }

        .loading-overlay.hide {
            opacity: 0;
            visibility: hidden;
        }

        .loading-svg {
            width: 80px;
            height: auto;
            animation: pulse 2s infinite ease-in-out;
        }

        .loading-svg path {
            fill: var(--text);
        }

        @keyframes pulse {
            0% { opacity: 0.3; transform: scale(0.95); }
            50% { opacity: 1; transform: scale(1.05); }
            100% { opacity: 0.3; transform: scale(0.95); }
        }

        header {
            position: fixed;
            top: 28px;
            right: 40px;
            display: flex;
            gap: 24px;
            z-index: 20;
            font-size: 0.85rem;
            letter-spacing: 0.12em;
            opacity: 0;
            transform: translateY(-10px);
            transition: opacity 600ms ease 300ms, transform 600ms ease 300ms;
        }

        body.loaded header {
            opacity: 1;
            transform: translateY(0);
        }

        header a {
            color: var(--text);
            text-decoration: none;
            position: relative;
            padding: 8px 10px;
            transition: color var(--transition-speed) ease;
        }

        header a::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: 0;
            width: 100%;
            height: 1px;
            background: currentColor;
            transform: scaleX(0);
            transform-origin: right;
            transition: transform var(--transition-speed) ease;
        }

        header a:hover {
            color: var(--hover-color);
        }

        header a:hover::after {
            transform: scaleX(1);
            transform-origin: left;
        }

        main {
            position: relative;
            width: min(90vw, 560px);
            height: clamp(420px, 70vh, 600px);
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 600ms ease 200ms, transform 600ms ease 200ms;
        }

        body.loaded main {
            opacity: 1;
            transform: translateY(0);
        }

        .section {
            position: absolute;
            inset: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 24px;
            text-align: center;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity var(--transition-speed) ease,
                visibility 0s linear var(--transition-speed);
        }

        .section.is-visible {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
            transition-delay: 0s;
        }

        .logo-link {
            position: relative;
            display: grid;
            place-items: center;
            border: none;
            background: none;
            padding: 0;
            cursor: default;
            transition: transform var(--transition-speed) ease;
            /* Reserve space to prevent layout shift */
            width: clamp(280px, 48vw, 520px);
            height: clamp(280px, 48vw, 520px);
            pointer-events: none; /* Disable clicks on the large container */
        }

        .logo-hit-area {
            position: absolute;
            width: 160%;
            height: 50%;
            pointer-events: auto; /* Enable clicks only on the tight area */
            z-index: 10;
        }

        .logo-link.is-clickable .logo-hit-area {
            cursor: pointer;
        }

        /* When hovering the hit area, animate the parent logo-link (if supported) or just the video */
        .logo-link.is-clickable:has(.logo-hit-area:hover) {
            transform: translateY(-3px);
        }

        .logo-link.is-live .logo-video.show {
            filter: drop-shadow(0 0 28px rgba(233, 69, 96, 0.65));
        }

        .logo-video {
            width: 100%;
            height: auto;
            grid-area: 1 / 1;
            opacity: 0;
            transition: opacity 600ms ease;
            transform: scale(1.7);
        }

        .logo-video.show {
            opacity: 1;
        }

        /* .logo-video.preloaded {
        } */

        .status-text {
            font-size: 1rem;
            letter-spacing: 0.08em;
            color: var(--muted);
            min-height: 1.2em;
            /* Prevent layout shift */
            display: flex;
            align-items: center;
            justify-content: center;
            transition: color 400ms ease;
        }

        .status-text.live {
            color: var(--accent);
        }

        .widget {
            width: min(85%, 320px);
            padding: 18px 20px;
            border-radius: 18px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(255, 255, 255, 0.04);
            backdrop-filter: blur(10px);
            text-align: left;
            display: grid;
            gap: 10px;
        }

        .widget-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 0.72rem;
            letter-spacing: 0.16em;
            color: var(--muted);
            min-height: 1em;
            /* Prevent layout shift */
        }

        .widget-track {
            min-height: 2.5em;
            /* Reserve space for content */
            display: flex;
            flex-direction: column;
            justify-content: center;
            width: 100%;
            overflow: hidden;
        }

        .widget-track strong {
            font-size: 1.2rem;
            transition: opacity 300ms ease;
            white-space: normal;
            overflow-wrap: break-word;
            word-break: break-word;
            display: block;
            max-width: 100%;
            line-height: 1.2;
        }
        .widget-track strong.long-title {
            font-size: 1rem;
        }
        .widget-track strong.very-long-title {
            font-size: 0.9rem;
        }

        .widget-track span {
            font-size: 0.9rem;
            color: var(--muted);
            transition: opacity 300ms ease;
        }

        .widget-footnote {
            font-size: 0.7rem;
            letter-spacing: 0.08em;
            color: rgba(246, 246, 246, 0.45);
            min-height: 1em;
            /* Prevent layout shift */
            transition: opacity 300ms ease;
        }

        .links-panel {
            display: grid;
            gap: 18px;
            justify-items: center;
        }

        .linktree {
            display: grid;
            gap: 18px;
            justify-items: center;
            width: min(100%, 320px);
        }

        .linktree a {
            display: flex;
            align-items: center;
            gap: 12px;
            text-decoration: none;
            color: var(--text);
            font-size: 1.4rem;
            letter-spacing: 0.05em;
            transition: color var(--transition-speed) ease, transform var(--transition-speed) ease;
        }

        .linktree a:hover {
            color: var(--hover-color);
            transform: scale(1.05);
        }

        .back-link {
            font-size: 0.8rem;
            letter-spacing: 0.18em;
            color: var(--muted);
            text-decoration: none;
            padding: 12px 28px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(255, 255, 255, 0.04);
            backdrop-filter: blur(10px);
            border-radius: 999px;
            margin-top: 24px;
            transition: all var(--transition-speed) ease;
        }

        .back-link:hover {
            color: var(--hover-color);
            border-color: var(--hover-color);
            background: rgba(255, 255, 255, 0.08);
            transform: translateY(-2px);
        }

        /* Content update animations */
        .content-updating {
            opacity: 0.7;
            transition: opacity 200ms ease;
        }

        @media (max-width: 600px) {
            header {
                top: 20px;
                right: 20px;
                gap: 16px;
                font-size: 0.72rem;
            }

            main {
                width: min(94vw, 480px);
                height: clamp(360px, 70vh, 540px);
            }

            .logo-link {
                width: clamp(200px, 48vw, 340px);
                height: clamp(200px, 48vw, 340px);
            }

            body {
                overflow: auto;
            }
        }

        /* Custom Cursor */
        .cursor {
            position: fixed;
            top: 0;
            left: 0;
            width: 20px;
            height: 20px;
            border: 1px solid var(--text);
            border-radius: 50%;
            pointer-events: none;
            z-index: 9999;
            transform: translate(-50%, -50%);
            transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s, opacity 0.3s;
            mix-blend-mode: difference;
            opacity: 0;
        }

        .cursor.active {
            opacity: 1;
        }

        .cursor.live {
            border-color: var(--accent);
        }

        .cursor.hovered {
            width: 40px;
            height: 40px;
            background-color: rgba(246, 246, 246, 0.1);
            border-color: transparent;
        }

        .cursor.live.hovered {
            background-color: rgba(233, 69, 96, 0.1);
        }

        /* Background Canvas */
        #bg-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            pointer-events: none;
        }

        /* Ghost Pulse Effect */
        .ghost-pulse {
            position: relative;
            display: inline-block;
            z-index: 1;
        }

        .ghost-pulse::before,
        .ghost-pulse::after {
            content: attr(data-text);
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0.4;
            z-index: -1;
            animation: ghost-anim 3s infinite cubic-bezier(0.2, 1, 0.2, 1);
        }

        .ghost-pulse::after {
            animation-delay: 0.3s;
        }

        @keyframes ghost-anim {
            0% {
                transform: scale(1);
                opacity: 0.4;
                filter: blur(0px);
            }
            100% {
                transform: scale(1.4);
                opacity: 0;
                filter: blur(4px);
            }
        }

        /* Ultra-small screen support */
        @media (max-width: 350px), (max-height: 500px) {
            main {
                width: 90vw;
                height: auto;
                min-height: auto;
                padding: 20px 0;
                transform: none !important; /* Disable transform animations that might cause overflow */
            }
            
            .logo-link {
                width: 160px;
                height: 160px;
            }

            .widget {
                width: 100%;
                padding: 12px;
            }

            header {
                position: absolute; /* Allow scrolling away */
                width: 100%;
                justify-content: center;
                right: 0;
            }
        }
