/* WEB PANEL PROXY public CSS */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;800&display=swap');

        :root {
            --bg: #0a0a0c;
            --surface: #121216;
            --surface-hover: #18181f;
            --text: #ffffff;
            --muted: #8b8b99;
            --accent: #8b5cf6;
            --accent-hover: #7c3aed;
            --border: #27272e;
        }
        * { box-sizing: border-box; margin: 0; padding: 0; }
        body {
            font-family: 'Manrope', sans-serif;
            background-color: var(--bg);
            color: var(--text);
            min-height: 100vh;
            overflow-x: hidden;
            background-image: radial-gradient(circle at 15% 50%, rgba(139, 92, 246, 0.15), transparent 25%),
                              radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.1), transparent 25%);
            background-attachment: fixed;
        }

        /* Навигация */
        nav {
            position: fixed; top: 0; width: 100%; z-index: 100;
            background: rgba(10, 10, 12, 0.8);
            backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--border);
            display: flex; justify-content: space-between; align-items: center;
            padding: 0 40px; height: 80px;
        }
        .logo { font-weight: 800; font-size: 1.5rem; text-decoration: none; color: #fff; display: flex; align-items: center; gap: 10px; }
        .logo span { color: var(--accent); }
        .nav-links { display: flex; gap: 20px; align-items: center; }
        .nav-links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: 0.2s; }
        .nav-links a:hover { color: #fff; }
        .btn-nav { background: var(--accent); color: #fff !important; padding: 10px 20px; border-radius: 10px; transition: 0.2s; }
        .btn-nav:hover { background: var(--accent-hover); transform: translateY(-2px); }

        /* Контейнер страниц */
        main { padding-top: 100px; min-height: 100vh; }
        .page { display: none; animation: fadeIn 0.4s ease forwards; }
        .page:target { display: block; }
        #home { display: block; }
        .page:target ~ #home { display: none; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

        /* --- ГЛАВНАЯ --- */
        .hero { text-align: center; max-width: 800px; margin: 0 auto; padding: 80px 20px; }
        .hero h1 { font-size: 4rem; font-weight: 800; line-height: 1.1; margin-bottom: 20px; letter-spacing: -1px; }
        .hero p { font-size: 1.2rem; color: var(--muted); margin-bottom: 40px; }
        .hero-btns { display: flex; gap: 20px; justify-content: center; }
        
        .features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1200px; margin: 0 auto; padding: 0 20px 80px; }
        .feature-card { background: var(--surface); border: 1px solid var(--border); padding: 30px; border-radius: 20px; text-align: center; transition: 0.3s; }
        .feature-card:hover { transform: translateY(-5px); border-color: var(--accent); }
        .feature-icon { font-size: 3rem; margin-bottom: 15px; }
        .feature-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
        .feature-card p { color: var(--muted); font-size: 0.95rem; }

        /* --- ИГРОТЕКА (СЕТКА) --- */
        .arcade-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; padding: 0 40px; max-width: 1400px; margin: 0 auto; }
        .arcade-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; text-decoration: none; color: inherit; transition: 0.3s; text-align: center; padding-bottom: 20px; }
        .arcade-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2); }
        .arcade-thumb { height: 130px; display: flex; align-items: center; justify-content: center; font-size: 3rem; margin-bottom: 15px; }
        
        /* Градиенты для обложек игр */
        .bg-runner { background: linear-gradient(135deg, #1e3a8a, #0f172a); }
        .bg-snake { background: linear-gradient(135deg, #064e3b, #022c22); }
        .bg-memory { background: linear-gradient(135deg, #7c2d12, #431407); }
        .bg-flappy { background: linear-gradient(135deg, #b45309, #78350f); }
        .bg-2048 { background: linear-gradient(135deg, #be123c, #881337); }
        .bg-simon { background: linear-gradient(135deg, #4338ca, #312e81); }
        .bg-tic { background: linear-gradient(135deg, #0369a1, #082f49); }
        .bg-pong { background: linear-gradient(135deg, #4b5563, #111827); }

        /* --- КОНТЕЙНЕР ИГР --- */
        .game-container { max-width: 800px; margin: 40px auto; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 20px; text-align: center; overflow: hidden; position: relative;}
        .game-score { font-size: 1.5rem; font-weight: 800; margin-bottom: 15px; color: var(--accent); }
        canvas { background: #000; border-radius: 12px; border: 1px solid var(--border); max-width: 100%; display: block; margin: 0 auto; }
        .back-btn { color: var(--muted); text-decoration: none; position: absolute; top: 20px; left: 20px; font-weight: 600; }
        .back-btn:hover { color: #fff; }

        /* --- АВТОРИЗАЦИЯ И ДАШБОРД --- */
        .auth-container { max-width: 400px; margin: 60px auto; padding: 40px; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
        .auth-container h2 { text-align: center; margin-bottom: 30px; font-size: 2rem; }
        .form-group { margin-bottom: 20px; }
        .form-group label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 0.9rem; }
        .form-group input { width: 100%; padding: 16px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; color: #fff; font-family: inherit; font-size: 1rem; outline: none; transition: 0.2s; }
        .form-group input:focus { border-color: var(--accent); }
        .btn-submit { width: 100%; padding: 16px; background: var(--accent); color: #fff; border: none; border-radius: 12px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: 0.2s; margin-top: 10px; }
        .btn-submit:hover { background: var(--accent-hover); }
        .auth-link { text-align: center; margin-top: 20px; font-size: 0.9rem; color: var(--muted); }
        .auth-link a { color: var(--accent); text-decoration: none; font-weight: 600; }

        .dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; padding: 0 40px; }
        .dashboard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; padding: 0 40px; }
        .file-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; display: flex; align-items: center; gap: 20px; transition: 0.3s; text-decoration: none; color: inherit; }
        .file-card:hover { border-color: var(--accent); background: var(--surface-hover); transform: translateY(-3px); }
        .file-icon { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
        .icon-video { background: rgba(239, 68, 68, 0.2); color: #f87171; }
        .icon-zip { background: rgba(16, 185, 129, 0.2); color: #34d399; }
        .file-info h4 { font-size: 1.05rem; margin-bottom: 4px; }
        .file-info p { color: var(--muted); font-size: 0.85rem; }
        .storage-box { background: var(--surface); border: 1px solid var(--border); padding: 30px; border-radius: 20px; margin: 0 40px 40px; display: flex; align-items: center; gap: 30px; }
        .progress-bar { flex-grow: 1; height: 12px; background: var(--bg); border-radius: 6px; overflow: hidden; }
        .progress-fill { height: 100%; width: 75%; background: linear-gradient(90deg, var(--accent), #ec4899); border-radius: 6px; }

        /* --- СТИЛИ ДЛЯ КОНКРЕТНЫХ ИГР --- */
        /* Память */
        .memory-board { display: grid; grid-template-columns: repeat(4, 90px); gap: 15px; justify-content: center; margin: 20px auto; perspective: 1000px; }
        .memory-card { width: 90px; height: 90px; position: relative; cursor: pointer; transform-style: preserve-3d; transition: transform 0.5s; }
        .memory-card.flip { transform: rotateY(180deg); }
        .mem-front, .mem-back { width: 100%; height: 100%; position: absolute; backface-visibility: hidden; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 2rem; }
        .mem-front { background: var(--accent); }
        .mem-back { background: var(--surface-hover); border: 1px solid var(--border); transform: rotateY(180deg); }
        
        /* 2048 */
        .grid-2048 { display: grid; grid-template-columns: repeat(4, 80px); gap: 10px; background: #3f3f46; padding: 10px; border-radius: 12px; margin: 20px auto; width: max-content; }
        .cell-2048 { width: 80px; height: 80px; background: rgba(255,255,255,0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: bold; color: #fff; transition: 0.1s; }
        
        /* Саймон */
        .simon-board { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; width: 300px; height: 300px; margin: 20px auto; }
        .simon-btn { border-radius: 20px; cursor: pointer; opacity: 0.6; transition: 0.1s; }
        .simon-btn.active { opacity: 1; box-shadow: 0 0 30px #fff; }
        .s-red { background: #ef4444; } .s-blue { background: #3b82f6; } .s-green { background: #10b981; } .s-yellow { background: #f59e0b; }
        
        /* Крестики-нолики */
        .tic-board { display: grid; grid-template-columns: repeat(3, 100px); gap: 10px; justify-content: center; margin: 20px auto; }
        .tic-cell { width: 100px; height: 100px; background: var(--surface-hover); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 3rem; font-weight: bold; cursor: pointer; }

        @media (max-width: 768px) {
            .features { grid-template-columns: 1fr; }
            .hero h1 { font-size: 2.5rem; }
            nav { padding: 0 20px; }
            .nav-links { display: none; }
            .dashboard-header, .dashboard-grid, .storage-box, .arcade-grid { padding: 0 20px; margin-left: 0; margin-right: 0; }
            .memory-board { grid-template-columns: repeat(4, 60px); gap: 10px; }
            .memory-card, .mem-front, .mem-back { width: 60px; height: 60px; font-size: 1.5rem; }
            .grid-2048 { grid-template-columns: repeat(4, 60px); }
            .cell-2048 { width: 60px; height: 60px; font-size: 1.2rem; }
            .tic-board { grid-template-columns: repeat(3, 80px); }
            .tic-cell { width: 80px; height: 80px; font-size: 2rem; }
        }

[data-wpp-style="wpp-0"]{color: var(--accent);}
[data-wpp-style="wpp-1"]{font-size: 1.1rem; padding: 15px 30px;}
[data-wpp-style="wpp-2"]{background: transparent; border: 1px solid var(--border); font-size: 1.1rem; padding: 15px 30px;}
[data-wpp-style="wpp-3"]{color: var(--muted); margin-top: 5px;}
[data-wpp-style="wpp-4"]{margin-bottom: 10px; margin-top: 10px;}
[data-wpp-style="wpp-5"]{margin-top: 15px; font-size: 0.8rem; color: var(--muted);}
[data-wpp-style="wpp-6"]{margin-bottom: 10px; margin-top: 10px;}
[data-wpp-style="wpp-7"]{margin-top: 15px; font-size: 0.8rem; color: var(--muted);}
[data-wpp-style="wpp-8"]{margin-bottom: 10px; margin-top: 10px;}
[data-wpp-style="wpp-9"]{margin-bottom: 10px; margin-top: 10px;}
[data-wpp-style="wpp-10"]{margin-top: 15px; font-size: 0.8rem; color: var(--muted);}
[data-wpp-style="wpp-11"]{margin-bottom: 10px; margin-top: 10px;}
[data-wpp-style="wpp-12"]{max-width: 200px; margin: 10px auto;}
[data-wpp-style="wpp-13"]{font-size: 0.8rem; color: var(--muted);}
[data-wpp-style="wpp-14"]{margin-bottom: 10px; margin-top: 10px;}
[data-wpp-style="wpp-15"]{max-width: 200px; margin: 20px auto;}
[data-wpp-style="wpp-16"]{margin-bottom: 10px; margin-top: 10px;}
[data-wpp-style="wpp-17"]{max-width: 200px; margin: 20px auto;}
[data-wpp-style="wpp-18"]{margin-bottom: 10px; margin-top: 10px;}
[data-wpp-style="wpp-19"]{margin-top: 15px; font-size: 0.8rem; color: var(--muted);}
[data-wpp-style="wpp-20"]{color: var(--muted); margin-top: 5px;}
[data-wpp-style="wpp-21"]{padding: 12px 24px;}
[data-wpp-style="wpp-22"]{font-size: 2rem;}
[data-wpp-style="wpp-23"]{flex-grow: 1;}
[data-wpp-style="wpp-24"]{display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.9rem;}
[data-wpp-style="wpp-25"]{color: var(--muted);}
[data-wpp-style="wpp-26"]{padding: 0 40px; margin-bottom: 20px;}
[data-wpp-style="wpp-27"]{background: rgba(59, 130, 246, 0.2); color: #60a5fa;}
[data-wpp-style="wpp-28"]{border-style: dashed; justify-content: center; background: transparent;}
[data-wpp-style="wpp-29"]{text-align: center;}
[data-wpp-style="wpp-30"]{color: var(--accent);}
[data-wpp-style="wpp-31"]{max-width: 900px;}
[data-wpp-style="wpp-32"]{width: 100%; border-radius: 12px; margin-top: 30px;}
[data-wpp-style="wpp-33"]{margin-top: 20px; display: flex; justify-content: space-between; align-items: center;}
[data-wpp-style="wpp-34"]{color: var(--muted);}
[data-wpp-style="wpp-35"]{max-width: 600px;}
[data-wpp-style="wpp-36"]{text-align: center; margin-bottom: 20px;}
[data-wpp-style="wpp-37"]{width: 100%; padding: 40px; background: var(--bg); border: 2px dashed var(--border); border-radius: 12px; color: var(--muted); margin-bottom: 20px; cursor: pointer;}
[data-wpp-style="wpp-38"]{display: block; text-align: center; text-decoration: none; background: transparent; border: 1px solid var(--border); margin-top: 10px;}