body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.game-container {
    text-align: center;
    max-width: 700px;
}

.game-area {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

h1 { color: var(--primary-color); margin: 0; }

.status {
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: bold;
    color: #2c3e50;
    min-height: 1.5em;
}

.dice-area {
    margin-bottom: 20px;
}

.dice-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.die {
    width: 60px;
    height: 60px;
    background: white;
    border: 3px solid #ddd;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.die:hover { transform: scale(1.05); }

.die.held {
    border-color: #e74c3c;
    background: #fff5f5;
    box-shadow: 0 0 8px rgba(231, 76, 60, 0.3);
}

.die.rolling {
    animation: diceRoll 0.3s ease-in-out;
}

@keyframes diceRoll {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(0.8); }
    100% { transform: rotate(360deg) scale(1); }
}

.dice-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.dice-hint {
    font-size: 0.8rem;
    color: #999;
}

#roll-btn {
    padding: 10px 25px;
    font-size: 1rem;
}

/* Scorecard */
.scorecard {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 20px;
}

.scorecard table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.scorecard th, .scorecard td {
    border: 1px solid #ddd;
    padding: 6px 8px;
    text-align: center;
}

.scorecard th {
    background: #f8f9fa;
    font-weight: 600;
}

.scorecard .category-name {
    text-align: left;
    font-weight: 500;
}

.scorecard .available {
    cursor: pointer;
    color: #3498db;
    font-weight: 600;
}

.scorecard .available:hover {
    background: #eaf2f8;
}

.scorecard .scored {
    color: #2c3e50;
    font-weight: 600;
}

.scorecard .section-header {
    background: #ecf0f1;
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scorecard .bonus-row {
    background: #fef9e7;
    font-style: italic;
}

.scorecard .total-row {
    background: #e8f8f5;
    font-weight: bold;
    font-size: 0.95rem;
}

.scorecard .current-player-col {
    background: #eaf6ff;
}

.game-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.online-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.opponent-name {
    font-weight: 600;
    color: var(--text-muted, #666);
}

@media (max-width: 500px) {
    .die { width: 48px; height: 48px; font-size: 1.5rem; }
    .scorecard { font-size: 0.75rem; }
    .game-area { padding: 15px; }
}
