* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Microsoft YaHei', Arial, sans-serif;
            background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }

        .game-container {
            background: white;
            border-radius: 20px;
            padding: 20px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.3);
            max-width: 1200px;
            width: 100%;
        }

        h1 {
            text-align: center;
            color: #2c3e50;
            margin-bottom: 20px;
            font-size: 2.5rem;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
        }

        .game-info {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 15px;
            margin-bottom: 20px;
        }

        .info-card {
            background: #ecf0f1;
            padding: 15px;
            border-radius: 15px;
            text-align: center;
            border: 2px solid #bdc3c7;
        }

        .info-label {
            color: #2c3e50;
            font-size: 0.9rem;
            margin-bottom: 5px;
            font-weight: bold;
        }

        .info-value {
            color: #34495e;
            font-size: 1.2rem;
            font-weight: bold;
        }

        .controls {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        button {
            background: #3498db;
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 25px;
            cursor: pointer;
            font-size: 1rem;
            font-weight: bold;
            transition: all 0.3s ease;
        }

        button:hover {
            background: #2980b9;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        }

        button:disabled {
            background: #95a5a6;
            cursor: not-allowed;
            transform: none;
        }

        .btn-danger {
            background: #e74c3c;
        }

        .btn-danger:hover {
            background: #c0392b;
        }

        .btn-success {
            background: #27ae60;
        }

        .btn-success:hover {
            background: #229954;
        }

        .game-board {
            display: grid;
            grid-template-columns: 1fr 2fr 1fr;
            gap: 20px;
            margin: 20px 0;
            min-height: 600px;
        }

        .players-section {
            background: #ecf0f1;
            border-radius: 15px;
            padding: 15px;
            border: 2px solid #bdc3c7;
        }

        .section-title {
            text-align: center;
            color: #2c3e50;
            font-weight: bold;
            margin-bottom: 15px;
            font-size: 1.2rem;
        }

        .player-card {
            background: white;
            border-radius: 10px;
            padding: 15px;
            margin-bottom: 10px;
            border: 2px solid #ddd;
            transition: all 0.3s ease;
            cursor: pointer;
            position: relative;
        }

        .player-card:hover {
            transform: scale(1.02);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }

        .player-card.current {
            border-color: #f39c12;
            background: #fef9e7;
        }

        .player-card.dead {
            opacity: 0.5;
            background: #f8f9fa;
            border-color: #95a5a6;
        }

        .player-card.werewolf {
            border-color: #e74c3c;
            background: #fdf2f2;
        }

        .player-card.villager {
            border-color: #27ae60;
            background: #f8fff8;
        }

        .player-card.seer {
            border-color: #8e44ad;
            background: #f8f4ff;
        }

        .player-card.doctor {
            border-color: #3498db;
            background: #f0f8ff;
        }

        .player-card.selected {
            border-color: #f39c12;
            background: #fff3cd;
            box-shadow: 0 0 10px rgba(243, 156, 18, 0.5);
        }

        .player-name {
            font-weight: bold;
            color: #2c3e50;
            margin-bottom: 8px;
            font-size: 1.1rem;
        }

        .player-role {
            font-size: 0.9rem;
            margin-bottom: 8px;
            padding: 4px 8px;
            border-radius: 12px;
            text-align: center;
            color: white;
            font-weight: bold;
        }

        .role-werewolf { background: #e74c3c; }
        .role-villager { background: #27ae60; }
        .role-seer { background: #8e44ad; }
        .role-doctor { background: #3498db; }
        .role-unknown { background: #95a5a6; }

        .player-status {
            font-size: 0.8rem;
            color: #7f8c8d;
            text-align: center;
        }

        .night-actions {
            background: #2c3e50;
            color: white;
            border-radius: 15px;
            padding: 20px;
            text-align: center;
        }

        .night-actions h3 {
            margin-bottom: 20px;
            color: #ecf0f1;
        }

        .action-buttons {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: 20px;
        }

        .action-btn {
            background: #34495e;
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: 10px;
            cursor: pointer;
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        .action-btn:hover {
            background: #4a6741;
            transform: translateY(-1px);
        }

        .action-btn:disabled {
            background: #7f8c8d;
            cursor: not-allowed;
            transform: none;
        }

        .day-discussion {
            background: #f8f9fa;
            border-radius: 15px;
            padding: 20px;
            border: 2px solid #dee2e6;
        }

        .voting-section {
            margin-top: 20px;
        }

        .vote-buttons {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: 8px;
            margin-top: 15px;
        }

        .vote-btn {
            background: #6c757d;
            color: white;
            border: none;
            padding: 8px 12px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 0.9rem;
            transition: all 0.3s ease;
        }

        .vote-btn:hover {
            background: #5a6268;
        }

        .vote-btn.voted {
            background: #dc3545;
        }

        .game-log {
            background: #ecf0f1;
            border-radius: 15px;
            padding: 15px;
            border: 2px solid #bdc3c7;
            max-height: 400px;
            overflow-y: auto;
        }

        .log-entry {
            padding: 8px 0;
            border-bottom: 1px solid #d5dbdb;
            font-size: 0.9rem;
            color: #2c3e50;
        }

        .log-entry:last-child {
            border-bottom: none;
        }

        .log-entry.night {
            background: #2c3e50;
            color: white;
            padding: 8px;
            border-radius: 5px;
            margin: 5px 0;
        }

        .log-entry.day {
            background: #f8f9fa;
            padding: 8px;
            border-radius: 5px;
            margin: 5px 0;
        }

        .log-entry.important {
            background: #e74c3c;
            color: white;
            font-weight: bold;
            padding: 8px;
            border-radius: 5px;
            margin: 5px 0;
        }

        .phase-indicator {
            text-align: center;
            font-size: 1.5rem;
            font-weight: bold;
            padding: 15px;
            border-radius: 15px;
            margin-bottom: 20px;
        }

        .phase-night {
            background: #2c3e50;
            color: white;
        }

        .phase-day {
            background: #f39c12;
            color: white;
        }

        .winner-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.8);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }

        .winner-content {
            background: white;
            padding: 40px;
            border-radius: 20px;
            text-align: center;
            animation: winnerPop 0.5s ease-out;
            border: 3px solid #2c3e50;
            max-width: 500px;
        }

        @keyframes winnerPop {
            0% { transform: scale(0.5); opacity: 0; }
            100% { transform: scale(1); opacity: 1; }
        }

        .role-reveal {
            background: #fff3cd;
            border: 2px solid #ffeaa7;
            border-radius: 10px;
            padding: 15px;
            margin: 10px 0;
            text-align: center;
        }

        .countdown {
            font-size: 2rem;
            font-weight: bold;
            color: #e74c3c;
            text-align: center;
            margin: 10px 0;
        }

        @media (max-width: 768px) {
            .game-container {
                padding: 15px;
            }
            
            h1 {
                font-size: 2rem;
            }
            
            .game-board {
                grid-template-columns: 1fr;
                gap: 15px;
            }
            
            .game-info {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .controls {
                gap: 8px;
            }
            
            button {
                padding: 10px 20px;
                font-size: 0.9rem;
            }
        }