/* Shared layout for casual games */
.game-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.game-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
}

.game-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    font-size: 14px;
    color: #374151;
}

.game-stats strong {
    color: #111827;
    font-variant-numeric: tabular-nums;
}

.game-status {
    min-height: 22px;
    font-size: 14px;
    color: #2563eb;
    font-weight: 600;
}

.game-status.is-idle {
    color: #6b7280;
    font-weight: 500;
}

.game-status.is-win {
    color: #059669;
}

.game-status.is-lose {
    color: #dc2626;
}

.game-board-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.game-hint {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

.game-diff-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.game-diff-row .tb-btn.is-active {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.65);
    opacity: 0.95;
}

.game-toolbar .tb-btn.is-muted,
.puzzle-upload .tb-btn.is-muted {
    opacity: 0.72;
}

.game-volume {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #374151;
    min-width: 0;
    flex: 1 1 140px;
}

.game-volume span {
    white-space: nowrap;
}

.game-volume input[type="range"] {
    flex: 1 1 auto;
    min-width: 80px;
    max-width: 180px;
    accent-color: #2563eb;
    cursor: pointer;
}

@media (max-width: 768px) {
    .game-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .game-toolbar .action-row {
        width: 100%;
    }

    .game-volume {
        flex: 1 1 100%;
        width: 100%;
    }

    .game-volume input[type="range"] {
        max-width: none;
    }
}
