
        /* === ОСНОВНЫЕ СТИЛИ = == */
        :root { --bg-dark: #0b0b0b; --fa-font-display: swap; --bg-panel: #141414; --border-dim: #333; --accent: #ff9d00; --combat: #ff3333; --safe-green: #00ff41; --text-main: #e0e0e0; --text-sec: #888; }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        img {
            max-width: 100%;
            height: auto;

        }
        
        
        body,
        body * {
            cursor: none !important;
        }

        
        @media (pointer: coarse), (max-width: 900px) {
            body,
            body * {
                cursor: auto !important;
         }
            #scope-cursor {
                display: none !important;
            }
        }



        
        body {
                background-color: var(--bg-dark);
                color: var(--text-main);
                font-family: 'Roboto Mono', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
                overflow-x: hidden;
                background-image: linear-gradient(var(--border-dim) 1px, transparent 1px),
                                  linear-gradient(90deg, var(--border-dim) 1px, transparent 1px);
                background-size: 50px 50px;
                background-position: center top;
            }

        body::before { content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 90%); pointer-events: none; z-index: -1; }
        
        /* ВИЗУАЛ */
        .scanline { width: 100%; height: 5px; background: rgba(255, 157, 0, 0.1); position: fixed; z-index: 9999; top: -10%; left: 0; pointer-events: none; box-shadow: 0 0 20px rgba(255, 157, 0, 0.2); animation: scan-anim 4s linear infinite; }
        @keyframes scan-anim { 0% { top: -10%; opacity: 0; } 100% { top: 110%; opacity: 0; } }

        #scope-cursor {
            position: fixed;
            top: 0;
            left: 0;
            width: 20px;
            height: 20px;
            pointer-events: none;
            z-index: 2147483647;
            transform: translate(-50%, -50%);
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: 50%;
            transition: width 0.2s, height 0.2s, transform 0.2s, border-color 0.2s, box-shadow 0.2s;
            
            
            border: 2px solid rgba(255, 157, 0, 0.6);
            box-shadow: inset 0 0 10px rgba(0,0,0,0.6);
        }

        #scope-cursor::before {
            content: '';
            position: absolute;
            width: 120%;
            height: 120%;
            border-radius: 50%;
            border: 1px solid rgba(255,255,255,0.06);
            box-shadow: 0 0 12px rgba(0,0,0,0.7) inset;
        }

        #scope-cursor::after {
            content: '';
            width: 2px;
            height: 2px;
            background: var(--accent);
            border-radius: 50%;
            transition: 0.2s;
        }

        body.active-hover #scope-cursor {
            width: 45px;
            height: 45px;
            border-color: var(--combat);
            background: radial-gradient(circle at 50% 50%, rgba(255, 51, 51, 0.15), transparent 70%);
            transform: translate(-50%, -50%) scale(1.15);
            box-shadow: 0 0 10px rgba(255,51,51,0.5), inset 0 0 12px rgba(0,0,0,0.7);
        }

        body.active-hover #scope-cursor::after {
            background: var(--combat);
            box-shadow: 0 0 8px var(--combat);
        }

        header { position: fixed; width: 100%; height: 70px; z-index: 100; background: rgba(11, 11, 11, 0.95); border-bottom: 1px solid var(--border-dim); display: flex; justify-content: space-between; align-items: center; padding: 0 40px; }
        .logo { font-family: 'Oswald'; font-size: 1.8rem; color: #fff; text-transform: uppercase; cursor: none; }
        .logo span { color: var(--accent); }
        nav ul { display: flex; gap: 30px; list-style: none; }
        nav a { color: var(--text-sec); text-decoration: none; text-transform: uppercase; font-size: 0.9rem; transition: 0.3s; }
        nav a:hover { color: var(--accent); }
        .btn-tech { padding: 10px 25px; background: transparent; border: 1px solid var(--accent); color: var(--accent); text-transform: uppercase; font-weight: bold; text-decoration: none; transition: 0.3s; display: inline-block; font-family: 'Oswald'; letter-spacing: 1px; font-size: 0.9rem; }
        .btn-tech:hover { background: var(--accent); color: #000; box-shadow: 0 0 15px rgba(255, 157, 0, 0.4); }

        .hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 100px 5%;
            position: relative;
            overflow: hidden;
        }
        
        /* фон через <picture> */
        .hero-bg-wrap {
            position: absolute;
            inset: 0;
            z-index: 0;
        }
        
        .hero-bg {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        
        .hero::before { content: ''; position: absolute; inset: 0; background: rgba(11,11,11,0.85); z-index: 1; }
        .hero-particles { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
        .particle { position: absolute; background: var(--accent); border-radius: 50%; opacity: 0.6; animation: float-up linear infinite; }
        @keyframes float-up { 0% { transform: translateY(0) rotate(0deg); opacity: 0; } 100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; } }

        .hero-container { position: relative; z-index: 2; width: 100%; max-width: 1400px; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: start; }
        .hero-text-block { display: flex; flex-direction: column; gap: 40px; }
        
        .hero-text-block,
        .hero-modules {
            min-width: 0;
        }
        
        
        

        
        /* БЛОК СЛЕДУЮЩЕЙ ИГРЫ */
        .next-game-alert {
            background: rgba(20, 20, 20, 0.9);
            border: 1px solid var(--accent);
            padding: 15px 20px;
            display: flex;
            flex-direction: column;
            gap: 10px;
        
            width: 100%;
            max-width: 650px;
            /* ВАЖНО: разрешаем блоку сжиматься внутри грида */
            min-width: 0;
        
            margin-bottom: 10px;
        }


        .ng-header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 8px; }
        .ng-label { font-family: 'Oswald'; color: var(--accent); font-size: 0.9rem; }
        .ng-info { color: #fff; font-weight: bold; font-size: 1rem; text-transform: uppercase; }

        .ng-open-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
        .ng-open-label { font-size: 0.75rem; color: var(--text-sec); text-transform: uppercase; }
        .open-games-list { display: flex; flex-direction: column; gap: 4px; flex: 1; }

        .ng-status-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
        
        .ng-weather-row {
            margin-top: 8px;
            font-size: 0.8rem;
            color: #ccc;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        
        .ng-weather-label {
            color: #ffffff;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            font-size: 0.75rem;
        }
        
        
        
        
        .next-game-alert .ng-weather-strip {
            display: flex !important;
            flex-direction: row !important;
            flex-wrap: nowrap !important;
        
            width: 100%;
            max-width: 100%;
            min-width: 0;
        
            overflow-x: auto !important;
            overflow-y: hidden;
            padding-bottom: 2px;
        
            
            scrollbar-width: none; /* Firefox */
            -ms-overflow-style: none; /* старый Edge/IE */
            -webkit-overflow-scrolling: touch;
        }
        
        
        .next-game-alert .ng-weather-strip::-webkit-scrollbar {
            height: 0;
            width: 0;
            background: transparent;
            display: none;
        }
        
        
        .next-game-alert .ng-weather-item {
            flex: 0 0 auto !important;
            min-width: 90px;
            border: 1px solid #333;
            border-radius: 4px;
            padding: 4px 6px;
            background: rgba(0,0,0,0.6);
            font-size: 0.9rem;
            white-space: normal;
        }

        
        .ng-weather-time {
            text-align: center;
            color: #aaa;
            margin-bottom: 2px;
        }
        
        .ng-weather-main {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        
        .ng-weather-main span i {
            margin-right: 3px;
        }

        .status-indicator { display: flex; align-items: center; gap: 10px; }
        @keyframes pulse-dot {
            0% {
                transform: scale(1);
                opacity: 1;
                box-shadow: 0 0 4px rgba(255, 51, 51, 0.6);
            }
            50% {
                transform: scale(1.6);
                opacity: 0.4;
                box-shadow: 0 0 12px rgba(255, 51, 51, 0.9);
            }
            100% {
                transform: scale(1);
                opacity: 1;
                box-shadow: 0 0 4px rgba(255, 51, 51, 0.6);
            }
        }

        .status-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: var(--combat);
            animation: pulse-dot 1.2s infinite ease-in-out;
        }

        .status-text { font-family: 'Oswald'; font-size: 0.9rem; font-weight: bold; text-transform: uppercase; }
        .player-counter { color: #fff; font-family: 'Roboto Mono'; font-size: 0.9rem; background: rgba(255,255,255,0.1); padding: 2px 8px; border-radius: 4px; display: flex; align-items: center; gap: 8px; }
        .player-counter i { color: var(--text-sec); }
        .list-btn-hero { background: #222; border: 1px solid #555; color: #ccc; padding: 8px 15px; font-family: 'Oswald'; transition: 0.3s; width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 0.9rem; margin-top: 10px; cursor: pointer; }
        .list-btn-hero:hover { border-color: var(--accent); color: var(--accent); }

        /* NEXT OPERATION POLLS */
        .next-operation-polls {
            display: grid;
            gap: 12px;
            margin-top: 8px;
        }

        .next-poll-card {
            border: 1px solid #333;
            background: rgba(8, 8, 8, 0.9);
            padding: 12px;
            border-radius: 6px;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .poll-header {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 8px;
        }

        .poll-header h4 {
            color: #fff;
            font-size: 1rem;
            font-family: 'Oswald';
            margin-right: auto;
            letter-spacing: 0.03em;
        }

        .poll-tag {
            border: 1px solid #444;
            color: #bbb;
            font-size: 0.68rem;
            padding: 2px 6px;
            border-radius: 3px;
            text-transform: uppercase;
            background: #111;
        }

        .poll-tag--warn {
            border-color: rgba(255, 157, 0, 0.6);
            color: var(--accent);
        }

        .poll-description {
            color: #b8b8b8;
            font-size: 0.82rem;
            line-height: 1.45;
            white-space: pre-wrap;
        }

        .poll-deadline {
            color: var(--safe-green);
            font-size: 0.8rem;
            font-family: 'Roboto Mono', monospace;
            letter-spacing: 0.01em;
        }

        .poll-deadline.is-expired {
            color: #ff9a9a;
        }

        .poll-options {
            display: flex;
            flex-direction: column;
            gap: 7px;
        }

        .poll-option-wrap {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .poll-option {
            display: flex;
            align-items: center;
            gap: 10px;
            border: 1px solid #262626;
            background: #101010;
            border-radius: 4px;
            padding: 8px 10px;
            transition: border-color 0.2s ease, background 0.2s ease;
        }

        .poll-option:hover {
            border-color: #3b3b3b;
        }

        .poll-option.is-selected {
            border-color: rgba(255, 157, 0, 0.7);
            background: rgba(255, 157, 0, 0.07);
        }

        .poll-option.is-vote-locked {
            cursor: default;
            pointer-events: none;
            opacity: 0.82;
        }

        .poll-has-my-vote .poll-option-wrap:not(.is-selected) .poll-option {
            opacity: 0.72;
        }

        .poll-option input {
            accent-color: var(--accent);
            cursor: pointer;
            flex-shrink: 0;
        }

        .poll-option input:disabled {
            cursor: not-allowed;
            opacity: 0.55;
        }

        .poll-option-text {
            color: #ddd;
            font-size: 0.84rem;
            line-height: 1.35;
            flex: 1;
        }

        .poll-option-count {
            color: #999;
            font-size: 0.78rem;
            border-left: 1px solid #2e2e2e;
            padding-left: 8px;
            min-width: 28px;
            text-align: right;
        }

        .poll-option-count.is-leader {
            color: var(--accent);
            border-left-color: rgba(255, 157, 0, 0.55);
            font-weight: 700;
            text-shadow: 0 0 6px rgba(255, 157, 0, 0.25);
        }

        .poll-option-voters {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
            margin-left: 28px;
        }

        .poll-voter {
            font-size: 0.7rem;
            color: #9fb6c9;
            border: 1px solid rgba(120, 150, 176, 0.3);
            background: rgba(80, 105, 126, 0.12);
            border-radius: 999px;
            padding: 1px 7px;
            line-height: 1.4;
        }

        .poll-footer {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            align-items: center;
            justify-content: space-between;
            border-top: 1px dashed #2d2d2d;
            padding-top: 10px;
        }

        .poll-total-votes {
            color: #989898;
            font-size: 0.78rem;
        }

        .poll-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .poll-actions .btn-tech {
            font-size: 0.72rem;
            padding: 7px 10px;
            line-height: 1.1;
        }

        .poll-actions .btn-tech:disabled {
            opacity: 0.45;
            cursor: not-allowed;
            border-color: #444;
            color: #7a7a7a;
            box-shadow: none;
            background: transparent;
        }

        .poll-reason {
            color: #ff9a9a;
            font-size: 0.76rem;
            line-height: 1.35;
        }

        h1 { font-family: 'Oswald'; font-size: 4rem; line-height: 1.1; text-transform: uppercase; color: #fff; margin: 0; border-left: 5px solid var(--accent); padding-left: 30px; }
        .hero-text-block h1.glitch-hover {
            font-family: 'Oswald', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            font-size: clamp(2.4rem, 6vw, 3.4rem);
            line-height: 1.1;
            min-height: 2.6em;
        }

        .hero-subtitle { color: var(--accent); font-weight: bold; letter-spacing: 2px; padding-left: 35px; }
        .hero p { color: #bbb; font-size: 1.1rem; line-height: 1.6; max-width: 600px; padding-left: 5px; }
        .hero-modules { display: flex; flex-direction: column; gap: 20px; }

        /* ТЕРМИНАЛ */
        .ui-panel { background: rgba(20, 20, 20, 0.95); border: 1px solid var(--border-dim); padding: 15px; position: relative; }
        .ui-header { font-family: 'Oswald'; color: var(--accent); font-size: 1.2rem; margin-bottom: 20px; border-bottom: 1px solid var(--border-dim); padding-bottom: 10px; display: flex; justify-content: space-between; }
        
        .auth-box {  padding: 10px 0; }
        .auth-box p {
            margin-bottom: 15px;
            color: #aaa;
            text-align: center;
        }
        
        .profile-box { display: none; }

        .profile-header { 
            display: flex; 
            align-items: flex-start; 
            gap: 20px; 
            margin-bottom: 20px; 
            padding-bottom: 15px; 
            border-bottom: 1px dashed #333; 
        }
        .profile-avatar-wrap {
            position: relative;
            flex-shrink: 0;
        }
        .user-avatar { 
            width: 120px; 
            height: 120px; 
            border-radius: 50%; 
            border: 3px solid var(--accent); 
            object-fit: cover; 
        }
        .profile-main {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .profile-main-top {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 10px;
        }
        .profile-main-bottom {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
        }
        .profile-main-callsign {
            flex: 1;
            min-width: 150px;
        }
        .user-name { 
            color: #fff; 
            font-weight: bold; 
            display: inline-block; 
            font-size: 1rem;
            line-height: 1.2;
        }
        .user-callsign { 
            color: var(--accent); 
            font-family: 'Oswald'; 
            font-size: 1.8rem; 
            display: block;
            line-height: 1.1;
        }
        .logout-btn { font-size: 0.8rem; color: #555; cursor: pointer; margin-left: auto; text-transform: uppercase; }
        .logout-btn:hover { color: var(--combat); }
        
        .upload-label { font-size: 0.7rem; color: #888; cursor: pointer; text-decoration: underline; display: block; margin-top: 5px; }
        .status-badge { 
            font-size: 1rem; 
            padding: 2px 5px; 
            border: 1px solid; 
            border-radius: 3px; 
            color: var(--safe-green); 
            border-color: var(--safe-green); 
            display: none; 
        }
        .status-badge.show { display: inline-block; }

        .ui-input { width: 100%; background: #000; border: 1px solid #333; color: #fff; padding: 10px; font-family: 'Roboto Mono'; font-size: 0.9rem; transition: 0.3s; margin-bottom: 10px; }
        .ui-input:focus { outline: none; border-color: var(--accent); }
        .ui-textarea { width: 100%; background: #000; border: 1px solid #333; color: #fff; padding: 10px; font-family: 'Roboto Mono'; font-size: 0.9rem; margin-bottom: 10px; resize: vertical; }
        .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
        .checkbox-row { display: flex; align-items: center; gap: 10px; color: #aaa; font-size: 0.9rem; margin-bottom: 20px; cursor: pointer; }
        .custom-check { width: 15px; height: 15px; border: 1px solid var(--accent); display: inline-block; position: relative; }
        .checkbox-row input:checked + .custom-check { background: var(--accent); }
        .btn-full { width: 100%; text-align: center; cursor: pointer; }
        .btn-full:disabled { opacity: 0.5; cursor: not-allowed; }

        .gear-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
        .gear-item { background: #111; padding: 8px 12px; font-size: 0.8rem; color: #777; border: 1px solid #222; display: flex; align-items: center; gap: 10px; transition: 0.2s; cursor: pointer; user-select: none; }
        .gear-item.checked { border-color: var(--safe-green); color: #fff; background: rgba(0,255,65,0.05); }
        .gear-item.checked i { color: var(--safe-green); }
        
        .gear-toggle {
            width: 100%;
            background: transparent;
            border: none;
            color: var(--accent);
            font-family: 'Roboto Mono', monospace;
            font-size: 0.8rem;
            cursor: pointer;
            padding: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: 0.2s;
            border-top: 1px solid #222;
            margin-top: 10px;
        }
        .gear-toggle:hover {
            color: #fff;
            background: rgba(255,157,0,0.05);
        }
        .gear-toggle i {
            transition: transform 0.3s;
        }
        .gear-toggle.expanded i {
            transform: rotate(180deg);
        }
        
        /* Collapsed state - show only first 2 items */
        .gear-list.collapsed .gear-item:nth-child(n+3) {
            display: none;
        }
        
        /* Show partial items - 80% visible */
        .gear-list.collapsed .gear-item:nth-child(1),
        .gear-list.collapsed .gear-item:nth-child(2) {
            mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
            -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
        }

        /* CHAT */
        .chat-panel {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        .chat-messages {
            max-height: 350px;
            overflow-y: auto;
            border: 1px solid #222;
            padding: 10px;
            background: #050505;
            display: flex;
            flex-direction: column;
            gap: 10px;
            scrollbar-width: thin;
        }
        .chat-message {
            display: flex;
            gap: 10px;
            align-items: flex-start;
            padding: 8px 10px;
            background: #111;
            border: 1px solid #222;
            font-size: 0.9rem;
            position: relative;
        }
        .chat-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: 2px solid var(--accent);
            object-fit: cover;
            flex-shrink: 0;
        }
        .chat-avatar.mod {
            border-color: #00d2ff;
            box-shadow: 0 0 8px rgba(0,210,255,0.6);
        }
        .chat-body {
            flex: 1;
            min-width: 0;
        }
        .chat-header-row {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            gap: 10px;
            margin-bottom: 2px;
        }
        .chat-author {
            font-weight: bold;
            color: #fff;
            font-size: 0.9rem;
        }
        .chat-author.mod {
            color: #00d2ff;
        }
        .chat-time {
            font-size: 0.75rem;
            color: #666;
            white-space: nowrap;
        }
        .chat-text {
            color: #ccc;
            word-wrap: break-word;
            white-space: pre-wrap;
            font-size: 0.9rem;
        }
        .chat-system-msg {
            color: var(--combat);
            font-style: italic;
        }
        .chat-delete-btn {
            position: absolute;
            top: 4px;
            right: 6px;
            border: none;
            background: transparent;
            color: #666;
            cursor: pointer;
            font-size: 0.9rem;
        }
        .chat-delete-btn:hover {
            color: var(--combat);
        }
        .chat-input-row {
            display: grid;
            grid-template-columns: minmax(0, 1fr);
            gap: 10px;
        }
        .chat-input-meta {
            display: flex;
            gap: 10px;
            align-items: center;
        }
        .chat-user-info {
            display: flex;
            flex-direction: column;
        }
        .chat-user-callsign {
            font-family: 'Oswald';
            font-size: 1.1rem;
            color: var(--accent);
        }
        .chat-user-hint {
            font-size: 0.75rem;
            color: #777;
        }
        .chat-input-controls {
            display: flex;
            flex-direction: column;
        }

        @media (min-width: 800px) {
            .chat-input-row {
                grid-template-columns: auto 1fr;
                align-items: flex-start;
            }
        }

        /* МОДАЛЬНОЕ ОКНО */
        .modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.9); z-index: 100000; display: none; justify-content: center; align-items: center; backdrop-filter: blur(5px); opacity: 0; transition: opacity 0.3s; }
        .modal-overlay.open { display: flex; opacity: 1; }
        .modal-content { width: 90%; max-width: 800px; max-height: 85vh; background: #111; border: 1px solid var(--accent); position: relative; display: flex; flex-direction: column; box-shadow: 0 0 50px rgba(255, 157, 0, 0.1); transform: scale(0.9); transition: transform 0.3s; }
        .modal-overlay.open .modal-content { transform: scale(1); }
        .modal-header { padding: 20px; border-bottom: 1px solid var(--border-dim); display: flex; justify-content: space-between; align-items: center; background: rgba(255, 157, 0, 0.05); }
        .modal-title { font-family: 'Oswald'; color: var(--accent); font-size: 1.8rem; margin: 0; text-transform: uppercase; }
        .modal-close { color: #fff; font-size: 1.5rem; cursor: pointer; }
        .modal-body { padding: 30px; overflow-y: auto; color: #ccc; font-family: 'Roboto Mono'; font-size: 0.95rem; line-height: 1.6; }

        /* СПИСОК ИГРОКОВ */
        .players-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 15px; }
        .player-card { background: #222; border: 1px solid #333; padding: 15px; display: flex; align-items: center; gap: 15px; cursor: pointer; transition: 0.3s; }
        .player-card:hover { border-color: var(--accent); background: #2a2a2a; }
        .pc-img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }

        /* СЕКЦИИ */
        .section { padding: 80px 10%; border-top: 1px solid var(--border-dim); }
        .section-title { font-family: 'Oswald'; font-size: 2.5rem; margin-bottom: 50px; color: #fff; display: flex; align-items: center; gap: 20px; }
        .section-title span { color: var(--accent); font-size: 1.5rem; border: 1px solid var(--accent); padding: 5px 10px; }
        .section-title::after { content: ''; flex-grow: 1; height: 1px; background: var(--border-dim); }
        .missions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
        .mission-card { background: var(--bg-panel); border: 1px solid var(--border-dim); padding: 25px; transition: 0.3s; display: flex; flex-direction: column; justify-content: space-between; height: 190px; text-decoration: none; position: relative; cursor: pointer; }
        .mission-card:hover { border-color: var(--accent); transform: translateY(-5px); background: #1a1a1a; }
        .mission-header { display: flex; justify-content: space-between; align-items: flex-start; }
        .m-tag {
                font-size: 0.75rem;
                color: #ccc;
                border: 1px solid #555;
                background: #111;
            }
        .mission-card:hover .m-tag { color: var(--accent); border-color: var(--accent); }
        .mission-card h3 { font-family: 'Oswald'; color: #fff; font-size: 1.4rem; margin-top: 10px; text-transform: uppercase; }
        .mission-footer { font-size: 0.8rem; color: var(--text-sec); display: flex; justify-content: space-between; align-items: center; margin-top: auto; border-top: 1px solid #333; padding-top: 10px; }

        /* ТЕКСТ В МОДАЛКЕ */
        .info-block h3 { color: #fff; border-left: 3px solid var(--combat); padding-left: 10px; margin: 25px 0 15px 0; font-family: 'Oswald'; font-size: 1.2rem; }
        .info-block h3:first-child { margin-top: 0; }
        .info-block ul { list-style: none; padding-left: 10px; }
        .info-block li { margin-bottom: 8px; position: relative; padding-left: 20px; }
        .info-block li::before { content: '>'; color: var(--accent); position: absolute; left: 0; }
        .info-highlight { color: var(--safe-green); font-weight: bold; }
        .info-warn { color: var(--combat); font-weight: bold; }
        .rental-card { border: 1px solid #333; padding: 15px; margin-bottom: 15px; background: rgba(255,255,255,0.02); }
        .rental-price { float: right; color: var(--accent); font-weight: bold; font-size: 1.2rem; }

        .spec-ops-container { display: grid; grid-template-columns: 1fr; gap: 30px; }
        .spec-row { display: flex; border: 1px solid var(--border-dim); background: var(--bg-panel); min-height: 320px; transition: 0.3s; text-decoration: none; position: relative; }
        .spec-row:hover { border-color: var(--combat); }
        .spec-img { flex: 1.2; position: relative; overflow: hidden; }
        .spec-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: 0.5s; }
        .spec-row:hover .spec-img img { filter: grayscale(0%); transform: scale(1.05); }
        .spec-info { flex: 1.8; padding: 40px; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; }
        .spec-tag { display: inline-block; background: var(--combat); color: #fff; padding: 5px 10px; font-family: 'Oswald'; text-transform: uppercase; font-size: 0.8rem; width: fit-content; margin-bottom: 15px; }
        .spec-title { font-family: 'Oswald'; font-size: 2.2rem; color: #fff; line-height: 1; margin-bottom: 15px; transition: 0.3s; }
        .spec-row:hover .spec-title { color: var(--combat); letter-spacing: 2px; }
        .spec-desc { color: #999; line-height: 1.5; margin-bottom: 20px; max-width: 90%; }

        .services-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
        .tech-box { border: 1px solid var(--border-dim); padding: 30px; position: relative; background: rgba(20,20,20,0.5); }
        .gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 10px; }
        .g-item { overflow: hidden; height: 200px; border: 1px solid #222; position: relative; }
        .g-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.4s; cursor: none; }
        .g-item:hover img { transform: scale(1.1); filter: contrast(1.2); }
        .gallery-btn-container { text-align: center; margin-top: 30px; }
        .btn-outline { display: inline-block; padding: 12px 40px; border: 1px solid #555; color: #aaa; text-transform: uppercase; font-family: 'Oswald'; text-decoration: none; transition: 0.3s; letter-spacing: 2px; }
        .btn-outline:hover { border-color: var(--accent); color: var(--accent); background: rgba(255,157,0,0.05); }

        /* LIGHTBOX */
        .lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 150000; display: none; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s; }
        .lightbox.active { display: flex; opacity: 1; }
        .lightbox img { max-width: 90%; max-height: 90%; border: 2px solid var(--accent); box-shadow: 0 0 50px rgba(0,0,0,0.8); }
        .lightbox-close { position: absolute; top: 30px; right: 30px; font-size: 2rem; color: #fff; cursor: pointer; transition: 0.3s; }
        .lightbox-close:hover { color: var(--accent); }

        /* CALCULATOR */
        .calc-section { background: #080808; border-top: 1px solid var(--border-dim); border-bottom: 1px solid var(--border-dim); padding: 60px 10%; }
        .calc-container { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
        .calc-display { background: #000; border: 2px solid #333; padding: 30px; font-family: 'Roboto Mono'; text-align: center; position: relative; }
        .calc-value { font-size: 3rem; color: #333; font-weight: bold; line-height: 1; transition: 0.3s; margin-bottom: 10px; }
        .calc-label { color: #555; font-size: 0.8rem; margin-top: 5px; text-transform: uppercase; }
        .res-green { color: var(--safe-green) !important; text-shadow: 0 0 15px var(--safe-green); border-color: var(--safe-green) !important; }
        .res-yellow { color: var(--accent) !important; text-shadow: 0 0 15px var(--accent); border-color: var(--accent) !important; }
        .res-red { color: var(--combat) !important; text-shadow: 0 0 15px var(--combat); border-color: var(--combat) !important; }
        input[type=range] { width: 100%; accent-color: var(--accent); cursor: none; }

        /* МОДАЛКА КРОПА АВАТАРА */
        #avatar-crop-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.85); display: none; align-items: center; justify-content: center; z-index: 200000; }
        #avatar-crop-modal.open { display: flex; }
        .avatar-modal-content { background: #111; border: 1px solid var(--accent); padding: 20px; max-width: 90vw; max-height: 90vh; display: flex; flex-direction: column; align-items: center; }
        .avatar-modal-content h3 { font-family: 'Oswald'; color: #fff; margin-bottom: 10px; }
        .avatar-crop-area { width: 320px; height: 320px; max-width: 80vw; max-height: 60vh; margin-bottom: 10px; }
        .avatar-crop-area img { max-width: 100%; max-height: 100%; display: block; }
        .avatar-crop-actions { display: flex; gap: 15px; margin-top: 10px; }

        footer { padding: 40px 10%; background: #000; border-top: 2px solid var(--border-dim); text-align: center; color: #555; display: flex; justify-content: space-between; }
        @media (max-width: 900px) { 
            .hero-container { grid-template-columns: 1fr; text-align: center; } 
            h1 { font-size: 3rem; border: none; padding: 0; } 
            .hero-subtitle, .hero p { padding: 0; } 
            .next-game-alert { margin: 0 auto 20px; } 
            .hero-modules { max-width: 500px; margin: 0 auto; } 
            .calc-container { grid-template-columns: 1fr; } 
            .spec-row { flex-direction: column; } 
            .spec-img { height: 200px; } 
            .services-grid, .gallery-grid { grid-template-columns: 1fr; } 
            nav { display: none; } 
            header { padding: 0 20px; } 
        }
    

        
        
        
        @media (max-width: 600px) {
            .profile-header {
                flex-direction: column;
                align-items: center;
                text-align: center;
            }
        
            .profile-avatar-wrap {
                margin-bottom: 10px;
            }
        
            .profile-main {
                align-items: center;
            }
        
            .profile-main-top {
                width: 100%;
                justify-content: center;
                gap: 6px;
            }
        
            .profile-main-bottom {
                flex-direction: column;
                width: 100%;
                gap: 10px;
            }
        
            .profile-main-callsign {
                width: 100%;
                text-align: center;
            }
        
            .user-callsign {
                margin-top: 10px;
                text-align: center;
            }
        
            .logout-btn {
                margin-left: 0;
                margin-top: 10px;
                align-self: center;
            }
        }
        
/* Блок авторизации – не растягивать на весь экран */
.auth-box {
    max-width: 420px;
    margin: 0 auto;
}

/* Контейнер для соц-авторизаций: ВСЕГДА колонкой */
.auth-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

/* Каждая кнопка – блок фиксированной ширины, центрированный */
.auth-social-item {
    width: 100%;
    max-width: 260px;   
    display: flex;
    justify-content: center;
}

/* Телега: центрируем и ограничиваем iframe */
#tg-login {
    display: flex;
    justify-content: center;
    width: 100%;
}
#tg-login iframe {
    width: 100% !important;
    max-width: 260px;
}

/* VK: центрируем и ограничиваем, убираем лишние отступы сверху */
#vkid-one-tap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 0 !important;
}
#vkid-one-tap > * {
    width: 100%;
    max-width: 260px;
    margin-top: 0 !important;
}

/* На узких экранах поведение то же: просто колонка */
@media (max-width: 600px) {
    .auth-social {
        flex-direction: column;
        align-items: center;
    }
}

body.auth-hover,
body.auth-hover * {
    cursor: auto !important;
}

body.auth-hover #scope-cursor {
    display: none !important;
}

.auth-box {
    max-width: 420px;
    margin: 0 auto;
    text-align: center; 
    padding: 10px 0;
    transition: box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

body.auth-hover #auth-box {
    box-shadow: 0 0 22px rgba(255, 157, 0, 0.45);
    background: rgba(255, 157, 0, 0.06);
    border-radius: 10px;
    transform: translateY(-2px);
}


.hero-modules .ui-panel:first-child .ui-header {
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.hero-modules .ui-panel:first-child .ui-header span {
    flex: 0 0 auto;
}


/* FAQ v2 – плитки с аккордеоном */
.faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 30px;
    align-items: flex-start;
}


.faq-block.tech-box {
    border: none;
    background: transparent;
    padding: 0;
}

.faq-block-title {
    font-family: 'Oswald', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
}

/* Одна «плитка» вопроса */
.faq-item {
    background: var(--bg-panel);
    border: 1px solid var(--border-dim);
    border-radius: 12px;
    padding: 12px 16px;
    position: relative;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease,
        background 0.2s ease;
}

.faq-item + .faq-item {
    margin-top: 14px;
}

.faq-item:hover {
    border-color: var(--accent);
    background: #151515;
    transform: translateY(-2px);
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.7);
}


.faq-q {
    font-size: 0.95rem;
    margin: 0;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* «Q:» слева */
.faq-q::before {
    content: "Q:";
    color: var(--accent);
    font-weight: 700;
    font-size: 0.8rem;
    flex: 0 0 auto;
}

/* «+» справа */
.faq-q::after {
    content: "+";
    flex: 0 0 auto;
    font-size: 1.1rem;
    color: var(--accent);
    transition:
        transform 0.2s ease,
        color 0.2s ease;
}

/* Состояние открытого вопроса */
.faq-item.is-open .faq-q::after {
    transform: rotate(45deg);
    color: #fff;
}


.faq-answer {
    max-height: 0;
    overflow: hidden;
    font-size: 0.9rem;
    color: var(--text-main);
    opacity: 0;
    transition:
        max-height 0.25s ease,
        opacity 0.2s ease,
        margin-top 0.2s ease;
}

.faq-item.is-open .faq-answer {
    margin-top: 8px;
    max-height: 700px; /* достаточно большое значение для любого ответа */
    opacity: 1;
}

.faq-answer p + p {
    margin-top: 4px;
}

.faq-answer ul {
    margin: 6px 0 0 18px;
    color: var(--text-main);
}

.faq-answer li + li {
    margin-top: 2px;
}

@media (max-width: 900px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}


.workshop-section {
    padding-top: 40px;
}

.workshop-card {
    background: rgba(8, 8, 8, 0.92);
    border-radius: 18px;
    border: 1px solid var(--border-dim);
    padding: 18px 20px 20px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

/* Кликабельная шапка */
.workshop-toggle {
    width: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    text-align: left;
    cursor: pointer;
}

.workshop-toggle:focus-visible {
    outline: 1px solid var(--accent);
    outline-offset: 3px;
}

.workshop-header {
    margin-bottom: 4px;
}

.workshop-eyebrow {
    font-family: 'Oswald', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 15px;
}

.workshop-title {
    font-family: 'Oswald', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    color: coral
}

.workshop-subtitle {
    font-size: 0.9rem;
    color: var(--text-sec);
    max-width: 640px;
    line-height: 1.6;
}

/* Индикатор раскрытия */
.workshop-toggle-indicator {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-sec);
    opacity: 0.85;
}

.workshop-toggle-label {
    white-space: nowrap;
}

.workshop-toggle-icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 1px solid var(--border-dim);
    position: relative;
    transition: 0.2s ease;
}

.workshop-toggle-icon::before,
.workshop-toggle-icon::after {
    content: "";
    position: absolute;
    background: var(--accent);
    border-radius: 999px;
    transition: 0.2s ease;
}

.workshop-toggle-icon::before {
    inset: 50% 4px auto 4px;
    height: 2px;
    transform: translateY(-50%);
}

.workshop-toggle-icon::after {
    inset: 4px 50% 4px auto;
    width: 2px;
    transform: translateX(50%);
}

/* Состояние открыто */
.workshop-card.is-open .workshop-toggle-icon {
    background: rgba(255, 157, 0, 0.07);
    border-color: var(--accent);
}

.workshop-card.is-open .workshop-toggle-icon::after {
    opacity: 0;
}

/* CTA – всегда виден */
.workshop-cta {
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
    justify-content: flex-start;
}

.workshop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 20px;
    border-radius: 999px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #000;
    font-family: 'Oswald', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: 0.2s ease;
    box-shadow: 0 0 18px rgba(255, 157, 0, 0.45);
}

.workshop-btn:hover {
    background: #000;
    color: var(--accent);
    box-shadow: 0 0 24px rgba(255, 157, 0, 0.6);
}

.workshop-cta-note {
    font-size: 0.8rem;
    color: var(--text-sec);
    margin: 0;
}

/* Разворачиваемый контент */
.workshop-collapsible {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
    margin-top: 10px;
}

.workshop-card.is-open .workshop-collapsible {
    /* max-height задаём через JS, но класс нужен для статуса */
}

.workshop-grid {
    display: grid;
    gap: 10px 20px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    padding-top: 4px;
    padding-bottom: 4px;
}

.workshop-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.workshop-item-icon {
    flex: 0 0 auto;
    font-size: 1rem;
    color: var(--accent);
    margin-top: 2px;
}

.workshop-item-text {
    margin: 0;
}

.workshop-note {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--text-sec);
    opacity: 0.85;
}

@media (max-width: 768px) {
    .workshop-card {
        padding: 16px 14px 18px;
    }

    .workshop-toggle {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .workshop-toggle-indicator {
        align-items: flex-start;
    }

    .workshop-cta {
        align-items: flex-start;
    }
}

.hp-field {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* === ВКЛАДКИ ПРОФИЛЯ === */
.profile-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-dim);
    padding-bottom: 10px;
}

.profile-tab {
    background: transparent;
    border: 1px solid var(--border-dim);
    color: var(--text-sec);
    padding: 8px 16px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

.profile-tab:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.profile-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
}

.profile-tab-content {
    display: none;
}

.profile-tab-content.active {
    display: block;
}

/* === ИСТОРИЯ ИГР === */
.history-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.stat-card {
    background: rgba(255, 157, 0, 0.1);
    border: 1px solid var(--accent);
    padding: 15px 10px;
    text-align: center;
}

.stat-value {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-sec);
    text-transform: uppercase;
    margin-top: 5px;
    letter-spacing: 0.05em;
}

.history-list {
    max-height: 300px;
    overflow-y: auto;
}

.history-item {
    background: var(--bg-panel);
    border: 1px solid var(--border-dim);
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-item-date {
    font-family: 'Oswald', sans-serif;
    color: var(--accent);
    font-size: 0.9rem;
    min-width: 80px;
}

.history-item-info {
    flex: 1;
    padding: 0 10px;
}

.history-item-name {
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.history-item-meta {
    color: var(--text-sec);
    font-size: 0.75rem;
}

.history-item-duration {
    color: var(--text-sec);
    font-size: 0.8rem;
    text-align: right;
}

.history-empty {
    text-align: center;
    color: var(--text-sec);
    padding: 40px 20px;
    font-size: 0.9rem;
}

/* === СТАТИСТИКА В ДОСЬЕ === */
.profile-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 15px 0;
    padding: 10px 20px;
    background: rgba(255, 157, 0, 0.1);
    border: 1px solid var(--accent);
    border-radius: 4px;
}

.profile-stat-item {
    text-align: center;
}

.profile-stat-value {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    color: var(--accent);
    line-height: 1;
}

.profile-stat-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-sec);
    text-transform: uppercase;
    margin-top: 3px;
    letter-spacing: 0.05em;
}

.profile-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-dim);
}

/* === ПОЛЯ ПРОФИЛЯ В ТЕРМИНАЛЕ === */
#profile-fields-block {
    transition: all 0.3s ease;
    position: relative;
}

#profile-fields-block.profile-completed {
    overflow: hidden;
    opacity: 0.8;
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 4px;
    padding: 8px 12px;
}

#profile-fields-block.profile-completed .ui-input,
#profile-fields-block.profile-completed .ui-textarea {
    display: none;
}

#profile-fields-block.profile-completed div:first-child {
    margin-bottom: 0;
}

/* Кнопка редактирования ВНУТРИ блока - показываем когда свернуто */
#profile-fields-block.profile-completed #edit-profile-btn {
    display: inline-block !important;
    margin-top: 5px;
}

#profile-fields-block.editing {
    max-height: none;
    overflow: visible;
    opacity: 1;
    background: transparent;
    border: none;
    padding: 0;
}

#profile-fields-block.editing .ui-input,
#profile-fields-block.editing .ui-textarea {
    display: block;
}

/* Кнопка редактирования в режиме editing */
#profile-fields-block.editing #edit-profile-btn {
    display: inline-block !important;
    margin-top: 10px;
}

#edit-profile-btn {
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid var(--safe-green);
    color: var(--safe-green);
    padding: 6px 14px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 3px;
}

#edit-profile-btn:hover {
    background: var(--safe-green);
    color: #000;
}

#profile-status {
    background: rgba(0, 255, 65, 0.15);
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .history-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-card:last-child {
        grid-column: span 2;
    }
    
    .history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .history-item-info {
        padding: 0;
    }
    
    .history-item-duration {
        text-align: left;
    }
}

/* === КЛУБНАЯ КАРТА === */
.club-card-display {
    position: relative;
    width: 80px;
    height: 120px;
    flex-shrink: 0;
}

.club-card-display img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border-dim);
}

.club-card-display.has-card .card-number {
    position: absolute;
    bottom: 5%;
    right: 5%;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.72rem;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.95);
    font-weight: bold;
    letter-spacing: 2px;
}

.club-card-display.no-card img {
    opacity: 0.5;
    filter: grayscale(100%);
}

.club-card-display.no-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 45%,
        var(--combat) 45%,
        var(--combat) 55%,
        transparent 55%
    );
    opacity: 0.8;
}

/* === ПЛАВАЮЩИЙ ЧАТ === */
.floating-chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    font-family: 'Roboto Mono', monospace;
}

/* Свернутое состояние - полоска */
.floating-chat-collapsed {
    cursor: pointer;
    transition: all 0.3s ease;
}

.floating-chat-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 12px 20px;
    box-shadow: 0 4px 20px rgba(255, 157, 0, 0.3), 0 0 0 1px rgba(255, 157, 0, 0.1);
    transition: all 0.3s ease;
    animation: floating-chat-pulse 2s ease-in-out infinite;
}

@keyframes floating-chat-pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(255, 157, 0, 0.3), 0 0 0 1px rgba(255, 157, 0, 0.1);
    }
    50% {
        box-shadow: 0 4px 25px rgba(255, 157, 0, 0.5), 0 0 15px rgba(255, 157, 0, 0.2);
    }
}

.floating-chat-bar:hover {
    background: linear-gradient(135deg, #222 0%, #111 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 157, 0, 0.4), 0 0 20px rgba(255, 157, 0, 0.2);
    animation: none;
}

.floating-chat-label {
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    color: var(--accent);
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.floating-chat-label i {
    font-size: 1rem;
}

.floating-chat-hint {
    display: none;
}

/* Иконка чата для мобильных */
.floating-chat-icon {
    display: none;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 1px solid var(--accent);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(255, 157, 0, 0.3);
    animation: floating-chat-pulse 2s ease-in-out infinite;
}

.floating-chat-icon i {
    font-size: 1.4rem;
    color: var(--accent);
}

.floating-chat-icon:hover {
    background: linear-gradient(135deg, #222 0%, #111 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 157, 0, 0.4);
    animation: none;
}

.floating-chat-arrow {
    color: var(--accent);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.floating-chat-collapsed:hover .floating-chat-arrow {
    transform: translateY(-2px);
}

/* Развернутое состояние */
.floating-chat-expanded {
    width: 380px;
    max-height: 70vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 1px solid var(--accent);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 157, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: floating-chat-expand 0.3s ease;
}

@keyframes floating-chat-expand {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.floating-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 18px;
    background: rgba(255, 157, 0, 0.08);
    border-bottom: 1px solid rgba(255, 157, 0, 0.2);
}

.floating-chat-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    color: var(--accent);
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.floating-chat-close {
    background: transparent;
    border: 1px solid var(--border-dim);
    color: var(--text-sec);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.floating-chat-close:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(255, 157, 0, 0.1);
}

.floating-chat-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 200px;
    max-height: 400px;
}

.floating-chat-body .chat-messages {
    max-height: none;
    height: auto;
    border: none;
    background: transparent;
    overflow-y: visible;
}

.floating-chat-footer {
    padding: 15px;
    border-top: 1px solid rgba(255, 157, 0, 0.1);
    background: rgba(0, 0, 0, 0.3);
}

.floating-chat-footer .chat-input-row {
    gap: 12px;
}

.floating-chat-footer .chat-input-meta {
    gap: 10px;
}

.floating-chat-footer .chat-avatar {
    width: 36px;
    height: 36px;
}

.floating-chat-footer .chat-user-callsign {
    font-size: 0.95rem;
}

.floating-chat-footer .ui-textarea {
    background: rgba(0, 0, 0, 0.4);
    border-color: #333;
    font-size: 0.85rem;
}

.floating-chat-footer .ui-textarea:focus {
    border-color: var(--accent);
}

.floating-chat-footer .btn-tech {
    font-size: 0.8rem;
    padding: 10px;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .floating-chat-container {
        bottom: 15px;
        right: 15px;
        left: auto;
        z-index: 99999;
    }
    
    /* На мобильных показываем иконку вместо полосы */
    .floating-chat-bar.desktop-bar {
        display: none;
    }
    
    .floating-chat-icon.mobile-icon {
        display: flex;
    }
    
    .floating-chat-expanded {
        width: auto;
        max-height: 60vh;
        position: fixed;
        bottom: 10px;
        left: 10px;
        right: 10px;
        z-index: 99999;
    }
    
    .floating-chat-body {
        min-height: 150px;
        max-height: 300px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .floating-chat-icon {
        width: 45px;
        height: 45px;
    }
    
    .floating-chat-icon i {
        font-size: 1.2rem;
    }
    
    .floating-chat-expanded {
        max-height: 55vh;
    }
    
    .floating-chat-body {
        max-height: 250px;
    }
}
