/* 1. Общий фон страницы */
body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(180deg, #2c3e50, #4a90e2);
    font-family: 'Arial', sans-serif;
    transition: background 0.5s ease;
}

/* 2. Контейнер игры (стеклянный эффект) */
.game-container {
    background: rgba(255, 255, 255, 0.15);
    padding: 40px;
    border-radius: 30px;
    text-align: center;
    color: white;
    border: 4px solid rgba(255, 255, 255, 0.2);
    width: 350px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    backdrop-filter: blur(15px);
}

h1 { font-size: 1.8rem; margin-bottom: 25px; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }

/* 3. Сетка кубиков */
.dice-grid { display: flex; gap: 15px; justify-content: center; margin: 30px 0; }
.dice { 
    width: 60px; height: 60px; 
    border-radius: 15px; 
    background: #ff4d4d; 
    display: flex; align-items: center; justify-content: center; 
    font-size: 24px; box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.hidden { display: none; }

/* 4. Кнопки и селекты */
button, select { 
    width: 100%; padding: 15px; margin: 8px 0; 
    border-radius: 12px; border: none; 
    font-weight: bold; cursor: pointer; font-size: 1rem;
    transition: transform 0.2s, background 0.3s;
}
#roll-btn { background: #3498db; color: white; }
#bg-btn { background: #9b59b6; color: white; }
button:hover { transform: scale(1.05); filter: brightness(1.1); }

/* 5. Инфо-панель */
.info-panel { 
    margin-top: 20px; font-size: 0.85rem; 
    background: rgba(0,0,0,0.2); padding: 12px; border-radius: 10px; 
}

/* 6. Анимация */
.dice-rolling { animation: roll 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes roll { 
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.3) rotate(15deg); }
    100% { transform: scale(1) rotate(0deg); } 
}