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

        body {
            font-family: 'Microsoft YaHei', Arial, sans-serif;
            background: linear-gradient(135deg, #8B4513 0%, #CD853F 50%, #D2691E 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.2);
            max-width: 1200px;
            width: 100%;
        }

        h1 {
            text-align: center;
            color: #8B4513;
            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(200px, 1fr));
            gap: 15px;
            margin-bottom: 20px;
        }

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

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

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

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

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

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

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

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

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

        .section-title {
            text-align: center;
            color: #8B4513;
            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;
        }

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

        .player-card.current {
            border-color: #FF6B35;
            background: #FFF5F0;
        }

        .player-card.dead {
            opacity: 0.5;
            background: #F5F5F5;
        }

        .player-name {
            font-weight: bold;
            color: #8B4513;
            margin-bottom: 5px;
        }

        .player-role {
            font-size: 0.9rem;
            color: #666;
            margin-bottom: 5px;
        }

        .player-role.lord { color: #FFD700; }
        .player-role.loyal { color: #32CD32; }
        .player-role.rebel { color: #DC143C; }
        .player-role.spy { color: #8A2BE2; }

        .player-stats {
            display: flex;
            justify-content: space-between;
            font-size: 0.8rem;
            color: #666;
        }

        .hp-bar {
            background: #DDD;
            height: 8px;
            border-radius: 4px;
            margin: 5px 0;
            overflow: hidden;
        }

        .hp-fill {
            background: #32CD32;
            height: 100%;
            transition: width 0.3s ease;
        }

        .hp-fill.low { background: #FF4500; }
        .hp-fill.critical { background: #DC143C; }

        .center-area {
            background: #FFF8DC;
            border-radius: 15px;
            padding: 20px;
            border: 2px solid #D2691E;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .game-phase {
            background: #8B4513;
            color: white;
            padding: 10px 20px;
            border-radius: 20px;
            margin-bottom: 20px;
            font-weight: bold;
        }

        .card-area {
            flex: 1;
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .deck-area {
            display: flex;
            gap: 20px;
            margin: 20px 0;
        }

        .deck {
            width: 100px;
            height: 140px;
            background: #8B4513;
            border-radius: 10px;
            display: flex;
            justify-content: center;
            align-items: center;
            color: white;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 3px solid #A0522D;
        }

        .deck:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        }

        .deck.disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

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

        .card {
            width: 80px;
            height: 110px;
            background: white;
            border: 2px solid #8B4513;
            border-radius: 8px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.8rem;
            text-align: center;
            position: relative;
        }

        .card:hover {
            transform: translateY(-10px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        }

        .card.selected {
            border-color: #FF6B35;
            background: #FFF5F0;
            transform: translateY(-5px);
        }

        .card-name {
            font-weight: bold;
            color: #8B4513;
            margin-bottom: 5px;
        }

        .card-type {
            font-size: 0.7rem;
            color: #666;
        }

        .action-buttons {
            display: flex;
            gap: 10px;
            margin-top: 15px;
        }

        .action-btn {
            background: #FF6B35;
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 15px;
            cursor: pointer;
            font-size: 0.9rem;
            transition: all 0.3s ease;
        }

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

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

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

        .log-entry {
            padding: 5px 0;
            border-bottom: 1px solid #E0E0E0;
            font-size: 0.9rem;
            color: #4A4A4A;
        }

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

        .log-entry.important {
            color: #DC143C;
            font-weight: bold;
        }

        .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 #8B4513;
        }

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

        .character-selection {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 10px;
            margin: 20px 0;
        }

        .character-card {
            background: white;
            border: 2px solid #8B4513;
            border-radius: 10px;
            padding: 15px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .character-card:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        }

        .character-card.selected {
            border-color: #FF6B35;
            background: #FFF5F0;
        }

        .character-name {
            font-weight: bold;
            color: #8B4513;
            margin-bottom: 5px;
        }

        .character-skill {
            font-size: 0.8rem;
            color: #666;
        }

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