/* WEB PANEL PROXY public CSS */
/* ==========================================================================
           100% АВТОНОМНЫЕ СТИЛИ (БЕЗ ВНЕШНИХ CDN И ШРИФТОВ)
           ========================================================================== */
        :root {
            --bg-dark: #070b14;
            --bg-panel: rgba(15, 23, 42, 0.82);
            --bg-card: rgba(9, 14, 26, 0.9);
            --border-subtle: rgba(148, 163, 184, 0.14);
            --border-neon: rgba(16, 185, 129, 0.45);
            --text-main: #f8fafc;
            --text-muted: #94a3b8;
            --text-dim: #64748b;
            --emerald: #10b981;
            --emerald-glow: rgba(16, 185, 129, 0.35);
            --cyan: #06b6d4;
            --cyan-glow: rgba(6, 182, 212, 0.35);
            --amber: #f59e0b;
            --purple: #a855f7;
            --rose: #f43f5e;
            --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            user-select: none;
            -webkit-user-select: none;
        }

        body {
            background-color: var(--bg-dark);
            background-image:
                radial-gradient(circle at 12% 18%, rgba(16, 185, 129, 0.14) 0%, transparent 38%),
                radial-gradient(circle at 88% 82%, rgba(168, 85, 247, 0.12) 0%, transparent 42%),
                linear-gradient(180deg, #070b14 0%, #04070e 100%);
            color: var(--text-main);
            font-family: var(--font-sans);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding: 16px;
            overflow-x: hidden;
            line-height: 1.45;
        }

        /* Жёсткое ограничение всех SVG, чтобы они никогда не растягивались */
        svg {
            width: 18px;
            height: 18px;
            flex-shrink: 0;
            display: inline-block;
            vertical-align: middle;
        }

        button {
            font-family: inherit;
            cursor: pointer;
            border: none;
            outline: none;
            background: none;
            color: inherit;
        }

        .container {
            width: 100%;
            max-width: 1100px;
            margin: 0 auto;
        }

        .glass-panel {
            background: var(--bg-panel);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            border: 1px solid var(--border-subtle);
            border-radius: 20px;
            box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
        }

        .neon-panel {
            border-color: var(--border-neon);
            box-shadow: 0 0 30px rgba(16, 185, 129, 0.15), 0 18px 45px rgba(0, 0, 0, 0.6);
        }

        .mono {
            font-family: var(--font-mono);
            font-variant-numeric: tabular-nums;
        }

        .hidden {
            display: none !important;
        }

        /* ==========================================================================
           ШАПКА: СТАТУС ТЕХНИЧЕСКИХ РАБОТ
           ========================================================================== */
        .header-banner {
            padding: 16px 22px;
            margin-bottom: 18px;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
        }

        .header-left {
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .pulse-indicator {
            position: relative;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: var(--emerald);
            box-shadow: 0 0 12px var(--emerald);
            flex-shrink: 0;
        }

        .pulse-indicator::after {
            content: '';
            position: absolute;
            inset: -5px;
            border-radius: 50%;
            border: 2px solid var(--emerald);
            animation: pulse-ring 2s cubic-bezier(0.2, 0.6, 0.35, 1) infinite;
        }

        @keyframes pulse-ring {
            0% { transform: scale(0.7); opacity: 0.9; }
            100% { transform: scale(2.1); opacity: 0; }
        }

        .badge-row {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 4px;
        }

        .status-pill {
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            padding: 2px 10px;
            border-radius: 999px;
            background: rgba(16, 185, 129, 0.15);
            color: #34d399;
            border: 1px solid rgba(16, 185, 129, 0.35);
        }

        .node-info {
            font-size: 12px;
            color: var(--text-muted);
        }

        .header-title {
            font-size: 19px;
            font-weight: 800;
            color: #ffffff;
            letter-spacing: -0.01em;
        }

        .deploy-widget {
            background: var(--bg-card);
            border: 1px solid var(--border-subtle);
            border-radius: 14px;
            padding: 10px 14px;
            min-width: 270px;
            flex: 1 1 270px;
            max-width: 340px;
        }

        .deploy-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 12px;
            margin-bottom: 6px;
        }

        .deploy-label {
            color: #cbd5e1;
            font-weight: 600;
        }

        .deploy-pct {
            color: #34d399;
            font-weight: 700;
        }

        .progress-track {
            width: 100%;
            height: 7px;
            background: #1e293b;
            border-radius: 999px;
            overflow: hidden;
            margin-bottom: 6px;
        }

        .progress-fill {
            height: 100%;
            width: 87%;
            background: linear-gradient(90deg, var(--emerald), var(--cyan));
            border-radius: 999px;
            transition: width 0.5s ease;
        }

        .deploy-bottom {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 11px;
            color: var(--text-muted);
        }

        .link-btn {
            color: #38bdf8;
            font-weight: 600;
            text-decoration: underline;
            font-size: 11px;
            transition: color 0.15s;
        }

        .link-btn:hover {
            color: #7dd3fc;
        }

        /* ==========================================================================
           ОСНОВНАЯ СЕТКА (2 КОЛОНКИ НА ДЕСКТОПЕ)
           ========================================================================== */
        .dashboard-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 20px;
            align-items: start;
        }

        @media (min-width: 920px) {
            .dashboard-grid {
                grid-template-columns: 7fr 5fr;
            }
        }

        /* ==========================================================================
           ЛЕВАЯ КОЛОНКА: ИГРОВАЯ АРЕНА
           ========================================================================== */
        .arena-card {
            padding: 16px;
            width: 100%;
            max-width: 560px;
            margin: 0 auto;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 8px;
            margin-bottom: 10px;
        }

        .stat-box {
            background: var(--bg-card);
            border: 1px solid var(--border-subtle);
            border-radius: 12px;
            padding: 8px 6px;
            text-align: center;
        }

        .stat-label {
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--text-muted);
            margin-bottom: 2px;
        }

        .stat-value {
            font-size: 18px;
            font-weight: 800;
            color: #ffffff;
        }

        .stat-value.amber { color: #fbbf24; }
        .stat-value.cyan { color: #22d3ee; }
        .stat-value.purple { color: #c084fc; }

        /* Полоса активных бонусов */
        .hud-bar {
            min-height: 26px;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            font-size: 11px;
            padding: 0 4px;
        }

        .effect-pill {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 3px 10px;
            border-radius: 999px;
            background: rgba(168, 85, 247, 0.18);
            border: 1px solid rgba(168, 85, 247, 0.45);
            color: #e9d5ff;
            font-weight: 600;
        }

        .golden-pill {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 3px 10px;
            border-radius: 999px;
            background: rgba(245, 158, 11, 0.18);
            border: 1px solid rgba(245, 158, 11, 0.45);
            color: #fde68a;
            font-weight: 600;
            margin-left: auto;
        }

        .mini-progress {
            width: 56px;
            height: 6px;
            background: #1e293b;
            border-radius: 99px;
            overflow: hidden;
        }

        .mini-progress-bar {
            height: 100%;
            width: 100%;
            background: #fbbf24;
        }

        .hint-text {
            color: var(--text-muted);
            font-size: 11px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* Контейнер холста + Оверлей поверх него */
        .canvas-wrap {
            position: relative;
            width: 100%;
            max-width: 520px;
            aspect-ratio: 1 / 1;
            margin: 0 auto;
            border-radius: 16px;
            overflow: hidden;
            border: 1px solid rgba(51, 65, 85, 0.8);
            background: #060911;
            box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.85);
        }

        #game-canvas {
            display: block;
            width: 100%;
            height: 100%;
            touch-action: none;
        }

        .canvas-overlay {
            position: absolute;
            inset: 0;
            background: rgba(5, 8, 17, 0.86);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 24px;
            text-align: center;
            z-index: 10;
            transition: opacity 0.2s ease, visibility 0.2s ease;
        }

        .canvas-overlay.is-hidden {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }

        .overlay-badge {
            width: 60px;
            height: 60px;
            border-radius: 18px;
            background: rgba(16, 185, 129, 0.14);
            border: 1px solid rgba(16, 185, 129, 0.4);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 30px;
            margin-bottom: 14px;
            box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
        }

        .overlay-title {
            font-size: 26px;
            font-weight: 800;
            color: #ffffff;
            letter-spacing: -0.02em;
            margin-bottom: 8px;
        }

        .overlay-sub {
            font-size: 13px;
            color: #cbd5e1;
            max-width: 310px;
            margin-bottom: 20px;
        }

        .final-stats-box {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            width: 100%;
            max-width: 280px;
            background: var(--bg-card);
            border: 1px solid var(--border-subtle);
            border-radius: 14px;
            padding: 12px;
            margin-bottom: 20px;
        }

        .btn-row {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .btn-primary {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            color: #04130d;
            font-weight: 800;
            font-size: 14px;
            padding: 12px 24px;
            border-radius: 12px;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 4px 18px var(--emerald-glow);
            transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
        }

        .btn-primary:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 24px rgba(16, 185, 129, 0.55);
            filter: brightness(1.06);
        }

        .btn-primary:active {
            transform: translateY(1px);
        }

        .btn-secondary {
            background: #1e293b;
            color: #f1f5f9;
            font-weight: 600;
            font-size: 14px;
            padding: 12px 20px;
            border-radius: 12px;
            border: 1px solid #334155;
            transition: background 0.15s;
        }

        .btn-secondary:hover {
            background: #334155;
        }

        /* Экранный D-Pad для сенсорных экранов */
        .dpad-wrapper {
            margin-top: 14px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        @media (min-width: 920px) {
            .dpad-wrapper {
                display: none;
            }
        }

        .dpad-grid {
            display: grid;
            grid-template-columns: repeat(3, 52px);
            grid-template-rows: repeat(2, 46px);
            gap: 8px;
        }

        .dpad-btn {
            background: rgba(30, 41, 59, 0.9);
            border: 1px solid rgba(148, 163, 184, 0.2);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #e2e8f0;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
            touch-action: manipulation;
        }

        .dpad-btn:active {
            background: rgba(16, 185, 129, 0.3);
            border-color: var(--emerald);
            transform: scale(0.94);
        }

        /* ==========================================================================
           ПРАВАЯ КОЛОНКА: НАСТРОЙКИ, ПРЕДМЕТЫ, КОНТАКТЫ
           ========================================================================== */
        .side-column {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .side-card {
            padding: 18px 20px;
        }

        .card-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 14px;
        }

        .card-title {
            font-size: 15px;
            font-weight: 700;
            color: #ffffff;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .top-actions {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .icon-btn {
            background: rgba(30, 41, 59, 0.85);
            border: 1px solid #334155;
            color: #e2e8f0;
            padding: 6px 11px;
            border-radius: 9px;
            font-size: 12px;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: background 0.15s, border-color 0.15s;
        }

        .icon-btn:hover {
            background: #334155;
            border-color: #475569;
        }

        .setting-group {
            margin-bottom: 14px;
        }

        .setting-group:last-child {
            margin-bottom: 0;
        }

        .setting-label {
            display: block;
            font-size: 12px;
            font-weight: 600;
            color: var(--text-muted);
            margin-bottom: 8px;
        }

        .Selector-row {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
        }

        .pill-btn {
            padding: 9px 8px;
            border-radius: 11px;
            font-size: 12px;
            font-weight: 700;
            text-align: center;
            background: var(--bg-card);
            border: 1px solid var(--border-subtle);
            color: var(--text-muted);
            transition: all 0.15s;
        }

        .pill-btn:hover {
            color: #ffffff;
            border-color: #475569;
        }

        .pill-btn.active-emerald {
            background: rgba(16, 185, 129, 0.18);
            border-color: var(--emerald);
            color: #6ee7b7;
            box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
        }

        .pill-btn.active-cyan {
            background: rgba(6, 182, 212, 0.18);
            border-color: var(--cyan);
            color: #67e8f9;
            box-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
        }

        .mode-note {
            font-size: 11px;
            color: var(--text-muted);
            margin-top: 6px;
        }

        /* Сетка легенды предметов */
        .legend-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 9px;
        }

        @media (max-width: 480px) {
            .legend-grid {
                grid-template-columns: 1fr;
            }
        }

        .legend-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 9px 11px;
            border-radius: 12px;
            background: var(--bg-card);
            border: 1px solid var(--border-subtle);
        }

        .orb {
            width: 13px;
            height: 13px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .orb.green  { background: #10b981; box-shadow: 0 0 10px #10b981; }
        .orb.gold   { background: #fbbf24; box-shadow: 0 0 10px #f59e0b; }
        .orb.cyan   { background: #06b6d4; box-shadow: 0 0 10px #06b6d4; }
        .orb.purple { background: #a855f7; box-shadow: 0 0 10px #a855f7; }

        .legend-name {
            font-size: 12px;
            font-weight: 700;
            color: #f8fafc;
        }

        .legend-sub {
            font-size: 11px;
            color: var(--text-muted);
        }

        /* Контакты */
        .contact-desc {
            font-size: 12px;
            color: #cbd5e1;
            margin-bottom: 12px;
        }

        .copy-btn {
            width: 100%;
            padding: 10px 14px;
            border-radius: 12px;
            background: #1e293b;
            border: 1px solid #334155;
            color: #ffffff;
            font-size: 12px;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: background 0.15s, border-color 0.15s;
        }

        .copy-btn:hover {
            background: #334155;
            border-color: #475569;
        }

        /* Подвал */
        .footer-bar {
            margin-top: 22px;
            padding-top: 14px;
            border-top: 1px solid var(--border-subtle);
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            font-size: 12px;
            color: var(--text-dim);
        }

        /* Всплывающее уведомление (Toast) */
        .toast-box {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 100;
            padding: 11px 16px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 600;
            color: #ffffff;
            display: flex;
            align-items: center;
            gap: 8px;
            transform: translateY(80px);
            opacity: 0;
            pointer-events: none;
            transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.28s ease;
        }

        .toast-box.show {
            transform: translateY(0);
            opacity: 1;
        }

[data-wpp-style="wpp-0"]{width: 100%;}
[data-wpp-style="wpp-1"]{color: #34d399;}
[data-wpp-style="wpp-2"]{color: #34d399;}
[data-wpp-style="wpp-3"]{color: #fb7185;}
[data-wpp-style="wpp-4"]{margin-bottom: 10px;}
[data-wpp-style="wpp-5"]{color: #fde68a;}
[data-wpp-style="wpp-6"]{color: #67e8f9;}
[data-wpp-style="wpp-7"]{color: #d8b4fe;}
[data-wpp-style="wpp-8"]{margin-bottom: 8px;}
[data-wpp-style="wpp-9"]{color: #34d399;}
[data-wpp-style="wpp-10"]{color: #94a3b8;}
[data-wpp-style="wpp-11"]{color: #34d399; font-size: 15px;}