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

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
            background: linear-gradient(135deg, #2d3436 0%, #636e72 50%, #b2bec3 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: 900px;
            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(5, 60px);
            grid-template-rows: repeat(12, 50px);
            gap: 2px;
            background: #34495e;
            padding: 10px;
            border-radius: 10px;
        }

        .chess-cell {
            background: #ecf0f1;
            border: 1px solid #bdc3c7;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 12px;
            font-weight: bold;
            position: relative;
        }

        .chess-cell:hover {
            background: #d5dbdb;
        }

        .chess-cell.selected {
            background: #f39c12;
            color: white;
        }

        .chess-cell.possible-move {
            background: #2ecc71;
            color: white;
        }

        .chess-cell.red-camp {
            background: #e74c3c;
            color: white;
        }

        .chess-cell.blue-camp {
            background: #3498db;
            color: white;
        }

        .chess-cell.railway {
            background: #95a5a6;
        }

        .chess-cell.headquarters {
            background: #9b59b6;
            color: white;
            font-weight: bold;
        }

        .chess-piece {
            font-size: 10px;
            font-weight: bold;
            text-align: center;
            line-height: 1.2;
            padding: 2px;
        }

        .red-piece {
            color: #e74c3c;
            background: rgba(231, 76, 60, 0.1);
            border-radius: 4px;
        }

        .blue-piece {
            color: #3498db;
            background: rgba(52, 152, 219, 0.1);
            border-radius: 4px;
        }

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

        .control-button {
            padding: 12px 25px;
            background: #2d3436;
            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: #636e72;
            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;
        }

        .piece-info {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin: 20px 0;
        }

        .army-info {
            background: #f8f9fa;
            padding: 15px;
            border-radius: 10px;
        }

        .army-info h3 {
            margin-bottom: 10px;
            text-align: center;
        }

        .red-army h3 {
            color: #e74c3c;
        }

        .blue-army h3 {
            color: #3498db;
        }

        .piece-count {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 5px;
            font-size: 12px;
        }

        .piece-item {
            text-align: center;
            padding: 5px;
            background: white;
            border-radius: 5px;
        }

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

            .chess-board {
                grid-template-columns: repeat(5, 45px);
                grid-template-rows: repeat(12, 38px);
            }

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

            .chess-piece {
                font-size: 8px;
            }

            .piece-info {
                grid-template-columns: 1fr;
            }

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