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

        body {
            font-family: 'Microsoft YaHei', Arial, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 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.1);
            max-width: 800px;
            width: 100%;
        }

        h1 {
            text-align: center;
            color: #333;
            margin-bottom: 20px;
            font-size: 2.5rem;
        }

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

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

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

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

        .current-player {
            padding: 8px 15px;
            border-radius: 20px;
            color: white;
            font-weight: bold;
            display: inline-block;
        }

        .player-red { background: #ff4757; }
        .player-blue { background: #3742fa; }
        .player-green { background: #2ed573; }
        .player-yellow { background: #ffa502; }

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

        button {
            background: #667eea;
            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: #5a6fd8;
            transform: translateY(-2px);
        }

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

        .dice-container {
            text-align: center;
            margin-bottom: 20px;
        }

        .dice {
            width: 80px;
            height: 80px;
            background: white;
            border: 3px solid #667eea;
            border-radius: 15px;
            display: inline-flex;
            justify-content: center;
            align-items: center;
            font-size: 2rem;
            font-weight: bold;
            color: #667eea;
            cursor: pointer;
            transition: all 0.3s ease;
            margin: 0 10px;
        }

        .dice:hover {
            transform: scale(1.1);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
        }

        .dice.rolling {
            animation: roll 0.5s ease-in-out;
        }

        @keyframes roll {
            0%, 100% { transform: rotate(0deg); }
            25% { transform: rotate(90deg); }
            50% { transform: rotate(180deg); }
            75% { transform: rotate(270deg); }
        }

        .game-board {
            background: #f8f9ff;
            border-radius: 20px;
            padding: 20px;
            margin: 20px 0;
            position: relative;
            min-height: 500px;
        }

        .board-grid {
            display: grid;
            grid-template-columns: repeat(15, 1fr);
            grid-template-rows: repeat(15, 1fr);
            gap: 2px;
            height: 450px;
            background: #e0e6ff;
            border-radius: 15px;
            padding: 10px;
        }

        .cell {
            background: white;
            border-radius: 8px;
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
            transition: all 0.3s ease;
        }

        .cell.path {
            background: #f0f8ff;
            border: 2px solid #667eea;
        }

        .cell.safe-zone {
            background: #e8f5e8;
            border: 2px solid #2ed573;
        }

        .cell.home {
            background: #fff0f0;
            border: 2px solid #ff4757;
        }

        .cell.finish {
            background: #fff8e1;
            border: 2px solid #ffa502;
        }

        .piece {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            border: 2px solid white;
            position: absolute;
            transition: all 0.5s ease;
            z-index: 10;
        }

        .piece.red { background: #ff4757; }
        .piece.blue { background: #3742fa; }
        .piece.green { background: #2ed573; }
        .piece.yellow { background: #ffa502; }

        .piece.selected {
            transform: scale(1.3);
            box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.8);
        }

        .shortcut {
            background: #ffe0e6 !important;
            border-color: #ff6b9d !important;
        }

        .status-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: #f8f9ff;
            padding: 15px;
            border-radius: 15px;
            margin-top: 20px;
        }

        .player-status {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .achievement {
            background: #fff3cd;
            border: 1px solid #ffeaa7;
            color: #856404;
            padding: 10px;
            border-radius: 10px;
            margin: 10px 0;
            text-align: center;
        }

        .winner-celebration {
            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;
        }

        .celebration-content {
            background: white;
            padding: 40px;
            border-radius: 20px;
            text-align: center;
            animation: celebrationPop 0.5s ease-out;
        }

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

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