
        @font-face {
            font-family: 'Tupo Vyaz';
            src: url('/fonts/tupo-vyaz_regular.woff2') format('woff2');
            font-weight: normal;
            font-style: normal;
            font-display: swap;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        html, body { width: 100%; height: 100%; font-family: 'Poppins', sans-serif; background: #0f172a; }
        body { display: flex; overflow: hidden; }
        body.light { background: #fff; }
        
        .container { display: flex; width: 100%; height: 100vh; position: relative; }
        .map { flex: 1; position: relative; }
        #map { width: 100%; height: 100%; }

        .floating-logo {
            position: fixed;
            top: 20px;
            left: 20px;
            z-index: 150;
            display: flex;
            flex-direction: column;
            align-items: stretch;
            gap: 2px;
        }

        .floating-logo .logo-title {
            font-family: 'Tupo Vyaz', sans-serif !important;
            font-size: 40px;
            color: #000;
            margin: 0;
            letter-spacing: 1px;
            font-weight: normal;
            line-height: 1.1;
            text-shadow: 1px 1px 2px rgba(255,255,255,0.3);
            display: flex;
            align-items: baseline;
            gap: 4px;
            width: fit-content;
        }

        .floating-logo sup {
            font-size: 26px;
            font-weight: 900;
            opacity: 0.95;
            color: #000;
            position: relative;
            top: -17px;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .floating-logo sup.beta-active {
            animation: pulse-beta 1s infinite;
        }

        @keyframes pulse-beta {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.15); }
        }

        .floating-logo .subtitle {
            font-family: 'Tupo Vyaz', sans-serif !important;
            font-size: 22px;
            color: #ef4444;
            font-weight: 600;
            letter-spacing: 1px;
            text-shadow: 1px 1px 1px rgba(255,255,255,0.2);
            margin-top: -2px;
            width: 100%;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .right-panel { display: flex; flex-direction: column; width: 340px; height: calc(100vh - 100px); gap: 12px; position: fixed; right: 20px; top: 20px; z-index: 100; overflow: hidden; }
        .notifications-stack { position: fixed; bottom: 20px; right: 20px; width: 340px; display: flex; flex-direction: column; gap: 8px; z-index: 50; pointer-events: none; max-height: 40vh; overflow: hidden; }
        .notification-toast { background: #1e293b; border: 1px solid #334155; border-radius: 8px; padding: 12px; color: #cbd5e1; font-size: 11px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); backdrop-filter: blur(10px); animation: slideInRight 0.3s ease; pointer-events: auto; cursor: pointer; border-left: 3px solid #6366f1; line-height: 1.4; flex-shrink: 0; }
        body.light .notification-toast { background: rgba(255,255,255,0.95); color: #1f2937; border-color: #e5e7eb; }
        .notification-toast.success { border-left-color: #10b981; background: #064e3b; color: #d1fae5; }
        body.light .notification-toast.success { background: #ecfdf5; color: #065f46; border-left-color: #10b981; }
        .notification-toast.error { border-left-color: #ef4444; background: #7f1d1d; color: #fee2e2; }
        body.light .notification-toast.error { background: #fef2f2; color: #7f1d1d; border-left-color: #ef4444; }
        .notification-toast.info { border-left-color: #3b82f6; }
        @keyframes slideInRight { from { opacity: 0; transform: translateX(360px); } to { opacity: 1; transform: translateX(0); } }
        @keyframes slideOutRight { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(360px); } }
        .notification-toast.removing { animation: slideOutRight 0.3s ease; }

        .panel { background: #1e293b; border: 1px solid #334155; border-radius: 12px; display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(0,0,0,0.5); backdrop-filter: blur(10px); flex: 1; min-height: 0; overflow: hidden; }
        body.light .panel { background: rgba(255,255,255,0.95); border-color: #e5e7eb; box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
        .panel-header { background: url('/fonts/ornament.png') center/cover; padding: 0; font-size: 14px; text-align: center; display: flex; align-items: center; justify-content: space-between; border-radius: 11px 11px 0 0; flex-shrink: 0; height: 80px; border: none; }
        .panel-header{
            overflow: hidden;
            transition: height .25s ease, opacity .25s ease;
        }

        .panel.dice-open .panel-header{
            height: 20px;
            opacity: 0.5;
        }
        .panel-scroll { flex: 1 1 auto; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
        .panel-scroll > .section,
.panel-scroll > .btn-group{
    flex: 0 0 auto;
}
        .panel-scroll::-webkit-scrollbar { width: 5px; }
        .panel-scroll::-webkit-scrollbar-thumb { background: #475569; border-radius: 2px; }
        body.light .panel-scroll::-webkit-scrollbar-thumb { background: #d1d5db; }
        
        .section { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
        
        .timer-box { background: #1e293b; border: 2px solid #334155; color: white; padding: 12px; border-radius: 8px; text-align: center; flex-shrink: 0; transition: all 0.1s ease; }
        .timer-box.warning-30 { animation: pulse-slow 1.5s infinite; }
        .timer-box.warning-10 { animation: pulse-slow 1.1s infinite; }
        .timer-box.finished { animation: pulse-fast 0.6s infinite; }
        
        @keyframes pulse-slow { 
            0%, 100% { background: #1e293b; border-color: #334155; }
            50% { background: #7f1d1d; border-color: #ef4444; }
        }
        
        @keyframes pulse-fast { 
            0%, 100% { background: #1e293b; border-color: #334155; }
            50% { background: #dc2626; border-color: #ef4444; box-shadow: 0 0 15px rgba(239, 68, 68, 0.6); }
        }
        
        .timer-label { font-size: 10px; opacity: 0.9; font-weight: 600; }
        .timer-display { font-size: 32px; font-weight: 800; font-family: 'Courier New', monospace; margin: 4px 0; letter-spacing: 1px; transition: color 0.1s ease; font-variant-numeric: tabular-nums; }
        .timer-box.warning-30 .timer-display { color: #fca5a5; }
        .timer-box.warning-10 .timer-display { color: #fecaca; }
        .timer-box.finished .timer-display { color: #fee2e2; }
        
        .timer-buttons { display: flex; gap: 6px; justify-content: center; margin-top: 6px; }
        .btn-small { width: 32px; height: 32px; border: none; border-radius: 6px; background: rgba(255,255,255,0.2); color: white; font-size: 14px; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; pointer-events: auto; }
        .btn-small:hover { background: rgba(255,255,255,0.3); transform: scale(1.08); }
        .btn-small i { display: block; line-height: 1; pointer-events: none; }
        .label { font-size: 11px; font-weight: 700; color: #cbd5e1; text-transform: uppercase; letter-spacing: 0.3px; }
        body.light .label { color: #1f2937; }
        .tracking-checkbox { font-size: 11px; font-weight: 700; color: #cbd5e1; text-transform: uppercase; letter-spacing: 0.3px; margin: 0; cursor: pointer; display: flex; align-items: center; gap: 6px; }
        body.light .tracking-checkbox { color: #1f2937; }
        .tracking-checkbox input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: #6366f1; }
        
        .route-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
        .route-btn { 
            padding: 12px 8px; 
            border: 2px solid #475569; 
            background: #334155; 
            border-radius: 6px; 
            cursor: pointer; 
            font-size: 12px; 
            font-weight: 600; 
            transition: all 0.2s; 
            text-align: center; 
            color: #cbd5e1; 
            pointer-events: auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
        }
        .route-btn i { font-size: 18px; }
        body.light .route-btn { background: white; border-color: #e5e7eb; color: #1f2937; }
        .route-btn:hover { border-color: #6366f1; background: #475569; transform: translateY(-2px); }
        body.light .route-btn:hover { background: #f0f4ff; }
        .route-btn.active { background: #6366f1; color: white; border-color: #6366f1; box-shadow: 0 0 12px rgba(99, 102, 241, 0.4); }
        
        .stats { background: #334155; border-radius: 8px; padding: 8px; border: 1px solid #475569; font-size: 10px; flex-shrink: 0; }
        body.light .stats { background: #f9fafb; border-color: #e5e7eb; }
        .stat { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px solid #475569; }
        body.light .stat { border-bottom-color: #f3f4f6; }
        .stat:last-child { border-bottom: none; }
        .stat-label { color: #94a3b8; font-weight: 600; }
        body.light .stat-label { color: #6b7280; }
        .stat-value { font-weight: 700; color: #6366f1; font-family: 'Poppins', monospace; }
        
        .input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; align-items: center; flex-shrink: 0; }
        .input-col { display: flex; flex-direction: column; gap: 3px; justify-content: center; margin-top: 13px; }
        .input-group { display: flex; gap: 0; align-items: center; height: 32px; }
        .input-group input { flex: 0 0 45px; padding: 8px 4px; border: 2px solid #475569; border-radius: 6px 0 0 6px; font-size: 12px; background: #334155; color: #cbd5e1; text-align: center; height: 100%; }
        body.light .input-group input { background: white; border-color: #e5e7eb; color: #1f2937; }
        .input-group input:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }
        .input-suffix { padding: 8px 6px; background: #6366f1; color: white; border-radius: 0 6px 6px 0; font-weight: 700; font-size: 10px; display: flex; align-items: center; justify-content: center; white-space: nowrap; flex: 1; border: 2px solid #6366f1; border-left: none; height: 100%; }
        
        .calc-dist { font-size: 10px; color: #cbd5e1; margin-top: 4px; font-weight: 600; }
        body.light .calc-dist { color: #1f2937; }
        
        .directions-cross { position: relative; width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
        .dir-btn { position: absolute; display: flex; align-items: center; justify-content: center; font-size: 18px; cursor: pointer; transition: all 0.2s; color: #cbd5e1; background: #334155; border: 2px solid #475569; border-radius: 6px; width: 32%; aspect-ratio: 1; pointer-events: auto; }
        .dir-btn i { pointer-events: none; }
        body.light .dir-btn { background: white; border-color: #e5e7eb; color: #1f2937; }
        .dir-btn:hover { border-color: #6366f1; background: #475569; transform: scale(1.1); }
        body.light .dir-btn:hover { border-color: #6366f1; background: #f0f4ff; }
        .dir-btn.active { background: #6366f1; border-color: #6366f1; box-shadow: 0 0 15px rgba(99,102,241,0.6), inset 0 0 8px rgba(255,255,255,0.2); color: white; transform: scale(1.15); }
        .dir-btn[data-dir="N"] { top: 0; left: 50%; transform: translateX(-50%); }
        .dir-btn[data-dir="S"] { bottom: 0; left: 50%; transform: translateX(-50%); }
        .dir-btn[data-dir="W"] { left: 0; top: 50%; transform: translateY(-50%); }
        .dir-btn[data-dir="E"] { right: 0; top: 50%; transform: translateY(-50%); }
        .dir-btn[data-dir="N"].active { transform: translateX(-50%) scale(1.15); }
        .dir-btn[data-dir="S"].active { transform: translateX(-50%) scale(1.15); }
        .dir-btn[data-dir="W"].active { transform: translateY(-50%) scale(1.15); }
        .dir-btn[data-dir="E"].active { transform: translateY(-50%) scale(1.15); }
        
        /* UNDO BUTTON IN CENTER - REDESIGNED */
        .dir-btn-undo { 
            position: absolute; 
            top: 50%; 
            left: 50%; 
            transform: translate(-50%, -50%); 
            width: 44px; 
            height: 44px; 
            background: #ef4444; 
            border: 2px solid #dc2626; 
            border-radius: 6px; 
            color: white;
            font-size: 18px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            pointer-events: auto;
            z-index: 10;
        }
        .dir-btn-undo i { 
            pointer-events: none;
            font-size: 18px;
            line-height: 1;
        }
        .dir-btn-undo:hover { 
            background: #dc2626; 
            border-color: #b91c1c;
            transform: translate(-50%, -50%) scale(1.12);
        }
        body.light .dir-btn-undo { 
            background: #ef4444; 
            border-color: #dc2626; 
            color: white;
        }
        body.light .dir-btn-undo:hover { 
            background: #dc2626; 
            border-color: #b91c1c;
        }
        .dir-btn-undo:disabled { 
            opacity: 0.5; 
            cursor: not-allowed; 
            background: #6b7280; 
            border-color: #4b5563; 
        }
        .dir-btn-undo:disabled:hover { 
            background: #6b7280; 
            border-color: #4b5563; 
            transform: translate(-50%, -50%);
            opacity: 0.5;
        }
        
        .btn-group { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; flex-shrink: 0; }
        .btn { padding: 8px 12px; border: none; border-radius: 6px; font-size: 12px; font-weight: 700; cursor: pointer; transition: all 0.2s; }
        .btn i { pointer-events: none; }
        .btn-primary { background: #6366f1; color: white; }
        .btn-primary:hover { background: #5b5fc7; }
        .btn-primary:disabled { opacity: 0.5; cursor: not-allowed; background: #6366f1; }
        .btn-primary:disabled:hover { background: #6366f1; }
        .btn-success { background: #10b981; color: white; }
        .btn-success:hover { background: #059669; }
        .btn-success:disabled { opacity: 0.5; cursor: not-allowed; background: #10b981; }
        .btn-success:disabled:hover { background: #10b981; }
        
        .log-container { border-top: 1px solid #475569; padding-top: 8px; display: flex; flex-direction: column; flex: 1 1 auto !important; min-height: 0; }
        body.light .log-container { border-top-color: #e5e7eb; }
        .log-label { font-size: 11px; font-weight: 700; color: #cbd5e1; margin-bottom: 6px; flex-shrink: 0; }
        body.light .log-label { color: #1f2937; }
        .log-list { flex: 1 1 auto !important; overflow-y: auto; min-height: 0; display: flex; flex-direction: column; gap: 2px; padding-right: 2px; }
        .log-list::-webkit-scrollbar { width: 5px; }
        .log-list::-webkit-scrollbar-thumb { background: #475569; border-radius: 2px; }
        body.light .log-list::-webkit-scrollbar-thumb { background: #d1d5db; }
        .log-item { display: grid; grid-template-columns: 25px 20px 35px 35px 45px; gap: 4px; padding: 2px 4px; background: #334155; border-radius: 4px; font-size: 11px; text-align: center; border: 1px solid #475569; color: #cbd5e1; flex-shrink: 0; white-space: nowrap; line-height: 1.2; }
        body.light .log-item { background: #f9fafb; border-color: #f3f4f6; color: #1f2937; }
        .log-empty { text-align: center; padding: 12px 6px; color: #64748b; font-size: 10px; }
        body.light .log-empty { color: #9ca3af; }
        
        .about-panel { background: #1e293b; border: 1px solid #334155; border-radius: 12px; padding: 16px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); backdrop-filter: blur(10px); text-align: center; font-size: 13px; flex-shrink: 0; line-height: 1.6; position: relative; }
        body.light .about-panel { background: rgba(255,255,255,0.95); border-color: #e5e7eb; box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
        .about-title { color: #cbd5e1; font-weight: 700; margin-bottom: 10px; line-height: 1.4; font-size: 13px; }
        body.light .about-title { color: #1f2937; }
        .about-tester { color: #cbd5e1; font-weight: 600; margin-bottom: 10px; }
        body.light .about-tester { color: #1f2937; }
        .about-tester a { color: #6366f1; text-decoration: none; font-weight: 700; transition: all 0.2s; }
        .about-tester a:hover { color: #818cf8; text-decoration: underline; }
        
        .about-theme-btn { width: 28px; height: 28px; border: none; border-radius: 6px; background: rgba(255,255,255,0.2); color: white; cursor: pointer; font-size: 14px; transition: all 0.2s; display: flex; align-items: center; justify-content: center; pointer-events: auto; }
        .about-theme-btn:hover { background: rgba(255,255,255,0.3); }
        #helpToggle { right: 48px; }
        body.light .about-theme-btn { background: rgba(0,0,0,0.15); color: #1f2937; }
        body.light .about-theme-btn:hover { background: rgba(0,0,0,0.25); }
        .about-theme-btn i { pointer-events: none; }
        
        .helper-bubble { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 12px; padding: 16px; max-width: 320px; font-size: 13px; z-index: 500; animation: scaleIn 0.4s ease-out; border: 1px solid; }
        .helper-bubble.hidden { display: none; }
        body.dark .helper-bubble { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); color: #fee2e2; border-color: rgba(255, 255, 255, 0.2); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); }
        body.dark .helper-header i, body.dark .helper-content li i { color: #fee2e2; }
        body.dark .helper-content strong { color: #fee2e2; }
        body.light .helper-bubble { background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%); color: #fee2e2; border-color: rgba(0, 0, 0, 0.1); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15); }
        body.light .helper-header i, body.light .helper-content li i { color: #fee2e2; }
        body.light .helper-content strong { color: #fee2e2; }
        .helper-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid; font-weight: 700; font-size: 14px; }
        .close-btn { background: none; border: none; color: inherit; font-size: 20px; cursor: pointer; opacity: 0.8; transition: opacity 0.2s; padding: 0; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
        .close-btn:hover { opacity: 1; }
        .helper-content ol { margin: 0; padding-left: 20px; list-style: decimal; }
        .helper-content li { margin: 8px 0; font-size: 12px; line-height: 1.4; }
        .helper-content strong { font-weight: 700; }
        @keyframes scaleIn { from { transform: translate(-50%, -50%) scale(0.8); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
        @keyframes scaleOut { to { transform: translate(-50%, -50%) scale(0.8); opacity: 0; } }
        @media (max-width: 768px) { .helper-bubble { max-width: calc(100vw - 40px); padding: 12px; font-size: 12px; } .helper-header { font-size: 13px; margin-bottom: 10px; padding-bottom: 10px; } .helper-content li { font-size: 11px; margin: 6px 0; } }
        @media (max-width: 480px) { .helper-bubble { max-width: calc(100vw - 20px); padding: 12px; } .helper-content li { font-size: 11px; } .helper-header { font-size: 12px; } }

        .about-support-btn{
            width: 32px;
            height: 32px;

            display: flex;
            align-items: center;
            justify-content: center;

            border: none;
            background: transparent;  /* ← ВОТ ЭТО убрало фон */
            cursor: pointer;
            transition: transform .2s;
            pointer-events: auto;
            padding: 0;
        }

        .about-bottom {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 6px;  /* ← уменьшил gap */
            margin-top: 2px;  /* ← уменьшил margin-top */
            padding-top: 0;  /* ← уменьшил padding-top */
        }

        .about-version {
            height: 28px;
            padding: 0 10px;
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.3);
            color: #e2e8f0;
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0.5px;
            cursor: not-allowed;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            white-space: nowrap;
        }

        body.light .about-version {
            background: rgba(0, 0, 0, 0.15);
            border-color: rgba(0, 0, 0, 0.2);
            color: #1f2937;
        }

        .about-version:disabled {
            opacity: 0.6;
        }


        .about-support-btn:hover{
            transform: scale(1.15);  /* при наведении увеличится */
        }

        .about-support-btn img{
            width: 32px;
            height: 32px;
            object-fit: contain;
            display: block;
            animation: heartbeat 1.2s cubic-bezier(0.36, 0, 0.66, -0.56) infinite;
        }

        @keyframes heartbeat {
            0%, 100% {
                transform: scale(1);
                opacity: 1;
            }
            14% {
                transform: scale(1.1);
            }
            28% {
                transform: scale(1);
            }
            42% {
                transform: scale(1.15);
            }
            70% {
                transform: scale(1);
            }
        }

        body.light .about-support-btn{
            background: rgba(0,0,0,0.15);
        }
        body.light .about-support-btn:hover{
            background: rgba(0,0,0,0.25);
        }

        /* Модальное окно */
        .support-modal{
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;

            background: rgba(0,0,0,0.6);
            display: flex;
            align-items: center;
            justify-content: center;

            z-index: 1000;
            backdrop-filter: blur(3px);
        }

        .support-modal-content{
            position: relative;
            width: 90%;
            max-width: 500px;
            height: 80vh;
            max-height: 600px;

            background: #1e293b;
            border-radius: 12px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.5);
            border: 1px solid #334155;

            overflow: hidden;
        }

        body.light .support-modal-content{
            background: rgba(255,255,255,0.95);
            border-color: #e5e7eb;
        }

        #supportIframe{
        width: 100%;
        height: 100%;
        border: none;
        }

        .support-close-btn{
            position: absolute;
            top: 12px;
            right: 12px;

            width: 32px;
            height: 32px;

            border: none;
            border-radius: 6px;
            background: rgba(255,255,255,0.2);
            color: white;
            cursor: pointer;

            display: flex;
            align-items: center;
            justify-content: center;

            z-index: 1001;
            transition: all 0.2s;
            font-size: 18px;
        }

        .support-close-btn:hover{
            background: rgba(255,255,255,0.3);
            transform: scale(1.1);
        }

        body.light .support-close-btn{
            background: rgba(0,0,0,0.15);
            color: #1f2937;
        }
        body.light .support-close-btn:hover{
            background: rgba(0,0,0,0.25);
        }


        @keyframes twitchPulse {
            0%   { filter: drop-shadow(0 0 0 rgba(255, 45, 45, 0)) brightness(1); }
            50%  { filter: drop-shadow(0 0 8px rgba(255, 45, 45, 0.8)) brightness(1.3); }
            100% { filter: drop-shadow(0 0 2px rgba(255, 45, 45, 0.3)) brightness(1.1); }
        }

        .about-item {
            margin-bottom: 10px;
            line-height: 1.5;
            font-size: 12px;
            display: flex;
            align-items: center;
            gap: 6px;
            flex-wrap: wrap;
        }

        .about-item strong {
            color: #94a3b8;
            font-size: 12px;
            font-weight: 700;
            opacity: 0.85;
            white-space: nowrap;
        }

        body.light .about-item strong {
            color: #6b7280;
        }

        .about-item a {
            color: #6366f1;
            text-decoration: none;
            font-weight: 700;
            transition: all 0.2s;
            gap: 2px ;
        }

        .about-item a:hover {
            color: #818cf8;
            text-decoration: underline;
        }

        /* Activity Indicator Styles */
        .status-indicator {
            display: inline;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .status-indicator.active {
            color: #ff2d2d !important;
            text-shadow: 0 0 3px rgba(255, 45, 45, 0.5);  /* лёгкое свечение */
        }

        .status-indicator.inactive {
            color: inherit;
        }


        /* Twitch Live Icon Wrapper - CLEAN VERSION FOR TWO IMAGES */
        .twitch-icon-wrapper {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            position: relative;
            width: 24px;
            height: 24px;
            border-radius: 4px;
        }

        .twitch-icon {
            width: 24px;
            height: 24px;
            transition: all 0.3s ease;
            position: relative;
            z-index: 2;
        }

        /* OFFLINE STATE - gray/desaturated */
        .twitch-icon.offline {
            opacity: 0.5;
            filter: grayscale(100%);
        }

        /* ONLINE STATE - red icon with glow */
        .twitch-icon.online {
            opacity: 1;
            /* filter: drop-shadow(0 0 3px rgba(255, 0, 0, 0.4)); */
        }

        /* Wrapper glow animation for online state */
        .twitch-icon-wrapper.online {
            /* box-shadow: 0 0 8px rgba(255, 0, 0, 0.25);
             *    animation: twitch-glow 1.5s ease-in-out infinite; */
        }

        /* @keyframes twitch-glow {
         *    0%, 100% {
         *        box-shadow: 0 0 8px rgba(255, 0, 0, 0.20);
         *    }
         *    50% {
         *        box-shadow: 0 0 14px rgba(255, 0, 0, 0.32);
         *    }
         * } */

        :root{
            --footer-handle: 44px;   /* высота “торчащей” части */
            --footer-open: 200px;    /* высота открытого футера */
        }

        footer.footer{
            position: fixed;
            left: 0;
            right: 0;
            bottom: 0;

            height: var(--footer-open);
            background: transparent;     /* важно: фон НЕ тут */
            border: none;                /* важно: бордер НЕ тут */

            transform: translateY(calc(100% - var(--footer-handle))); /* скрыт, торчит только handle */
            transition: transform .25s ease;
            z-index: 98;

            overflow: hidden;
            margin: 0;
            padding: 0;

            pointer-events: none;        /* чтобы скрытый футер не “перехватывал” карту */
        }

        footer.footer.is-open{
            transform: translateY(0);
            pointer-events: auto;
        }

        .footer-handle{
            height: var(--footer-handle);
            background: transparent;     /* чтобы не было “плашки” */
            display: flex;
            align-items: center;
            padding: 0 0 0 12px;
            pointer-events: auto;        /* кнопка кликается даже когда футер скрыт */
        }

        .footer-toggle{
            width: 34px;
            height: 34px;
            border: none;
            border-radius: 6px;
            background: #6366f1;
            color: #fff;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        footer.footer.is-open .footer-toggle i{
            transform: rotate(180deg);
        }

        .footer-body{
            height: calc(var(--footer-open) - var(--footer-handle));
            overflow: auto;

            background: #0f172a;                 /* фон футера теперь тут */
            border-top: 1px solid #334155;       /* и бордер тоже тут */
            padding: 16px 20px 20px;
        }

        body.light .footer-body{
            background: #fff;
            border-top-color: #e5e7eb;
            color: #1f2937;
        }


        .footer-content {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 16px;
        }

        .footer-section h2 {
            font-size: 11px;
            font-weight: 600;
            margin: 0 0 4px 0;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: #cbd5e1;
        }

        body.light .footer-section h2 {
            color: #1f2937;
        }



        .footer-section h4 {
            font-size: 11px;
            font-weight: 600;
            margin: 0 0 4px 0;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: #cbd5e1;
        }

        .footer-section p {
            font-size: 10px;
            margin: 0 0 2px 0;
            line-height: 1.3;
            color: #94a3b8;
        }

        .footer-section ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .footer-section li {
            font-size: 10px;
            margin: 2px 0;
            color: #94a3b8;
        }

        .footer-section a {
            color: #6366f1;
            text-decoration: none;
            transition: color 0.2s;
        }

        .footer-section a:hover {
            color: #818cf8;
            text-decoration: underline;
        }

        .footer-bottom {
            border-top: 1px solid #334155;
            padding-top: 6px;
            margin-top: 8px;
            text-align: center;
        }

        .footer-bottom p {
            font-size: 10px;
            margin: 0;
            color: #64748b;
            line-height: 1.2;
        }

        .footer-bottom a {
            color: #6366f1;
            text-decoration: none;
        }

        .footer-bottom a:hover {
            color: #818cf8;
        }

        body.light .footer-section h4 {
            color: #1f2937;
        }

        body.light .footer-section p,
body.light .footer-section li {
    color: #6b7280;
}

body.light .footer-bottom {
    border-top-color: #e5e7eb;
}

body.light .footer-bottom p {
    color: #9ca3af;
}



/* === Стили для ротации поддержки === */
.supporter-element {
    display: inline !important;
    margin-left: 4px !important;
    transition: opacity 0.8s ease !important;
    vertical-align: middle !important;
}

.supporter-link,
.supporter-text {
    color: #6366f1 !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.supporter-link:hover {
    color: #818cf8 !important;
    text-decoration: underline !important;
}

.supporter-link:hover i {
    color: #818cf8 !important;
}

.supporter-text {
    cursor: default !important;
}

.supporter-text:hover {
    color: #6366f1 !important;
    text-decoration: none !important;
}

/* Иконки Font Awesome - ЯВНЫЕ ЦВЕТА */
.supporter-link i,
.supporter-text i {
    font-size: 11px !important;
    color: #6366f1 !important; /* Фиолетовый как у текста */
    transition: color 0.2s ease !important;
}

/* Специальные цвета для разных типов иконок */
.supporter-link i.fa-coins,
.supporter-text i.fa-coins {
    color: #fbbf24 !important; /* Желтый для денег */
}

.supporter-link i.fa-code,
.supporter-text i.fa-code {
    color: #10b981 !important; /* Зеленый для кода */
}

.supporter-link i.fa-vial,
.supporter-text i.fa-vial {
    color: #8b5cf6 !important; /* Фиолетовый для тестов */
}

.supporter-link i.fa-heart,
.supporter-text i.fa-heart {
    color: #ef4444 !important; /* Красный для сердца */
}

.supporter-link i.fa-lightbulb,
.supporter-text i.fa-lightbulb {
    color: #f59e0b !important; /* Оранжевый для идей */
}

.supporter-link i.fa-palette,
.supporter-text i.fa-palette {
    color: #ec4899 !important; /* Розовый для дизайна */
}

.supporter-link i.fa-server,
.supporter-text i.fa-server {
    color: #6b7280 !important; /* Серый для сервера */
}

/* Ховер для иконок */
.supporter-link:hover i {
    color: #818cf8 !important;
}

.supporter-link:hover i.fa-coins {
    color: #fcd34d !important; /* Светло-желтый при ховере */
}

.supporter-link:hover i.fa-code {
    color: #34d399 !important; /* Светло-зеленый при ховере */
}

/* Светлая тема */
body.light .supporter-link,
body.light .supporter-text {
    color: #6366f1 !important;
}

body.light .supporter-link i,
body.light .supporter-text i {
    color: #6366f1 !important;
}

body.light .supporter-link:hover {
    color: #818cf8 !important;
}

body.light .supporter-link:hover i {
    color: #818cf8 !important;
}

body.light .supporter-text:hover {
    color: #6366f1 !important;
}
