body {
    background: #000000;
    min-height: 100vh;
    padding-top: 70px;
}

.game-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

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

.game-title {
    color: #00d4ff;
    font-size: 3em;
    font-weight: bold;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    margin-bottom: 10px;
}

.game-subtitle {
    color: #ffffff;
    font-size: 1.2em;
    opacity: 0.8;
}

.board-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.2);
    max-width: 600px;
    margin: 0 auto;
}

#board-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.tokens-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.token {
    position: absolute;
    width: 30px;
    height: 30px;
    transition: all 0.5s ease;
    animation: tokenPulse 2s infinite;
    filter: drop-shadow(0 0 5px rgba(0, 212, 255, 0.6));
}

.token img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.player-select {
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.player-select label {
    color: #00d4ff;
    margin-right: 10px;
}

.player-select select {
    background: #1a1a2e;
    color: #00d4ff;
    border: 2px solid #00d4ff;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.game-panel {
    background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.2);
}

.game-panel h3 {
    color: #00d4ff;
    margin-bottom: 15px;
    font-weight: bold;
}

.player-info {
    margin-bottom: 25px;
}

.player {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    transition: all 0.3s ease;
}

.player.active {
    background: rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    border: 2px solid #00d4ff;
}

.player img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.player-red { border-left: 3px solid #ff0000; }
.player-blue { border-left: 3px solid #0000ff; }
.player-yellow { border-left: 3px solid #ffcc00; }

.player .position {
    margin-left: auto;
    font-weight: bold;
    opacity: 0.8;
}

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

.dice-container h3 {
    margin-bottom: 20px;
}

#current-player {
    color: #00d4ff;
    font-weight: bold;
}

.dice {
    width: 100px;
    height: 100px;
    background: #ffffff;
    border-radius: 15px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
    transition: all 0.3s ease;
    padding: 10px;
}

.dice img {
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

.dice.rolling {
    animation: spin 0.5s linear;
}

.roll-btn {
    background: linear-gradient(135deg, #00d4ff 0%, #0099ff 100%);
    border: none;
    color: #0f0f1e;
    padding: 12px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
    width: 100%;
}

.roll-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(0, 212, 255, 0.5);
    background: linear-gradient(135deg, #0099ff 0%, #00d4ff 100%);
}

.roll-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.game-info {
    margin-bottom: 20px;
}

.game-info h4 {
    color: #ffffff;
    margin-bottom: 15px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
}

.info-item.ladder {
    border-left: 3px solid #00ff88;
}

.info-item.ladder i {
    color: #00ff88;
}

.info-item.snake {
    border-left: 3px solid #ff3366;
}

.info-item.snake i {
    color: #ff3366;
}

.new-game-btn {
    background: linear-gradient(135deg, #00ff88 0%, #00cc66 100%);
    border: none;
    color: #0f0f1e;
    padding: 12px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
    width: 100%;
}

.new-game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(0, 255, 136, 0.5);
    background: linear-gradient(135deg, #00cc66 0%, #00ff88 100%);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes tokenPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Board Selection Styles */
.board-selection {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.board-option {
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
}

.board-option:hover {
    border-color: #0099ff;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 153, 255, 0.3);
}

.board-option.selected {
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    background: rgba(0, 212, 255, 0.1);
}

.board-option img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    display: block;
}

.board-option span {
    display: block;
    text-align: center;
    color: #00d4ff;
    font-weight: bold;
    margin-top: 8px;
    font-size: 14px;
}

.player-green {
    border-left: 3px solid #00ff88;
}

@media (max-width: 768px) {
    .game-title {
        font-size: 2em;
    }

    .token {
        width: 20px;
        height: 20px;
    }

    .game-panel {
        margin-top: 20px;
    }

    .player img {
        width: 25px;
        height: 25px;
    }
}
