* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #ffcccc, #ff9999);
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 550px;
    background: #ffe6e6;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

h1 {
    margin-bottom: 20px;
    color: #cc0000;
}

input {
    width: 80%;
    padding: 10px;
    margin: 8px 0;
    border: 2px solid #cc0000;
    border-radius: 5px;
    text-align: center;
}

button {
    background: #cc0000;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    margin: 10px 5px;
    cursor: pointer;
    color: #fff;
    font-weight: bold;
    transition: background 0.3s;
}

button:hover {
    background: #990000;
}

.hidden {
    display: none;
}

.scoreboard {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.dice-area {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 20px 0;
}

.dice-area img {
    width: 80px;
    height: 80px;
}

#result {
    margin-top: 15px;
    font-size: 1.2rem;
    font-weight: bold;
}

.win {
    color: green;
}

.lose {
    color: red;
}

.history-item {
    margin: 5px 0;
    font-size: 0.9rem;
    background: #ffcccc;
    padding: 5px;
    border-radius: 4px;
}