* {
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            background-color: var(--tg-theme-secondary-bg-color, var(--bg-sec));
            color: var(--text-color);
            margin: 0;
            padding: 0;
            user-select: none;
            -webkit-user-select: none;
            overflow-x: hidden;
            display: flex;
            justify-content: center;
            align-items: flex-start;
            min-height: 100vh;
        }

        #app-root {
            width: 100%;
            max-width: 480px;
            min-height: 100vh;
            background-color: var(--bg-color);
            box-shadow: 0 0 50px rgba(0, 0, 0, 0.35);
            position: relative;
            display: flex;
            flex-direction: column;
            overflow-x: hidden;
            padding-top: var(--safe-top);
        }

        /* --- Guard Screen (Блокировка вне Telegram) --- */
        #tg-guard-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: radial-gradient(circle at 50% 20%, #1e293b 0%, #0f172a 100%);
            color: #ffffff;
            z-index: 999999;
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 30px 24px;
            text-align: center;
        }

        .guard-card {
            background: rgba(30, 41, 59, 0.7);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 28px;
            padding: 36px 24px;
            max-width: 380px;
            width: 100%;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
            animation: guardFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        }

        @keyframes guardFadeUp {
            from {
                opacity: 0;
                transform: translateY(30px) scale(0.96);
            }

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

        .guard-icon-container {
            width: 88px;
            height: 88px;
            border-radius: 26px;
            background: linear-gradient(135deg, #0088cc 0%, #24A1DE 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 24px auto;
            box-shadow: 0 10px 30px rgba(0, 136, 204, 0.4);
            animation: guardPulse 3s infinite ease-in-out;
        }

        @keyframes guardPulse {

            0%,
            100% {
                transform: scale(1);
                box-shadow: 0 10px 30px rgba(0, 136, 204, 0.4);
            }

            50% {
                transform: scale(1.05);
                box-shadow: 0 15px 40px rgba(0, 136, 204, 0.6);
            }
        }

        .guard-icon-container svg {
            width: 46px;
            height: 46px;
            fill: #ffffff;
        }

        .guard-title {
            font-size: 22px;
            font-weight: 800;
            margin: 0 0 12px 0;
            color: #ffffff;
            letter-spacing: -0.02em;
        }

        .guard-desc {
            font-size: 14px;
            color: #94a3b8;
            line-height: 1.55;
            margin: 0 0 26px 0;
        }

        .guard-features {
            background: rgba(15, 23, 42, 0.5);
            border-radius: 16px;
            padding: 14px 16px;
            margin-bottom: 26px;
            text-align: left;
            font-size: 13px;
            color: #cbd5e1;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .guard-feature-item {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .guard-feature-item span {
            font-size: 16px;
        }

        .guard-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            width: 100%;
            background: linear-gradient(135deg, #0088cc 0%, #24A1DE 100%);
            color: #ffffff;
            text-decoration: none;
            padding: 16px;
            border-radius: 16px;
            font-weight: 700;
            font-size: 16px;
            border: none;
            cursor: pointer;
            box-shadow: 0 8px 25px rgba(0, 136, 204, 0.35);
            transition: transform 0.15s ease, box-shadow 0.15s ease;
        }

        .guard-btn:active {
            transform: scale(0.97);
            box-shadow: 0 4px 15px rgba(0, 136, 204, 0.25);
        }

        /* --- Screens and Animations --- */
        .screen {
            display: none;
            flex-direction: column;
            min-height: 100vh;
            padding-bottom: calc(120px + var(--safe-bottom));
            overflow-x: hidden;
            -webkit-overflow-scrolling: touch;
        }

        .screen.active {
            display: flex;
        }

        .screen.screen-enter {
            animation: screenSlideIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
        }

        @keyframes screenSlideIn {
            0% {
                opacity: 0;
                transform: translateY(6px);
            }

            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }
