body {
            font-family: 'Inter', sans-serif;
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
            min-height: 100vh;
        }
        
        .card-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 0.75rem;
        }
        
        .game-card {
            aspect-ratio: 1.6; /* Прямоугольная форма */
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-weight: 700;
            text-transform: uppercase;
            font-size: 0.85rem;
            text-align: center;
            padding: 0.5rem;
            word-break: break-word;
            border-radius: 0.75rem;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            letter-spacing: 0.025em;
        }
        
        .game-card:hover:not(.revealed) {
            transform: translateY(-3px) scale(1.02);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
        }
        
        .game-card.selected {
            outline: 4px solid yellow;
            box-shadow: 0 0 25px rgba(255, 255, 0, 0.6);
        }
        
        /* Типы карточек - улучшенные градиенты */
        .card-closed {
            background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 50%, #d8d8d8 100%);
            color: #2d3748;
            border: 2px solid #c0c0c0;
            text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.5);
        }
        
        .card-red {
            background: linear-gradient(135deg, #f87171 0%, #ef4444 40%, #dc2626 100%);
            color: white;
            border: 2px solid #b91c1c;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
        }
        
        .card-blue {
            background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 40%, #2563eb 100%);
            color: white;
            border: 2px solid #1d4ed8;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
        }
        
        .card-neutral {
            background: linear-gradient(135deg, #fde68a 0%, #fcd34d 40%, #f59e0b 100%);
            color: #78350f;
            border: 2px solid #d97706;
            text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.3);
        }
        
        .card-assassin {
            background: linear-gradient(135deg, #374151 0%, #1f2937 40%, #111827 100%);
            color: white;
            border: 2px solid #000;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
        }
        
        /* Подсветка для наводчика (закрытые карточки) */
        .spymaster-red {
            background: linear-gradient(135deg, #fee2e2 0%, #fecaca 50%, #fca5a5 100%);
            border: 3px dashed #ef4444;
            color: #b91c1c;
        }
        
        .spymaster-blue {
            background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 50%, #93c5fd 100%);
            border: 3px dashed #3b82f6;
            color: #1d4ed8;
        }
        
        .spymaster-neutral {
            background: linear-gradient(135deg, #fef9c3 0%, #fef3c7 50%, #fde68a 100%);
            border: 3px dashed #f59e0b;
            color: #92400e;
        }
        
        .spymaster-assassin {
            background: linear-gradient(135deg, #6b7280 0%, #4b5563 50%, #374151 100%);
            color: #d1d5db;
            border: 3px dashed #1f2937;
        }
        
        /* Адаптивность */
        @media (max-width: 640px) {
            .card-grid {
                gap: 0.35rem;
            }
            .game-card {
                font-size: 0.65rem;
                border-radius: 0.5rem;
                padding: 0.35rem;
            }
        }
        
        /* Анимации */
        .fade-in {
            animation: fadeIn 0.3s ease-in;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .pulse-team {
            animation: pulseTeam 2s ease-in-out infinite;
        }
        
        @keyframes pulseTeam {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.7; }
        }
        
        .card-flip {
            animation: flipCard 0.6s ease;
        }
        
        @keyframes flipCard {
            0% { transform: rotateY(0deg); }
            50% { transform: rotateY(90deg); }
            100% { transform: rotateY(0deg); }
        }
        
        .timer-circle {
            position: relative;
            width: 60px;
            height: 60px;
        }
        
        .timer-text {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 1.2rem;
            font-weight: bold;
        }
        
        .timer-warning {
            animation: timerBlink 1s ease-in-out infinite;
        }
        
        @keyframes timerBlink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }
        
        .confetti {
            position: fixed;
            width: 10px;
            height: 10px;
            background: #f00;
            animation: confettiFall 3s ease-out forwards;
        }
        
        @keyframes confettiFall {
            to {
                transform: translateY(100vh) rotate(360deg);
                opacity: 0;
            }
        }
        
        /* Подсветка конфликтной карточки при ошибке валидации подсказки */
        .clue-conflict {
            animation: clueConflictPulse 0.5s ease-in-out 3;
            outline: 4px solid #f97316 !important;
            box-shadow: 0 0 30px rgba(249, 115, 22, 0.7) !important;
        }
        
        @keyframes clueConflictPulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }
        
        /* Индикатор "Ваш ход" */
        .your-turn-pulse {
            animation: yourTurnPulse 1s ease-in-out infinite;
        }
        
        @keyframes yourTurnPulse {
            0%, 100% { transform: scale(1); box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4); }
            50% { transform: scale(1.1); box-shadow: 0 4px 30px rgba(245, 158, 11, 0.6); }
        }
        
        /* === СТИЛИ ДЛЯ УПРАВЛЕНИЯ СЛОВАРЯМИ (ИЗ QUIPLASH) === */
        .library-card {
            background: rgba(51, 65, 85, 0.8);
            border-radius: 1rem;
            padding: 1.25rem;
            cursor: pointer;
            transition: all 0.2s ease;
            border: 2px solid transparent;
        }
        
        .library-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
            border-color: var(--accent, #6366f1);
        }
        
        .library-card.selected {
            border-color: var(--accent, #6366f1);
            background: rgba(99, 102, 241, 0.15);
        }
        
        /* Модальные окна */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(4px);
            z-index: 100;
            display: flex;
            align-items: center;
            justify-content: center;
            animation: fadeIn 0.2s ease-out;
        }
        
        .modal-content {
            background: #1e293b;
            border: 1px solid #475569;
            border-radius: 1rem;
            padding: 2rem;
            max-width: 600px;
            width: 90%;
            animation: slideIn 0.3s ease-out;
            max-height: 90vh;
            overflow-y: auto;
        }
        
        /* Input стили из Quiplash */
        .input {
            background: #0f172a;
            border: 1px solid #475569;
            border-radius: 0.75rem;
            padding: 0.75rem 1rem;
            color: #f8fafc;
            transition: all 0.2s ease;
            width: 100%;
        }
        
        .input:focus {
            outline: none;
            border-color: #6366f1;
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
        }
        
        .input::placeholder {
            color: #94a3b8;
        }
        
        /* Кнопки */
        .btn {
            padding: 0.75rem 1.5rem;
            border-radius: 0.75rem;
            font-weight: 600;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            cursor: pointer;
            border: none;
        }
        
        .btn-primary {
            background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
            color: white;
        }
        
        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
        }
        
        .btn-secondary {
            background: #334155;
            border: 1px solid #475569;
            color: #f8fafc;
        }
        
        .btn-secondary:hover {
            background: #475569;
        }
        
        .btn-danger {
            background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
            color: white;
        }
        
        .btn-success {
            background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
            color: white;
        }
        
        .btn-sm {
            padding: 0.5rem 1rem;
            font-size: 0.875rem;
        }
        
        /* Toggle switch */
        .switch {
            position: relative;
            display: inline-block;
            width: 48px;
            height: 26px;
        }

        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .switch .slider {
            position: absolute;
            cursor: pointer;
            inset: 0;
            background: #475569;
            transition: 0.3s;
            border-radius: 9999px;
        }

        .switch .slider:before {
            position: absolute;
            content: "";
            height: 18px;
            width: 18px;
            left: 4px;
            bottom: 4px;
            background: white;
            transition: 0.3s;
            border-radius: 50%;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
        }

        .switch input:checked + .slider {
            background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
        }

        .switch input:checked + .slider:before {
            transform: translateX(22px);
        }
        
        /* Word item */
        .word-item {
            background: rgba(15, 23, 42, 0.5);
            border: 1px solid #475569;
            border-radius: 0.75rem;
            padding: 0.75rem 1rem;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        
        .word-item:hover {
            border-color: #6366f1;
            background: rgba(99, 102, 241, 0.05);
        }
