body {
    background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 48%, #fff7ed 100%);
}

.game-container {
    max-width: 1100px;
}

.game-area {
    background: var(--card-background, #fff);
    border-radius: var(--border-radius, 8px);
    box-shadow: var(--shadow, 0 4px 6px rgba(0,0,0,0.1));
    padding: 24px;
}

.status {
    min-height: 1.6em;
    margin: 10px 0 16px;
    color: var(--secondary-color, #2c3e50);
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
}

.round-summary {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.round-summary span {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #334155;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 7px 12px;
}

.tabletop {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.player-card {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    padding: 16px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.player-card.current {
    border-color: var(--primary-color, #2980b9);
    transform: translateY(-2px);
}

.player-card.you {
    background: linear-gradient(180deg, #f0fdf4 0%, #fff 80%);
}

.player-card.eliminated {
    opacity: 0.62;
    background: #f8fafc;
}

.player-card h3 {
    color: #1e293b;
    font-size: 1.05rem;
    margin: 0 0 8px;
}

.player-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 4px 9px;
}

.badge.you-badge {
    background: #dcfce7;
    color: #166534;
}

.badge.turn-badge {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge.out-badge {
    background: #fee2e2;
    color: #991b1b;
}

.dice-count {
    color: #475569;
    font-size: 0.9rem;
    font-weight: 700;
}

.dice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    min-height: 58px;
}

.die {
    width: 52px;
    height: 58px;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 -3px 0 rgba(15, 23, 42, 0.06), 0 3px 8px rgba(15, 23, 42, 0.08);
    user-select: none;
}

.die-pip {
    color: #111827;
    font-size: 1.7rem;
    line-height: 1;
}

.die-label {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.1;
    margin-top: 3px;
    text-transform: uppercase;
}

.hidden-die {
    background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
    border-color: #0f172a;
    color: #fff;
}

.hidden-die .die-pip,
.hidden-die .die-label {
    color: #fff;
}

.empty-dice {
    align-items: center;
    color: #94a3b8;
    display: flex;
    font-weight: 700;
    min-height: 58px;
}

.bid-panel,
.action-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    margin-bottom: 18px;
    padding: 18px;
    text-align: center;
}

.bid-panel h2,
.action-panel h2 {
    color: var(--secondary-color, #2c3e50);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.current-bid {
    color: #0f172a;
    font-size: 1.25rem;
    font-weight: 800;
    min-height: 1.6em;
}

.last-action {
    color: #475569;
    font-weight: 700;
    margin-top: 8px;
    min-height: 1.4em;
}

.bid-form {
    align-items: end;
    display: grid;
    grid-template-columns: repeat(2, minmax(90px, 140px)) minmax(120px, 170px);
    gap: 10px;
    justify-content: center;
    margin-bottom: 8px;
}

.bid-form label {
    align-self: center;
    color: #334155;
    font-weight: 800;
    text-align: right;
}

.bid-form input,
.bid-form select {
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    font-size: 1rem;
    padding: 10px;
}

.bid-form button {
    grid-column: span 3;
    justify-self: center;
    min-width: 170px;
}

.bid-helper {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 700;
    margin: 6px 0 12px;
}

.action-buttons,
.game-buttons,
.online-info,
.difficulty-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.difficulty-btn {
    background: #ecf0f1;
    border: 2px solid #d0d7de;
    color: #2c3e50;
}

.difficulty-btn.active {
    background: var(--primary-color, #2980b9);
    border-color: var(--primary-color, #2980b9);
    color: #fff;
}

.opponent-name {
    color: var(--text-muted, #666);
    font-weight: 700;
}

@media (max-width: 720px) {
    .game-area {
        padding: 16px;
    }

    .tabletop {
        grid-template-columns: 1fr;
    }

    .bid-form {
        grid-template-columns: 1fr;
    }

    .bid-form label {
        text-align: left;
    }

    .bid-form button {
        grid-column: auto;
        width: 100%;
    }
}

@media (max-width: 420px) {
    .die {
        width: 44px;
        height: 52px;
    }

    .die-pip {
        font-size: 1.45rem;
    }

    .round-summary span {
        width: 100%;
        text-align: center;
    }
}
