* {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            -webkit-user-select: none;
            user-select: none;
            -webkit-touch-callout: none;
        }

        input, textarea {
            -webkit-user-select: text;
            user-select: text;
        }

        html, body {
            width: 100vw;
            height: 100vh;
            overflow: hidden;
            background-color: #050510;
            color: #f8fafc;
            font-family: 'Poppins', sans-serif;
            display: flex;
            align-items: center;
            justify-content: center;
            position: fixed;
            inset: 0;
        }

        /* El recurso original de la Web (landing.js) libre de escalados y sin capas oscuras encima */
        #webgl-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            z-index: 0;
            pointer-events: none;
        }

        /* HUD de la Pantalla de Carga completamente transparente para ver la galaxia y el Puma de la web */
        #mobile-game-intro {
            position: fixed;
            inset: 0;
            z-index: 50;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-end;
            padding-bottom: 54px;
            background: transparent;
            pointer-events: none;
            transition: opacity 0.85s ease, transform 0.85s ease;
        }

        #mobile-game-intro.intro-fade-out {
            opacity: 0;
            transform: scale(1.04);
            pointer-events: none;
        }

        .game-hud-center {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .game-intro-title {
            font-family: 'Rajdhani', sans-serif;
            font-size: clamp(40px, 8.5vw, 64px);
            font-weight: 800;
            letter-spacing: 0.28em;
            text-indent: 0.28em;
            color: #ffffff;
            text-shadow:
                0 0 22px rgba(0, 242, 255, 0.95),
                0 0 55px rgba(56, 189, 248, 0.65),
                0 4px 20px rgba(0, 0, 0, 0.95);
            line-height: 1;
        }

        .game-loading-container {
            width: 280px;
            margin-top: 8px;
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .game-loading-status-row {
            display: flex;
            justify-content: space-between;
            font-family: 'JetBrains Mono', monospace;
            font-size: 9px;
            font-weight: 700;
            letter-spacing: 0.16em;
            color: #7dd3fc;
            text-transform: uppercase;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
        }

        .game-intro-bar-wrap {
            width: 100%;
            height: 6px;
            border-radius: 999px;
            background: rgba(10, 15, 29, 0.85);
            border: 1px solid rgba(0, 242, 255, 0.4);
            padding: 1px;
            overflow: hidden;
            box-shadow: 0 0 20px rgba(0, 242, 255, 0.25);
        }

        .game-intro-bar-fill {
            width: 0%;
            height: 100%;
            border-radius: 999px;
            background: linear-gradient(90deg, #0284c7, #00f2ff, #a855f7);
            box-shadow: 0 0 14px #00f2ff;
            transition: width 0.15s linear;
        }

        #offline-error-box {
            display: none;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            margin-top: 10px;
            padding: 12px 20px;
            border-radius: 16px;
            background: rgba(10, 15, 29, 0.95);
            border: 1px solid rgba(244, 63, 94, 0.6);
            text-align: center;
            pointer-events: auto;
        }

        #offline-error-box.show-offline {
            display: flex;
        }

        .offline-msg-text {
            font-family: 'JetBrains Mono', monospace;
            font-size: 10px;
            color: #fda4af;
            font-weight: 700;
        }

        /* Barra Inferior: Izquierda = Version | Medio = RiseUp | Derecha = Marca de agua "Por amor" */
        .intro-bottom-bar {
            position: fixed;
            bottom: 14px;
            left: 0;
            width: 100%;
            padding: 0 28px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-family: 'JetBrains Mono', monospace;
            font-size: 11px;
            z-index: 60;
        }

        .intro-version-left {
            color: #38bdf8;
            font-weight: 700;
            letter-spacing: 0.2em;
        }

        .intro-developer-center {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            color: #f8fafc;
            font-weight: 700;
            letter-spacing: 0.26em;
            text-shadow: 0 0 12px rgba(0, 242, 255, 0.45);
        }

        .intro-watermark-right {
            color: rgba(226, 232, 240, 0.34);
            font-family: 'Poppins', sans-serif;
            font-size: 11px;
            font-weight: 300;
            font-style: italic;
            letter-spacing: 0.22em;
            pointer-events: none;
        }

        /* PANEL DE LOGIN CON AMY */
        .login-split-wrapper {
            position: relative;
            z-index: 20;
            width: 92%;
            max-width: 1040px;
            min-height: 520px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            border-radius: 32px;
            border: 1px solid rgba(255, 255, 255, 0.10);
            border-top: 1px solid rgba(255, 255, 255, 0.20);
            background:
                radial-gradient(
                    circle at 24% 50%,
                    rgba(56, 189, 248, 0.22) 0%,
                    rgba(79, 70, 229, 0.15) 28%,
                    rgba(15, 23, 42, 0.04) 58%,
                    rgba(0, 0, 0, 0.0) 78%
                ),
                linear-gradient(
                    90deg,
                    rgba(8, 13, 34, 0.90) 0%,
                    rgba(13, 23, 58, 0.78) 22%,
                    rgba(16, 28, 68, 0.54) 42%,
                    rgba(14, 22, 50, 0.28) 62%,
                    rgba(10, 15, 34, 0.10) 82%,
                    rgba(6, 9, 20, 0.02) 100%
                );
            backdrop-filter: blur(16px) saturate(140%);
            -webkit-backdrop-filter: blur(16px) saturate(140%);
            box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
            overflow: hidden;
            opacity: 1;
            transform: scale(1) translateY(0);
            transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .login-split-wrapper.login-hidden-for-intro {
            opacity: 0;
            transform: scale(0.95) translateY(14px);
            pointer-events: none;
        }

        @media (max-height: 520px) {
            .login-split-wrapper {
                width: 100vw;
                max-width: 100vw;
                height: 100vh;
                min-height: 100vh;
                border-radius: 0;
                border: none;
            }
            .amy-left-stage { padding: 12px !important; }
            .amy-avatar-orb { width: 128px !important; height: 128px !important; }
            .login-right-glass { padding: 16px 32px !important; }
            .glass-input-group { margin-bottom: 10px !important; }
            .glass-input-field { padding: 10px 14px !important; font-size: 13px !important; }
            .glass-submit-btn { padding: 11px 16px !important; }
        }

        .amy-left-stage {
            position: relative;
            padding: 48px 36px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
        }

        .amy-avatar-orb {
            position: relative;
            width: 175px;
            height: 175px;
            border-radius: 9999px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: radial-gradient(circle at 32% 28%, #93c5fd 0%, #5b7fe5 62%, #1e293b 100%);
            border: 1.5px solid rgba(255, 255, 255, 0.35);
            box-shadow: 0 18px 50px rgba(0, 0, 0, 0.65), 0 0 40px rgba(91, 127, 229, 0.35), inset 0 4px 16px rgba(255, 255, 255, 0.45);
            transition: all 0.38s cubic-bezier(0.25, 1, 0.5, 1);
            animation: amyIdleFloat 3.2s ease-in-out infinite;
        }

        .amy-avatar-orb.amy-shake {
            animation: amyAngryShake 0.32s ease-in-out infinite;
        }

        .amy-orb-gloss {
            position: absolute;
            top: 16px;
            left: 34px;
            width: 52px;
            height: 18px;
            border-radius: 9999px;
            background: rgba(255, 255, 255, 0.38);
            filter: blur(2px);
            pointer-events: none;
        }

        .amy-eyes-container {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.28s cubic-bezier(0.25, 1, 0.5, 1);
        }

        .amy-eye-pill {
            width: 17px;
            height: 42px;
            margin: 0 14px;
            border-radius: 9999px;
            background-color: #111316;
            transition: all 0.26s cubic-bezier(0.25, 1, 0.5, 1);
        }

        .amy-name-only {
            margin-top: 16px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 15px;
            font-weight: 700;
            letter-spacing: 0.28em;
            text-transform: uppercase;
            color: #f8fafc;
        }

        .login-right-glass {
            padding: 48px 48px 48px 28px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .login-brand-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 20px;
        }

        .login-brand-title {
            font-family: 'Rajdhani', sans-serif;
            font-size: 26px;
            font-weight: 800;
            letter-spacing: 0.16em;
            color: #ffffff;
        }

        .login-back-link {
            font-family: 'JetBrains Mono', monospace;
            font-size: 11px;
            color: #cbd5e1;
            text-decoration: none;
            padding: 7px 14px;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.14);
            background: rgba(255, 255, 255, 0.06);
        }

        .glass-input-group { margin-bottom: 18px; }

        .glass-input-label {
            display: block;
            font-family: 'JetBrains Mono', monospace;
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: #e2e8f0;
            margin-bottom: 6px;
        }

        .glass-input-field {
            width: 100%;
            padding: 14px 18px;
            border-radius: 16px;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.16);
            color: #ffffff;
            font-size: 14px;
            outline: none;
        }

        .glass-submit-btn {
            width: 100%;
            margin-top: 6px;
            padding: 14px 20px;
            border-radius: 16px;
            border: 1px solid rgba(255, 255, 255, 0.22);
            border-top: 1px solid rgba(255, 255, 255, 0.42);
            background: linear-gradient(135deg, rgba(0, 242, 255, 0.30) 0%, rgba(99, 102, 241, 0.34) 50%, rgba(168, 85, 247, 0.30) 100%);
            backdrop-filter: blur(20px);
            color: #ffffff;
            font-family: 'JetBrains Mono', monospace;
            font-size: 13px;
            font-weight: 700;
            letter-spacing: 0.16em;
            text-transform: uppercase;
            cursor: pointer;
        }

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

        @keyframes amyAngryShake {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-5px); }
            75% { transform: translateX(5px); }
        }
