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

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
            background: linear-gradient(135deg, #74b9ff 0%, #0984e3 50%, #00b894 100%);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }

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

        .game-header {
            text-align: center;
            margin-bottom: 30px;
        }

        .game-title {
            font-size: 2.5em;
            font-weight: 700;
            color: #2d3436;
            margin-bottom: 10px;
        }

        .game-subtitle {
            color: #636e72;
            font-size: 1.1em;
        }

        .game-info {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: 15px;
            margin: 20px 0;
            font-weight: bold;
            color: #2d3436;
        }

        .info-item {
            text-align: center;
            padding: 10px;
            background: #f8f9fa;
            border-radius: 10px;
        }

        .red-info {
            color: #e74c3c;
        }

        .blue-info {
            color: #3498db;
        }

        .turn-info {
            color: #27ae60;
        }

        .board-container {
            display: flex;
            justify-content: center;
            margin: 20px 0;
        }

        .chess-board {
            display: grid;
            grid-template-columns: repeat(7, 60px);
            grid-template-rows: repeat(9, 60px);
            gap: 1px;
            background: #34495e;
            padding: 10px;
            border-radius: 10px;
        }

        .chess-cell {
            background: #2ecc71;
            border: 1px solid #27ae60;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 24px;
            position: relative;
        }

        .chess-cell:hover {
            background: #58d68d;
        }

        .chess-cell.selected {
            background: #f39c12;
            box-shadow: 0 0 10px rgba(243, 156, 18, 0.8);
        }

        .chess-cell.possible-move {
            background: #3498db;
            animation: pulse 1s infinite;
        }

        .chess-cell.water {
            background: #3498db;
            background-image: radial-gradient(circle, rgba(255,255,255,0.3) 2px, transparent 2px);
            background-size: 10px 10px;
        }

        .chess-cell.trap {
            background: #e74c3c;
            background-image: 
                linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.3) 50%, transparent 60%),
                linear-gradient(-45deg, transparent 40%, rgba(255,255,255,0.3) 50%, transparent 60%);
        }

        .chess-cell.den {
            background: #9b59b6;
            background-image: 
                radial-gradient(circle at 50% 50%, rgba(255,255,255,0.3) 30%, transparent 40%);
        }

        .chess-piece {
            font-size: 20px;
            font-weight: bold;
            text-align: center;
            width: 50px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            border: 2px solid;
            color: white;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
        }

        .red-piece {
            background: linear-gradient(145deg, #e74c3c, #c0392b);
            border-color: #a93226;
        }

        .blue-piece {
            background: linear-gradient(145deg, #3498db, #2980b9);
            border-color: #1f4e79;
        }

        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }

        .game-controls {
            text-align: center;
            margin: 20px 0;
        }

        .control-button {
            padding: 12px 25px;
            background: #74b9ff;
            color: white;
            border: none;
            border-radius: 25px;
            font-size: 1em;
            font-weight: 600;
            cursor: pointer;
            margin: 0 10px;
            transition: all 0.3s ease;
        }

        .control-button:hover {
            background: #0984e3;
            transform: translateY(-2px);
        }

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

        .message {
            text-align: center;
            padding: 15px;
            border-radius: 10px;
            margin: 15px 0;
            font-weight: bold;
            display: none;
        }

        .message.show {
            display: block;
        }

        .message.info {
            background: #e8f4f8;
            color: #2980b9;
        }

        .message.success {
            background: #d5f4e6;
            color: #00b894;
        }

        .message.error {
            background: #ffeaa7;
            color: #e17055;
        }

        .animal-info {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
            margin: 20px 0;
            font-size: 12px;
        }

        .animal-card {
            background: #f8f9fa;
            padding: 10px;
            border-radius: 8px;
            text-align: center;
        }

        .animal-card.red {
            border-left: 4px solid #e74c3c;
        }

        .animal-card.blue {
            border-left: 4px solid #3498db;
        }

        .animal-rank {
            font-weight: bold;
            color: #2d3436;
        }

        .animal-emoji {
            font-size: 16px;
            margin: 5px 0;
        }

        @media (max-width: 768px) {
            .game-container {
                padding: 20px;
                margin: 10px;
            }

            .chess-board {
                grid-template-columns: repeat(7, 45px);
                grid-template-rows: repeat(9, 45px);
            }

            .chess-cell {
                font-size: 18px;
            }

            .chess-piece {
                width: 38px;
                height: 38px;
                font-size: 16px;
            }

            .animal-info {
                grid-template-columns: repeat(2, 1fr);
            }

            .game-title {
                font-size: 2em;
            }
        }