:root {
    --bg-color: #2c3e50;
    --board-color: #34495e;
    --square-color: #ecf0f1;
    --rosette-color: #f1c40f;
    --player-color: #3498db;
    --bot-color: #e74c3c;
    --highlight-color: #2ecc71;
    --text-color: #ecf0f1;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

#game-container {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
    max-width: 800px;
    width: 100%;
}

header h1 {
    margin-top: 0;
}

#status-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 1.2rem;
}

#board {
    display: grid;
    grid-template-columns: repeat(8, 60px);
    grid-template-rows: repeat(3, 60px);
    gap: 5px;
    justify-content: center;
    margin: 20px auto;
    background-color: var(--board-color);
    padding: 10px;
    border-radius: 5px;
}

.square {
    width: 60px;
    height: 60px;
    background-color: var(--square-color);
    border-radius: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s;
}

.square.empty {
    background-color: transparent;
    cursor: default;
}

.square.rosette {
    background-color: var(--rosette-color);
}

.square.highlight {
    box-shadow: inset 0 0 10px 5px var(--highlight-color);
}

.piece {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.piece.player {
    background-color: var(--player-color);
}

.piece.bot {
    background-color: var(--bot-color);
}

#controls {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    margin-top: 20px;
}

#dice-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#dice-display {
    display: flex;
    gap: 5px;
}

.die {
    width: 20px;
    height: 20px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.die.active {
    background-color: #000;
}

#roll-button {
    padding: 10px 20px;
    font-size: 1rem;
    background-color: var(--highlight-color);
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
}

#roll-button:disabled {
    background-color: #7f8c8d;
    cursor: not-allowed;
}

.reserve {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    width: 150px;
    min-height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 5px;
}

#message-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

#message-overlay.hidden {
    display: none;
}

.message-content {
    background-color: var(--bg-color);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
}

#restart-button {
    padding: 10px 20px;
    font-size: 1.2rem;
    background-color: var(--player-color);
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
}
